Prerequisites :
Install build essential + headers – as root:
apt-get install build-essential
apt-get install linux-headers-`uname -r` && ln -sf /usr/src/linux-headers-`uname -r` /usr/src/linux
Download and register the public key
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
Installing Vbox
Now open synaptic and add following repo to your sources:
deb http://download.virtualbox.org/virtualbox/debian/ lenny non-free
Hit reload (you can add the missing key later), then search for virtualbox
Install virtualbox-2.0 (that’s the latest one from Sun), it will pull in any other required dependencies. You’ll need to answer the various dialogues in synaptic’s terminal when they come up.
After install close synaptic, and as root in konsole, add yourself to the vboxusers group:
usermod -G vboxusers -a username
**substitute your actual username**