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.