rdesktop www.520hx.com.cn:8080 -u administrator -p $password -r clipboard:PRIMARYCLIPBOARD -f 全屏 -r 粘贴板

rdesktop: Connect to Windows 7 and Vista with ClearType font smoothing enabled Posted on 2008/03/10 by Andre Beckedorf

So Windows Vista finally allows to enable ClearType font smoothing for Remote Desktop / Terminal Services sessions. Update: Windows XP SP3 does too! If you try to connect to a machine running Windows XP SP 3 or later using rdesktop, you won’t get smoothed font typing since at the time of this writing rdesktop does not officially offer an option to control this feature. However, here is a workaround:

rdesktop allows to specify the RDP5 experience via the -x experience switch. One can either define one of three default experiences (modem, broadband, lan) or one can specify a raw hex value that is send to the server.

NOTE: You can skip over this rather technical part, if you’re not interested in the details. You’ll find the workaround below.

This hex value is actually a combination of defined bit flags. After some tinkering I found that the hex value 0x80 will enable font smoothing for the connection. The file constants.h of the rdesktop sources contains these flags:

    #define RDP5_DISABLE_NOTHING    0x00  
    #define RDP5_NO_WALLPAPER   0x01  
    #define RDP5_NO_FULLWINDOWDRAG  0x02  
    #define RDP5_NO_MENUANIMATIONS  0x04  
    #define RDP5_NO_THEMING     0x08  
    #define RDP5_NO_CURSOR_SHADOW   0x20  
    #define RDP5_NO_CURSORSETTINGS  0x40    /* disables cursor blinking */

So, naturally an additional flag constant can be defined like this:

    #define RDP5_ENABLE_FONT_SMOOTHING 0x80

The file rdesktop.c would have to be extended preferably with an additional argument that controls the font smoothing. If you want to use font smoothing with rdesktop now you have to combine the flags (bitwise OR, addition will do too) and specify the result via the -x switch.

Here is the workaround for the three defaults mentioned above:

rdesktop -x 0x8F mywinserver   # equals the modem default + font smoothing
rdesktop -x 0x81 mywinserver   # equals the broadband default + font smoothing
rdesktop -x 0x80 mywinserver   # equals the LAN default + font smoothing

seamlessrdp

rdesktop -A "c:\seamlessrdp\seamlessrdpshell.exe C:\Program Files\Microsoft Office\Office11\winword.exe" -a 24 -x l 192.168.1.4 -u wing -p password

rdesktop怎么使用吧,开个终端吧

main rdesktop   //看一下帮助信息吧
rdesktop 192.168.1.1 //打开了一个8位色彩的,
rdesktop -a 16 192.168.1.1 //这个是16位色彩的了,看起来好多了
rdesktop -u administrator -p ****** -a 16 192.168.1.1 //都直接登陆了,呵,还差点什么呢
还有就是 -f 全屏操作,-g 指定使用屏幕大小 -g 800*600+0+0 这个+0啊就是,就是你
这个窗口的在你Linux上出现的位置,
其它没什么了吧!加上-r sound:local可以把声音也搞过来了
$rdesktop -u administrator -p ****** -a 16 -r sound:local 192.168.1.1
其它吧,-r 的作用挺多的可以重定向许多东西
-r comport:COM1=/dev/ttyS0    // 将串口 /dev/ttyS0 重定向为 COM1
-r comport:COM1=/dev/ttyS0,COM2=/dev/ttyS1    // 多个串口重定向
-r disk:floppy=/mnt/floppy    // 将 /mnt/floppy 重定向为远程共享磁盘 'floppy'
-r disk:floppy=/mnt/floppy,cdrom=/mnt/cdrom,root=/,c=/mnt/c    // 多个磁盘重定向
-r clientname=<client name>    // 为重定向的磁盘设置显示的客户端名称
-r lptport:LPT1=/dev/lp0    // 将并口 /dev/lp0 重定向为 LPT1
-r lptport:LPT1=/dev/lp0,LPT2=/dev/lp1    // 多个并口重定向
-r printer:mydeskjet    // 打印机重定向
-r printer:mydeskjet="HP LaserJet IIIP"    // 打印机重定向
-r sound:[local|off|remote]    // 声音重定向
rdesktop是linux下一个好用的用来连接Windows远程桌面(当然不仅仅在于此,只要是基于RDP协议的好像都行吧),传说中的3389嘛。
不过他是一个基于命令行的,对某些人来说可能有一些困难,这里就集合了一些很不错的命令,共享一下。
最简单的:
rdesktop ip
这个最实用,如果其他的你还没有掌握那就用这个吧,这个都是默认参数。
如果你想全屏:
rdesktop -f ip
Ctrl + Alt + Enter 开关全屏模式
这样已经很不错了,可以满足很多人了。这里一个最重要的东西,退出全屏,是什么呢?(很多初学者都对这个进去就不能会Linux的家伙很郁闷,)是Ctrl+Alt+Enter。
rdesktop -f sound:local ip
这个是把远程主机的声音带到本机(用过windows远程桌面的都知道)
rdesktop -f -r clipboard:PRIMARYCLIPBOARD sound:local ip
-r clipboard:PRIMARYCLIPBOARD是允许在远程主机和本机之间共享剪切板,就是可以复制粘贴。
rdesktop -f -r disk:MyDisk=/home/comet/temp ip
-r disk:MyDisk=/home/comet/temp就是把你的Linux下某个文件夹挂载到远程主机上

results matching ""

    No results matching ""