Linux For Cynics One user's experiences with Linux

8May/133

Restart VNC Server via SSH

This is handy if the VNC server isn't working but you can connect via SSH. These instructions are for Ubuntu, which comes with vino-server for VNC.

To kill the currently running vino-server (if it is running), use pkill:

$ pkill vino

Then to start it again,

$ export DISPLAY=:0.0
$ /usr/lib/vino/vino-server &

That works in Ubuntu 12.10. If using something else, replace /user/lib/vino/vino-server with the location of your VNC server.

Comments (3) Trackbacks (0)
  1. Thank you, was exactly what I was searching.

    Matteo.

  2. Use “nohup /usr/lib/vino/vino-server &” instead of “/usr/lib/vino/vino-server &” avoid the block of the vnc server after terminal is close.

  3. Matteo you might also be abel to `disown` the `vino-server` process that you backgrounded and get the same result as using `nohup`. I generally consider `disown` to be cleaner than `nohup`.


Leave a comment


No trackbacks yet.