Created
April 14, 2018 20:04
-
-
Save steveathon/862e3f4525a22f42985e3579c74e85b8 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# Make VMWare Tools Install for new VMs. Run once on boot. | |
# Only run this after you've mounted the VMWare tools on CD. | |
mkdir /vmwaretools | |
cd /vmwaretools | |
mount /dev/cdrom /mnt | |
tar xzf /mnt/VMwareTools* | |
umount /mnt | |
apt-get update | |
apt-get install gcc make linux-headers-$(uname -r) | |
cd /vmwaretools/vmware-tools-distrib | |
./vmware-install.pl | |
rm -rf /vmwaretools/vmware-tools-distrib | |
# Reboot to get the machine running tools. | |
shutdown -r now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment