Skip to content

Instantly share code, notes, and snippets.

@steveathon
Created April 14, 2018 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveathon/862e3f4525a22f42985e3579c74e85b8 to your computer and use it in GitHub Desktop.
Save steveathon/862e3f4525a22f42985e3579c74e85b8 to your computer and use it in GitHub Desktop.
#!/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