yum groupinstall xfce-4.4
yum install vnc vnc-server
vi /etc/sysconfig/vncservers
添加
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x768"
vncserver
配置环境
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 &
startxfce4 &
开机启动
chmod +x ~/.vnc/xstartup
service vncserver restart
chkconfig vncserver on
到这里 VNC 已经可用
yum -y install firefox
yum -y install fonts-chinese
文章评论