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

Ravi Saive Read Time: 1 minCategories Open Source 20 Comments

rdesktop is an open source software that enables you to connect and manage your remote Windows desktop from your Linux computer using RDP – Remote Desktop Protocol. In other words, while you are sitting in front of your Linux system at home or office, and access your Windows desktop as if you’re sitting in front of the Windows machine.

Read Also: 11 Best Tools to Access Remote Linux Desktop

In this article, we will explain how to install rdesktop in Linux system to access the remote desktop of Windows computer using the Hostname and IP Address.

Windows Settings

To enable rdesktop to connect to any given Windows machine, you need to make few following changes on the Windows box itself.

  1. Enable RDP port no. 3389 in Firewall.
  2. Enable remote desktop under Windows Operating System.
  3. Require at least one user with a password.

Once you make all of the above Windows configuration settings, you can now move further to install rdesktop on your Linux system to access your Windows desktop.

Install rdesktop (Remote Desktop) in Linux

It is always preferable to use a default package manager such as yum, dnf or apt to install software to handle dependencies automatically during installation.

# yum install rdesktop [On CentOS/RHEL 7]# dnf install rdesktop [On CentOS/RHEL 8 and Fedora]# apt install rdesktop [On Debian/Ubuntu]

If rdesktop is not available to install from the default repositories, you can download the tarball from Github here or use the following wget command to download and install it as shown.

# wget https://github.com/rdesktop/rdesktop/releases/download/v1.8.6/rdesktop-1.8.6.tar.gz# tar xvzf rdesktop-1.8.6.tar.gz# cd rdesktop-1.8.6/# ./configure --disable-credssp --disable-smartcard# make # make install

Connecting to Windows Desktop Using Hostname

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

# rdesktop -u narad ft2
How to Use Remote Desktop (rdesktop) in Redhat/Fedora/CentOS (1)

Connecting to Windows Desktop Using IP Address

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

# rdesktop -u narad 192.168.50.5
How to Use Remote Desktop (rdesktop) in Redhat/Fedora/CentOS (2)

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.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

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

Previous article:

How to Install Node.js in RHEL 8

Next article:

4 Process Managers for Node.js Applications in Linux

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

Ravi Saive

I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)

Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

Related Posts

NoMachine – An Advanced Remote Desktop Access Tool

5 Reasons Why I Hate GNU/Linux – Do You Hate (Love) Linux?

Neofetch Alternatives: 3 Best Linux System Information Tools

Wine 9.0 – Run Windows Apps and Games on Linux

Shellngn – Best Online SSH Client with SFTP, VNC, RDP

20 Comments

Leave a Reply

  1. On my Red Hat 8.2, I had first to run:

    # dnf install libX11-devel libXcursor-devel libtasn1-devel nettle-devel gnutls-devel

    And then it worked with:

    # ./configure --disable-credssp --disable-smartcard

    Reply

    • We have Debian only with the SSH package installed and RDESKTOP in the call center with 16 machines logging into the Windows Server 2016 TS. However, if an employee goes out to have a coffee and the computer is without activity, he drops the rdesktop and returns to the home screen. Debian is ready with login and password. How do I never go into standby?

      Reply

  2. How I redirect printer from Windows to Ubuntu with the help of rdesktop?

    Reply

  3. I have installed the rdesktop successfully, but the Rdesktop application not working…

    Reply

    • @Harish,

      Any error you getting while starting rdesktop? could you share?

      Reply

  4. How to install rdesktop offline (without internet) mode or downloaded package.

    Reply

    • @Thiruvengadam,

      Run the following commands to install rdesktop offline on any Linux distribution.

      # wget https://github.com/rdesktop/rdesktop/releases/download/v1.8.3/rdesktop-1.8.3.tar.gz# tar -xvf rdesktop-1.8.3.tar.gz# cd rdesktop*# ./configure# make# make install

      Reply

  5. I installed rdesktop, but I noticed that day by day he keeps flashing the screen, has updated video drive and nothing …. anyone have any tips?

    Reply

  6. In a GUI environment.

    yum -y install rdesktop
    yum -y install tsclient

    The tsclient is a frontend that makes it easy to use rdesktop (and vncviewer). You should now see “Teminal Server Client” in the Internet tab in GUI.

    Reply

  7. Its very useful
    Thanks

    Reply

  8. can we use it for linux-linux sharing………????????

    Reply

    • @Kiran,
      Yes, you can use this tool to share your Linux desktop too..

      Reply

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

    Reply

  10. 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 ?

    Reply

  11. 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…

    Reply

  12. 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.

    Reply

    • Use key combination ctrl+enter key to come back from fullscreen.

      Reply

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

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

    Thank you for your reply.

    Reply

  14. 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.

    Reply

  15. Hy,
    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

    Reply

Got Something to Say? Join the Discussion...

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

References

Top Articles
Latest Posts
Article information

Author: Ouida Strosin DO

Last Updated:

Views: 5700

Rating: 4.6 / 5 (76 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Ouida Strosin DO

Birthday: 1995-04-27

Address: Suite 927 930 Kilback Radial, Candidaville, TN 87795

Phone: +8561498978366

Job: Legacy Manufacturing Specialist

Hobby: Singing, Mountain biking, Water sports, Water sports, Taxidermy, Polo, Pet

Introduction: My name is Ouida Strosin DO, I am a precious, combative, spotless, modern, spotless, beautiful, precious person who loves writing and wants to share my knowledge and understanding with you.