Advertisement
Guest User

Untitled

a guest
Sep 20th, 2013
893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. Ok, here's the guide to get vmware workstation working with nvidia acceleration on Ubuntu based systems...
  2. Same might apply just fine for other distros...
  3.  
  4.  
  5. 1. If you don't have vmware installed install it now, it might also be a good idea to install VMware as root with primusrun,
  6. this is how I installed it, but it might not be needed...
  7.  
  8. sudo primusrun ./VMware-Workstation-Full-10.0.0-1295980.x86_64.bundle
  9. gksudo primusrun ./VMware-Workstation-Full-10.0.0-1295980.x86_64.bundle
  10. kdesudo primusrun ./VMware-Workstation-Full-10.0.0-1295980.x86_64.bundle
  11.  
  12. 2. We're going to back up libGL.so.1 making a copy
  13. sudo cp /usr/lib/x86_64-linux-gnu/primus/libGL.so.1 libGL.so.1.bak
  14.  
  15. Now we're going to change the permissions.
  16. sudo chmod a+s /usr/lib/x86_64-linux-gnu/primus/libGL.so.1
  17.  
  18. 3. We need to create two symlinks.
  19. The example below shows nvidia-current, change it to reflect your /path if you're not using current.
  20. sudo ln -s /usr/lib/nvidia-current/tls/libnvidia-tls.so.304.43 /usr/lib/x86_64-linux-gnu/
  21. sudo ln -s /usr/lib/nvidia-current/libnvidia-glcore.so.304.43 /usr/lib/x86_64-linux-gnu/
  22.  
  23. Now we run ldconfig to update the system for the changes we've just made.
  24. sudo ldconfig
  25.  
  26. 4. Now we need to stop vmware from running.
  27. sudo /etc/init.d/vmware stop
  28.  
  29. 5. We're going to back up vmware-vm making a copy
  30. sudo cp /usr/lib/vmware/bin/vmware-vmx vmware-vmx.bak
  31.  
  32. Now we're going to move vmware-vmx to another name.
  33. sudo mv /usr/lib/vmware/bin/vmware-vmx /usr/lib/vmware/bin/vmware-vmx.real
  34.  
  35. 6. Now we need to open up an editor, in this example we'll use gedit, you can use what you like...
  36. sudo gedit /usr/lib/vmware/bin/vmware-vmx
  37.  
  38. (paste in the following below into vmware-vmx then save and close.)
  39. #!/bin/bash
  40. LD_PRELOAD=/usr/lib/x86_64-linux-gnu/primus/libGL.so.1 exec primusrun /usr/lib/vmware/bin/vmware-vmx.real "$@"
  41.  
  42. 7. Now we're going to change the permissions on vmware-vmx.
  43. sudo chmod u+s,a+x /usr/lib/vmware/bin/vmware-vmx
  44.  
  45. Now we need to start vmware
  46. sudo /etc/init.d/vmware start
  47.  
  48. 8. VMware needs to be run as root, so play with what you like.
  49.  
  50. AS ROOT PICK ONE: (I've found them all to work, so it's really a matter of preference.)
  51. (sudo vmware)
  52. (gksudo vmware)
  53. (kdesudo vmware)
  54.  
  55. 9. Whichever desktop you are running there should be an entry in the menu you can use, or edit the command in the
  56. menu to the same above.
  57.  
  58. 10. Enjoy 3d acceleration.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement