在Windows上遠程運行Linux程式

來源:互聯網
上載者:User

標籤:io   os   ar   for   sp   on   linux   伺服器   應用   

1、在Windows主機上安裝X Server軟體,如Cygwin帶的XWin Server

2、在Windows主機上啟動X伺服器,並將Linux主機設為允許訪問該Windows主機上的X伺服器。

#xhost +[IP of Linux host]

或

#xhost + //允許所有主機訪問

3、在Windows主機上用SecureCRT遠程登入Linux主機

下面的步驟有兩種方法可實現:

一、設定DISPLAY環境變數

4、設定DISPLAY環境變數,即設定X Server的地址和顯示介面號

#export DISPLAY=[IP of Windows host]:0.0

5、在SecureCRT中用SSH協議登入遠程Linux主機,並運行遠程Linux主機中的程式

#ibus-daemon & //啟動IME

#gedit &

#mplayer 1.rmvb -framedrop //播放影片,但無聲音,聲音在本地播放,XWindow不支援聲音的網路透明性,未解決。

二、利用SecureCRT的X11轉寄功能轉寄(forward)遠程X客戶請求

4、設定SecureCRT的X11轉寄功能

開啟SecureCRT軟體,在全域會話(global session)中設定X11轉寄功能,然後重啟SecureCRT

上述設定實現的功能和Linux系統上的下述命令等效,即利用ssh伺服器和用戶端-轉寄-X客戶和X伺服器之間的通訊

#ssh [email protected]_host -o ForwardX11=yes

5、在SecureCRT中用SSH協議登入遠程Linux主機,並運行遠程Linux主機中的程式

(略)

6、修改SecureCRT中全域會話中BackSpace鍵的綁定

Terminal-》Emulation-》Mapped Keys:BackSpace sends delete

注意:

1、應將LinuxIME的啟用快速鍵設為和Windows不同,否則不能在Linux應用程式中啟用ibusIME。

在Windows上遠程運行Linux程式

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.