Did You Know?
Donate to TecMint

LFCS - Linux Foundation Certified SysAdmin - Exam Preparation Guide

How to Use Remote Desktop (rdesktop) in Redhat/Fedora/CentOS

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

rdesktop application is use to connect RDP (Remote Desktop Protocol) of any Operating System like Windows XP, Window NT, Windows 2003/2008, Windows Vista and Windows 7 from Linux machine. It’s a client utility for Remote Desktop Protocol (RDP). In this article we are going to view how we can take remote desktop of Windows Terminal using Hostname and IP Address.

Install rdesktop in Linux

Install rdesktop in Linux

Please make sure following points before connecting to remote host.

  1. Enable RDP port no. 3389 in Firewall.
  2. Enable remote desktop under Windows Operating System.
  3. Require at least one user with password.
  4. Under MS-Windows desktop >> Right Click on My Computer >> Select properties >> Select Remote tab >> Enable Remote desktop >> Save the changes.

Install rdesktop (Remote Desktop)

It might happen that rdesktop application already installed in your Linux distribution. Kindly verify with below command.

# rpm -qa rdesktop


If not, then install it with YUM command to resolve dependencies.

# yum -y install rdesktop
check rdesktop in Linux

check rdesktop in Linux

Installation completed
Install rdesktop in Linux

Installation of rdesktop in Linux

How to use rdesktop with hostname

To connect Windows host from Linux desktop type following command using -u parameter as username (narad) and (ft2) as hostname of my Windows host. To resolve host name make entry at /etc/hosts file if you don’t have DNS Server in your environment.

# rdesktop -u narad ft2
rdesktop using hostname

Use rdesktop using hostname

How to use rdesktop with IP Address?

To connect Windows host from Linux machine using username as (narad) and IP Address as ( of my windows host, then command would be as.

# rdesktop -u narad
rdesktop using IP Address

Use rdesktop using IP Address

Please execute man rdesktop in command prompt If you would like to know more about it or visit rdesktop project website. Kindly share it and let us know your comments through our comment box below.

He has over 10 years of rich IT experience which includes various Linux Distros, FOSS and Networking. Narad always believes sharing IT knowledge with others and adopts new technology with ease.

Your name can also be listed here. Work as a Paid freelancer/writer at TecMint.
Download Free eBooks
Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

7 Responses

  1. antonio says:

    I have installed rdesktop+grdesktop,
    congratulations for your work. Can you help me?
    How i can delete ip adress in General/Logon Settings/Computer: ………….

    Thanks you very much

  2. I’m amazed, I have to admit. Seldom do I come across a blog that’s both equally
    educative and amusing, and let me tell you, you have hit the nail on
    the head. The issue is something that not enough people are
    speaking intelligently about. Now i’m very happy I found this in my search for something relating to this.

  3. kimhour says:

    -When I type rdesktop -u hourhour hour; it appears ” Error: getaddrinfo: Name or Sevice not Know.

    -When I type rdesktop -u hourhour; it appears ” Error: Unable to connect.” .

    Thank you for your reply.

  4. newuser says:

    Thank you!!
    I was able to connect to a windows machine. If I go to full screen then I was unable to get back. Screen remain full in the windows machine. I tried restarting the remote windows machine, then the current(linux) machine screen frozen at the shutdown screen of the remote windows machine.

    Question is,
    how do I get back to the physical Linux machine from the remote full screen windows machine?

    Thank you.

  5. aqua says:

    great tutorial man… but i’d most like to use free nx in installing RDP on my centos server. it more fast and great work..

    thanks for tutorial…

  6. sri says:

    Hi, am unable to install rdesktop package in rhel 6 terminal.it says
    Unable to read consumer identity
    No package rdesktop available. what to do ?

  7. BANSH says:

    let help me I am not configure mail server in Linux5.1

Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.