Remote VNC login to Ubuntu 12.04

2012.04.23

Installed x11vnc:
apt-get install x11vnc

Create /etc/init/x11vnc.conf file:
start on login-session-start
script
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
end script

After restart, x11vnc shoud listen on vnc startard port – 5900.

Script is based on upstart event mechanism when Lightdm emits login-session-start event, x11vnc is started.

Reference: http://mlepicki.com/2011/10/remote-vnc-login-to-ubuntu-11-10/

5 comments

  1. Awesome article, I’ve tried everyone elses solutions to this issue and none worked, but this one worked perfectly as expected. Thanks!

    Rob, 2012.08.13
  2. Thanks, this worked straight away unlike other solutions to this I attempted.

    Chris, 2012.09.02
  3. Worked!!

    John, 2012.09.03
  4. Worked exactly as you wrote, brilliant.
    Thanks

    Gerry, 2012.09.09
  5. awesome, It worked.
    Many thanks

    Kumsi, 2012.09.15

Leave a comment