Skip to content

Instantly share code, notes, and snippets.

@hubgit
Created August 8, 2012 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hubgit/3293481 to your computer and use it in GitHub Desktop.
Save hubgit/3293481 to your computer and use it in GitHub Desktop.
Update VirtualBox Guest Additions
#!/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