VNC does not work on startup but works otherwise

asked 2018-11-27 15:29:12 -0600

Ace_Ravi gravatar image

updated 2018-11-27 22:35:43 -0600

florian gravatar image

Fedora25 - Xvnc TigerVnc 1.7.0

VNC starts when the system boot's up but when logging in gives a blank screen But ssh into the system and running 'vncserver' in the CLI works fine. Able to vnc into the machine

I suspect issue with vncserver@.service in /etc/systemd/system (Below is the file content)

Can someone please help ?


After=syslog.target network.target

[Service]
Type=forking
User=root

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c '/usr/bin/vncserver'
PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target
edit retag flag offensive close merge delete

Comments

Well, actually F25 is way beyond its lifetime. Could you upgrade to a supported distribution first, at the moment F28 or better yet F29, and then try again?

ed209 gravatar imageed209 ( 2018-11-28 04:37:40 -0600 )edit

Will recommend to use x11vnc server instead of vncserver. Will also recommend to upgrade from Fedora 25

aeperezt gravatar imageaeperezt ( 2018-11-28 19:27:23 -0600 )edit