三、安装Xface
# apt-get install xfce4过程比较漫长,大小有200MB左右。等安装完成后,我们就可以使用VNC调用Xface了
更改VNC配置,加载Xface桌面
root@node1:~# pwd /root root@node1:~# cd .vnc/ root@node1:~/.vnc# ls node1:1.log node1:1.pid passwd xstartup root@node1:~/.vnc# vim xstartup把原来的配置给注释掉,新增Xface的配置即可,配置文件下
root@node1:~/.vnc# cat 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 & #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #x-window-manager & sesion-manager & xfdesktop & xfce4-panel & xfce4-menu-plugin & xfsettingsd & xfconfd & xfwm4 &然后重新启动VNC
root@node1:~/.vnc# vncserver -kill :1 Killing Xvnc4 process ID 1844 root@node1:~/.vnc# vncserver :1 New 'node1:1 (root)' desktop is node1:1 Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/node1:1.log再用客户端连接
看到了Xface了,说明OK了,至此,已经配置完毕。