Skip to content

Instantly share code, notes, and snippets.

@lamw

lamw/gist:9725974

Last active Jul 24, 2018
Embed
What would you like to do?
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