How to install the VNC to CentOS7
I explain how to Install the VNC to CentOS7.
Installation of the package
yum -y install tigervnc-server
Registration of VNC user's password
Switch to the user you want to log in with VNC, and set the password
# su user
An automatic start-up setting of the service in systemctl
# cp -a /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:2.service
Change the user name to log in the
Editing is to read the systemd in the configuration file when you are finished.
Automatic start-up setting of the VNC service
systemctl enable vncserver@:2.service
Starting the VNC service
systemctl start vncserver@:2.service
Setting the screen size
In order to change the screen size, modify the following lines.
# vim /usr/bin/vncserver
$geometry = "1280x1024";