quinta-feira, 2 de dezembro de 2010

Ubuntu 10.10 - Developing C# 4.0

I recently changed to Linux, still a fresh user of this system... and since I'm a coder, I thought that programming in C# was a windows thing, and damn how wrong was I!!!
So if you have openSUSE you can program C# 4.0 using the standard repositories, but in ubuntu that isn't the case.. so here is a simple tutorial in how to set your development scenario.

first download and install the monodevelop(using ubuntu software manager).

then you go here: http://www.integratedwebsystems.com/2010/10/mono-2-8-install-script-for-ubuntu-fedora/ (Thx for your hard work Nathan Bridgewater keep up the good work)and follow the steps to compile mono 2.8 in your system... is easy as 1-2-3

then open monodevelop and Edit->Preferences -> .Net Runtimes
press Add and locate '/opt/mono-2.8'

then set as default and you are good to go.
I haven't tested the webserver yet as soon as I do I will post an how to.

Cheers and happy ubuntu programming...

quarta-feira, 24 de novembro de 2010

Virtuozzo venet0 Failed to start

In the release of CentOS after installed virtuozzo 4.0 I decided to change the gateway for the machine, it worked for the machine but the containers didn't access the network anymore.
After another reboot I notice an error on the startup:
starting venet0 failed to start
It was trying to get DHCP information, but no IP was given to the machine, it's suppose to be like this.
So I googled and googled but no answer.
I decided to take a look at the /etc/sysconfig/network-scripts/ifcfg-venet0 and the setup command line of CentOS messed it up..
so here is how the file should look for venet0:

DEVICE=venet0
ONBOOT=yes
STARTMODE='onboot'

A reboot and all was working again...

terça-feira, 23 de novembro de 2010

Bind9 with chroot simple version

Having my first steps in Linux, I will just posting the easiest ways to do things with this system.
So I wanted to install a DNS(nameserver) into a CentOS 5.5 machine, the easiest way is:
using Bind9 with chroot as installed by default in the CentOS server.

# cd /var/named/chroot/etc/
edit/create the file
# nano named.conf
put this in the file
options {
directory "/var/named";
forwarders { 8.8.8.8; };
};
# service named start
# dig google.com

the service should be all ok and responding, don't forget to change the /etc/resolv.conf to point to the new nameserver