Skip to content

Instantly share code, notes, and snippets.

@i-e-b
Created May 24, 2012 10:40
Show Gist options
  • Select an option

  • Save i-e-b/2780778 to your computer and use it in GitHub Desktop.

Select an option

Save i-e-b/2780778 to your computer and use it in GitHub Desktop.
Script to install virtual box
#!/bin/bash
sudo chmod 666 /etc/apt/sources.list
csrc=$(grep -c "$deb http://download.virtualbox.org" /etc/apt/sources.list)
if [ $csrc -eq 0 ]
then
echo "deb http://download.virtualbox.org/virtualbox/debian oneiric contrib" >> /etc/apt/sources.list
fi
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-4.1
sudo apt-get install dkms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment