Skip to content

Instantly share code, notes, and snippets.

@joenoon
Created July 3, 2010 03:46
Show Gist options
  • Save joenoon/462286 to your computer and use it in GitHub Desktop.
Save joenoon/462286 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install VirtualBox Guest Additions
# (change ARCH and VERSION as needed)
# run it as root or with sudo
ARCH="x86"
VERSION="3.2.6"
FILE="VBoxGuestAdditions_${VERSION}.iso"
URL="http://download.virtualbox.org/virtualbox/${VERSION}/${FILE}"
cd /tmp
wget "$URL"
mkdir vbox-mnt
mount -o loop $FILE /tmp/vbox-mnt
vbox-mnt/VBoxLinuxAdditions-${ARCH}.run
umount /tmp/vbox-mnt
rm -rf /tmp/vbox-mnt
rm -f $FILE
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment