Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 9.5 upgrade broke vncserver service

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
gjaltemba
Posts: 3
Joined: 2018-07-16 20:53

Debian 9.5 upgrade broke vncserver service

#1 Post by gjaltemba »

Happily running tigervnc-standalone-server in debian 9.4 gnome. After upgrade to 9.5, my vnc client gets a black screen and a square cursor when vncserver runs as systemd service. Works if I run vncserver from a terminal.

How do I run vncserver as a service in debian 9.5 gnome?

Code: Select all

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
User=userid
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/bin/sh -c '/usr/bin/vncserver -localhost no %i'
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target


User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Debian 9.5 upgrade broke vncserver service

#2 Post by bw123 »

...
How do I run vncserver as a service in debian 9.5 gnome?
...
I found a lot of results searching for that question on the web. Appears to be several ways to do it, I found a lot of example service files.
resigned by AI ChatGPT

gjaltemba
Posts: 3
Joined: 2018-07-16 20:53

Re: Debian 9.5 upgrade broke vncserver service

#3 Post by gjaltemba »

Obviously, but does any of the examples that you have found actually work with debian 9.5 gnome and tigervnc-standalone-server? All the examples that I have tried produces a black screen with square cursor. Running vncserver from the terminal works properly.

Post Reply