[問題] 在遠端打firefox卻打開本機端的firefox

看板Linux作者 (一步一腳印)時間12年前 (2011/10/13 01:48), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
第一次碰到這個狀況 百思不得其解...想請問有沒有人知道原因 詳述如下 <電腦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

10/13 01:54, , 1F
這麼晚了 不睡嗎
10/13 01:54, 1F
文章代碼(AID): #1EbTBLC8 (Linux)