I'm trying to use x11vnc on ubuntu 18.04 headless nvidia GPU server.

I finally made it work with lightdm, but there is a initial freeze time problem on the connection that's not happen with ubuntu 16.04.

As I checked the x11vnc log, it shows 10 seconds delay from useCopyRect to client_set_net every time. While the delay, key and mouse events are ignored although the display is shown. Does anyone know how to solve this?

sudo /usr/bin/x11vnc -display :0 -noxdamage -auth /var/run/lightdm/root/:0 -forever -loop -noxdamage -repeat -shared -rfbport 5900 -rfbauth /home/$USER/.vnc/passwd
29/08/2019 17:59:33 Using tight encoding for client
29/08/2019 17:59:33 client useCopyRect: -1
29/08/2019 17:59:43 client_set_net:  10.0103
29/08/2019 17:59:52 non-existent cursor: which=12


  • Ubuntu 18.04 x64
  • x11vnc: 0.9.13 lastmod: 2011-08-10
  • lightdm 1.26.0
  • It happens with gdm3 too. – fx-kirin Aug 29 '19 at 14:14

It's been fixed with these command to fix dns bug with 18.04. I didn't think it'd been related.

ls -l /etc/resolv.conf
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo reboot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.