Created
August 8, 2012 08:39
-
-
Save hubgit/3293481 to your computer and use it in GitHub Desktop.
Update VirtualBox Guest Additions
This file contains 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 apt-get install -y --no-install-recommends build-essential dkms linux-headers-`uname -r` | |
# sudo apt-get install -y --no-install-recommends linux-headers-generic | |
# Insert the Guest Additions ISO | |
# sudo mount /dev/cdrom /media/cdrom | |
# VERSION="4.1.18" | |
VERSION=`wget -q -O - 'http://download.virtualbox.org/virtualbox/LATEST.TXT'` | |
wget -c "http://download.virtualbox.org/virtualbox/${VERSION}/VBoxGuestAdditions_${VERSION}.iso" -O /tmp/VBoxGuestAdditions.iso | |
sudo mount /tmp/VBoxGuestAdditions.iso -o loop /media/cdrom | |
sudo sh /media/cdrom/VBoxLinuxAdditions.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment