Last active
October 30, 2018 12:51
-
-
Save nicholasadamou/c003a7a56a0bec39a26174e8f42ab3fc to your computer and use it in GitHub Desktop.
Install Virtual Box Guest Additions for Kali Linux
This file contains hidden or 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 | |
| # 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