Skip to content

Instantly share code, notes, and snippets.

@gojimmypi
Last active May 24, 2017 00:09
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 gojimmypi/357e8ffc0332abc839f1ac4c6000f86e to your computer and use it in GitHub Desktop.
Save gojimmypi/357e8ffc0332abc839f1ac4c6000f86e to your computer and use it in GitHub Desktop.
install vmware tools for linux
#!/bin/bash
# we are assuming VMware tools are ready to be installed. Click Tools - Reinstall VMware tools if needed
# if you copy/paste this instead of using in a shell, be sure to use your login in place of $USER, below
cd ~/
# Ensure there's a ~/Downloads directory
if [ ! -d  "Downloads" ]; then 
mkdir ~/Downloads
fi
cd ~/Downloads/
# Ensure there's a ~/Downloads/WMWare directory
if [ ! -d  "VMWare" ]; then 
mkdir VMWare
fi
cd VMWare
cp '/media/$USER/VMware Tools/'* ./
tar -xvf VMwareTools*.tar.gz
cd vmware-tools-distrib
cat INSTALL
echo "Press a key to sudo ./vmware-install.pl"
read
sudo ./vmware-install.pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment