Ubuntu 15.04 above, to install x11vnc and configuration follow this.
[[Run the following to install]]
#sudo apt-get install x11vnc
#sudo x11vnc -storepasswd yourVNCpasswordHERE /etc/x11vnc.pass
[[Insert this into the file]]
#sudo nano /lib/systemd/system/x11vnc.service
[Unit]
Description="x11vnc"
Requires=display-manager.service
After=display-manager.service
[Service]
ExecStart=/usr/bin/x11vnc -xkb -loop -noxrecord -noxfixes -noxdamage -display :0 -auth guess -rfbauth /etc/x11vnc.pass
ExecStop=/usr/bin/killall x11vnc
[Install]
WantedBy=multi-user.target
[[Then, start with]]
#sudo systemctl daemon-reload
#sudo systemctl start x11vnc
[[And ensure the service starts on boot]]
#sudo systemctl enable x11vnc
Ubuntu 15.04 below, to install x11vnc and configuration follow this.
[[Run the following to install]]
#sudo apt-get install x11vnc
#sudo x11vnc -storepasswd yourVNCpasswordHERE /etc/x11vnc.pass
[Add this line to the file]]
#sudo nano /etc/init/x11vnc.conf
start on login-session-start
script
/usr/bin/x11vnc -xkb -loop -forever -auth /var/run/lightdm/root/:0 -display :0 -rfbauth /etc/x11vnc.pass -rfbport 5900 -bg -o /var/log/x11vnc.log
end script
[[Then, start with]]
#sudo service x11vnc restart
Reference
http://askubuntu.com/questions/229989/how-to-setup-x11vnc-to-access-with-graphical-login-screen
Good luck!
No comments:
Post a Comment