Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk9 min

How to install and use rdesktop — the remote desktop client for Linux

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

rdesktop is a widely used Linux client for connecting to Microsoft Remote Desktop Protocol (RDP) servers. If you prefer a lightweight terminal-first approach over a full GUI client, rdesktop is still a solid tool—especially for networks where you control the server side.

This guide covers installation on the major Linux families, then shows practical connection commands with real-world parameters. You’ll also get troubleshooting steps for the most common connection and rendering failures.

As an Amazon Associate I earn from qualifying purchases.

What rdesktop is (and what it isn’t)

rdesktop is a command-line RDP client for Linux. It focuses on classic RDP connectivity: sending keyboard/mouse events and receiving the remote screen updates.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

It’s not a universal “just works” replacement for every modern Windows RDP configuration. Depending on your server’s RDP settings and security requirements, you may need to adjust options—or use an alternative client.

#1 Best Overall
Lenovo IdeaPad Slim 3 Linux Laptop, 15.6" FHD Touchscreen Laptop, 8-Core AMD Ryzen 7 5825U, 16GB RAM, 512GB SSD, Keypad, SD Card Reader, Stylus Pen + External Portable SSD + USB Hub, Linux Ubuntu OS
  • Powerful Linux Laptop: This IdeaPad Slim 3 Laptop comes pre-installed with Ubuntu Linux, offering fast performance, robust security, and a clean, user-friendly experience. Enjoy full customization, seamless hardware compatibility, and access to thousands of open-source apps. Whether you're working, creating, or coding, it's built to keep up with everything you do.
  • A Multitasking Master: The latest AMD Ryzen 7 5825U processor (up to 4.5 GHz) delivers powerful performance with 8 cores and 16 threads for smooth multitasking. Integrated AMD Radeon Graphics provide crisp visuals for streaming, browsing, photo editing, and casual gaming. With smart machine intelligence, it adapts to your needs for a fast, responsive experience.
  • 15.6" Full HD Display: The IdeaPad Slim 3 boasts an 88% screen-to-body ratio for a floating, edge-to-edge visual experience. TÜV Low Blue Light certification reduces eye strain, making it perfect for long work or study sessions.
  • Military-Grade Durability: The smart IdeaPad Slim 3 combines portability and durability, letting you work, study, and play on the go. With a profile 10% slimmer than the previous generation, it's lightweight yet military-grade rugged, ready for anything, anywhere.
  • Versatile Connectivity: Enjoy the security of a built-in webcam with a privacy shutter. Connect effortlessly with multiple ports: 2x USB A, 1x USB C, 1x HDMI, 1x SD Card Reader, 1x Headphone/Microphone combo. Bundle comes with Stylus Pen, 256GB Portable SSD and 5-in-1 Docking Station.

Prerequisites before you install

Before installing, confirm you have a working network path to the target RDP host (usually TCP/3389). If you’re on a company network, also check whether your account is allowed to log in via RDP.

  • Linux distro: any mainstream distribution should work with packages; source build is a fallback.
  • Access details: hostname or IP, username, and domain (if applicable).
  • Display environment: rdesktop runs under your X11 or Wayland setup; most setups use XWayland or an X11 session.
  • Permissions: root or sudo for installing packages or build dependencies.

Install rdesktop on popular Linux distributions

Most distros ship rdesktop as a package. The exact version depends on your distribution release, but the commands and feature set are consistent enough for day-to-day use.

Debian and Ubuntu (apt)

Use apt to install rdesktop from the distro repositories.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Update package metadata: sudo apt update
  2. Install rdesktop: sudo apt install rdesktop
  3. Verify: rdesktop --version

Fedora (dnf)

On Fedora, rdesktop is usually available via dnf.

  1. Install: sudo dnf install rdesktop
  2. Verify: rdesktop --version

RHEL and CentOS (dnf/yum)

On RHEL-like systems, availability depends on enabled repos. If the package isn’t present, you’ll need to enable a repository or build from source.

  1. Install with dnf (RHEL 8+/Fedora-like): sudo dnf install rdesktop
  2. Or with yum (older): sudo yum install rdesktop
  3. Verify: rdesktop --version

Arch Linux (pacman)

Arch often has rdesktop in the official repositories.

  1. Install: sudo pacman -S rdesktop
  2. Verify: rdesktop --version

openSUSE (zypper)

openSUSE users can install rdesktop via zypper.

  1. Install: sudo zypper install rdesktop
  2. Verify: rdesktop --version

Build and install rdesktop from source (when packages are missing)

If your distro doesn’t provide a package (or you need a specific version), building from source is the reliable fallback. Source builds also help when you need compatibility tweaks.

Fetch source and install build dependencies

Use a distribution-appropriate dependency install command. The exact package names vary, but you generally need a C compiler toolchain and standard development headers.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Common build tools: gcc, make, pkg-config
  • Graphics / X11 dev headers (common for X11 builds)
  • Utilities: curl or wget, tar

If your build fails due to missing headers, install the missing -dev packages and rerun the dependency step.

Compile and install

  1. Download and extract the source tarball (example flow):
    • tar -xf rdesktop-<version>.tar.gz
    • cd rdesktop-<version>
  2. Configure: ./configure
  3. Build: make -j$(nproc)
  4. Install (system-wide): sudo make install

Verify the installed version

After installation, confirm the binary and version: which rdesktop && rdesktop --version.

Core rdesktop usage

rdesktop is primarily driven by command-line flags. The most important variable is your server address; everything else is optional tuning.

Basic connection command

Use this pattern to connect:

  1. rdesktop <host>

For example:

  1. rdesktop 192.168.1.50

Common authentication options

Typical flags include:

  • -u for username
  • -p for password (use carefully; it can be visible in shell history)
  • -d for domain

Example with username:

  1. rdesktop -u alice 192.168.1.50

Keyboard, display size, and color depth

Display tuning is where rdesktop often matters. If your remote desktop looks scaled, cramped, or clipped, fix the resolution and color depth.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • -g WxH sets geometry (e.g., 1024x768)
  • -depth sets color depth (common values are 16 or 24)
  • -k can affect keyboard layout behavior (availability depends on build/options)

Network and protocol settings

For slower links or older servers, you may need to adjust performance and protocol behavior.

  • -b sets the bitmap cache size (useful for reducing redraw cost)
  • -x (and other flags) can disable or tweak certain optimizations, depending on your rdesktop build

Because flags vary slightly across versions, if a flag appears unsupported, check rdesktop --help and man rdesktop for your installed build.

Rank #2
HP 17 Business Laptop - Linux Mint Cinnamon - Intel Quad-Core i5-10210U, 32GB RAM, 1TB PCIe NVMe SSD + 1TB Storage HDD, 17.3" Inch HD+ (1600x900) Display
  • Intel Core i5-10210U (up to 4.2GHz) - 1TB PCIe NVMe + 1TB HDD - 32GB DDR4 SDRAM
  • 17.3" HD+ (1600x900) Display, Intel UHD Graphics 620
  • Built in HD 720p Webcam with Microphone - Bluetooth Version4.2
  • I/O Ports: 2x USB 3.1 (Data Only), 1x USB 2.0, 1x HDMI, 1x Headphone/Microphone Combo Jack
  • Linux Mint Cinnamon 64-Bit - 6-Row Keyboard w/ Full Numberpad

File transfer and clipboard behavior

Classic clipboard integration and drive mapping behavior is inconsistent across configurations. rdesktop may support clipboard synchronization, but advanced features (like modern file transfer) are not the same as in newer RDP clients.

If you need reliable clipboard and file transfer, consider a modern alternative like FreeRDP-based clients (see Alternatives section).

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Practical connection recipes

The following patterns are the ones you’ll reuse most often. Replace the host, username, and domain with your own values.

Recipe 1: Connect with username and password

Use this when you want a non-interactive login.

  1. rdesktop -u alice -p 'YourPasswordHere' 192.168.1.50

If you prefer not to expose the password in your command history, you can run rdesktop and enter credentials interactively (depending on your rdesktop build and server settings).

Recipe 2: Use a domain-qualified account

When your account is in a Windows domain, include the domain explicitly.

  1. rdesktop -u alice -d CORP -p 'YourPasswordHere' 192.168.1.50

On domain-joined machines, this often reduces “logon failed” errors caused by incorrect account context.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recipe 3: Match a fixed resolution for a kiosk-style layout

Force an exact geometry so the remote UI doesn’t scale unexpectedly.

  1. rdesktop -g 1280x720 -depth 16 -u alice 192.168.1.50

If you see clipping, try a smaller geometry or switch -depth between 16 and 24.

Recipe 4: Force RDP security mode for older servers

Older RDP setups sometimes require different security negotiation. Use your rdesktop help output to find the exact flag name for your build (commonly something like an “encryption” or “security” option).

  1. rdesktop --help
  2. Pick the closest matching option and retry, for example: rdesktop <security-flag> -u alice 192.168.1.50

If you get handshake or encryption errors, this is usually where the fix is.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recipe 5: Use a custom bitmap caching setting to reduce bandwidth

Bitmap caching can reduce redraw traffic on repeated screens, like dashboards.

  1. rdesktop -b 16 -u alice 192.168.1.50

If the session feels sluggish, try increasing cache; if memory usage spikes, decrease it.

Recipe 6: Connect through a VPN and restrict TLS/ciphers

For locked-down environments, you may need to align rdesktop’s security options with your RDP gateway policies. rdesktop’s available flags vary by version, so verify with rdesktop --help and your server requirements.

Rank #3
Lenovo Business Laptop - Linux Mint (Cinnamon) - Intel i5-1335U, 16GB RAM, 256GB SSD, 15.6" FHD 1920x1080 Display, Full Keyboard, Fast Charging
  • Intel Core i5-1335U Processor (12M Cache, 12 Threads, up to 4.6 GHz) - 256GB Solid State Drive - 16GB DDR4 SDRAM
  • 15.6" FHD (1920x1080) Non-Touch Anti-Glare Display - Intel UHD 620 Integrated Graphics - Stereo Speakers
  • 720p HD Webcam with Privacy Shutter. Integrated Microphone - Intel Dual Band Wireless-AC (2x2) 8265, Bluetooth Version 4.2
  • I/O Ports: 2x USB 3.0, 1x USB 3.1 Type-C 3.1, Headphone/Mic Combo Port, 4-in-1 Card Reader, HDMI, Kensington Mini-Lock Slot
  • Linux Mint (Cinnamon) 64-Bit - Keyboard with Full NumberPad - Fast Charging
  1. Connect your VPN first
  2. Test basic access: nc -vz <host> 3389
  3. Retry rdesktop with any relevant encryption/security flags from rdesktop --help

When in doubt, prioritize compatibility over aggressive cipher restrictions; otherwise you risk total handshake failure.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recipe 7: Save time with a connection script

For repeat logins, create a small wrapper script so you don’t type long flags every time.

  1. Create a file, for example: ~/.local/bin/rdesktop-corp
  2. Add a command like:

rdesktop -u alice -d CORP -g 1440x900 -depth 16 10.10.0.25

  1. Make it executable: chmod +x ~/.local/bin/rdesktop-corp
  2. Run it: rdesktop-corp

Security and compatibility considerations

RDP is powerful, and it’s also frequently targeted. Treat it like a privileged admin pathway.

RDP versions and modern Windows behavior

Newer Windows RDP configurations can require TLS and may disable older cipher suites. If rdesktop fails to connect or errors on negotiation, you might need to adjust rdesktop security options or use a newer RDP client that supports the server’s expectations.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Encryption, certificates, and pass-through risks

rdesktop may not offer the same level of certificate validation workflows you expect from modern GUI tools. If your environment uses strict certificate validation or gateways, test the exact client behavior before rolling it out widely.

Also avoid copy/pasting passwords directly into commands. Prefer interactive entry or a controlled secrets mechanism when possible.

Prefer secure networks; avoid exposing RDP publicly

Use VPN, jump hosts, or RDP gateways where feasible. If you must expose RDP to the internet, it should be behind strong authentication and rate limiting—never directly open.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting when rdesktop won’t connect

Most connection failures fall into a handful of categories: networking, port/firewall, auth, or encryption negotiation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check connectivity and reachability

Start with the basics from the Linux client:

  • ping <host> (if ICMP is allowed)
  • nc -vz <host> 3389 to verify TCP reachability
  • If you’re on a VPN, confirm your VPN routes the RDP subnet

Port and firewall issues

If nc can’t connect to 3389, the issue is almost certainly network or firewall policy.

  1. Verify the server listens on 3389 (or your configured RDP port)
  2. Check local firewall on the server and any middleboxes
  3. Confirm security group rules (cloud environments)

Authentication failures

Common causes include incorrect username/domain, disabled RDP logon rights, or account lockouts.

  • Try with -d for domain-qualified accounts
  • Confirm the account has “Allow log on through Remote Desktop Services” permission
  • Watch for account lockouts after repeated attempts

Black screen, wrong resolution, or cursor issues

If the connection succeeds but you see a black screen or broken display, the usual fixes are resolution and color depth.

  1. Retry with -g 1024x768 (or your target)
  2. Try -depth 16 instead of 24
  3. Verify you’re running an X11 session if your environment is flaky on Wayland

Keyboard mapping problems

If keys don’t match what you expect (e.g., wrong symbol for a specific key), keyboard mapping is the culprit.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Panasonic Toughbook CF-31 MK5 Rugged Laptop, 13.1in i5, 8GB 256GB (Renewed) | Touch, 4G LTE, Backlit Keyboard, Linux Ubuntu OS
  • [ULTRA-RUGGED DESIGN] MIL-STD-810G and IP65 certified. Built to survive 6-foot drops, heavy rain, and extreme vibrations. Features a magnesium alloy chassis with an integrated carry handle for maximum portability
  • [4G LTE - WORK ANYWHERE] Integrated 4G LTE Multi-Carrier Mobile Broadband. Stay connected to the internet in remote areas or on the road without relying on Wi-Fi or phone hotspots. True mobile freedom for field professionals
  • [1200-NIT SUNLIGHT READABLE] 13.1" XGA Touchscreen with CircuLumin technology. At 1200 nits, it is nearly 4x brighter than a standard laptop, ensuring perfect visibility under direct, intense sunlight
  • [LINUX UBUNTU PRE-INSTALLED] Fast, secure, and bloatware-free. Optimized for developers, network engineers, and diagnostic software that thrives in a stable, open-source environment
  • [LEGACY SERIAL PORT] Features a native RS-232 Serial Port, HDMI, and USB 3.0. Essential for connecting directly to industrial machinery, CNCs, and automotive diagnostic tools without unreliable adapter
  1. Check man rdesktop for your build’s keyboard-related flags
  2. Test a single flag change at a time rather than stacking many options

Handshake or security negotiation errors

If you see errors related to encryption or negotiation, your server’s RDP security policy likely doesn’t match rdesktop’s defaults.

  1. Run rdesktop --help and identify security-related options
  2. Align the security mode with what the server expects
  3. If this keeps failing, switch to a modern RDP client (see Alternatives)

Performance issues over slow links

If the session is laggy, reduce bandwidth and optimize redraws.

  • Lower resolution: use -g
  • Reduce color depth: try -depth 16
  • Adjust bitmap caching: try -b with a smaller or larger value depending on memory/network

Common mistakes to avoid

  • Typing the server IP wrong or hitting a non-RDP service on port 3389.
  • Forgetting domain settings when your username alone doesn’t map correctly.
  • Putting passwords directly into shell commands and leaving shell history behind.
  • Expecting clipboard and file transfer behavior to match Windows-native RDP clients.
  • Relying on defaults for resolution and then blaming the server when the UI is simply mis-sized.

Alternatives to consider

If rdesktop doesn’t meet your compatibility needs (especially with stricter modern RDP servers), consider these options.

xfreerdp

FreeRDP-based clients (like xfreerdp) are often more compatible with newer Windows RDP security requirements. They also provide a more modern option set for security and rendering.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Remmina (front-end)

Remmina is a GUI front-end that can use different RDP backends. It can be practical when you want saved profiles and UI-driven settings while still using an underlying RDP client.

Browser-based access and gateways

In some enterprise environments, you’ll have an RDP gateway or broker that provides a web-access workflow. That can sidestep certain native client security negotiation problems—at the cost of relying on the gateway.

Final Thoughts

rdesktop remains a dependable Linux RDP client when you control the server environment or when your organization’s RDP policies are compatible with classic clients. With the right resolution, authentication flags, and security settings, it’s often fast and stable.

If you hit negotiation errors or modern security requirements, don’t keep guessing—switch to a more current RDP client or align rdesktop’s security options using rdesktop --help and server policy documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

FAQs

Is rdesktop safe to use?

It can be safe when used on trusted networks and with strong passwords. Avoid exposing RDP directly to the internet, and prefer VPN or gateways with proper authentication.

Why does rdesktop prompt for credentials even when I pass -u?

Some server configurations still require interactive password entry, or your rdesktop build may not fully support the flag behavior you expected. Check rdesktop --help for your installed version’s supported authentication flags.

Why is the remote screen black after connecting?

Common fixes are resolution and color depth mismatches. Try -g 1024x768 and -depth 16, and confirm you’re running with a compatible display session (often an X11 session is the smoothest).

Does rdesktop support clipboard sharing?

Clipboard synchronization support varies by server settings and rdesktop capabilities. If clipboard doesn’t work, test a modern RDP client as a fallback.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What should I do if rdesktop fails on newer Windows servers?

Check for security negotiation flags using rdesktop --help, and consider using a FreeRDP-based client (like xfreerdp) if the server requires newer TLS/cipher policies.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.