Skip to content

Instantly share code, notes, and snippets.

@nicholasadamou
Last active October 30, 2018 12:51
Show Gist options
  • Select an option

  • Save nicholasadamou/c003a7a56a0bec39a26174e8f42ab3fc to your computer and use it in GitHub Desktop.

Select an option

Save nicholasadamou/c003a7a56a0bec39a26174e8f42ab3fc to your computer and use it in GitHub Desktop.
Install Virtual Box Guest Additions for Kali Linux
#!/bin/bash
# To install use the following snippet:
# curl -s <url-to-raw-gist> | bash
TARGET="/tmp/"
wget -q -O - archive.kali.org/archive-key.asc | apt-key add
apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y
if [ -f /media/cdrom/VBoxLinuxAdditions.run ]; then
cp /media/cdrom/VBoxLinuxAdditions.run "$TARGET"
chmod 755 "$TARGET"/VBoxLinuxAdditions.run
cd "$TARGET"
./VBoxLinuxAdditions.run
else
echo "Virtualbox Guest Additions CD-ROM not mounted."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment