Preface
This article introduces the installation of tigervnc-server and client use on Galaxy Kylin advanced server operating system V10
1. Install and configure tigervnc-server (Galaxy Kylin Advanced Server Operating System V10)
yum installation instructions
sudo yum install -y tigervnc-server
Copy service files
sudo cp /lib/systemd/system/[email protected] /etc/systemd/system/
Replace the <USER> tag in /etc/systemd/system/[email protected] with the current user (non-root) and configure the resolution parameters
sudo vim /etc/systemd/system/[email protected]
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
WorkingDirectory=/home/yeqiang
User=yeqiang
Group=yeqiang
PIDFile=/home/yeqiang/.vnc/%H%i.pid
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver %i -geometry 2560x1080
ExecStop=/usr/bin/vncserver -kill %i
Restart=on-success
RestartSec=15
[Install]
WantedBy=multi-user.target
Firewall allows port 5901/tcp
sudo firewall-cmd --permanent --add-port=5901/tcp
Start service
[yeqiang@192-168-110-185 system]$ sudo systemctl daemon-reload
[yeqiang@192-168-110-185 system]$ sudo systemctl start vncserver@:1.service
[yeqiang@192-168-110-185 system]$ vncserver -list
TigerVNC server sessions:
X DISPLAY # PROCESS ID
:1 94402
[yeqiang@192-168-110-185 system]$ ps aux | grep Xvnc
yeqiang 94402 6.4 0.8 772928 134208 ? Sl 14:55 0:01 /usr/bin/Xvnc :1 -auth /home/yeqiang/.Xauthority -desktop 192-168-110-185:1 (yeqiang) -fp catalogue:/etc/X11/fontpath.d -geometry 2560x1080 -pn -rfbauth /home/yeqiang/.vnc/passwd -rfbport 5901 -rfbwait 30000
yeqiang 95040 0.0 0.0 214080 1536 pts/0 S+ 14:55 0:00 grep Xvnc
1. The service being started is vncserver@ : 1.service
2. At the first startup, you will be prompted to enter a password, follow the instructions to enter the login password
3. It can be started by setting systemctl enable vncserver@:1.service
2. Client connection (Fedora 31 x86_64)
1. Install tigervnc client software
sudo yum install -y tigervnc
2. Connect to the target server
[yeqiang@harbor ~]$ vncviewer 192.168.110.185:1
TigerVNC Viewer 64-bit v1.10.1
Built on: 2020-04-19 00:00
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Thu Jan 21 14:57:14 2021
DecodeManager: Detected 6 CPU core(s)
DecodeManager: Creating 4 decoder thread(s)
CConn: Connected to host 192.168.110.185 port 5901
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
CConnection: Choosing security type VeNCrypt(19)
CVeNCrypt: Choosing security type TLSVnc (258)
Thu Jan 21 14:57:17 2021
DesktopWindow: Adjusting window size to avoid accidental full screen request
CConn: Using pixel format depth 24 (32bpp) little-endian rgb888
to sum up
The installation and deployment of tigervnc-server on Galaxy Kylin Advanced Server Operating System V10 is not much different from x86 CentOS.