tigervnc - behavior weird

General support questions
Posts: 2
Joined: 2017/11/10 07:39:58

tigervnc - behavior weird

Postby steven.foo@idt.com » 2017/11/10 07:48:20


We have just install tiger vncserver on our centos 7 server.

When we start the vncserver session using the user "admin" and use vnc viewer to access it, the VNC GUI screen comes out nicely.

However when we configure to start with systemctl the VNC GUI is missing the top menu and background is blank.

I am attaching here the VNC GUI screen capture that have the issue.

My setting for /etc/systemd/system/vncserver@:1.service

Any ideas?

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


# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=-/usr/bin/vncserver -kill %i
ExecStart=/usr/bin/vncserver %i
ExecStop=-/usr/bin/vncserver -kill %i

vncgui.jpg (72.57 KiB) Viewed 285 times

Posts: 5
Joined: 2017/11/07 17:13:11

Re: tigervnc - behavior weird

Postby briansrls » 2017/11/10 16:38:13

Hey, I just wanted to show you that I had the same issue here: https://www.centos.org/forums/viewtopic.php?f=47&t=64949&p=273150#p273150

Could you please list what versions of Centos (7.3, 7.X) you are trying to use, and also what version of tigervnc you are using? To find the tigervnc version you may want to use yum list and grep for installed packages.

Also, let me know what vncviewer you are using. I used a few (tigervnc vncviewer, tightvnc viewer) and had the same results. I'm sure this is an issue with the server configuration.

I have issues using centos 7.4 and tigervnc 1.8. I'm wondering what we have in common that's causing the issue.

Posts: 2
Joined: 2017/11/10 07:39:58

Re: tigervnc - behavior weird

Postby steven.foo@idt.com » 2017/11/11 00:53:23


Below are the information.

[root@PENLNXTEST2 ~]# rpm -qa | grep tiger

[root@PENLNXTEST2 ~]# more /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

Using TigerVnc viewer.

Posts: 1
Joined: 2017/11/13 10:05:52

Re: tigervnc - behavior weird

Postby lutongwang » 2017/11/13 10:15:51

I have the same problem.

My configuration is nfs home directory and NIS (yp) enabled. Proper SELinux Boolean (use_nfs_home_dirs) are set to allow nfs home dirs.

The problem exists for both local and remote (vncserver).
For local display, gdm goes black and bounces back to login screen for all NIS users, only root can go into the desktop.
For remote desktop through vncserver, only systemctl start vncserver@:1.service will work, and results in black background with no menu bar, and no status bar. A direct start of vncserver from user account will result in vnc with all black screen with a mouse cursor.

The problem can be reproduced on multiple fresh installed centos 7.4 machines right after nfs and nis are setup.

I have tried that
local user + nfs home is normal
nis user + local home is normal

So only NIS user with nfs home dir cause the problem. Could someone help me get through this issue?

Thank you.

Posts: 5
Joined: 2017/11/07 17:13:11

Re: tigervnc - behavior weird

Postby briansrls » 2017/11/14 18:04:37

I was able to mess around with this a bit today, and my hunch is that something is not being initialized correctly. I found this post https://askubuntu.com/questions/453490/could-not-get-screen-information-error and added mutter --replace to my ~/.vnc/xstartup file. I found that I still don't have the top start bar, but I can start gnome-terminal by right clicking and selecting "open terminal". Using mutter my windows behave more normally and I can actually close out and put them in the foreground/background. This is not a fix but may give a clue as to what is going wrong.

Here is my complete ~/.vnc/xstartup file.

Code: Select all


exec mutter --replace &
exec /etc/X11/xinit/xinitrc

Posts: 5
Joined: 2017/11/07 17:13:11

Re: tigervnc - behavior weird

Postby briansrls » 2017/12/05 03:57:01

For anyone still searching, I recommend installing XRDP to access your desktop remotely. Follow this guide to install:http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html