"A meek endeavor to the triumph" by Sampath Jayarathna

Sunday, October 28, 2007

Ubuntu on Microsoft Virtual PC 2007

Last Thursday morning I spent alomst 5hrs on how to install Ubuntu on Microsoft Virtual PC 2007. One of Professor in Nims department asked my help to sort out problems he had on the preinstalled Ubuntu on MS VirtualPC in order to run it on Graphic mode. The graphic was trashy and couldn't see or execute anything on the graphic mode, though the text mode working pretty much. Started the work at Prof. Hahn's office around 7.30 am but was not successful till 11.30. I knew the problem was in emulated graphic hardware support on the virtual machine. It supports only 16 bit or less display color depth, which will leads to modify the display configuration manually. I found that if we can change the xorg.conf file, it would sort out everything. Problem was where to find it. Normally it should be in /etc/X11/xorg.conf but its possible to be at /target/etc/X11 or something like target/usr/lib/X11/xorg.conf
When I searched it on the web, I found several forums saying different locations for the xorg.conf location. Problem was I couldn't find it in any place. Started with fresh copy of the installation on MC virtual pc and started the text mode on the boot by pressing alt+clt+F1 combo. I was pretty much-fooled b'se it was in the middle of the installations, lots of packages specially graphics emulators not configured at that time. Silly me, I searched all around to find the file but no hit at all. Then I realized something wrong with the installations and continue the process again. It was almost 12 noon, I missed all my morning session at the international office. So I thought of taking the laptop back home and check it again at night.

When I started work again at night (that time the installation was pretty much done) and for my surprise I found the file at the default location /etc/X11/xorg.conf now the problem how to modify it to support only 16 bit. The file was read only and I didn't know how to make it modifiable on nano. GNU nano is a simple terminal-based text editor. Though not as powerful as Emacs or Vim, it is easy to learn and use. Nano is ideal for making small changes to existing configuration files or for writing short plain text files. Though its easy, had bit of problem on initial learing on how to work on it, specially how to exit from it :) we can see the commands on the editor but problem was on the representaion, its something like ^x for exit but how on earth I know this ^ means Clt key ha. Ok the orignal problem, how to open the file with wirte permission. I tried su and for my surprise I couldn't remember entered any super user for the system at the time of the installations, Mmm interesting ha. No super user on Ubuntu? Then I realiesed the use of sudo command. The actual command is like this,

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

this line just to backup the config file incase of any problem, that kind of things can happen. Then I used actual command for modifying the file
sudo nano /etc/X11/xorg.conf

then by removing the line default '24' and change it to '16' hurrah here it comes Ubuntu on Virtual PC 2007.

May be I need to try installing Linux, Fedora & Ubuntu combo on my office PC too. Its kind of a cool stuff. But need to find some time.

No comments: