|
|
首先把 vnc.so 複製到
/usr/X11R6/lib/modules/extensions
修改 /etc/X11/XF86Config
在 Section "Module" 下加入 Load "vnc"
例
代碼:
Section "Module"
Load "dbe"
Load "mfb"
Load "type1"
Load "freetype"
Load "extmod"
Load "vnc"
Load "dri"
Load "xtrap"
Load "record"
EndSection
在 Section "Screen" 加入 Option "passwordFile" "/root/.vnc/passwd"
例:
代碼:
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Generic Monitor"
DefaultDepth 16
Option "passwordFile" "/root/.vnc/passwd"
# Option "secutityTypes" "None"
SubSection "Display"
Depth 16
Modes "800x600" "640x480" "1024x768"
Virtual 800 600
ViewPort 0 0
EndSubsection
EndSection
如果不用密碼就登入可用Option "secutityTypes" "None"
例:
代碼:
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Generic Monitor"
DefaultDepth 16
Option "secutityTypes" "None"
SubSection "Display"
Depth 16
Modes "800x600" "640x480" "1024x768"
Virtual 800 600
ViewPort 0 0
EndSubsection
Endsection
以上Section "Module"及Section "Screen"皆是指XF86Config(或XF86Config-4)這個設定檔。
最後重開 X 即可。
----------------------------------------------------------------------------------------------------------------------------
我按照这篇贴子改过了,可是不起作用,我用另一台WIN2000登录,还是没能同步。
不过,我装的是CentOS,我没有/etc/X11/XF86Config这个文件,我改的是/etc/X11/xorg.conf,文件内容和/etc/X11/XF86Config是一样的。 |
|