• Launch tigervnc on CentOS7
  • Browse with Mac with VNC Viewer
  • I'm encountering a completely black screen

I am not used to building our VNC. Professor

Details of actions taken


sudo yum install -y tigervnc-server
sudo yum groupinstall -y "GNOME Desktop"

Create xstartup

exec gnome-session&

Create vncserver @: 2.service

systemctl daemon-reload
systemctl start vncserver @ \: 2.service
  • Answer # 1

    When VNC was started with pyenv removed from the environment variable, the GUI was displayed. After starting VNC, VNC worked by adding pyenv to the environment variable.
    By writing the VNC startup command in front of bashrc's pyenv, it is possible to maintain the always-on + pyenv environment.

  • Answer # 2

    Check vncserver execution user log ($HOME/.vnc/host name: 2.log).
    Does xstartup have execute permission?

  • Answer # 3

    I haven't tried it on a test machine, but there was similar information, so please refer to it.