Skip to content

Instantly share code, notes, and snippets.

@acook
Last active December 23, 2015 04:09
Show Gist options
  • Save acook/6578313 to your computer and use it in GitHub Desktop.
Save acook/6578313 to your computer and use it in GitHub Desktop.
Install VirtualBox Additions on Debian / Ubuntu / Crunchbang / ElementaryOS / etc
# If DKMS isn't installed then VBox will erroneously complain about missing headers.
sudo apt-get install build-essential dkms libglib2.0-0 linux-headers-$(uname -r)
# Only needed if the system doesn't automount the image:
#sudo mount /dev/cdrom /media/cdrom
# Some systems automount on `/media`, others on `/media/cdrom*` which is symlinked to `/media/cdrom`.
# Don't `cd` into these directories until you're sure the image is mounted.
cd /media ; cd cdrom
# Need root privs in order to place and activate kernel modules.
sudo sh VBoxLinuxAdditions.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment