Connect to the Windows desktop remotely using Rdesktop

Source: Internet
Author: User
Tags rdesktop

previously used is the KDE under the KRDC. The program's Grab Keys feature has a bugthat causes ALT + TAB to not be captured most of the time, so you can't use the keyboard to switch windows. However, its full-screen function is normal, in the case of multi-monitor, full screen is only valid on one screen. In the end, change back to rdesktop. The command is as follows:

Rdesktop-a 32-u user_name-g 1920x1030-x 0x80-r clipboard:primaryclipboard 192.168.1.102

Each option has the following meanings:

  • -A: Use of the three-digit color;

  • -U gen: Specify user name;

  • -G 1920x1030: Specifies the window size. Because in multi-monitor cases, the rdesktop -f full screen option, and only the window size can be specified directly. Originally home Pc The primary display has a resolution of 1920x1080 1030 KDE special Windows Settings Rdesktop

  • -X 0x80: Specifies the user experience level. In the rdesktop source code, there are:#define rdp5_enable_font_smoothing 0x80. Therefore, setting the value to 0x80can show the best font effect. (originally set for LAN, although the color depth is added to the maximum value , but the font display has no ClearType effect);

  • -R Clipboard:primaryclipboard: Realize the Clipboard sharing between the machine and the remote host;

  • Finally, specify the remote host's IP address.

The following script was created Rdcwin To connect to the remote host:

#!/bin/bash


If[-Z $]; Then

echo "Default host 192.168.1.102 would be conneted!"

host=192.168.1.102

Else

host=$1

Fi


Rdesktop-a 32-u user_name-g 1920x1030-x 0x80-rclipboard:primaryclipboard $host

For more details, refer to here :

Rdesktop:connect to Windows 7 and Vista with ClearType fontsmoothing enabled

So Windows Vista finally allows-enablecleartype font smoothing for Remote desktop/terminal servicessessions. Update:windows XP SP3 does too!

If you try to connect to a machinerunning Windows XP SP 3 or later using Rdesktop, you won ' t getsmoothed font typing since At the time of this writing rdesktop Doesnot officially offer a option to control this feature. However, Hereis a workaround:



Rdesktop allows to specify the rdp5experience via the-x experience switch.

One can either define one of Threedefault experiences (modem, broadband, LAN) or one can specify a Rawhex value that is SE nd to the server.



Note:you can skip over this rathertechnical part, if your ' re not interested in the details. You ' Llfind the workaround below.



This hex value is actually a combinationof defined bit flags. After some tinkering I found that the hex value0x80 would enable font smoothing for the connection.

The file constants.h of the rdesktopsources 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 constantcan is defined like this:



#define RDP5_ENABLE_FONT_SMOOTHING0X80



The file rdesktop.c would has to beextended preferably a additional argument that controls Thefont smoothing.

If you want to use a font smoothing withrdesktop now there are to combine the flags (bitwise OR, addition Willdo too) and SPE Cify the result via the-x switch.



Here are the workaround for the threedefaults mentioned above:



Rdesktop-x 0x8F Mywinserver # equalsthe Modem default + font smoothing

Rdesktop-x 0x81 mywinserver # equalsthe Broadband default + font smoothing

Rdesktop-x 0x80 mywinserver # equalsthe LAN default + font smoothing

Connect to the Windows desktop remotely using Rdesktop

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.