rdesktop 的安裝使用

lnwxzyp發表於2011-07-19
      rdesktop是一款linux下訪問遠端桌面的一款遠端軟體,類似於windows下的mstsc,最近由於在fedora下安裝了win2k3的虛擬機器,想用遠端軟體來控制,但是居然發現本機上沒有裝,於是google搜尋,來到http://www.rdesktop.org/,下載了最新的rdesktop-1.7.0.tar.gz,下載下來進入下載目錄
# cd /oracle/home/Downloads/
# tar xvzf rdesktop-1.7.0.tar.gz
# cd rdesktop-1.7.0
檢視README檔案,這裡有詳細的安裝步驟,
Installation
------------
rdesktop uses a GNU-style. build procedure.  
Typically all that is necessaryto install rdesktop is the following::
% ./configure
% make
% make install
按照這個步驟,使用root許可權在rdesktop-1.7.0目錄下依次執行就可以了,前兩個命令生成的內容太多,不列舉了,最後一個make install
mkdir -p /usr/local/bin
/usr/bin/install -c rdesktop /usr/local/bin
strip /usr/local/bin/rdesktop
chmod 755 /usr/local/bin/rdesktop
mkdir -p /usr/local/share/rdesktop/keymaps/
cp keymaps/?? keymaps/??-?? /usr/local/share/rdesktop/keymaps/
cp keymaps/common /usr/local/share/rdesktop/keymaps/
cp keymaps/modifiers /usr/local/share/rdesktop/keymaps/
chmod 644 /usr/local/share/rdesktop/keymaps//*
mkdir -p /usr/local/share/man/man1
cp doc/rdesktop.1 /usr/local/share/man/man1
chmod 644 /usr/local/share/man/man1/rdesktop.1
可以看到make install所做的操作,其中cp keymaps/?? keymaps/??-?? /usr/local/share/rdesktop/keymaps/ 是使用萬用字元>將keymaps目錄下的符合的語言包之類的copy到相應目錄下。
     rdesktop的用法

Usage: rdesktop [options] server[:port]
   -u: user name   --使用者名稱
   -d: domain  --域
   -s: shell --
   -c: working directory
   -p: password (- to prompt)
   -n: client hostname
   -k: keyboard layout on server (en-us, de, sv, etc.)
   -g: desktop geometry (WxH)
   -f: full-screen mode
   -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=': 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
                     oss: OSS output driver, default device: /dev/dsp or $AUDIODEV
         '-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
看著有些複雜,其實常用的也不過兩三項而已
   -u: user name  --設定要登入的使用者
   -g: desktop geometry (WxH) --設定遠端桌面的解析度
   -f: full-screen mode  --全屏訪問模式

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12216142/viewspace-702539/,如需轉載,請註明出處,否則將追究法律責任。

相關文章