VirtualBox is a powerful Open Source virtualization software from Oracle, Which supports Linux, Windows and Mac OS. Current stable release is VirtualBox 4.3.
Recommended way of installing Virtualbox in Ubuntu / Linux Mint is by adding PPA to your repository.
Advertisements
Dependency
First install the dependency package to avoid error.
sudo apt-get install dkms
To add PPA
Open a terminal and run the following command to download and install the key from Oracle. Issue the password for the user when prompted.
After installing the Oracle public key, use the below command to add it to your repository.
For Ubuntu 13.10
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian saucy contrib" >> /etc/apt/sources.list.d/virtualbox.list'
For Ubuntu 13.04
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian raring contrib" >> /etc/apt/sources.list.d/virtualbox.list'
For Ubuntu 12.10
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian quantal contrib" >> /etc/apt/sources.list.d/virtualbox.list'
For Ubuntu 12.04
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian precise contrib" >> /etc/apt/sources.list.d/virtualbox.list'
For Ubuntu 11.10
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian oneiric contrib" >> /etc/apt/sources.list.d/virtualbox.list'
For Ubuntu 11.04
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian natty contrib" >> /etc/apt/sources.list.d/virtualbox.list'
Once you added the repo using the above command, Update your repository.
sudo apt-get update
To Install
Now install the virtualbox 4.3 using the below command.
sudo apt-get install virtualbox-4.3
To install the previous version just replace 4.3 to 4.2 / 4.1 / 4.0 / 3.2 in the above command.
To Open
Go to dash and type Virtualbox, click on the icon. Check the screen shot.
Permanently add virtualbox icon to unity launcher by right-click on it and lock to Launcher. Check the screen shot.
check how to manage virtualbox commandline.
Hope this will be helpful for you!!!