Last active
July 22, 2018 03:33
-
-
Save donaldsteele/9a1070622592f421283251a8e8619668 to your computer and use it in GitHub Desktop.
install latest virtualbox guest additions on a virtual ubuntu /debian guest
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
apt-get update | |
apt-get -y upgrade | |
apt install -y linux-headers-$(uname -r) build-essential dkms curl | |
tmpmount=/tmp/iso | |
vboxversion=$(curl -s -L https://download.virtualbox.org/virtualbox/LATEST-STABLE.TXT) | |
echo fetching $vboxversion | |
mkdir -p ${tmpmount} | |
vboxisourl="https://download.virtualbox.org/virtualbox/${vboxversion}/VBoxGuestAdditions_${vboxversion}.iso" | |
isoname="/tmp/VBoxGuestAdditions_${vboxversion}.iso" | |
curl ${vboxisourl} --output ${isoname} | |
mount -t iso9660 -o loop ${isoname} ${tmpmount} | |
cd ${tmpmount} | |
./VBoxLinuxAdditions.run | |
cd - | |
umount ${tmpmount} | |
echo install complete reboot to complete the install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment