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/

10 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
  6. Thank you very much!

    Chiefdome, 2012.09.25
  7. No luck here…

    Can’t figure out what I’m doing wrong…

    SpindizZzy, 2012.10.04
  8. [...] http://www.tavshed.com/?p=118 [...]

  9. [...] tavshed | Remote VNC login to Ubuntu 12.04 [...]

  10. Worked perfect 1st time, great, solved my PocketCloud connection option from my Android, now to fix my xRDP problem connecting from Windows 7.

    Aaron, 2013.10.16

Leave a comment