1. Install ubuntu-7.10-jeos-i386.iso
Note: InVM, remove default SCSI device, add an IDE device.
Note: Do not config network during installation, it may stay for a long time when configuration apt source.
2. Set a password for root, login as root.
sudo passwd root
3. Config network
vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
vi /etc/resolv.conf
nameserver XXX.XXX.XXX.XXX
/etc/init.d/networking restart
4. Install Packages
apt-get update
apt-get install ssh mono mono-gmcs mono-utils mono-xsp
add packages if you need, such as monodoc, monodevelop, libmono-winforms1.0-cil and libmono-winforms2.0-cil, etc.
5. Run C# program
The code of helloword.cs (copy from web):
using System;
namespace HW
{
class HelloWorld
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Compile
msc helloword.cs
Run this program
mono helloword.exe
6. Done!