x11vnc debain 11/12
x11vnc debain 11/12
install x11vnc:
create your password:
create the file:
open the file:
then copy and past the below lines into nano and save:
lets make sure root owns the new file:
give the file the right permission:
reload the daemon:
then start x11vnc:
install x11vnc:
Code:
$ sudo apt install x11vnc
Code:
$ sudo x11vnc -storepasswd (yourpassword) /etc/x11vnc.pass
Code:
$ sudo touch /etc/systemd/system/x11vnc.service
Code:
$ sudo nano /etc/systemd/system/x11vnc.service
then copy and past the below lines into nano and save:
Code:
[Unit] Description="x11vnc" Requires=display-manager.service After=display-manager.service [Service] ExecStart=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -auth /var/run/lightdm/root/:0 -auth guess -rfbauth /etc/x11vnc.pass ExecStop=/usr/bin/killall x11vnc Restart=on-failure Restart-sec=2 [Install] WantedBy=multi-user.target
Code:
$ chown root:root /etc/systemd/system/x11vnc.service
Code:
$ chmod 700 /etc/systemd/system/x11vnc.service
Code:
$ systemctl daemon-reload
Code:
$ systemctl start x11vnc
Total Comments 0