Friday, June 6, 2008

Embed RDP sessions between GNOME panels

A few months back I had (and still have) a need to run Windows terminal sessions from my notebook, this includes a connection to my Windows Virtual Machine locally. Being that it's a notebook I tend to switch resolutions based on my location. I quickly realized that I neither wanted a managed window, or a full screen terminal session because both were either klunky or just hard to manage with other windows around it. I devised this script which detects the current screen size, and then looks in gconf at the panel size. It then executes rdesktop to the host you specify (command line, or gui box) and fits the window in between the panels without the title bars.

The myrdp script allows easy window management of other applications while eating just enough of the windows desktop to display your panels. Its a great compromise.

Changing configuration options is a breeze, edit the script and change the options variable to suit.

The default rdesktop options are as follows (fine for most cases):

-K This option allows alt-tab etc to stay in Linux and not focus to Windows.
-D This option removes the title bar, and the window frame.
-0 This option connects to the console session of the RDP host.
-z Enables RDP compression
-xl Configures the RDP5 experience to LAN.

Download Download My RDP script (DEB) - [LINK]
Download My RDP script (TAR.GZ) - [HERE ]

0 comments: