This command starts the server from a command line window:
Code:
x0vncserver -display :0 -localhost no -passwordfile /home/mastiff/.vnc/passwd
But I can't get it to work as a systemd service file. Can somebody please help me out there? I have trieda few different files from the web, but nothing has worked. This is what I have now:
Code:
[Unit]
Description=Remote desktop service (VNC) for :0 display
Requires=display-manager.service
After=network-online.target
After=display-manager.service
[Service]
ExecStartPre=/bin/sleep 10
Type=simple
ExecStart=x0vncserver -display :0 -localhost no -passwordfile /home/mastiff/.vnc/passwd
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target
It looks on status like it's working, but I can't connect to it:
Code:
● tigervncserver.service - Remote desktop service (VNC) for :0 display
Loaded: loaded (/lib/systemd/system/tigervncserver.service; enabled; prese>
Active: activating (start-pre) since Sun 2023-11-12 20:11:48 CET; 4s ago
Cntrl PID: 4001 (sleep)
Tasks: 1 (limit: 2454)
Memory: 168.0K
CPU: 1ms
CGroup: /system.slice/tigervncserver.service
└─4001 /bin/sleep 10
nov. 12 20:11:48 virtuell-HomeAssistant systemd[1]: Starting tigervncserver.ser>
lines 1-11/11 (END)...skipping...
● tigervncserver.service - Remote desktop service (VNC) for :0 display
Loaded: loaded (/lib/systemd/system/tigervncserver.service; enabled; preset: enabled)
Active: activating (start-pre) since Sun 2023-11-12 20:11:48 CET; 4s ago
Cntrl PID: 4001 (sleep)
Tasks: 1 (limit: 2454)
Memory: 168.0K
CPU: 1ms
CGroup: /system.slice/tigervncserver.service
└─4001 /bin/sleep 10
nov. 12 20:11:48 virtuell-HomeAssistant systemd[1]: Starting tigervncserver.service - Remote desktop service (VNC) for :0 displa>
~
Can somebody who knows what they're actually doing please help me out here?