Scripting Deployment and Start-up on Linux – RealVNC Help Center
help.realvnc.com › hc › en-usAug 15, 2019 · Change the listening port for direct connections (by default, 5900): # echo 'RfbPort=4999' | sudo tee -a /root/.vnc/config.d/vncserver-x11 # Start VNC Server on a Linux system using initd: sudo /etc/init.d/vncserver-x11-serviced start # Start VNC Server on a Linux system using systemd: # sudo systemctl start vncserver-x11-serviced.service # Restart VNC Server each time a Debian-compatible system is booted using initd: sudo update-rc.d vncserver-x11-serviced defaults # Restart VNC Server each ...