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
Please note that you must first enable remote desktop connection under Windows Server/XP.
- Go to Windows XP Desktop
- Right Click on My Computer
- Select properties
- Select Remote tab
- Enable Remote desktop.
- Save the changes.
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.
- Email this to a friend
- Printable version
- Rss Feed
- Last Updated: Jan/15/2008

{ 37 comments… read them below or add one }
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
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.
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)
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
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
i think the website is doing a great job.
thanku
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!
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
remove their vista and install pclinuxos.
that cures all vista issues.
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
typo TSL * TLS
submit box says linux lol
Great! This is what I’ve been looking for . .
For full screen:
rdesktop -f ip-address
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!
Didn’t see any thing mentioned about how secure password transmission is.. Is the password transmitted clear text or encrypted? Is it secure?
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.
@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.
Thanks for quick how-to.
It saved me lots of time and running from one room to another :D
brilliant, cant thank you enough, works like a dream!
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
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.
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
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?
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?
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.
is there any application for linux that enables tab based rdp sessions? like remote desktops for windows or VisionApp’s application?
im using linux system if i take the xp client in a remote desktop the display is not clear in my system how can i solve this ,,,,,,
Once connected – my windows server appears in a small window
Q: How do I enlarge that window – F10 is not available
Thanks
That is a great way to lock into a remote PC. THANK YOU!
The only shortcoming: to be good for remote support of Windows computers, it would be best if the local user could still see what is going on on the screen. Is there a way to get that, too. (Similar to netmeeting, perhaps?)
Thanks!
Did remote login to my linux laptop from xp, now easily done vice versa. very good,
thanks
Thanks man.Your tips help me a lot.
Good Luck
Sandeep Bisht
Hi There,
I just want to say thank you for this short but very important entry. I was puzzled how to connect to my windows servers. I am a ex Mandrake and Suse user but it didn’t use linux for a very long time.
Thanks again!
Hi
Its working great job, but when i connected to a domain client getting some error., ie., username,password,domain
Thanks
Janardhan
Sklm
Hi,
i’ve been working with rdesktop for a year now on a local Win server from my Linux machine and it worked fine.
But now the admin decided to “virtualize” the server and i’ve got some flickering going on whenever i connect to that machine. The flickering is related to some displayed fields in MS Access (which i why i have to user rdesktop) and it eats up my processor a lot…
Anybody has an idea or an alternative remote method ?
Thanks,
jp
Excellent tip, thank you very much! I just started using Ubuntu and this allows me to still use my Windows apps while in Unix. Good stuff!
ok thanks.it works beter for my fedora
thx for the gr8 doc well done.
if windows xp has no password, how can I connect to windowsXP ?