How to Connect to the remote Linux desktop with x11vnc

Disclaimer: Accessing the information on this page means you agree to the Sites Privacy Policy & Terms of Use Agreement.

Install x11vnc to configure it on your Ubuntu System, run below command to install it.

$ sudo apt-get install x11vnc

Now create & store password in passwd file under user’s profile’s .vnc folder :

$ x11vnc -storepasswd

Here it will ask you to enter your desired password two times.

now copy “passwd” file to the common path to set it to use commonly here I will copy it to /etc folder but you can put anywhere on safe place.

$ sudo cp ~/.vnc/passwd /etc/x11vnc.pass

Now you need to create x11vnc service file and enable then start it.
to create service you will need to create file with extension of .service and put it on /lib/systemd/system path.

$ touch /lib/systemd/system/x11vnc.service

Now edit file

$ nano /lib/systemd/system/x11vnc.service

and copy below lines in the file :

Description=Start x11vnc at startup.

ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared


after copying above your further step is to reload daemon

$ sudo systemctl daemon-reload

Once you reload it enable to service :

sudo systemctl enable x11vnc.service

Now, Time to start service

sudo systemctl start x11vnc.service

Great !! You finally have configure vnc on your Linux Operating system.

This article is contributed by RootLinuxBlog. If you like RootLinuxBlog and would like to contribute, you can submit an article using contact us from. See your article appearing on the RootLinuxBlog main page and help other Techies.
Please write comments if you found any error with the above article would really help us to serve you a better way. Thank you…

Connect to the remote Linux desktop with x11vnc

Leave a Reply

Your email address will not be published. Required fields are marked *


Enjoy this blog? Please spread the word :)