Please note, that I've done this from memory – but when I get a chance I'll try this on a clean machine.
First things first, add the Xandros repos, as well as the VirtualBox repos. The xandros package from VirtualBox doesn't work – you need to use the debian etch package.
Open a terminal (CTRL+ALT+T) and then edit your apt sources list:
sudo nano /etc/apt/sources.listThen add the following lines to the end of the file. Paste them in by pressing both mouse buttons together.
deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free deb http://www.VirtualBox.org/debian etch non-free"CTRL+X" will quit – press y to save when asked.
Back at the console, we need to install the build-essential package, as we need to compile some kernel headers for VitualBox to use. This includes make etc.
sudo apt-get install build-essentialNext, we need to download the kernel source. At the time of writing, the EeePC uses 2.6.21.4. You can find out by running the following command in the console:
uname -rThe source can be found at http://www.kernel.or...ux/kernel/v2.6/
Download the source and place it in /usr/src/ - you may need to create this folder first.
sudo mkdir /usr/srcFrom the console, go to /usr/src and extract the source.
cd /usr/src tar -xf ./linux-2.6.21.4.tar.gzYou then need to create a symbolic link, as the VirtualBox install program expects the source to be in /usr/src/linux.
sudo ln /usr/src/linux-2.6.21.4 /usr/src/linux -sNow, we need to set up the build.
cd /usr/src/linux sudo make oldconfig && sudo make prepareAssuming all goes well, lets compile. As there are only a few things needed, you can cancel the build by pressing "CTRL + C" after as soon as you see "modpost" come up on the screen – for me this was after 10-15 seconds. If you have other applications that need headers, feel free to let it compile entirely – it took around 30 minutes when plugged into the mains.
sudo make allNow, we should be able to install VirtualBox.
sudo apt-get install virtualboxYou'll find there are a couple of dependencies that will be installed from the Xandros repos.
Annoyingly, the VirtualBox service doesn't start when the computer does because of the way Xandros has been setup. There are two methods for this that spring to mind – method two is my preferred.
Method One
sudo nano /usr/sbin/services.shAt the end of the file add:
/etc/init.d/vboxdrv start /etc/init.d/vboxnet startWith this method, I have found you can't launch VirtualBox straight away, as it is last on the list it won't happen until the network etc. is up. Not ideal if you're impatient.
Method Two (Preferred)
With this method, we'll start the vbox services each time we launch VirtualBox, which also stops having the services unneccessarily loaded when we aren't using them.
Firstly, edit ourselves a new file for the script code to be in.
sudo nano /bin/vboxrunAnd then paste the following code in, by pressing both mouse buttons together.
sudo /etc/init.d/vboxdrv start sudo /etc/init.d/vboxnet start /usr/bin/VirtualBox sudo /etc/init.d/vboxdrv stop sudo /etc/init.d/vboxnet stopThen give this script execution rights.
sudo chmod +x /bin/vboxrunFinally
Finally, we want to add this to the AsusLauncher, which is where my asusadd script comes in handy - http://forum.eeeuser...pic.php?id=6645
If you've followed method one, you can add this by running:
sudo asusadd Work VirtualBox /usr/bin/VirtualBoxOr for my preferred method two:
sudo asusadd Work VirtualBox /bin/vboxrunHappy Virtualizing!
Edited by spode, 26 December 2007 - 12:36 AM.













