Created
February 27, 2013 03:03
-
-
Save Thermionix/5044628 to your computer and use it in GitHub Desktop.
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 | |
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list | |
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install dkms | |
sudo apt-get install virtualbox-4.2 --no-install-recommends | |
vbox_version=`wget -q -O - http://download.virtualbox.org/virtualbox/LATEST.TXT` | |
wget http://download.virtualbox.org/virtualbox/$vbox_version/Oracle_VM_VirtualBox_Extension_Pack-$vbox_version.vbox-extpack | |
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-$vbox_version.vbox-extpack | |
sudo adduser --ingroup vboxusers vbox | |
wget `wget -q -O - http://phpvirtualbox.googlecode.com/files/LATEST.txt` -O phpvirtualbox-latest.zip | |
sudo unzip phpvirtualbox-latest.zip -d /var/www | |
cd /var/www | |
sudo mv phpvirtualbox-4.2-4 phpvirtualbox | |
sudo chown -R www-data:www-data phpvirtualbox/ | |
cd /var/www/phpvirtualbox | |
sudo mv config.php-example config.php | |
# change $username and $password match vbox user | |
# disable phpVirtualbox's authentication var $noAuth = true; | |
sudo nano config.php | |
echo "VBOXWEB_USER=vbox" | sudo tee /etc/default/virtualbox | |
sudo /etc/init.d/vboxweb-service start | |
sudo update-rc.d vboxweb-service defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment