0:装vnc环境配置
查看主机名是否配置
[root@ruei ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=ruei
[root@ruei ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 ruei localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.0.99.42 ruei
1:查询vnc是否存在
rpm -qa|grep vnc
没有存在执行下列命令安装
2:rpm -ivh rpm包
3:启动vnc
service vncserver start
vncserver :1
杀掉桌面
vncserver -kill :1
4:修改配置文件
[root@ruei ~]# vi /root/.vnc/xstartup
#!/bin/sh
# Uncomment the following two 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 &