Skip to content

Instantly share code, notes, and snippets.

@plainspooky
Created April 5, 2016 17:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#!/bin/bash
GUESTCD='https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_5.0.17-106140.iso'
MYPWD=$( pwd )
yum install --assumeyes gcc kernel-devel-$( uname -r ) wget
cd /tmp
wget -c ${GUESTCD}
mount -o ro,loop $( echo ${GUESTCD} | sed 's/http.*\///g' ) /mnt
cd /mnt
./VBoxLinuxAdditions.run
cd ${MYPWD}
umount /mnt
rm -f $( echo ${GUESTCD} | sed 's/http.*\///g' )
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment