您的位置:首页 > 运维架构

rdesktop使用参数详解(翻译)及举例

2016-04-20 23:32 405 查看
可以拉到最后看常用功能总结

先看看原参数

root@wangsansan:~# rdesktop rdesktop: A Remote Desktop Protocol

client. Version 1.8.2. Copyright (C) 1999-2011 Matthew Chapman et al.

See http://www.rdesktop.org/ for more information.

Usage: rdesktop [options] server[:port] -u: user name -d: domain

-s: shell / seamless application to start remotly -c: working directory -p: password (- to prompt) -n: client hostname -k:

keyboard layout on server (en-us, de, sv, etc.) -g: desktop

geometry (WxH) -i: enables smartcard authentication, password is

used as pin -f: full-screen mode -b: force bitmap updates -L:

local codepage -A: path to SeamlessRDP shell, this enables

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 -t: disable use of remote ctrl -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

‘-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.

‘-r scard[:”Scard Name”=”Alias Name[;Vendor Name]”[,…]]

example: -r scard:”eToken PRO 00 00”=”AKS ifdh 0”

“eToken PRO 00 00” -> Device in Linux/Unix enviroment

“AKS ifdh 0” -> Device shown in Windows enviroment

example: -r scard:”eToken PRO 00 00”=”AKS ifdh 0;AKS”

“eToken PRO 00 00” -> Device in Linux/Unix enviroment

“AKS ifdh 0” -> Device shown in Windows enviroment

“AKS” -> Device vendor name -0: attach to console -4: use RDP version 4 -5: use RDP version 5 (default) -o: name=value: Adds an additional option to rdesktop.

sc-csp-name Specifies the Crypto Service Provider name which

is used to authenticate the user by smartcard

sc-container-name Specifies the container name, this is usally the username

sc-reader-name Smartcard reader name to use

sc-card-name Specifies the card name of the smartcard to use

解释(翻译):

root@wangsansan:~# rdesktop rdesktop: A Remote Desktop Protocol

client. Version 1.8.2. Copyright (C) 1999-2011 Matthew Chapman et al.

See http://www.rdesktop.org/ for more information.

Usage: rdesktop [options] server[:port] -u: user name

-d: 域

-s: shell命令 (登录运行命令之后就退出)

-c: 工作目录(应该是-s的子命令),-s shell命令的一个参数

-p: password (- to prompt)

-n: 客户端(本地)主机名,默认为本地主机名

-k: 服务器上的键盘布局选择 (en-us, de, sv, etc.)

-g: 桌面分辨率(宽x高)

-i: enables smartcard authentication, password is used as pin

-f: 全屏模式(Ctrl + Alt + Enter 退出全屏模式)

-b: 强制位图刷新(没发现什么用)

-L: 本地编码

-A: 无缝虚拟应用程序到本地

-B: use BackingStore of X-server (if available)

-e: disable encryption (French TS) 禁用加密

-E: disable encryption from client to server 从客户端到服务器,禁用加密。

-m: 不允许拖动(不传递鼠标的拖动事件)

-C: use private colour map

-D: 不显示窗口标题栏(只有远程桌面窗口,没有关闭和最小化按钮)

-K: 窗口切换快捷热键(Alt+Tab)不传递到远程桌面

-S: 标题按钮的大小,个人觉得这个参数很无用,或者我还没弄明白到底什么意思。

-T: 窗口标题

-t: disable use of remote ctrl

-N: 数字键盘同步

-X: 给定另一个窗口的标识,嵌入到另一个窗口

-a: connection colour depth 选择颜色深度

-z: 启用rdp压缩

-x: RDP5 experience (m[odem 28.8], b[roadband], l[an] or hex nr.)

-P: 持久位图缓存

-r: 设备重定向(参数可以重复使用)注:如windows下的mstsc开启串行口、本地磁盘、打印机等

‘-r comport:COM1=/dev/ttyS0’: enable serial redirection of /dev/ttyS0 to COM1 把Linux上的ttyS0映射到远程windows的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’ 把本地的/mnt/floppy文件夹挂载到远程连接的floppy,/mnt/cdrom文件夹挂在到远程桌面的cdrom

‘-r clientname=’ 设置本地设备的客户端名称

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]’: 远程计算机的声音带到本地

available drivers for ‘local’:

alsa: ALSA output driver, default device: default

‘-r clipboard:[off|PRIMARYCLIPBOARD|CLIPBOARD]’: 剪贴板的配置

redirection.

‘PRIMARYCLIPBOARD’ 在本地和远程桌面共享剪贴板

when sending data to server.

‘CLIPBOARD’ looks at only CLIPBOARD.

以下的不是很常用

‘-r scard[:”Scard Name”=”Alias Name[;Vendor Name]”[,…]]

example: -r scard:”eToken PRO 00 00”=”AKS ifdh 0”

“eToken PRO 00 00” -> Device in Linux/Unix enviroment

“AKS ifdh 0” -> Device shown in Windows enviroment

example: -r scard:”eToken PRO 00 00”=”AKS ifdh 0;AKS”

“eToken PRO 00 00” -> Device in Linux/Unix enviroment

“AKS ifdh 0” -> Device shown in Windows enviroment

“AKS” -> Device vendor name

-0: attach to console 连接到控制台

-4: use RDP version 4 使用RDP 4的版本

-5: use RDP version 5 (default) 默认使用RDP 5的版本

-o: name=value: Adds an additional option to rdesktop.

sc-csp-name Specifies the Crypto Service Provider name which

is used to authenticate the user by smartcard

sc-container-name Specifies the container name, this is usally the username

sc-reader-name Smartcard reader name to use

sc-card-name Specifies the card name of the smartcard to use

常用功能小结及部分参数用法举例:

-g: 桌面分辨率(宽x高)

-f: 全屏模式(Ctrl + Alt + Enter 退出全屏模式)

-D: 不显示窗口标题栏(只有远程桌面窗口,没有关闭和最小化按钮)

-T: 窗口标题

-r: 设备重定向

-A: 无缝虚拟应用程序到本地

用法实例:

桌面分辨率(1024x768)

root@wangsansan:~# rdesktop 192.168.1.3 -f 1024x768


远程挂在本地文件夹(本地/home和/root文件夹挂在到远程服务器上分别命名为h和r)

root@wangsansan:~# redsktop 192.168.1.3 -r disk:h=/home,r=/root


共享剪贴板

root@wangsansan:~# redsktop 192.168.1.3 -r clipboard:PRIMARYCLIPBOARD


关于“-A: 无缝虚拟应用程序到本地”这个参数的用法,可以参考这个链接,这个功能很有趣。

各种虚拟机的无缝虚拟模式-seamless
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: