Dependency Installed:
mesa-dri-drivers.x86_64 0:7.11-5.el6 xorg-x11-font-utils.x86_64 1:7.2-11.el6 xorg-x11-fonts-misc.noarch 0:7.2-9.1.el6
Complete!
5,生成帐号配置文件
# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: (stdin):1: bad display name "bogon:1" in "add" command
New 'bogon:1 (root)' desktop is bogon:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/bogon:1.log
# su - tao
$ vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: (stdin):1: bad display name "bogon:2" in "add" command
New 'bogon:2 (tao)' desktop is bogon:2
Creating default startup script /home/tao/.vnc/xstartup
Starting applications specified in /home/tao/.vnc/xstartup
Log file is /home/tao/.vnc/bogon:2.log
$ ls .vnc/
bogon:2.log bogon:2.pid passwd xstartup
6,修改xstartup用xfce4桌面
[root@localhost ~]# cat ~/.vnc/xstartup
#!/bin/sh
/usr/bin/startxfce4 &