Installation may cause DNS to be emptied, so you need to perform the following command before you follow the steps to install
Chattr +i/etc/resolv.conf
1. Install (I am separately installed, you can also choose to install at the same time)
Yum install-y tigervnc tigervnc-server
yum groupinstall "Desktop" yum Install, Gnome-panel yum install
Nautilus
2. Set the login password (execute the following command, you need to enter two times)
vncpasswd
3. Configuration (Compare the following configuration file with your consistent)
Cat ~/.vnc/xstartup
#!/bin/sh
[-r/etc/sysconfig/i18n] &&/etc/sysconfig/i18n
export LANG
Export Sysfont
vncconfig-iconic &
unset session_manager
unset dbus_session_bus_address os=
' Uname-s '
if [$OS = ' Linux ']; then case
"$WINDOWMANAGER" in
*gnome*)
if [-e/etc/suse-release]; n
path= $PATH:/opt/gnome/bin
export PATH
fi
Esac
fi
if [-x/etc/x11/xinit/xinitrc]; then
exec/etc/x11/xinit/xinitrc
fi
If [-f/etc/x11 /XINIT/XINITRC]; Then
exec sh/etc/x11/xinit/xinitrc
fi
[R $HOME/. Xresources] && Xrdb $HOME/. Xresources
xsetroot-solid Grey
xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
TWM & Amp
4. Start and close VNC
Vncserver:1
Vncserver-kill:1
5. Client Connectivity Testing
The client software used is: VNC viewer
(1) input the ip:1 of the server's external network
(2) Enter the login password for VNCPASSWD settings
(3) The interface after successful connection