Skip to content

Instantly share code, notes, and snippets.

@groob
Created November 23, 2013 17:57
Show Gist options
  • Save groob/7617835 to your computer and use it in GitHub Desktop.
Save groob/7617835 to your computer and use it in GitHub Desktop.
#!/bin/sh
rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub
rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
echo -e "[vmware-tools]\nname=VMware Tools\nbaseurl=http://packages.vmware.com\
/tools/esx/5.1latest/rhel6/x86_64\nenabled=1\ngpgcheck=1" > /etc/yum.repos.d\
/vmware-tools.repo
yum makecache
yum clean all
yum -y install vmware-tools-hgfs vmware-tools-esx-nox
echo "modprobe vmhgfs" > /etc/sysconfig/modules/vmhgfs.modules
chmod +x /etc/sysconfig/modules/vmhgfs.modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment