How to Install VirtualBox in Debian and Ubuntu

Terminal commands for installing VirtualBox in Debian or Ubuntu based systems.

Use with my Youtube Video: http://youtu.be/qumq9NiGGFk

For Debian / Ubuntu
sudo su
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib non-free #Virtualbox" > /etc/apt/sources.list.d/virtualbox.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add -
apt-get update
apt-get install virtualbox-5.0
if [ "`grep vboxusers /etc/group|grep $USER`" == "" ] ; then sudo usermod -G vboxusers -a $USER ; fi
Debian based derivatives (e.g. SolydXK)
sudo su
echo "deb http://download.virtualbox.org/virtualbox/debian wheezy contrib non-free #Virtualbox" > /etc/apt/sources.list.d/virtualbox.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add -
apt-get update
apt-get install virtualbox-5.0
if [ "`grep vboxusers /etc/group|grep $USER`" == "" ] ; then sudo usermod -G vboxusers -a $USER ; fi
Extension Pack

Download the VirtualBox Extension Pack from :https://www.virtualbox.org/wiki/Downloads
Open the Extension Pack via your file manager in order to install it with VirtualBox.

Back