Having problems when starting 'vncserver' (TigerVNC) at both booting time and command line in Centos 7.3_1161 (Core):
When doing 'vncserver' output is:
Doing 'ps -eaf | grep vnc' shows:New 'hostname:1 (myuser)' desktop is myuser:1
Starting applications specified in /home/myuser/.vnc/xstartup
Log file is /home/myuser/.vnc/hostname:1.log
After that, process dies, and looking at ~/.vnc/hostname:1.log shows:myuser 6493 1 0 12:52 pts/2 00:00:00 /usr/bin/Xvnc :1 -desktop hostname:1 (myuser) -auth /home/myuser/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/myuser/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
I suspect VNC cannot sync with the X display because any reason outside VNC, but I don't know where to look at, as the log only shows that caveat. I tried all this next without success:xrdb: Connection refused
xrdb: Can't open display 'hostname:1'
/usr/bin/vncconfig: unable to open display "hostname:1"
xmodmap: unable to open display 'hostname:1'
** (gnome-session-check-accelerated:6636): WARNING **: Could not open X display
(gnome-session-check-accelerated:6636): Gtk-WARNING **: cannot open display: hostname:1
** (gnome-session-check-accelerated:6647): WARNING **: Could not open X display
(gnome-session-check-accelerated:6647): Gtk-WARNING **: cannot open display: hostname:1
** (process:6499): WARNING **: software acceleration check failed: Child process exited with code 1
(EE)
Fatal server error:
(EE) Could not create lock file in /tmp/.tX1-lock
(EE)
- Tried to delete /tmp/.tX1-lock several times without any effect to solve the vnc behavior.
- Tried to set the /tmp permissions with 'sudo chmod 1777 /tmp' without any effect to solve the vnc behavior.
- Tried to remove .Xauthority and to re-run 'vncserver' without any effect to solve the vnc behavior.
- Tried to do 'systemctl daemon-reload && systemctl start vncserver@:1.service' without any effect to solve the vnc behavior.
- Tried to restart gdm with 'sudo systemctl restart gdm.service' which seems to have no effect to solve the vnc behavior.
- Tried to re-install tigervnc without any effect to solve the vnc behavior.
XForwarding with SSH works straight and is functional, but seems to work very slow and it cannot solve my requirements.
I can't figure out what more is needed to do in order to have a functional VNC.
Hope you may help me. Thanks in advance.