2011年3月3日 星期四

VNCSERVER 使用

使用PUTTY SSH 到 LINUX上


[root@alantest init.d]# vim /etc/sysconfig/vncservers

VNCSERVERS="1:root 2:alanchang 3:mayaw 4:richard" <--設定使用者預設VNC SESSION


[root@alantest init.d]# vncserver

New 'alantest:1 (root)' desktop is alantest:1 <--系統會產生一個專屬個人使用的VNC SERVER

Starting applications specified in /root/.vnc/xstartup <--這個VNC的個人設定檔在這
Log file is /root/.vnc/alantest:1.log

[root@alantest init.d]# vi /root/.vnc/xstartup <--進去編輯這個個人設定檔

裏面內容全部用#號mark掉

只要加上這一行
/etc/X11/xinit/Xclients
然後存檔

[root@alantest init.d]# vncserver -kill alantest:1 刪除原先的VNC SERVER
Killing Xvnc process ID 3164
[root@alantest init.d]# vncserver 再產生一個新的

New 'alantest:1 (root)' desktop is alantest:1


然後到其它電腦用VNC CLIENT 登入這台電腦

alantest:1


修改VNC SERVER 密碼
vncpasswd

就OK了

個人VNCSERVER

沒有留言: