Shami's Blog

Sysadmin, Because Even Developers Need Heroes

Nvidia Drivers On Headless Ubuntu Server 16.04

2017-06-22

I wanted to do some GPU processing using a virtual machine running inside unRAID . First I tried Windows and it worked, but I read that running the code inside Ubuntu 16.04 would be more efficient.

So I installed Ubuntu Server and tried to install the Nvidia drivers using apt-get and it installed a LOT of dependencies, so I stopped it and went for Ubuntu Desktop which turned out to be indeed more efficient than Windows.

Last night my son hit the power button on my unRAID box and shut down all virtual machines. I booted the VM but realized I can’t log in via VNC because I don’t have a monitor connected to my graphics card. I decided to go back to Ubuntu Server and see what I can do.

Finally, found the solution here . Just download the CUDA drivers from here and run the binary file; “cuda_8.0.61_375.26_linux-run” at the time of writing. It will install the needed driver for you.

Now I can run my code inside tmux like servers were intended to be run :)

About Me

Dev gone Ops gone DevOps. Any views expressed on this blog are mine alone and do not necessarily reflect the views of my employer.

twitter linkedin