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

Ula avatar
By Ula
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
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

Ula avatar
By Ula
at 2011-10-16T13:13
這麼晚了 不睡嗎

Debian跟BSD上類似killall5的指令?

Agatha avatar
By Agatha
at 2011-10-12T05:20
我偶爾會在SSH遠端伺服器用到killall5這個指令 (killall5的man page摘要: killall5 is the SystemV killall command. It sends a signal to all processes except kernel threads and th ...

詭異的問題+雜問

Michael avatar
By Michael
at 2011-10-11T23:34
各位好。 這是接續之前的內容(用標題找原文吧) 斷斷續續測試了幾天,還是沒解決問題。 現在我採用vesa or nouveau的方案。(無xorg.conf,讓他自己load) 可是nouveau一直無法使用,xorg.log會有如下內容: [ 552.937] drmOpenDevice: node ...

Debian和OpenSUSE的抉擇問題

Genevieve avatar
By Genevieve
at 2011-10-11T21:39
由於經歷過網卡抓不到的問題,加上目前對Windows的依存度仍舊很高 這次再次試用,大概也只會裝在VirtualBox裡而已 言歸正傳, 上回兩種發行版都裝過一遍後,同樣都不能抓到Wi-fi訊號 所以應該不至於存在有哪個驅動程式比較完備的問題 比較有疑義的地方是, 即使OpenSUSE在安裝時 ...

glib版本問題

Kelly avatar
By Kelly
at 2011-10-11T20:57
我系統是ubuntu9.04 要編譯android, 但是會出現以下錯誤 `GLIBC_2.11and#39; not found 上網查了一下,應該是glib版本太舊造成的 找到的解決方法是ubuntu升級到10.04以上的版本 如果我不升級的話,是不是有方法能夠更新glib的版本呢? - ...

不是 root 要如何 mount ISO 檔?

Ida avatar
By Ida
at 2011-10-11T19:59
是不是一定要 root 才能 mount ISO 檔? 寫了一個 script 來 mount ISO, 然後將這個 script 的 owner 改成 root, 然後又 chmod u+s, 可是執行後還是無法 mount 成功, 一定要 sudo 才可以, 有什麼方法可以不用 root password ...