Welcome to the tutorial on “How to Setup X11VNC Server on Ubuntu & LinuxMint”. In today’s increasingly remote and interconnected world, being able to access your computer remotely is more important than ever. Whether you are working from home, managing servers, or simply need to access files on a different machine, VNC (Virtual Network Computing) provides a powerful solution. X11VNC, in particular, is a VNC server that allows you to remotely control your Ubuntu or LinuxMint desktop environment.
This tutorial is designed to guide you through the process of setting up an X11VNC server on your Ubuntu or LinuxMint system. We will cover the prerequisites, step-by-step installation process, and some basic configurations to get your VNC server up and running. Let’s dive into the world of remote desktop access and enhance your computing flexibility!
Prerequisites:
- Ubuntu or Linux Mint operating system.
- Sudo privileges or access to the root account.
Step 1: Installing X11VNC
The first step is to install X11VNC. Open a terminal window (Ctrl + Alt + T) and type the following command to update your system’s repository index:
sudo apt-get update
Once your system is updated, you can install X11VNC by typing:
sudo apt-get install x11vnc
You will be asked to enter your password, and the installation will begin. Wait for the installation process to complete.
Step 2: Create a Password for VNC Server
After installation, you should set up a password for the X11VNC server. This will protect your server from unauthorized access. Use the following command to create a password:
x11vnc -storepasswd
You will be prompted to enter a password and confirm it.
Output:Enter VNC password: ********* Verify password: ********* Write password to /home/rahul/.vnc/passwd? [y]/n y Password written to: /home/rahul/.vnc/passwd
Once you’ve done this, your password will be stored in a file named `~./vnc/passwd` in your home directory.
Step 3: Start the X11VNC Server
You can now start the X11VNC server using the following command:
x11vnc -usepw -display :0
The -usepw option tells the server to use the password you’ve set, and -display :0 tells the server to share your current X11 session.
Your X11VNC server is now running and ready for connections. You can connect to it using any VNC client.
Step 4: Making X11VNC Start at Boot
If you want your X11VNC server to start automatically when your computer boots up, you need to create a systemd service for it.
First, create a new service file by typing:
sudo nano /etc/systemd/system/x11vnc.service
In the nano editor, type the following:
1 2 3 4 5 6 7 8 9 10 | [Unit] Description=Start X11VNC at startup. After=multi-user.target [Service] Type=simple ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/YOURUSERNAME/.vnc/passwd -rfbport 5900 -shared [Install] WantedBy=multi-user.target |
Replace “YOURUSERNAME” with your actual username. Once you’ve done this, press `Ctrl + X` to exit the editor, then press `Y` to save your changes.
Next, reload the systemd manager configuration with this command:
sudo systemctl daemon-reload
Now, enable the service to start on boot:
sudo systemctl enable x11vnc.service
Finally, you can start the service immediately without needing to reboot:
sudo systemctl start x11vnc.service
Your X11VNC server will now start automatically every time your computer boots up.
Troubleshooting Tips
Let’s have a look at some common troubleshooting and usage tips:
- Unable to Connect to the Server: Ensure that the VNC client is configured to connect to the right IP address and port (the default is 5900). Also, make sure there is no firewall blocking the connection.
- Slow Connection or Lag: You can reduce the quality of the connection to speed it up. This can be done by adding the -ncache and -speeds options to the X11VNC command. For example, to set the color depth to 8 bits and the speed to modem, use the following command:
x11vnc -usepw -display :0 -ncache 10 -speeds modem
- Errors about Unrecognized Options: The version of X11VNC in the repositories might be outdated. In that case, consider installing a more recent version of X11VNC from its official website.
Useful Tips and Extras
- Secure Your Connection: To protect your VNC sessions, you should use an encrypted connection. X11VNC supports SSL/TLS encryption. You can enable it by adding the -ssl option to the command:
x11vnc -ssl -usepw -display :0
You will also need to configure your VNC client to use SSL/TLS.
- View-Only Mode: If you want to allow someone to view your screen but not interact with it, you can start X11VNC in view-only mode using the -viewonly option:
x11vnc -viewonly -usepw -display :0
- Use X11VNC with LightDM: If you’re using LightDM as your display manager and want to share the login screen, you can do so by running X11VNC as root and specifying the auth file of LightDM:
sudo x11vnc -auth /var/lib/lightdm/.Xauthority -display :0
Conclusion
That’s it! You now have a fully functional X11VNC server set up on your Ubuntu or Linux Mint machine. This will allow you to remotely access and control your existing X11 session from anywhere. Remember, it’s very important to set a strong password to protect your server from unauthorized access. Always make sure your system is up-to-date and monitor your system’s logs regularly for any signs of suspicious activity.
In conclusion, X11VNC is a powerful tool that can be used to share your existing X11 session over a network, making it a perfect choice for remote tech support or any other activity requiring remote access. As always, ensure you have strong security practices in place when dealing with networked services to protect your system and data.
59 Comments
Something broke on a Mint 21.2 box out in the garage… No idea what awk is doing… any ideas?
~$ sudo systemctl status x11vnc.service
β x11vnc.service – Start X11VNC at startup.
Loaded: loaded (/etc/systemd/system/x11vnc.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2024-01-11 17:30:35 CST; 6min ago
Main PID: 31928 (x11vnc)
Tasks: 8 (limit: 18811)
Memory: 6.2M
CPU: 8.641s
CGroup: /system.slice/x11vnc.service
ββ31928 /usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/skip/.vnc/passwd -rfbport 5900 -shared
ββ39440 /usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/skip/.vnc/passwd -rfbport 5900 -shared
ββ39441 sh -c “/usr/bin/x11vnc -findauth -env _D_XDM=1”
ββ39442 /usr/bin/x11vnc -findauth -env _D_XDM=1
ββ39534 sh -c “/bin/sh /tmp/fd.WxPKpg -n”
ββ39535 /bin/sh /tmp/fd.WxPKpg -n
ββ39579 /bin/sh /tmp/fd.WxPKpg -n
ββ39581 awk -F, “{print \$2}”
Jan 11 17:36:32 skip-MSC5700 x11vnc[39499]: awk: fatal error: internal error
Jan 11 17:36:32 skip-MSC5700 x11vnc[39496]: Aborted (core dumped)
Jan 11 17:36:33 skip-MSC5700 x11vnc[39515]: xauth: unable to generate an authority file name
Jan 11 17:36:33 skip-MSC5700 x11vnc[39516]: awk: fatal error: internal error
Jan 11 17:36:33 skip-MSC5700 x11vnc[39514]: Aborted (core dumped)
Jan 11 17:36:33 skip-MSC5700 x11vnc[39546]: awk: fatal error: internal error
Jan 11 17:36:34 skip-MSC5700 x11vnc[39544]: Aborted (core dumped)
Jan 11 17:36:34 skip-MSC5700 x11vnc[39570]: awk: fatal error: internal error
Jan 11 17:36:35 skip-MSC5700 x11vnc[39568]: Aborted (core dumped)
Jan 11 17:36:35 skip-MSC5700 x11vnc[39581]: awk: fatal error: internal error
Hello, how do I make it so that when connecting to Linux Mint, the user can authorize remote access?
If so, it connects directly, without user permission.
Hi, All,
On Ubuntu 22.04, got following looping message and can’t connect, anyone has any idea what’s going on? Thanks!
—————————————
xil@u638f55a9c79c5b:~$ x11vnc -auth /run/user/1000/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /home/ANT.AMAZON.COM/xil/.vnc/passwd -rfbport 5900 -shared
— x11vnc loop: 1 —
— x11vnc loop: waiting for: 11884
19/04/2023 16:09:11 passing arg to libvncserver: -rfbauth
19/04/2023 16:09:11 passing arg to libvncserver: /home/ANT.AMAZON.COM/xil/.vnc/passwd
19/04/2023 16:09:11 passing arg to libvncserver: -rfbport
19/04/2023 16:09:11 passing arg to libvncserver: 5900
19/04/2023 16:09:11 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 11884
19/04/2023 16:09:11 Wayland display server detected.
19/04/2023 16:09:11 Wayland sessions are as of now only supported via -rawfb and the bundled deskshot utility. Exiting.
— x11vnc loop: sleeping 2000 ms —
— x11vnc loop: 2 —
— x11vnc loop: waiting for: 11887
19/04/2023 16:09:14 passing arg to libvncserver: -rfbauth
19/04/2023 16:09:14 passing arg to libvncserver: /home/ANT.AMAZON.COM/xil/.vnc/passwd
19/04/2023 16:09:14 passing arg to libvncserver: -rfbport
19/04/2023 16:09:14 passing arg to libvncserver: 5900
19/04/2023 16:09:14 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 11887
19/04/2023 16:09:14 Wayland display server detected.
19/04/2023 16:09:14 Wayland sessions are as of now only supported via -rawfb and the bundled deskshot utility. Exiting.
— x11vnc loop: sleeping 2000 ms —
— x11vnc loop: 3 —
— x11vnc loop: waiting for: 11890
19/04/2023 16:09:16 passing arg to libvncserver: -rfbauth
19/04/2023 16:09:16 passing arg to libvncserver: /home/ANT.AMAZON.COM/xil/.vnc/passwd
19/04/2023 16:09:16 passing arg to libvncserver: -rfbport
19/04/2023 16:09:16 passing arg to libvncserver: 5900
19/04/2023 16:09:16 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 11890
19/04/2023 16:09:16 Wayland display server detected.
19/04/2023 16:09:16 Wayland sessions are as of now only supported via -rawfb and the bundled deskshot utility. Exiting.
— x11vnc loop: sleeping 2000 ms —
— x11vnc loop: 4 —
— x11vnc loop: waiting for: 11891
19/04/2023 16:09:19 passing arg to libvncserver: -rfbauth
19/04/2023 16:09:19 passing arg to libvncserver: /home/ANT.AMAZON.COM/xil/.vnc/passwd
19/04/2023 16:09:19 passing arg to libvncserver: -rfbport
19/04/2023 16:09:19 passing arg to libvncserver: 5900
19/04/2023 16:09:19 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 11891
19/04/2023 16:09:19 Wayland display server detected.
19/04/2023 16:09:19 Wayland sessions are as of now only supported via -rawfb and the bundled deskshot utility. Exiting.
— x11vnc loop: sleeping 2000 ms —
……..
——————————————————————
looping forever
—————————————————–
Thanks a lot Rahul!
After a lot of grinding I was able able to setup VNC on LXQt Lubuntu, but alas it would create a new session instead of just remote control the existing one.
This is a such a simple solution!
I downloaded MX-19.3_386.iso, did no system updates and setup x11vnc with their installer was a real pain in the arse (can’t remote login) but this manual get it to work. THANK YOU!!!
I have set it up and it is working fine. Thank you so much for your guidance.
Can you please help to enable file transfer from client to server and guide how to do file server.
Just install openssh and open port 22 on your server and network firewall. SSH and FTP will work.
I installed a server following these instructions. But what to do on the client-side to connect? What’s the connect address if the server is hidden behind NAT?
When I try x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/{USER}/.vnc/passwd -rfbport 5900 -shared I get the following output spammed over and over:
— x11vnc loop: 1 —
— x11vnc loop: waiting for: 35530
09/07/2020 12:35:54 passing arg to libvncserver: -rfbauth
09/07/2020 12:35:54 passing arg to libvncserver: /home/{USER}/.vnc/passwd
09/07/2020 12:35:54 passing arg to libvncserver: -rfbport
09/07/2020 12:35:54 passing arg to libvncserver: 5900
09/07/2020 12:35:54 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 35530
09/07/2020 12:35:54 -auth guess: failed for display=’localhost:10.0′
— x11vnc loop: sleeping 2000 ms —
Has anyone ran into this and if so found a solution for it?
Have you installed net-tools as well?
try to run without “sudo”
I am trying to get this to autorun on startup. I have done so once by another way, but I cannot remember how. Now I am trying to set this up on a different computer and cannot remember what I did. I am using Linus Mint. I am moving over to the newest 20 version.
Everything works fine up to the point of setting up the autostart. Any help would be appreciated. I can’t seem to figure it out.
John
This article suggests placing an x11vnc.conf file in /etc/init. That didn’t do anything for me. But I have success with this:
1) Start x11vnc manually. I just launched it from the main menu – it’s under internet after a “normal” install
2) Use the system tray gui to tweak settings, and then under Advanced – Actions – Settings use the save-settings command to create a config file “~/.x11vncrc”. Note that this does NOT save the password. It will still prompt you for it locally. Which is quite annoying if you are remote and need to reboot your home/office system.
3) Use the command line “x11vnc -storepasswd” to generate the encrypted authentication file “~/.vnc/passwd”. Then edit the “~/.x11vncrc” file and uncomment the -rfbauth line and use the full path “/home//.vnc/passwd” as the parameter.
4) Go to the main Mint menu – settings, open Startup Applications, and add the x11vnc app there. In the startup command field, use “x11vnc -rc /home//.x11vnc”. I also have had better success adding a 10-15 second delay in that same startup dialog box.
If it is still running, go to the system tray, right-click the x11vnc icon, and choose Stop (or use any other means you choose to kill the process. Then while still in the Settings – Startup Applications screen, highlight the app and click the gear symbol at the bottom to test the launch. It should start in a few seconds. Then test connecting from a viewer to verify all is good.
All this is assuming Cinnamon desktop, but it seems like I did essentially the exact same thing with XFCE. Not sure about other desktops. Works great when connecting from another Linux pc running Remmina. Works well enough from Windows with TightVNC viewer, but I have to play with scaling a bit because it tries to send all my active desktops/workspaces and multiple monitors vertically stacked and I really want to just see one workspace at a time like I would if I was actually looking at the screen locally. To tell the truth, I have switched over to AnyDesk for most of my remote access needs, but still have vnc running as a backup.
Good luck
Hi,
Just installed Ubuntu 20.04.LTS and X11VNC wasn’t working using:
$ sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/rahul/.vnc/passwd -rfbport 5900 -shared
the console was “spitting out” -auth guess: failed for display:’:0′
I had to do extra steps:
Disabled “Wayland” display manager by editing /etc/gdm3/custom.conf and setting WaylandEnable=false
Execute:
x11vnc -auth /run/user/1000/gdm/Xauthority -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5900 -shared
Also, the “autostart on Boot” doesn’t work.
I’m using a 18.04 LTS fresh install upgraded to 20.04 LTS. So maybe this /etc/init/… is “deprecated”.
Still trying to figure this one out.
hi , i have multiples screens when im scrolling down (while im connected), how to fix that ?
–nocache
Hello, I am trying to turn an old desktop into a server, I installed Ubuntu and now I want to have a vnc installed. The installation worked fine but I am stuck at the password, every time I try to create the password file it says it did so and it appears in the files but when I try to connect from a different device it always says that the password that I filled in is wrong. I tried 4 different passwords (removing things like @ . _) but it still gives the error message on the other device
When starting the server with this command:
sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/rahul/.vnc/passwd -rfbport 5900 -shared
change the dir to your home dir, i.e. change rahul to your user
To the author of the post – you should just change /home/rahul/.vnc/passwd to $HOME/.vnc/passwd
Works still great…
Set it up in 5 minutes. I would change it a little and use Caisy’s systemctl option.
I should add that I was working on (as mentioned updating all systems) and had installed Linux Mint 19.3 where VNC became the issue. It was working on my earlier systems.
Anyhow, as mentioned working perfectly on Mint 19.3
Regards
Bob
Thank you to Rahul, Caisy and Mattg,
Like others on this forum, there are so many sites with solutions that just don’t work with Mint 19.x (and a lot of time wasted).
Due to this Corona lockdown, I have quickly had to rebuild my lab with all systems updated so that I can progress with some work, so the VNC is a very small part, but an important part for speed, if it was the only issue I was working on I would spend a few hours looking at the issue, but cannot, so vary much appreciate Rahul’s article and the other knowledgeable posters, particularly Caisy and Mattg as well as all the other comments
It didn’t work for me at first. The error I got was
/tmp/fd.qUioJx: 1: /tmp/fd.qUioJx: netstat: not found
11/03/2020 11:29:45 -auth guess: failed for display=’:0′
The solution was to install netstat:
sudo apt install net-tools
Thanks Josh. Your contribution will help other users.
I double Marco’s opinion.
this is the best tutorial among at least 15 I went through.
and by far as well
I think it would be nice if you dedicated a liitle space to explaining your choice of options, what they all mean and do and why you choose them. It is by no means clear fro example why you elect to us -noxdamage and -repeat.
I was able to find a solution to why I was not getting x11vnc server to work. You may need to have the
All users may connect to this network checked in the general tab of the Network Connections manager.
This enabled the IP to be loaded before the x11vnc service.
Thanks for your help. I am able to use vncviewer with your setup. It still will not load at the login prompt.
Any ideas on what I need to do to get the boot up functionality working? I am using LM 19.1.
For AUTOSTART :
1. make file x11vnc.service in /etc/systemd/system :
sudo mcedit /etc/systemd/system/x11vnc.service (mcedit – my prefered editor , i’m sorry for vi :)))
with text (change RAHUL for you name):
[Unit]
Description=x11vnc remote desktop server
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/RAHUL/.vnc/passwd -rfbport 5900 -shared
Restart=on-failure
[Install]
WantedBy=multi-user.target
2. sudo systemctl daemon-reload
sudo systemctl start x11vnc
sudo systemctl status x11vnc
3. if it’s worked
sudo systemctl enable x11vnc.service
et voila
This was very helpful and work great. Thanks!
Awesome, this worked perfectly for me. Thank you very much.
Hi
I am running into something strange that I could not work out:
I have followed the installation in Lubuntu 18.04 and it works perfectly
BUT Now; I am learning Ubuntu 18.04.2 LTS, install x11vnc the same way
Could not start service using following command:
sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/jacky/.vnc/passwd -rfbport 5900 -shared
Error below:
23/02/2019 19:08:42 passing arg to libvncserver: -rfbauth
23/02/2019 19:08:42 passing arg to libvncserver: /home/jacky/.vnc/passwd
23/02/2019 19:08:42 passing arg to libvncserver: -rfbport
23/02/2019 19:08:42 passing arg to libvncserver: 5900
23/02/2019 19:08:42 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 2185
^X23/02/2019 19:08:42 -auth guess: failed for display=’:0′
23/02/2019 19:08:42 -auth guess: since we are root, retrying with FD_XDM=1
23/02/2019 19:08:42 -auth guess: failed for display=’:0′
— x11vnc loop: sleeping 2000 ms —
############
so I ran it without sudo and it works:
x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/jacky/.vnc/passwd -rfbport 5900 -shared
Log in from windows RDC no problem.
##################
But I am not able to get it auto start.
###########
I used exactly CAISY method of systemctl
it is NOT working in Ubuntu (It was working on Lubuntu)
Error below:
jacky@jackyhp:~$ sudo nano /etc/systemd/system/x11vnc.service
jacky@jackyhp:~$ sudo chmod +x /etc/systemd/system/x11vnc.service
jacky@jackyhp:~$ sudo systemctl –system daemon-reload
jacky@jackyhp:~$ sudo systemctl start x11vnc
jacky@jackyhp:~$ sudo systemctl status x11vnc
β x11vnc.service – x11vnc remote desktop server
Loaded: loaded (/etc/systemd/system/x11vnc.service; disabled; vendor preset: enabled)
Active: active (running) since Sat 2019-02-23 19:19:06 AEDT; 10s ago
Main PID: 2603 (x11vnc)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/x11vnc.service
ββ2603 /usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/jack
Feb 23 19:19:15 jackyhp x11vnc[2603]: 23/02/2019 19:19:15 passing arg to libvncserver: /home/jacky/
Feb 23 19:19:15 jackyhp x11vnc[2603]: 23/02/2019 19:19:15 passing arg to libvncserver: -rfbport
Feb 23 19:19:15 jackyhp x11vnc[2603]: 23/02/2019 19:19:15 passing arg to libvncserver: 5900
Feb 23 19:19:15 jackyhp x11vnc[2603]: 23/02/2019 19:19:15 x11vnc version: 0.9.13 lastmod: 2011-08-1
Feb 23 19:19:15 jackyhp x11vnc[2603]: xauth: unable to generate an authority file name
Feb 23 19:19:15 jackyhp x11vnc[2603]: 23/02/2019 19:19:15 -auth guess: failed for display=’unset’
Feb 23 19:19:15 jackyhp x11vnc[2603]: 23/02/2019 19:19:15 -auth guess: since we are root, retrying
Feb 23 19:19:15 jackyhp x11vnc[2603]: 23/02/2019 19:19:15 -auth guess: failed for display=’unset’
Feb 23 19:19:15 jackyhp x11vnc[2603]: — x11vnc loop: sleeping 2000 ms —
Feb 23 19:19:17 jackyhp x11vnc[2603]: — x11vnc loop: 5 —
lines 1-18/18 (END)
#################################
try rc.local approach not working
rc.local does not exist on this Ubuntu installation.
##############
################################
adding xllvnc.conf do not work
sudo nano /etc/init/x11vnc.conf
# description “Start x11vnc on system boot”
description “x11vnc”
start on runlevel [2345]
stop on runlevel [^2345]
console log
respawn
respawn limit 20 5
exec /usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/rahul/.vnc/passwd -rfbport 5900 -shared
############################
Any Kind Person can help me here?
Thanks in advance
I have the same problem, very annoying. On one fresh linux box it works flawless, on the other fresh linux box i have this very same issue.
Thank you Caisy, and of course thanks to Rahul
I had the same issue with running x11vnc when I tried the conf file. I setup the service file and could not get it to load. The issue I found was that I logged into my unbuntu desktop as user recorder but root was trying to run the service and attach to the desktop. This is what my service file looks like.
I added the User=recorder and Group=recorder. The service then started at the user logged into the GUI and it worked!
[Unit]
Description=x11vnc remote desktop server
After=multi-user.target
[Service]
User=recorder
Group=recorder
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/recorder/.vnc/passwd -rfbport 5900 -shared
Restart=on-failure
[Install]
WantedBy=multi-user.target
Thank you MATTG, I had the same issue on Ubuntu 18.04 with
xauth: unable to generate an authority file name
-auth guess: failed for display=’:0′
-auth guess: since we are root, retrying with FD_XDM=1
-auth guess: failed for display=’:0′
Adding the User and Group options to the service file fixed it.
Adding User and Group fixed it for me as well.
USER and GROUP, there you go! thx!
Thank you MATTG
With your detail and explanation its working well (LunixMint 19.3)
roland
This worked for me as well on Linux Mint 20, awesome!
Hello,
This worked for me on Ubuntu 20.04.2 LTS.
Thank you! You rock Caisy!
Thank you, after many tutorial, this work immediately with x11vnc. great!
I’ve followed the instructions herein and continue to receive the error message…’password check failed’. Suggestions?
Hey, replace the command with the right username π
autostart isnβt working. have you checked autostart?
Dear Batmunkh,
I am relatively new to linux and have just succeed get the VNC connection working. Nevertheless, I am also interested in having the autostart working. I already tried putting the command into “Startup Applications”, but it didn’t work. Would you be so kind to help me find where and how to check for the autostart?
you are a time and energy saver.thanks it worked
I tried following all your steps still its not working. When I try to see the VNC in browser it is not working. I tried localhost:5900 in browser?? Its not working??
Hi Ranjith,
What error are you getting? Have you tried with vnc viewer application?
autostart isn’t working. have you checked autostart?
Hi Rahul,
I have X11vnc in docker container and am accessing this vnc server via noVNC on browser.
Now my question is , not able to copy & paste to remote to local vice versa. Is it possible?
if yes let me know.
Nice and works – but if some other user is on the “server,” I can’t login. With other VNC servers I was, in the distant past, able to log in without controlling the user at the console. Is there a way to make this multi-user?
Thanks! Your instructions work!
Hi, Bojangles,
Please follow the below steps.
its working for me.
On Server
Step 1-:
Install the required x11vnc package in ubuntu.
$ sudo apt-get install -y x11vnc
Step 2-:
Create a password for a user.
$ x11vnc -storepasswd
Output-:
Enter VNC Password:
Verify password:
Write password to /home/user/.vnc/passwd? [y]/n y
Password written to: /home/user/.vnc/passwd
Step 3-:
To run the vnc server on every start automatically. We have to open /etc/rc.local file.
$ sudo nano /etc/rc.local
Copy the below line to start vnc session automatically with system startup, paste it the line before the βexit 0β.
sudo x11vnc -xkb -noxrecord -forever -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw &
Thanks, exactly what I was looking for.
Thanks for your reply. I was able to resolve it by moving the password file outside of the home dir as you had specified. I moved it to “/etc” and now it works at the login screen. Thanks again.
Good stuff and exactly what I am looking for! But unfortunately this is not working for me. When I try to connect via VNC to my Linux Mint instance which is at the login screen I get the following error; “password check failed”. But if I sit in front of the computer and login and then try to connect via VNC it works fine. Any ideas why I cannot get this working via the login screen?
Hi,
Use password you created with “x11vnc -storepasswd” command. System password is bit different than it.
Dear RAHUL
Thank you, step 1 to 4 is working great (LinuxMint 19.3). Step 5 don’t touched the automatic starting point.
= manual starting point
With the supplementation from CAISY it’s running great.