1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| cat ~/Downloads/vmware.sh #!/bin/bash vm_version=$(vmware-installer -l |tee |sed -n 3p |awk '{print $2}' |awk -F'.' '{print $1"."$2"."$3}') VMWARE_VERSION=workstation-${vm_version} TMP_FOLDER=/tmp/patch-vmware rm -fdr $TMP_FOLDER mkdir -p $TMP_FOLDER cd $TMP_FOLDER git clone https://github.com/mkubecek/vmware-host-modules.git cd $TMP_FOLDER/vmware-host-modules git checkout $VMWARE_VERSION git fetch make sudo make install sudo rm /usr/lib/vmware/lib/libz.so.1/libz.so.1 sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/vmware/lib/libz.so.1/libz.so.1 sudo /etc/init.d/vmware restart
|