Operations 4 min read

Control Ubuntu from Windows with RDP: Install xrdp and Configure Remote Access

This guide explains how to install xrdp and tightvncserver on Ubuntu, configure root login, adjust .ICEauthority permissions, and connect to the Ubuntu desktop from Windows using the built‑in Remote Desktop client.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Control Ubuntu from Windows with RDP: Install xrdp and Configure Remote Access

Install xrdp and tightvncserver on Ubuntu

Open a terminal on Ubuntu and run the following command to install the required packages: # sudo apt-get install tightvncserver xrdp The command installs both tightvncserver (required by xrdp) and xrdp itself.

Installation command output
Installation command output

Connect from Windows using Remote Desktop

After installation, launch the Windows Remote Desktop client (available in Windows 10). Enter the IP address of the Ubuntu machine and connect.

When prompted, select the xorg session, then provide the Ubuntu username and password (by default the root account is used).

Remote Desktop connection screen
Remote Desktop connection screen

Enable root login for RDP

By default, RDP requires the root user. Set a password for the root account with: # sudo passwd root Enter and confirm the new password.

Setting root password
Setting root password

Allow non‑root users to log in

If you need to use a different account, adjust the permissions of the .ICEauthority file located in the user's home directory: # chmod 660 .ICEauthority After changing permissions, restart the Ubuntu machine. You can then log in with the chosen account via Windows Remote Desktop.

Changing .ICEauthority permissions
Changing .ICEauthority permissions

Final notes

After completing the steps and rebooting Ubuntu, you can manage the system remotely from Windows using the standard Remote Desktop client, with either the root account or any other user whose .ICEauthority permissions have been adjusted.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

UbuntuRemote DesktopRDPxrdp
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.