Last active
March 26, 2020 11:29
-
-
Save mcnilz/f026e9afb3270aac893144f6dee36285 to your computer and use it in GitHub Desktop.
Virtualbox Guest Additions Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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