離開SSH但繼續執行X程式 - Linux

Table of Contents

user@local_host$ ssh -X remote_host

Welcome to remote_host!

user@remote_host$ xeyes &
[1] 311

...(假設)此時網路突然斷線...!!

Connection to remote_host closed. // local_host接收到的x client程式(xeyes)被關掉了
user@localhost$

問題一:
如何在關閉SSH session後不要關閉X client程式 而是讓他繼續執行?

問題二:
如果問題一是做不到的 改用vnc/xrdp能做到嗎
(也就是關閉vnc/xrdp連線後 在遠端桌面開啟的程式依然繼續執行)

問題三:
根據鳥哥的說法(http://linux.vbird.org/linux_server/0310telnetssh.php
vnc的資料傳輸過程沒有加密 xrdp則有加密
但其實xrdp是以加密的過程運作vnc
那為何常常聽到人家說vnc比較慢 xrdp比較快呢?

--

All Comments

Edward Lewis avatarEdward Lewis2011-08-06
使用screen,將程式跑在screen上?
Bennie avatarBennie2011-08-09
screen突然斷線的話程式還是會執行
Mason avatarMason2011-08-11
sshd關掉時,xserver就停了,很多gui程式就會社動關掉
Tristan Cohan avatarTristan Cohan2011-08-13
1:google xpra, 2:vnc應該可以,我沒有用過,可能要設定
Eden avatarEden2011-08-18
我的第一想法是:試著在遠端產生backround x server
Vanessa avatarVanessa2011-08-21
x client 連該 x server,然後用類似 vnc或browser方式監看
最基本用 console 的 x server 是應該可行,console外的
Lydia avatarLydia2011-08-24
background x server 我就不確定是否可行了.
Daph Bay avatarDaph Bay2011-08-25
xpra => attachable X server
Frederic avatarFrederic2011-08-26
xpra 大概不會有 stable 的一天,爛的要死
Olivia avatarOlivia2011-08-28
xvfb + vnc 比較可行吧
Bethany avatarBethany2011-08-28
我用ubuntu repo的,除了metakey lock和很少見的斷線,算是可用