llemarie’s weblog

Programming, tinkering – Lionel Lemarié

Posts Tagged ‘Remote Desktop’

Tip: Updated: Use a higher resolution desktop than your monitor can support

Posted by llemarie on March 8, 2008

With the Asus Eee PC being so popular, there’s a lot of people looking to improve the real estate of their small computers. Here’s an update to my previous post to get fullscreen higher resolution on your monitor, be it small or big.

To make it clear: even though this technique uses Remote Desktop, it connects to the local machine only, there are no remote computers involved, no internet connections required.

There were a number of drawbacks with the technique described previously. The most annoying problems were:

  • the Remote Desktop window was not fullscreen, you could see the titlebar constantly,
  • the need for a port forwarder.

Enterprising users found solutions to both problems, so I think it’s time for an update!

1. How to allow multiple users to connect at once on Windows XP.

Get the Terminal Patch and install it. It’s really easy, just run the installer, there’s nothing to it. You need to reboot.

You can now login into your machine using multiple accounts at once, locally and using Remote Desktop.

2. Create a new user account and enable Fast User Switching

Add a new user whose sole purpose will be to Remote Desktop to localhost. Log-in as the new user for the remaining steps. No need to set the theme or anything.

To add a new user, open the Control Panel, open User Accounts, click “Create a new account”. Then enable Fast User Switching by clicking “Change the way users log on or off”.

3. Create a saved RDP session with scaled settings

Follow the instructions from here to create a .rdp file and add “smart sizing” to it.

Set the server to “127.0.0.2”. Note that normally the local computer is 127.0.0.1 but Remote Desktop will not let you connect to that address. Connecting to 127.0.0.2 works however, which is strange but convenient!

Set the username as your normal username, not the new one.

4. Make it fullscreen

Update: Paul in the comments mentioned that the CTRL-ALT-PAUSE/BREAK key combination makes the remote desktop window fullscreen. It works great! No need for additional software.

Download one of those applications (Desktop Enhancers) that make any window fullscreen. I use the shareware FullScreen 2.5, but if you find a good one as freeware please do post it in the comments. I might write one at some point if there’s a demand for it.


That’s it! When you want high-res, simply log-in with your new account, start the connection by double-clicking on the .rdp : you’re connected as your usual user, ctrl-right click on the title bar to go fullscreen and voila.

Advertisements

Posted in Blogroll, Remote Desktop, Tips | Tagged: , , | 5 Comments »

Tip: Use a higher resolution desktop than your monitor can support

Posted by llemarie on November 3, 2007

Note: This post has been superceded. Please see this update for a better way to do this. 

As a follow up from my previous post about scaling the screen for a remote session, here’s a new hack that allows you to scale the screen of your local session! Using this trick you can set the desktop to a resolution that is not supported by your monitor and it will be scaled down nicely to fit. There is of course a performance hit, but depending on your usage this could be very useful. For example I am writing this post in a comfortable Firefox window in 1600×1200 on a monitor that supports only 1280×1024.

There have been a number of hurdles to overcome: I needed to connect Remote Desktop to the machine I was currently using, and Windows does not make it easy for the user to do that. Windows XP does not allow multiple interactive users to log on at the same time normally, and Remote Desktop refuses to connect to localhost on port 3389. Now this simple tutorial will take you past those problems in no time.

Here’s how you do it:

1. How to allow multiple users to connect at once on Windows XP.

Get the Terminal Patch and install it. It’s really easy, just run the installer, there’s nothing to it. You need to reboot.

You can now login into your machine using multiple accounts at once, locally and using Remote Desktop.

2. Create a new user account and enable Fast User Switching

Add a new user whose sole purpose will be to Remote Desktop to localhost. Log-in as the new user for the remaining steps. No need to set the theme or anything.

To add a new user, open the Control Panel, open User Accounts, click “Create a new account”. Then enable Fast User Switching by clicking “Change the way users log on or off”.

3. Trick Remote Desktop into letting you connect to localhost

By default Remote Desktop will not let you connect to the local computer (even using another account) saying that you are already using it. That’s dumb because you can use Remote Desktop from another machine to connect to your computer fine.

Download a port forwarder and create a shortcut for it. Open the shortcut properties and change it like this:

From:

"C:\Documents and Settings\Lionel\Desktop\portforward.exe"

To:

"C:\Documents and Settings\Lionel\Desktop\portforward.exe" 5000 127.0.0.1 3389

Run it, this redirects all connections to port 5000 to port 3389 which is used normally by Remote Desktop. Now when you connect, use 5000 instead of the default port and you will get connected fine.

4. Create a saved RDP session with scaled settings

Follow the instructions from the previous post to create a .rdp file and add “smart sizing” to it.

Set the server to “localhost:5000” as we setup in the previous step.

Set the username as your normal username, not the new one.


That’s it! When you want high-res, simply log-in with your new account, start the port forwarder with the shortcut, start the connection by double-clicking on the .rdp and you’re connected as your usual user.

Posted in Blogroll, Remote Desktop, Tips | Tagged: , | 1 Comment »

Tip: Scaling your Remote Desktop session

Posted by llemarie on November 1, 2007

No matter whether you’re a Windows lover or hater, there’s no denying that Remote Desktop is one of the greatest features of the system. It beats VNC and many other remote control solutions by far for its sheer speed and picture quality (although of course VNC is genius for the fact that it works on Linux and Mac).

One gripe I have had with Remote Destop for years though is that I want to be able to connect to my desktop machine at its native high resolution from my laptop which has a lower resolution. Scaling isn’t that hard! Don’t give me those scrollbars, they are just useless. Both TightVNC and MaxiVista (and many others) support scaling the remote screen and it looks very good, so it’s been frustrating not to have the feature in RDP.

This morning I found that RDP does indeed support nice and efficient scaling, just not from the GUI settings. Here’s how:

  • Configure your remote connection from the GUI as usual.
  • In “Local Resources, make sure that “Apply Windows key combinations” is set to “On the remote computer”.
  • Save the connections settings to a file in a sensible directory. Call it for example “Remote.rdp”.
  • Open Notepad and edit that file “Remote.rdp”, it’s just a text file that looks like this (short version):
screen mode id:i:1
desktopwidth:i:1280
desktopheight:i:800
session bpp:i:16
winposstr:s:0,3,0,0,800,600
compression:i:1
keyboardhook:i:1
  • Add a new line with this text: “smart sizing:i:1”
  • Change the desktop width and height to what you want (for example 1600 and 960 to keep the aspect ratio).
  • You’re done! Save and quit Notepad. Double click on Remote.rdp, you’re connected at high resolution!

Using this extremely simple tip (hacking with notepad! where have the hex editor days gone ?) you can crank up your resolution to 4096×2048, if you don’t mind not being able not to read anything. I find that a factor of roughly 1.25 is sensible.

Posted in Blogroll, Remote Desktop, Tips | Tagged: , , | 29 Comments »