Skip to content

Instantly share code, notes, and snippets.

@johncip
Last active May 26, 2016 00:50
Show Gist options
  • Save johncip/9dfd7f0e78f2e41768da39473cab1291 to your computer and use it in GitHub Desktop.
Save johncip/9dfd7f0e78f2e41768da39473cab1291 to your computer and use it in GitHub Desktop.
Install VirtualBox Guest Additions on Ubuntu
# Install VirtualBox guest additions on Ubuntu
# https://www.vagrantup.com/docs/virtualbox/boxes.html
VB_VERSION='5.0.20'
wget "http://download.virtualbox.org/virtualbox/$VB_VERSION/VBoxGuestAdditions_$VB_VERSION.iso"
sudo mkdir /media/VBoxGuestAdditions
sudo mount -o loop,ro "VBoxGuestAdditions_$VB_VERSION.iso" /media/VBoxGuestAdditions
sudo sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run
rm "VBoxGuestAdditions_$VB_VERSION.iso"
sudo umount /media/VBoxGuestAdditions
sudo rmdir /media/VBoxGuestAdditions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment