在遠端打firefox卻打開本機端的firefox - Linux

By Ula
at 2011-10-13T01:48
at 2011-10-13T01:48
Table of Contents
第一次碰到這個狀況 百思不得其解...想請問有沒有人知道原因
詳述如下
<電腦A: 遠端SSH伺服器>
Ubuntu 10.04
firefox 3.6.17
<電腦B: 遠端SSH伺服器>
Ubuntu 8.04
firefox 3.6.17
<電腦C: 遠端SSH伺服器>
Debian wheezy/sid
firefox 3.5.19 => 實際上是Iceweasel
<電腦D: 本機端(我的筆電)>
Xubuntu 11.04
firefox 5.0
----------------------- 開始(時間軸由上往下) ---------------------------
<指令> <說明>
user@D:~$ firefox & => 恩恩, 本機跳出firefox 5.0, 很正常
user@D:~$ ssh -X A => SSH到電腦A, 順便打開X11 forwarding
Welcome to A! => A的motd
user@A:~$ firefox & => 預期A上的firefox 3.6.17會被forward到
D的X server並顯示在D中, 然而卻發現
跳出來的firefox竟然是D本身的firefox 5.0
user@A:~$ gvim & => 一開始我想說該不會在A執行的X Client apps
都變成執行D的X apps, 於是用gvim做測試,
發現結果非常正常, 打開的是A上的gvim沒錯
(而不是D的gvim)
user@A:~$ ssh -X B => 從A連到B, 同樣地也打開X11 forwarding
Welcome to B! => B的motd
user@B:~$ firefox & => 猜猜看出現在D畫面的是B的firefox 3.6.17
還是D的firefox 5.0? 答案是後者........
user@B:~$ exit
Connection to B closed.
user@D:~$ ssh -X C => 到不同的distro做測試, 看會不會產生同樣的bug
(想開遠端的firefox, 結果打開的竟然是本地端
的firefox)
Welcome to C! => C的motd
user@C:~$ firefox & => 疑, 結果非常正常, 在D出現的firefox是C的firefox沒錯
----------------------- 第二次測試(時間軸由上往下) ---------------------------
<指令> <說明>
user@D:~$ ssh -X A => 這次在沒開D的firefox 5.0的情況下SSH到A
Welcome to A! => A的motd
user@A:~$ firefox & => 在D中出現的firefox是A的firefox 3.6.17
user@A:~$ ssh -X B => 從A SSH到B
Welcome to B! => B的motd
user@B:~$ firefox & => 在D中出現的firefox是B的firefox 3.6.17
user@B:~$ ssh -X C => 從B中SSH到C
Welcome to C! => C的motd
user@C:~$ firefox & => 在D中現的firefox是C的firefox(Iceweasel)3.5.19
此時, 在D中另開一個terminal:
user@D:~$ firefox & => 出現的是D的firefox 5.0, 很正常
然後把這個firefox關掉, 繼續剛剛的實驗
user@C:~$ exit => 把原先到C的connection關掉
Connection to C closed.
user@B:~$
此時, 在D中另開一個terminal:
user@D:~$ firefox & => 出現的是 B 的firefox 3.6.17, 很不正常= =
然後把這個firefox關掉, 繼續剛剛的實驗
user@B:~$ exit => 把原先到B的connection關掉
Connection to B closed.
user@A:~$
此時, 在D中另開一個terminal:
user@D:~$ firefox & => 出現的是 A 的firefox 3.6.17, 很不正常= =
然後把這個firefox關掉, 繼續剛剛的實驗
user@A:~$ exit => 把原先到A的connection關掉
Connection to A closed.
user@D:~$
此時, 在D中另開一個terminal:
user@D:~$ firefox & => 出現的是D的firefox 5.0, 很正常, 實驗結束
黃色部份是我覺得很奇怪的地方, 請問有人能告訴我原因嗎?
--
※ 發信站 :批踢踢實業坊(ptt.cc)
◆ From: 140.112.31.155
[補充]
已解決: http://unix.stackexchange.com/questions/2794/starting-firefox-on-a-remote-host-over-ssh-opens-a-new-window-locally-what-is
縮: http://tinyurl.com/3d4lqwk
※ 編輯: Holocaust123 來自: 140.112.31.155 (10/13 05:05)
詳述如下
<電腦A: 遠端SSH伺服器>
Ubuntu 10.04
firefox 3.6.17
<電腦B: 遠端SSH伺服器>
Ubuntu 8.04
firefox 3.6.17
<電腦C: 遠端SSH伺服器>
Debian wheezy/sid
firefox 3.5.19 => 實際上是Iceweasel
<電腦D: 本機端(我的筆電)>
Xubuntu 11.04
firefox 5.0
----------------------- 開始(時間軸由上往下) ---------------------------
<指令> <說明>
user@D:~$ firefox & => 恩恩, 本機跳出firefox 5.0, 很正常
user@D:~$ ssh -X A => SSH到電腦A, 順便打開X11 forwarding
Welcome to A! => A的motd
user@A:~$ firefox & => 預期A上的firefox 3.6.17會被forward到
D的X server並顯示在D中, 然而卻發現
跳出來的firefox竟然是D本身的firefox 5.0
user@A:~$ gvim & => 一開始我想說該不會在A執行的X Client apps
都變成執行D的X apps, 於是用gvim做測試,
發現結果非常正常, 打開的是A上的gvim沒錯
(而不是D的gvim)
user@A:~$ ssh -X B => 從A連到B, 同樣地也打開X11 forwarding
Welcome to B! => B的motd
user@B:~$ firefox & => 猜猜看出現在D畫面的是B的firefox 3.6.17
還是D的firefox 5.0? 答案是後者........
user@B:~$ exit
Connection to B closed.
user@D:~$ ssh -X C => 到不同的distro做測試, 看會不會產生同樣的bug
(想開遠端的firefox, 結果打開的竟然是本地端
的firefox)
Welcome to C! => C的motd
user@C:~$ firefox & => 疑, 結果非常正常, 在D出現的firefox是C的firefox沒錯
----------------------- 第二次測試(時間軸由上往下) ---------------------------
<指令> <說明>
user@D:~$ ssh -X A => 這次在沒開D的firefox 5.0的情況下SSH到A
Welcome to A! => A的motd
user@A:~$ firefox & => 在D中出現的firefox是A的firefox 3.6.17
user@A:~$ ssh -X B => 從A SSH到B
Welcome to B! => B的motd
user@B:~$ firefox & => 在D中出現的firefox是B的firefox 3.6.17
user@B:~$ ssh -X C => 從B中SSH到C
Welcome to C! => C的motd
user@C:~$ firefox & => 在D中現的firefox是C的firefox(Iceweasel)3.5.19
此時, 在D中另開一個terminal:
user@D:~$ firefox & => 出現的是D的firefox 5.0, 很正常
然後把這個firefox關掉, 繼續剛剛的實驗
user@C:~$ exit => 把原先到C的connection關掉
Connection to C closed.
user@B:~$
此時, 在D中另開一個terminal:
user@D:~$ firefox & => 出現的是 B 的firefox 3.6.17, 很不正常= =
然後把這個firefox關掉, 繼續剛剛的實驗
user@B:~$ exit => 把原先到B的connection關掉
Connection to B closed.
user@A:~$
此時, 在D中另開一個terminal:
user@D:~$ firefox & => 出現的是 A 的firefox 3.6.17, 很不正常= =
然後把這個firefox關掉, 繼續剛剛的實驗
user@A:~$ exit => 把原先到A的connection關掉
Connection to A closed.
user@D:~$
此時, 在D中另開一個terminal:
user@D:~$ firefox & => 出現的是D的firefox 5.0, 很正常, 實驗結束
黃色部份是我覺得很奇怪的地方, 請問有人能告訴我原因嗎?
--
※ 發信站 :批踢踢實業坊(ptt.cc)
◆ From: 140.112.31.155
推 ARD33:這麼晚了 不睡嗎 10/13 01:54
-- [補充]
已解決: http://unix.stackexchange.com/questions/2794/starting-firefox-on-a-remote-host-over-ssh-opens-a-new-window-locally-what-is
縮: http://tinyurl.com/3d4lqwk
※ 編輯: Holocaust123 來自: 140.112.31.155 (10/13 05:05)
Tags:
Linux
All Comments

By Ula
at 2011-10-16T13:13
at 2011-10-16T13:13
Related Posts
Debian跟BSD上類似killall5的指令?

By Agatha
at 2011-10-12T05:20
at 2011-10-12T05:20
詭異的問題+雜問

By Michael
at 2011-10-11T23:34
at 2011-10-11T23:34
Debian和OpenSUSE的抉擇問題

By Genevieve
at 2011-10-11T21:39
at 2011-10-11T21:39
glib版本問題

By Kelly
at 2011-10-11T20:57
at 2011-10-11T20:57
不是 root 要如何 mount ISO 檔?

By Ida
at 2011-10-11T19:59
at 2011-10-11T19:59