Centos 6/Redhat 6:远程图形桌面: tigervnc

step 0:【Centos 6/Redhat 6】安装桌面环境。

step 1:安装tigervnc-server

step 2:配置 /etc/sysconfig/vncservers  

  样例:

VNCSERVERS="1:root 2:oracle 3:mysql"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"
VNCSERVERARGS[3]="-geometry 1024x768"

 

step 3:配置sysV(init.d)的tigervnc服务,使用chkconfig

step 4:启动服务

  

 1 [root@restore1 sysconfig]# service vncserver restart
 2 Shutting down VNC server: 1:root 2:oracle 3:mysql          [  OK  ]
 3 Starting VNC server: 1:root 
 4 New 'restore1:1 (root)' desktop is restore1:1
 5 
 6 Starting applications specified in /root/.vnc/xstartup
 7 Log file is /root/.vnc/restore1:1.log
 8 
 9 2:oracle 
10 New 'restore1:2 (oracle)' desktop is restore1:2
11 
12 Starting applications specified in /home/oracle/.vnc/xstartup
13 Log file is /home/oracle/.vnc/restore1:2.log
14 
15 3:mysql 
16 New 'restore1:3 (mysql)' desktop is restore1:3
17 
18 Starting applications specified in /home/mysql/.vnc/xstartup
19 Log file is /home/mysql/.vnc/restore1:3.log
20 
21                                                            [  OK  ]

 

  

 

你可能感兴趣的:(Centos 6/Redhat 6:远程图形桌面: tigervnc)