How to Install Xrdp Server on Raspberry Pi?

How to Install Xrdp Server on Raspberry Pi?

This tutorial explains how to install and configure Xrdp server ((Remote Desktop) on Raspberry Pi. Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to graphically control a remote system. With RDP, you can log in to a Raspberry Pi box from another computer running Windows, Linux or macOS, and create a real desktop session the same as if you had logged in to a local computer. The Pi and the client machine have to be connected to the same network or to the Internet.

Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to graphically control a remote system.

With RDP, you can log in to a Raspberry Pi box from another computer running Windows, Linux or macOS, and create a real desktop session the same as if you had logged in to a local computer. The Pi and the client machine have to be connected to the same network or to the Internet.

This tutorial explains how to install and configure Xrdp server on Raspberry Pi.

Prerequisites

Raspbian Buster comes in several different flavors. If you have Raspbian Lite, which does not have GUI, you'll need to install a desktop environment that will act as a backend for Xrdp. Otherwise, skip this section.

There are several desktop environments (DE) available in Rabsbian repositories. We'll be installing Pixel, which is the default desktop environment on Raspbian Desktop images. It is a fast, stable, and lightweight desktop environment, which makes it ideal for usage on a remote server.

Login to your Pi and run the following commands to install Pixel desktop:

sudo apt update
sudo apt-get install raspberrypi-ui-mods xinit xserver-xorg

Depending on your system, downloading and installing Pixel packages may take some time.

Once done, reboot the system for the changes to take effect:

sudo reboot

Installing Xrdp

Xrdp package is available in the default Raspbian Buster repositories. To install it, type:

sudo apt install xrdp 

When the installation process is complete, the Xrdp service will automatically start. You can verify that Xrdp is running by typing:

systemctl show -p SubState --value xrdp

The command will print “running”.

By default Xrdp uses the /etc/ssl/private/ssl-cert-snakeoil.key file which is readable only by users that are members of the “ssl-cert” group. The easiest fix is to add the user that runs the Xrdp server to the ssl-cert group.

Execute the following command to add the user to the group

sudo adduser xrdp ssl-cert  

That's it. Xrdp has been installed on your Pi.

Connecting to Raspberry Pi

Now that you have set up the Xrdp server, it is time to open your Xrdp client and connect to the Pi.

If you are a Windows user, you can connect to your Pi using the default RDP client. Type “remote” in the Windows search bar and click on “Remote Desktop Connection”. This will open up the RDP client. In the computer field, enter the Raspberry Pi IP address and click “Connect”.

On the login screen, enter your Raspberry Pi username and password and click “OK”.

Once logged in, you should see the default Pixel desktop. It will look something like this:

From here, you start interacting with the remote Raspberry Pi desktop from your local machine using your keyboard and mouse.

If you are using macOS, you can install the Microsoft Remote Desktop application from the Mac App Store. Linux users can use an RDP client such as Remmina or Vinagre.

Conclusion

Installing an Xrdp server allows you to manage your Raspberry Pi server from your local desktop machine using an easy to use graphic interface.

If you have questions, feel free to leave a comment below.

Xrdp RaspberryPi Raspberry

What's new in Bootstrap 5 and when Bootstrap 5 release date?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Random Password Generator Online

HTML Color Picker online | HEX Color Picker | RGB Color Picker

How to build your own Raspberry Pi Kubernetes Cluster

I'll show you how to set up your very own Kubernetes cluster. But not just any boring old cluster, I'll show off the process of doing this on the Raspberry Pi platform. Learn how to build your own Raspberry Pi Kubernetes Cluster

Raspberry Pi 4 on the Raspberry Pi 4 - Computerphile

A quick tour of the Raspberry Pi 4 edited on the Raspberry Pi 4. Dr Steve Bagley gets out his knife.dll to unbox Sean's purchases! ☞ [I created a home IoT setup with AWS, Raspberry...

How to Install TensorFlow and Recognize images using Raspberry Pi

In this post, we'll demonstrates how to install TensorFlow and recognize images using Raspberry Pi.

How to run Joystick with Raspberry Pi | Raspberry Pi Ultimate Robot

In this video we are going to learn how to install and run the Ps4 joystick in raspberry pi. We will also created a module out of this so that we can run it with the motor module that we created in the previous video.

Learn Raspberry Pi for Image Processing Applications

New to the newly launched Raspberry Pi 3? Learn all the components of Raspberry Pi, connecting components to Raspberry Pi, installation of NOOBS operating system, basic Linux commands, Python programming and building Image Processing applications on Raspberry Pi. At just $9.