You are here: Home » Linux » Remote VNC login to Ubuntu 12.04

Remote VNC login to Ubuntu 12.04

Here is a different remote vnc solution to your newly installed Ubuntu 12.04

The solution is going to be with the package x11vnc. And after that we are going to write startup script to start x11vnc at startup.

Let’s start ;


So we need to install that package first :

sudo apt-get install x11vnc

And then create startup file at location /etc/init/x11vnc.conf

#sudo vi /etc/init/x11vnc.conf (command to create the file with vi editor)

write the scirpt below;

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

To save file write down :wq and press enter.

That’s all. Now restart your computer. After restart, x11vnc shoud listen on vnc startard port – 5900.

you can use vncviewer with :0 option.

Here is the example usage :

I hope this article was helpful for you and hope to see you again in another article, thank you…


Ref :

Filed under


| Tags:

  1. Hi

    I can’t seem to get this working. I reboot my box, then try and log in with TichtVNC viewer on my PC. I ge the login dialog pop up, which I type the password intoi, but then no remote window appears and no error message.

    is :0 the x11vnc port number on the box?

    Many thnaks


  2. Hakan Çakıroğlu

    Interesting but I had no problem with my installation. Any news about your problem? Could you able to fix it?

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.