在win裡,電腦a用vnc連上遠端的win(電腦b),
在電腦a看到的桌面與遠端電腦b的桌面是同一個。
可是如果我用電腦a連到電腦c(linux),我會看到的是一個新的桌面而不是電腦c目前正在用的桌面。
我要怎麼設定才可以,讓電腦a用vnc連過去看到的桌面,就是站在電腦c前面看到的桌面呢?
還是說,我要用另一個軟體才能做到?
電腦c的桌面軟體是icewm.
謝謝大家
用vnc從win連到linux,如何才可以看到遠端linux??
Moderator: Forums Team
-
betaparticle
- Posts: 312
- Joined: Thu Jan 01, 2004 12:46 pm
用vnc從win連到linux,如何才可以看到遠端linux??
失去網路的電腦==折斷翅膀的天使。
太難的我不會,不要問我。
太難的我不會,不要問我。
-
betaparticle
- Posts: 312
- Joined: Thu Jan 01, 2004 12:46 pm
ok,我現在找到了方法。
首先,先找出哪一個vnc在安裝的時候,會有vnc.so的。
在gentoo裡,有一個 xf4vnc
所以就先emerge xf4vnc。
在 http://xf4vnc.sourceforge.net/doc.html 有詳細說明。
但是,看完之後有沒有一片霧沙沙的感覺?
所以,最簡單快速的設定,就是
一、把 Load "vnc" 加到 Module 這個Section 裡。
二、設定vnc的密碼,利用vncpasswd,密碼會放進以下這個檔/root/.vnc/passwd
三、把 Option "rfbauth" "/root/.vnc/passwd" 加到 Device 這個 Section 裡
四、把 Option "usevnc" 加到 Device 這個 Section 裡
經過上面四個動作之後,就有一個設定了密碼的共同桌面了。
我在win底下,使用tightvnc連進去動動滑鼠,被連上的電腦,滑鼠遊標也會跟著動。但是 keyboard 的動作還無法正常。
所以請跟著下列步驟:
一、將下列敘述加到 ServerLayout 這個 Section 裡
InputDevice "vncMouse" "ExtraPointer"
InputDevice "vncKeyboard" "ExtraKeyboard"
二、將下列敘述加進設定檔中,我是就放在正常鍵盤滑鼠附近。重起X之後,再連進來就可以控制鍵盤了。
Section "InputDevice"
# vncKeyboard: keyboard actions from vnc
Identifier "vncKeyboard"
Driver "rfbkeyb"
EndSection
Section "InputDevice"
# vncMouse: mouse actions from vnc
Identifier "vncMouse"
Driver "rfbmouse"
EndSection
實在是太簡單了。難怪我google了好久,都沒有人介紹。
原來只有我不會。
至於其他的設定,我再多試試之後回報給大家,如果大家有需要的話。
首先,先找出哪一個vnc在安裝的時候,會有vnc.so的。
在gentoo裡,有一個 xf4vnc
所以就先emerge xf4vnc。
在 http://xf4vnc.sourceforge.net/doc.html 有詳細說明。
但是,看完之後有沒有一片霧沙沙的感覺?
所以,最簡單快速的設定,就是
一、把 Load "vnc" 加到 Module 這個Section 裡。
Code: Select all
Load "type1"
Load "xtt"
Load "vnc"
EndSection三、把 Option "rfbauth" "/root/.vnc/passwd" 加到 Device 這個 Section 裡
四、把 Option "usevnc" 加到 Device 這個 Section 裡
Code: Select all
Section "Device"
Identifier "videocard"
Driver "ati"
#Driver "fbdev"
VendorName "All"
BoardName "All"
Option "usevnc"
Option "rfbauth" "/root/.vnc/passwd"
EndSection
我在win底下,使用tightvnc連進去動動滑鼠,被連上的電腦,滑鼠遊標也會跟著動。但是 keyboard 的動作還無法正常。
所以請跟著下列步驟:
一、將下列敘述加到 ServerLayout 這個 Section 裡
InputDevice "vncMouse" "ExtraPointer"
InputDevice "vncKeyboard" "ExtraKeyboard"
Code: Select all
Section "ServerLayout"
# The Identifier line must be present
Identifier "Simple Layout"
.....恕刪......
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
# for vnc
InputDevice "vncMouse" "ExtraPointer"
InputDevice "vncKeyboard" "ExtraKeyboard"
.......恕刪.....
EndSectionSection "InputDevice"
# vncKeyboard: keyboard actions from vnc
Identifier "vncKeyboard"
Driver "rfbkeyb"
EndSection
Section "InputDevice"
# vncMouse: mouse actions from vnc
Identifier "vncMouse"
Driver "rfbmouse"
EndSection
Code: Select all
# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
# vncKeyboard: keyboard actions from vnc
Identifier "vncKeyboard"
Driver "rfbkeyb"
EndSection
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# vncMouse: mouse actions from vnc
Identifier "vncMouse"
Driver "rfbmouse"
EndSection
原來只有我不會。
至於其他的設定,我再多試試之後回報給大家,如果大家有需要的話。
Last edited by betaparticle on Sun Jul 25, 2004 1:16 pm, edited 3 times in total.
失去網路的電腦==折斷翅膀的天使。
太難的我不會,不要問我。
太難的我不會,不要問我。