Linux – x11vnc server lets me connect at login screen, but after login, connection closes

linuxUbuntuvncxubuntu

I have an existing xubuntu server running on my local network. I set up x11vnc and it starts at the login screen, so I can login myself. The only problem is that every time I log in, the vnc connection closes, my vnc viewer (Remmina Remote Desktop Client) window closes, and as soon as I click connect again, I'm back at an empty login screen as if nothing happened. To get it to start before login, I've placed this command in my /etc/rc.local file before the exit 0 command.

#!/bin/bash
x11vnc -xkb -noxrecord -noxfixes -noxdamage -ncache 6 -display :0 -forever -shared -bg -o /var/log/x11vnc.log -rfbport 5901

Why does it disconnect but still allow me to reconnect? Why does it disconnect in the first place? The log shows nothing wrong happening.

Best Answer

Did you find the answer for this? I found Remmina would close if your colour depth was not the same on the Xserver as it is on the VNC client. vinagre didn't have an issue but I found this to be the case with Remmina.

Related Topic