Categories: Ubuntu

Linux下好用的遠端桌面連線程式:rdesktop。

最近又想念起了Linux打指令的快感(?),這次完完全全的把小筆電改成了Linux的環境,不過桌電因為資料龐大加上遊戲效能的關係,所以還是維持在Windows的狀態。

現在問題來了,因為在學校做研究或者是一些額外的需求,偶爾會用筆電遠端回桌電。以前是Windows的時候還好,但現在是Linux,總不能叫我SSH吧…雖然有考慮過另一套,但總覺得還是不很好用,後來讓我找到了rdesktop這個好用的軟體。

接下來我將以Ubuntu為例,教各位如何安裝與使用這個好用的遠端桌面連線程式!

安裝

sudo apt-get install rdesktop</pre> 

連至遠端

rdesktop [IP]

進階利用

這個遠端桌面程式功能很強大,擁有很多選項及設定可以使用,以下是這個程式可用的參數說明,這邊我只翻譯幾個常用的。

Usage: rdesktop [options] server[:port]
   -u: 使用者名稱
   -d: domain
   -s: shell
   -c: working directory
   -p: 密碼 (- to prompt)
   -n: client hostname
   -k: keyboard layout on server (en-us, de, sv, etc.)
   -g: 視窗大小 (寬x高)
   -f: 全螢幕模式
   -b: force bitmap updates
   -L: local codepage
   -A: enable SeamlessRDP mode
   -B: use BackingStore of X-server (if available)
   -e: disable encryption (French TS)
   -E: disable encryption from client to server
   -m: do not send motion events
   -C: use private colour map
   -D: hide window manager decorations
   -K: keep window manager key bindings
   -S: caption button size (single application mode)
   -T: window title
   -N: enable numlock syncronization
   -X: embed into another window with a given id.
   -a: connection colour depth
   -z: enable rdp compression
   -x: RDP5 experience (m[odem 28.8], b[roadband], l[an] or hex nr.)
   -P: use persistent bitmap caching
   -r: enable specified device redirection (this flag can be repeated)
         '-r comport:COM1=/dev/ttyS0': enable serial redirection of /dev/ttyS0 to COM1
             or      COM1=/dev/ttyS0,COM2=/dev/ttyS1
         '-r disk:floppy=/mnt/floppy': enable redirection of /mnt/floppy to 'floppy' share
             or   'floppy=/mnt/floppy,cdrom=/mnt/cdrom'
         '-r clientname=&lt;client name&gt;': Set the client name displayed
             for redirected disks
         '-r lptport:LPT1=/dev/lp0': enable parallel redirection of /dev/lp0 to LPT1
             or      LPT1=/dev/lp0,LPT2=/dev/lp1
         '-r printer:mydeskjet': enable printer redirection
             or      mydeskjet="HP LaserJet IIIP" to enter server driver as well
         '-r sound:[local[:driver[:device]]|off|remote]': enable sound redirection
                     remote would leave sound on server
                     available drivers for 'local':
                     alsa:  ALSA output driver, default device: default
         '-r clipboard:[off|PRIMARYCLIPBOARD|CLIPBOARD]': enable clipboard
                      redirection.
                      'PRIMARYCLIPBOARD' looks at both PRIMARY and CLIPBOARD
                      when sending data to server.
                      'CLIPBOARD' looks at only CLIPBOARD.
   -0: attach to console
   -4: use RDP version 4
   -5: use RDP version 5 (default)

不知道你有沒有發現,他居然可以重定向遠端的特定功能(-r)到自己在用的這台電腦呢!雖然我自己是沒有用過就是了…有機會再來嘗試看看。

duye.chen

Recent Posts

[教學] 打造你的 NFT 智能合約 – ERC721A

GM!前些日子在幣圈亂玩,一路...

2 年 ago

JavaScript – Singleton 設計模式

前言 在設計程式時,我們有時會...

3 年 ago

PlaidML 讓你的 Mac 也能加速 Tensorflow 機器學習!

相信很多使用 Mac 或者手上...

3 年 ago

RESTful API 測試很煩,只好動手寫屬於自己的測試了

寫在最前面 嗨,大家好久不見!...

3 年 ago

Node.js 與 Socket.io – 即時聊天室實作:資料庫

經過前兩篇(一、二)文章,我們...

6 年 ago