LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > kleinde66
User Name
Password

Notices


Rate this Entry

x11vnc arch/arco sddm (rolling)

Posted 11-22-2023 at 08:55 PM by kleinde66
Updated 01-18-2024 at 12:38 PM by kleinde66 (this set up has quit working)

x11vnc arch/arco sddm (rolling)

as of recently this is not working, changes to tigervnc and maybe systemd (01-18-24)

install x11vnc
Code:
$ sudo pacman -S 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 VNC Server for X11
Requires=display-manager.service
After=display-manager.service
StartLimitIntervalSec=0
 
[Service]
ExecStartPre=/bin/sleep 30
Type=forking
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment SDDMXAUTH=$(/usr/bin/find /var/run/sddm/ -type f)"
ExecStart=/usr/bin/x11vnc -wait 50 -display :0 -auth ${SDDMXAUTH} -ncache 10 -forever -shared -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.passwd -xkb -norc -noxrecord -noxdamage -nomodtweak -multiptr
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
#Restart-sec=10
 
[Install]
WantedBy=graphical.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 190 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 06:24 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