Created
May 24, 2012 10:40
-
-
Save i-e-b/2780778 to your computer and use it in GitHub Desktop.
Script to install virtual box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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