ssh 遠端跑X的效能問題 - Linux

Ophelia avatar
By Ophelia
at 2011-08-25T12:49

Table of Contents



我有一台很舊的筆電

大約是1999年的機子
Acer TravelMate 331T
CPU:Intel PII-333
RAM: top上顯示186868k total = 182MB?

經由有線網路連到區網裡的一台server上


筆電上安裝的是Fedora 12

用level 3開機

然後xinit -- :1 &

xterm出現後

ssh -Y [email protected]

然後在ssh裡面 metacity& 還gnome-panel&這樣


其實平常跑的速度還過得去

但是上某些網站

例如某字母拍賣、某pix布落格

就一整個超卡

幾乎是當掉一陣子才開始顯示

但把顯示圖片關掉就還好


我是用firefox XD

因為vimperator太好用了QQ


我有幾個問題

1. 我的筆電到底有哪些負擔?

我的筆電照理說是不是應該是個x server?

是不是應該只要 告訴server (x client) 我的滑鼠怎麼動

然後接收到圖形資訊 再畫到螢幕上就好了嗎?

cpu 運算 還有javascript 應該都是server在幫我算吧?

我的筆電的繪圖能力是唯一的瓶頸嗎?


我在開某字母拍賣網頁的同時 切到別的console看top

cpu 跟記憶體都沒跑滿耶


網路速度應該不會是問題

因為用比較新的電腦當client都很順

2. 我試過 xinit -- :1 -depth 8

理論而言 這樣應該要能減輕繪圖的負擔嗎?

我覺得好像沒什麼差別QQ

3. 還有什麼方法可以再讓我跑得順一點QQ



感謝~!

--
Tags: Linux

All Comments

Belly avatar
By Belly
at 2011-08-30T11:50
擋掉flash/動態gif圖看看.這對舊機器的xserver或許是負擔
Xanthe avatar
By Xanthe
at 2011-08-31T15:18
我沒想過gif耶XD 我把about:config裡的動畫選項關了
flash是之前就已經停用了 但進拍賣還是很慢QQ
Cara avatar
By Cara
at 2011-09-03T05:46
忘了說 除了網頁 pdf也沒有很順QQ
Doris avatar
By Doris
at 2011-09-08T05:37
改用VNC看看.
Edith avatar
By Edith
at 2011-09-12T14:42
網速夠嗎?
Olive avatar
By Olive
at 2011-09-14T08:01
我之前是連到server 然後在遠端跑vnc 很慘
看得到整個畫面在重畫
Elizabeth avatar
By Elizabeth
at 2011-09-15T18:35
網速應該夠 之前在試過在新電腦上跑遠端的3D跑得起來
Sierra Rose avatar
By Sierra Rose
at 2011-09-20T14:32
我剛剛的意思是 進ssh後 在ssh 裡執行Xvnc
也就是vnc client 跟server其實都在server上 應該吧@@
Skylar Davis avatar
By Skylar Davis
at 2011-09-23T09:38
我現在才發現問題,原po用ssh,這對老電腦是較重負擔.
Tristan Cohan avatar
By Tristan Cohan
at 2011-09-26T01:39
QQ 要用telnet嗎
Andy avatar
By Andy
at 2011-09-28T14:30
還是...xhost?
Agatha avatar
By Agatha
at 2011-09-29T21:44
export DISPLAY=<老筆電IP或hostname>:0 再執行 x client
William avatar
By William
at 2011-10-04T07:22
看看效率有沒有改善.若非LAN,要考量安全性.你的keystroke
都明碼送出到x client.
Skylar Davis avatar
By Skylar Davis
at 2011-10-05T20:54
對不起我沒有很明白 是在筆電console下打你的指令
然後執行x client的意思是...? telnet到server嗎?
Frederic avatar
By Frederic
at 2011-10-08T12:40
是在你真正執行x client那台,在執行前bash中下那個命令
Mary avatar
By Mary
at 2011-10-10T08:05
再在該bash中繼續執行 x client
忘了一點,x server這台要執行 xhost +
Victoria avatar
By Victoria
at 2011-10-12T20:03
好久(十多年)沒用這些指令,憑印象打的,若有誤請 man 一下
Annie avatar
By Annie
at 2011-10-16T10:37
x-client就是我說的server對嗎? 在server下命令
用ssh可以嗎@@ 還是telnet...應該不會要我親自去打吧XD
Cara avatar
By Cara
at 2011-10-20T08:38
用telnet連過去你所謂的server沒錯.親自打(或寫成script)
Regina avatar
By Regina
at 2011-10-21T08:23
http://linux.about.com/library/cmd/blcmdl_xhost.htm
像這篇這樣嗎
John avatar
By John
at 2011-10-25T21:06
大概看一下沒錯,不過它是 csh/tcsh 所以用 setenv
這也沒錯,當年真的SunOS流行時,是 csh/tcsh 為主
Ophelia avatar
By Ophelia
at 2011-10-30T02:13
用ssh下指令是不行的嗎 我以為打完後他們會自己走別的路...
Kelly avatar
By Kelly
at 2011-11-03T11:22
xhost是在你的舊筆電(x server)執行
Kristin avatar
By Kristin
at 2011-11-08T06:19
DISPLAY 環境變數有效範圍就僅在你下命令的shell,你若用
ssh連過去下命令,也必須要繼續用這個shell執行x client
Franklin avatar
By Franklin
at 2011-11-13T01:25
嗯嗯 我再試試看 感激不盡!
Hedda avatar
By Hedda
at 2011-11-13T12:52
哦,我搞懂你的意思,你ssh是只要下命令,那就可以
Hardy avatar
By Hardy
at 2011-11-15T20:24
ssh 只下命令可以,之後x client, x server會自己通訊
Ina avatar
By Ina
at 2011-11-20T14:31
coool!
Zenobia avatar
By Zenobia
at 2011-11-21T23:46
我現在是這樣作 1.level 3下xinit -- :0
Necoo avatar
By Necoo
at 2011-11-26T01:05
2. xterm 中xhost +SERVERIP;ssh id@SERVERIP
Iris avatar
By Iris
at 2011-11-29T16:18
3. ssh中metacity& gnome-panel 然後筆電關防火牆
好像有加快一點...但也只是隱隱約約XD 可能提昇2~4成吧
Kristin avatar
By Kristin
at 2011-11-30T04:47
2.跟3.中間少一個 export DISPLAY=MY_IP:0.0
Genevieve avatar
By Genevieve
at 2011-11-30T15:04
感覺上真的就是舊筆電處理 x protocol 以及畫面 rendering
確實有瓶頸拖慢throughput.
Eden avatar
By Eden
at 2011-12-02T19:34
看看舊筆電有沒有2D加速?另外關掉 javascript 看看.
Agnes avatar
By Agnes
at 2011-12-07T11:03
有些Javascript會導致畫面變動,引發x server/client的通訊
更新畫面.
Jack avatar
By Jack
at 2011-12-11T17:30
有可能XD感覺拍賣應該是用javascript一直換圖...
Caroline avatar
By Caroline
at 2011-12-14T01:24
感謝您!

NIS

Adele avatar
By Adele
at 2011-08-24T22:17
[rootatmomo02 ~]# yptest Test 1: domainname Configured domainname is and#34;momoand#34; Test 2: ypbind Canand#39;t communicate with ypbind [rootatmomo02 ~ ...

Bind 如何讓 abc.com.tw 自動連到 www.abc.com.tw ?

Irma avatar
By Irma
at 2011-08-24T19:27
請問一下 我想要讓使用者輸入 http://abc.com.tw 就會自動轉到 http://www.abc.com.tw 請問 bind 要怎麼設定? - ...

安裝舊版gnome

Regina avatar
By Regina
at 2011-08-24T18:50
我在debian lenny下 打算安裝gnome1.4版 可是在安裝libpaperg時 出現 symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference 推測是glibc的版本不符 ...

請問Ubuntu如何將/home掛載在NTFS下?

Barb Cronin avatar
By Barb Cronin
at 2011-08-24T16:06
因為想將Windows系統的Desktop、Document、Video等等資料夾與Ubuntu的共用, 但是在安裝時,將分割格式化為NTFS會無法選擇掛載點為/home, 只能掛載在/windows下, 請問該如何將/home掛載在NTFS格式的分割槽呢,謝謝! -- - ...

KDE then and now by Aaron Seigo

Zora avatar
By Zora
at 2011-08-24T12:28
※ 引述《kira925 (藍色飛舞之劍)》之銘言: : ※ 引述《fourdollars (四元)》之銘言: : : http://www.facebook.com/event.php?eid=102196043218788 : : 時間:8月23日 · 19:30 - 22:00 : : 地點:Mix C ...