Skip to content

Instantly share code, notes, and snippets.

@scicco
Created May 8, 2015 13:09
Show Gist options
  • Save scicco/abcfeb6da5b2548f8012 to your computer and use it in GitHub Desktop.
Save scicco/abcfeb6da5b2548f8012 to your computer and use it in GitHub Desktop.
patch for vmware tool for ubuntu shared folder problem
#!/bin/sh -x
#
# found here: http://askubuntu.com/a/592127
#
cd /usr/lib/vmware-tools/modules/source
tar xf vmhgfs.tar
grep -q d_u.d_alias vmhgfs-only/inode.c && echo "already patched" && exit 0
sed -i -e s/d_alias/d_u.d_alias/ vmhgfs-only/inode.c
cp -p vmhgfs.tar vmhgfs.tar.orig
tar cf vmhgfs.tar vmhgfs-only
vmware-config-tools.pl -d -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment