Installing VirtualBox 3.1 in Ubuntu

This post does not intend to explain how to create a virtual machine in Ubuntu. Since VirtualBox is not found on default repositories here we show how to install it using apt-get tool:

echo -e "\ndeb karmic non-free" >> /etc/apt/sources.list
wget -q -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-3.1 dkms

Read more:

See ya