Skip to content

Instantly share code, notes, and snippets.

@plainspooky
Created April 5, 2016 17:33
Show Gist options
  • Save plainspooky/55a23237b9f7445b1e6e267174ef0449 to your computer and use it in GitHub Desktop.
Save plainspooky/55a23237b9f7445b1e6e267174ef0449 to your computer and use it in GitHub Desktop.
#!/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