Skip to content

Instantly share code, notes, and snippets.

@lamw
Last active July 24, 2018 07:26
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lamw/9725974 to your computer and use it in GitHub Desktop.
Save lamw/9725974 to your computer and use it in GitHub Desktop.
one-liner to automate installation of VMware Tools on NIX system (mount/cp/extract/install)
mkdir -p /mnt/vmw-tools && mount /dev/cdrom /mnt/vmw-tools && VMW_TOOLS=$(ls /mnt/vmw-tools/ | grep .gz) && cp -f /mnt/vmw-tools/${VMW_TOOLS} /tmp/ && umount /mnt/vmw-tools && rmdir /mnt/vmw-tools && tar -zxvf /tmp/${VMW_TOOLS} -C /tmp/ && cd /tmp/vmware-tools-distrib/ && ./vmware-install.pl -d default && rm -rf vmware-tools-distrib/ && rm -f /tmp/${VMW_TOOLS} && cd ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment