Add x11vnc server stuff

This commit is contained in:
Late Night Defender 2024-11-25 02:02:21 +07:00
parent de19786bd1
commit 85180617ee
2 changed files with 16 additions and 0 deletions

4
vncstart.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
# Start an x11vnc server on display :0 at port 5183, with password auth and continue running after client disconnects
x11vnc -display :0 -forever -loop -noxdamage -repeat -rfbauth ~/.vnc/passwd -rfbport 5183 -shared

12
x11vnc.service Executable file
View file

@ -0,0 +1,12 @@
[Unit]
Description=run x11vnc as a service
[Service]
Type=simple
User=sasha
WorkingDirectory=/home/sasha
ExecStart=sh /home/sasha/vncstart.sh
ExecStop=killall x11vnc
[Install]
WantedBy=graphical.target