Centos system install vnc

Install RealVNC on CentOS7

Step 1: Check gnome version
rpm -qa | grep -i gnome

gnome version is 3.14

So we run "yum update" to update gnome 3 from 3.14 to 3.22. Because therej [ V 4 is a bug in gnome 3.14, that will cG I 1ause vncserver-virtual :x failed.

yum update

Install Real VNC Server 6.0.1

rpm -ivh VNC-Server-6.0.1-L- D y v { oinux-xn A B *64.rpm

[root@msoclnx23 Software]# rpm -ivh VNC-Server-6.0.1-Linux-x64.ru * + / d + ypm
Prepax ! 8 p . D S 6 Cring... ################################# [com.cn/tag/10" target="_blank">100%]
Updating / installin{ Y Wg...
1:realvn y x C 6 Vnc-vnc-server-6.0.1.23971-1 ###A : S L O + N N##############F 6 1################ [100%]
Moving /usr/bin/Xvnc to /usr/bin/Xvnc.conflict
Moving /usr/share/man/maU ( S x G @ n1/Xvnc.1.gz to /usr/share/man/manz P 1 j o 5 ( z1/Xvnc.1.gz.conflict
MoI e j j u ] ~ving /usr/bin/vncpass) | P [ G e I hwd toK Z C J r ] 0 /u6 S _ a esr/bin/vncpasswd.conflict
Moving /usr/share/man/man1/vncpt Q L 2 masswd.1.gz to /usr/share/man/man1/vncpasswd.1.gz.conflict
Testing if SEi 7 @ ELinux enabled...V ? / { [ G % & [Disa5 7 2 l R 0 & !bled]
UpE s % ` 2 B { udating /etc/pam.d/vncserver

NOTICE: common configuration in /etc/pam.d contains the following modules:
pam_ldap.so
pam_fprintd.so
pam_ldap.so
Theg R c default vncserver PAM configuration only eO * j * r + C 9 enables pam_unix. See
`man vncinitconfig' for details on any manual configuration required.

Looking for fon} P O ? , ? & ~ ct path... not found.
GS 0 j [ L ` = ) ienerating private key... done
Installed systemd unit for VNC Server in S$ 3 A j A uervice Mode daemon
Start or stop the service with:
systemctl (J / 4 Z [ z [start|stop) vncserver-x11-serviced.service
Mark or unmark the service to beI X B W 2 $ $ started at boot time with:
systemctl (enable|~ U edisable) vnp i l &cserver-x11-serviced.service

Installed systemd unit for VNC ServeZ | F k zr in Virtual Mode daemon
Start or stop the s~ $ 6 d V Gervice with:
systemctl (start|stop) vncserver-virtuald.service
Mark* R ` 4 # K ) 9 u or unmark the service to be started at boot time with:
systC d r w g ^emctl (enable|disable) vncserver-virtuald.service

man vncinitconfig

Installed systemd unit for VNC Server in Service Mof Z 0 Fde d2 { O M s Q E Taemon
Start or stop the service with:
systemctl (start|stop) vncQ O c / a t 6 Oserver-x11-serviced.service
Mark or u% I ~ , ` Q @nmark the service to be started at boot time with:
systemctl (enable|disable) vncserver-x11-serviced.service

Installed systemd unit for VNC Server in Virtual Mode daemon
St@ t d f q ` W 8 yart or stop the service with:
systemctl (start|stop) vncserver-virtuald.service
Mark or unmark the service to be started at boot time with:
syj + `stemctl (ena4 [ 0 A ~ -ble|disag I X Nble) vncserver-virtual6 O 5 r _d.service

vnclicense -add xxx

systemctl start vncserver-x11-serviced.se3 h 1 O ] IrvicT r Fe
use root and it's password to login

#Single user link in servicw Y k Ce mode
systemc1 { A N _tl (start|stop) vncserver-x11-servS _ }iced.service

#Multiple user link mode
vncserver-x11
vncserver-virtual :x

We check theu G 4 /root/.vnc/MTOpenMeeting1:1.log

We can see the content

Starting session: /etc/X11/xinit/Xsession

vi /etc/vnc/xstartup
#Change from
elif [ -x /etc/X11/xinit/Xsession ];4 ~ { k then SESSIOE W { j ] O LNBIN="/etc/X11/xinit/Xsession
#To
elif [ -x /etc/X11/xinit/Xsession ]; then /usr/- K rbin/gnomd h 5 t ! n p _e-session