Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Created January 3, 2013 11:18
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 simkimsia/4442745 to your computer and use it in GitHub Desktop.
Save simkimsia/4442745 to your computer and use it in GitHub Desktop.
convenient bash script to install guest-additions for virtualbox vm. Run script in ubuntu guest OS. Not host.
#!/bin/bash
###
#
# Copyright (c) 2013 KimSia
#
# Ubuntu 12.10 based web server VirtualBox Guest Additions installation script on Guest Ubuntu
# Run this by executing the following from a fresh install of Ubuntu 12.10 server:
#
# bash -c "$(curl -fsSL https://raw.github.com/gist/4442745)"
#
# Also, run this as root, unless you enjoy failing.
#
export DEBIAN_FRONTEND=noninteractive
########################################
## System Updates
########################################
apt-get update
apt-get install dkms
apt-get install virtualbox-guest-additions
apt-get install build-essential linux-headers-$(uname -r)
apt-get install virtualbox-ose-guest-x11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment