close

以下節錄自鳥哥的linux:
http://linux.vbird.org/linux_server/0310telnetssh.php#vnc

如果您想要與 Linux 的 tty7 同步的話,可以利用 VNC 釋出的給 X Server 使用的模組
來加以設定即可。 如果您是 FC4 這個 distribution 的話,恭喜您,系統預設已經將
 vnc.so 這個模組釋出了,您可以查閱 /usr/X11R6/lib/modules/extensions/ 這個檔
案,即可知道有沒有 vnc.so 這個模組。如果您沒有這個模組的話, 請參考
 
http://phorum.study-area.org/viewtopic.php?t=25713 這一篇文章的說明, 依序來
設定吧!

==================================================================
1. 若在/usr/X11R6/lib/modules/extensions/底下無vnc.so檔, 就下載最新vnc
   的tar ball, 解壓縮後將裡面的vnc.so複製到該目錄.

2. 修改/etc/X11/xorg.conf 如下

    [root@linux ~]# vim /etc/X11/xorg.conf (或 XF86Config)
    # 在 Module 這個 section 當中加入 vnc 這個模組
    Section "Module"
            Load  "vnc"
    EndSection

    # 在 Screen 這個 section 當中加入Option...

    Section "Screen"
            Identifier "Screen0"
            Device     "Videocard0"
            Monitor    "Monitor0"
            Option     "passwordFile"  "/root/.vnc/passwd"
            DefaultDepth     16
        ......
    EndSection

    # 以上設定是假設您的 vnc 密碼檔案放置在 /root/.vnc/passwd 裡頭

此時給他重新啟動一下 kdm 或者是重新進入 run level 5 的時候,您就會發現多了一個
 port 5900 呢, 嘿嘿,準備同步登入吧 ^_^

--
設好後好像要重新開機或重新登入讓server X on port 5900 開啟 (一般都是Xvnc server)
下指令 netstat -ntlup | grep X 可以知道有沒有開啟 X server
Fedora 9的Program name是Xorg 跑在port 5900

arrow
arrow
    全站熱搜

    vincentHsu 發表在 痞客邦 留言(0) 人氣()