0: Install the VNC environment configuration
To see if the host name is configured
[email protected] ~]# cat/etc/sysconfig/network
Networking=yes
Networking_ipv6=yes
Hostname=ruei
[email protected] ~]# cat/etc/hosts
# don't remove the following line, or various programs
# that require network functionality would fail.
127.0.0.1 Ruei localhost.localdomain localhost
:: 1 localhost6.localdomain6 Localhost6
192.0.99.42 Ruei
1: Querying whether VNC exists
Rpm-qa|grep VNC
Does not exist perform the following command installation
2:RPM-IVH RPM Package
3: Start VNC
Service Vncserver Start
Vncserver:1
Kill the desktop.
Vncserver-kill:1
4: Modify the configuration file
[[email protected]~]# Vi/root/.vnc/xstartup
#!/bin/sh
# Uncomment the following-lines for normal desktop:
Unset Session_manager
Exec/etc/x11/xinit/xinitrc
[-x/etc/vnc/xstartup] && Exec/etc/vnc/xstartup
[-R $HOME/. Xresources] && Xrdb $HOME/. Xresources
Xsetroot-solid Grey
Vncconfig-iconic &
Xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
#twm &
Startkde &
This article is from the "Java Implementation 99 multiplication table" blog, make sure to keep this source http://lixiansheng.blog.51cto.com/2963027/1653545
Linux VNC installation process