LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > kleinde66
User Name
Password

Notices


Rate this Entry

x11vnc debain 11/12

Posted 11-22-2023 at 08:46 PM by kleinde66
Updated 12-14-2023 at 04:37 PM by kleinde66

x11vnc debain 11/12


install x11vnc:
Code:
$ sudo apt install x11vnc
create your password:
Code:
$ sudo x11vnc -storepasswd (yourpassword)  /etc/x11vnc.pass
create the file:
Code:
$ sudo touch /etc/systemd/system/x11vnc.service
open the file:
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
lets make sure root owns the new file:
Code:
$ chown root:root /etc/systemd/system/x11vnc.service
give the file the right permission:
Code:
$ chmod 700 /etc/systemd/system/x11vnc.service
reload the daemon:
Code:
$ systemctl daemon-reload
then start x11vnc:
Code:
$ systemctl start x11vnc
Posted in Uncategorized
Views 96 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration