About nixCraft

Topics

Linux Remote Desktop For Controlling Windows XP / Vista / Server 2003 ( rdesktop )

Posted by Vivek Gite [Last updated: January 15, 2008]

I am responsible for couple of windows servers and windows xp workstations too. When I work from home, I need a way to get into Windows XP/2000/Vista/2003 server for work.

Since I have Debain Linux at home, I needed a way to login into Microsoft windows desktop from Linux OS. Many of us working at tech support use rdesktop to connect to customers' windows XP box.
Especially it is very useful to configure Outlook or something else when customers do not understand how to configure or troubleshoot problem. This is the best way to fix a problem.

Fortunately, Linux has rdesktop utility. It is a client for remote desktop protocol (RDP), used in a number of Microsoft products including Windows NT Terminal Server, Windows 2000 Server, Windows XP and Windows 2003 Server. You do not need to install VNC server. All you need is rdesktop client on Linux or BSD workstation.

Install rdesktop

# apt-get install rdesktop

Connect to MS Windows 2000/2003 server from Linux, type the following command at a shell prompt (connect to Windows server called mw2sn100.mycorp.com)

$ rdesktop mw2sn100.mycorp.com

Or connect to windows XP/Vista workstation having IP 192.168.1.17:

$ rdesktop 192.168.1.17

Remote windows XP desktop

Please note that you must first enable remote desktop connection under Windows Server/XP.

Make sure enterprise firewall allows incoming connection on TCP port 3389. rdesktop supports many other options, see man page of rdesktop or visit main website of rdesktop for more information.

E-mail this to a Friend    Printable Version

Acer Aspire One 8.9-inch Mini Laptop (1.6 GHz Intel Atom N270 Processor, 1 GB RAM, 160 GB Hard Drive, XP Home, 6 Cell Battery) Sapphire Blue

You may also be interested in other helpful articles:

Discussion on This Article:

  1. seryio Says:

    hi
    i have a problem with this.
    I use an old laptop connected to a tv, but when i control it with another laptop the ati control panes is disabled.
    How can i fix it

  2. Prasanth Kumar Diddi Says:

    Hi Vivek,

    I use the ‘rdesktop’ and the problem with it is the colors!!

    I think it shows up with 256colors! How can i change the resolution?

    Thanks.
    Prasanth Kumar Diddi.

  3. wil Says:

    Prasanth. To sort out colours/resolution read up on rdesktop switches: -g for resolution and -a for colours.
    ie.
    rdesktop -u USERNAME -p PASSWORD -g RESOLUTION -a COLOURS IP#

    (obviously set to lowest so that rdesktop will work on older systems)

  4. gundul Says:

    hello,

    how many user / client can connect to rdesktop server ?

    i have already setup rdesktop server and client, but only 3 client can connect

    my server is windows xp pro, my client use freebsd with rdesktop installed.

    thank you

  5. e.vinden Says:

    thanks for the tip .. easy solution since my monitor is about to break down and i could not get VNC to work due to java i believe

  6. ashish Says:

    i think the website is doing a great job.
    thanku

  7. James Says:

    Is there a way to make this work with Vista Home? My parents are driving me nuts with Vista questions. I have Ubuntu Gutsy running. Any advice would be appreciated. Thanks!

  8. Dale Kaup Says:

    I used VNC to bring data home nightly for Quickbooks usually I would just work on it via VNC. IN the old days when I used PCAnywhere I had to work on the dat a file at home then send it back in the morning. VNC rocks… my fav software ever.

    Dale

  9. rslinkman Says:

    remove their vista and install pclinuxos.
    that cures all vista issues.

  10. mc2nv Says:

    to the vista problem, remote desktop on Vista uses encryption TSL 1.0, you might tryin using the E switch other than that your SOL

  11. mc2nv Says:

    typo TSL * TLS

    submit box says linux lol

  12. Luqman Says:

    Great! This is what I’ve been looking for . .

    For full screen:

    rdesktop -f ip-address

  13. Jeff Garofalo Says:

    I’m new to linux and using ubuntu. My biggest problem so far had been that I couldn’t access the virtual desktop at the high school I teach at. The guide worked like a charm, and now I don’t have to cart an external hard drive back and forth. Thank you!

  14. Stew Says:

    Didn’t see any thing mentioned about how secure password transmission is.. Is the password transmitted clear text or encrypted? Is it secure?

  15. Kendric Beachey Says:

    Thanks for this simple but very helpful guide. Shortly after getting this going, I found Ubuntu (probably gnome, actually) provided a nice gui panel for getting rdesktop started, with handy options for all the command line parameters I wanted. In the main Applications menu, it was under Internet, called Terminal Server Client.

  16. ashish Says:

    @james

    you cannot do remote desktop to a vista home system as microsoft does not ship vista home versions with the rdp protocol.

    only outgoing connections are allowed with vista home.

  17. osl Says:

    Thanks for quick how-to.
    It saved me lots of time and running from one room to another :D

  18. nick Says:

    brilliant, cant thank you enough, works like a dream!

  19. Barry Says:

    James (#7) asked is there a way to enable Remote Desktop for Vista home…

    Take a look at the followng blog:

    http://portal.tonychan.org/Default.aspx?tabid=58&EntryID=123

    or search for termsvr.zip. This solution worked very well for me and did not require VNC.

    Good luck!

    Barry

  20. Richard Says:

    How would I get a script with rdesktop to run at startup of a linux box?

    I.E. once linux loads, it runs the script that loads rdesktop.

    I am running Synnex on X Windows if that helps.

  21. Kristian Says:

    hi, when I access the server all I get is:
    Autoselected keyboard map da

    I used rdesktop -u USERNAME -p PASSWORD IP to get this far…

    remote desktop is enabled on the server

  22. ice crash Says:

    another question:

    [root@vs-1399 ~]# rdesktop -u tmp 82.111.231.28 -0
    Autoselected keyboard map en-us
    ERROR: Failed to open display:

    i`m using a terminat thought putty without using a display mode or something.
    there is some way to connect from linux, to thee rdp just like your using the telnet ? i mean that i whant to connect to the rdp just typing the username and password withought using a display mode
    just connect to rdp and take the commands like your in the Command Prompt?

  23. Troubled Says:

    I’m trying to provide a way to enable about 14,000 employees, who are all using a Linux/Firefox solution at their remote facilities, to access a web-based application that is only supported on a Windows/IE 6.0 or greater configuration. It sounds like rdesktop may be a solution but I’m concerned as to its scalability and security. Can anyone share any insight?

  24. Martyn Says:

    I have a problem in that when I connect to a vista pc (rdc is enabled) it just says “Autoselected keyboard map en-gb” then nothing. Can someone please help with this as I need it up and running as soon as possible.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , , , , , , , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.