Advertisement
Guest User

restartvmtools

a guest
Dec 12th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. cat <<EOF > /usr/local/sbin/restart-vm-tools
  2. #!/bin/bash
  3. systemctl stop run-vmblock\\\\x2dfuse.mount
  4. killall -q -w vmtoolsd
  5. systemctl start run-vmblock\\\\x2dfuse.mount
  6. systemctl enable run-vmblock\\\\x2dfuse.mount
  7. vmware-user-suid-wrapper vmtoolsd -n vmusr 2>/dev/null
  8. vmtoolsd -b /var/run/vmroot 2>/dev/null
  9. EOF
  10. chmod +x /usr/local/sbin/restart-vm-tools
  11. ln -sf /usr/local/sbin/restart-vm-tools /root/Desktop/restart-vm-tools
  12. gsettings set org.gnome.nautilus.preferences executable-text-activation 'ask'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement