Skip to content

Instantly share code, notes, and snippets.

@mcnilz
Last active March 26, 2020 11:29
Show Gist options
  • Save mcnilz/f026e9afb3270aac893144f6dee36285 to your computer and use it in GitHub Desktop.
Save mcnilz/f026e9afb3270aac893144f6dee36285 to your computer and use it in GitHub Desktop.
Virtualbox Guest Additions Install
#!/bin/bash
if [ -z "$VERSION" ]; then
if [ -z "$1" ]; then
echo "Missing Version"
exit 1
fi
VERSION="$1"
fi
sudo apt update && sudo apt -y upgrade && sudo apt -y autoremove
sudo apt install -y build-essential gcc make perl dkms
wget https://download.virtualbox.org/virtualbox/$VERSION/VBoxGuestAdditions_$VERSION.iso
sudo mkdir /media/iso
sudo mount VBoxGuestAdditions_$VERSION.iso /media/iso -o loop
sudo /media/iso/VBoxLinuxAdditions.run --nox11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment