我在Centos 6.5 VM上有一个非常标准的设置。我已经配置了VNC会话,以根据CentOS的Wiki在启动时启动
VNCSERVERS="1:root 2:moe 3:curly"
VNCSERVERARGS[1]="-geometry 640x480"
VNCSERVERARGS[2]="-geometry 640x480"
VNCSERVERARGS[3]="-geometry 800x600"
就我而言,我配置了会话1到12,其中2到12是本地用户,会话1属于root。
我的所有会话均按预期在启动时创建,可以验证是否运行“ ps -ef | grep Xvnc”
[moe@stooges ~]$ ps -ef|grep Xvnc
root 26037 1 0 Aug19 ? 00:00:14 /usr/bin/Xvnc :1 -desktop stooges.domain.com:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
moe 26126 1 0 Aug19 ? 00:00:00 /usr/bin/Xvnc :2 -desktop stooges.domain.com:2 (moe) -auth /export/home/moe/.Xauthority -geometry 1680x1050 -rfbwait 30000 -rfbauth /export/home/moe/.vnc/passwd -rfbport 5902 -fp catalogue:/etc/X11/fontpath.d -pn