The officially official Devuan Forum!

You are not logged in.

#1 Re: Hardware & System Configuration » Create new service from systemd x11vnc.service » 2019-05-27 22:06:02

Thanks, GNUser,

Your script was very usefull.
A few adaptations needed like use of Define LSB log_* functions, or start-stop-daemon function.
I created my own x11vnc.sh script to invoke /usr/bin/x11vnc with adequate parameters and shell background invocation.

I do use x11vnc because this indirection allows me to display the same screen I have on my desktop on the smart tv screen without smart tv screen definition restriction (I have a very large smart tv so this solution enables a partially visual disabled user to develop on devuan.

If someone needs more explaination on how to use this x11vnc scripts, please ask on this forum.

Best regards,
ea4170@0c5

#2 Hardware & System Configuration » Create new service from systemd x11vnc.service » 2019-05-23 21:19:23

ea4170@0c5
Replies: 2

Hello folks,

I use x11vnc on devuan.
I can manually launch x11vnc and then connect from another computer to the devuan computer.
But when I exit the connection, the x11vnc terminates.
Then I found debian users creating a service configuration file for automatic restarting the x11vnc program after exiting, and automatic start when booting.
I would like to adapt this "x11vnc.service" for devuan but I did not find how to do this on Dev1 Galaxy.
Please tell me how to adapt the following x11vnc.service (systemd syntax)

[Unit]
Description=VNC Server for X11
Requires=display-manager.service
After=display-manager.service
BindsTo=display-manager.service
PartOf=display-manager.service

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -xkb -repeat -allow 127.0.0.1 -display :0 -auth guess -rfbauth /etc/X11/x11vnc.passwd -rfbport 5900 -forever -loop -o /var/log/x11vnc.log
Restart=on-failure
RestartSec=10

This topic can be generalized to any new service needing portability from systemd or any system service manager.

Best regards,
from ea4170@0c5

Board footer

Forum Software