Visual Basic.NET and C# on Ubuntu Jaunty?

Well, for some, controversy….. for some, good news…. However you look at it, it is now a reality!

VB.NET and C# (ASP.NET) and Windows Forms exist now in the Linux world. I’ am not in the “GO” side nor the “REMOVE” side.
I just want to explore what this project is all about and see the good and bad of it. Anyway, here it is.

1. Open your web browser and go to
Click on the stable version, then click the Ubuntu logo and start installing by clicking Install with APT.

2. You also need to install additional packages.
Go to Application -> Accessories -> Terminal
Type: sudo apt-get install mono-vbnc mono-xsp2
Type: [yourpassword]

3. You can now start developing .NET applications by clicking Applications -> Programming -> MonoDevelop on your GNOME menu

4. Here is the MonoDevelop IDE

5. Here is a sample of an ASP.NET using VB.NET

6. To run it, just hit F5 and your browser will display the output.

“Now proprietary software runs on Linux. Good news for some, and bad news for the Free and Open Source purists”

Installing Java and Tomcat 5.5 on Ubuntu Jaunty

If you want to try JSP with Tomcat then follow the steps:

1. Go to Applications -> Accessories – > Terminal

sudo apt-get install sun-java5-sdk tomcat5.5 tomcat5.5-admin tomcat5.5-webapps

2. After successfully installing all of the above packages, apt will prompt you for an error message. This is because of the java 5 documentation. Just follow the link that will be prompted by apt and download the files to /tmp. Then execute

apt-get install

3. Your web root will be at /usr/share/tomcat5.5-webapps/ROOT. This is where you will put your web applications or pages.

4. By default, tomcat runs on port 8180. If you want to change it to 8080 or just 80, edit the server.xml

pico /etc/tomcat5.5/server.xml

5. Search for this

<Connector port=”8180″ maxHttpHeaderSize=”8192″
maxThreads=”150″ minSpareThreads=”25″ maxSpareThreads=”75″
enableLookups=”false” redirectPort=”8443″ acceptCount=”100″
connectionTimeout=”20000″ disableUploadTimeout=”true” />

and change 8180 to 8080 or if you want just 80.

6. Restart your tomcat

sudo /etc/init.d/tomcat5.5 restart

7. Open a browser and type,


if you choose 8080 on server.xml, and


if you choose 80 on server.xml


Setting up GRUB for dualboot with Windows XP on Ubuntu 9.04

If you have two hard drives on your PC, the first one being installed with Windows XP, and the second one with Ubuntu 9.04, you wouldn’t want to always edit the BIOS boot entry order to be able to switch from Windows to Ubuntu or from Ubuntu to Windows. Since your primary disk (/dev/sda) is windows and your secondary disk (/dev/sdb) assuming both are in the primary IDE, you just edit the GRUB on Ubuntu (/dev/hdb) and set the primary BOOT disk to the BIOS as the disk with Ubuntu so that when your computer boots, Ubuntu will be the default one. Here are the steps.

1. Set the BIOS primary boot disk to your secondary disk (the one with Ubuntu)

2. Start booting your Ubuntu OS.

3. Open a terminal `Applications -> Accessories -> Terminal`

4. Edit the GRUB entries, type sudo pico /boot/grub/menu.lst

5. Find the entry similar to this.. (usually at the bottom part)

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
rootnoverify (hd0,0)
chainloader +1

6. change it to
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
chainloader +1

7. Save and restart your PC
CTRL + O (save) and CTRL + X (exit from pico)
sudo shutdown -r now