Skip to content

Instantly share code, notes, and snippets.

@net-ai
net-ai / gist:468bb5a10afebada114e1413325a618e
Last active July 24, 2018 07:38 — forked from lamw/gist:9725974
one-liner to automate installation of VMware Tools on NIX system (mount/cp/extract/install)
yum install net-tools -y && 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 ~