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.

Raspberry Pi 4 on the Raspberry Pi 4 - Computerphile

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

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 Pi

Benchmarking the Raspberry Pi 4

The easy way to set up Docker on a Raspberry Pi – freeCodeCamp.org

Creating a Rogue Wi-Fi Access Point using a Raspberry Pi

Building a Smart Garden With Raspberry Pi 3B+

Learn Raspberry Pi for Image Processing Applications

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.

Description
Image Processing Applications on Raspberry Pi is a beginner course on the newly launched Raspberry Pi 3 and is fully compatible with Raspberry Pi 2 and Raspberry Pi Zero.

The course is ideal for those who are new to the Raspberry Pi and want to explore more about it.

You will learn 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.

This course will take beginners without any coding skills to a level where they can write their own programs.

Basics of Python programming language are well covered in the course.

Building Image Processing applications are taught in the simplest manner which is easy to understand.

Users can quickly learn hardware assembly and coding in Python programming for building Image Processing applications. By the end of this course, users will have enough knowledge about Raspberry Pi, its components, basic Python programming, and execution of Image Processing applications in the real time scenario.

The course is taught by an expert team of Electronics and Computer Science engineers, having PhD and Postdoctoral research experience in Image Processing.

Anyone can take this course. No engineering knowledge is expected. Tutor has explained all required engineering concepts in the simplest manner.

The course will enable you to independently build Image Processing applications using Raspberry Pi.

This course is the easiest way to learn and become familiar with the Raspberry Pi platform.

By the end of this course, users will build Image Processing applications which includes scaling and flipping images, varying brightness of images, perform bit-wise operations on images, blurring and sharpening images, thresholding, erosion and dilation, edge detection, image segmentation. User will also be able to build real-world Image Processing applications which includes real-time human face eyes nose detection, detecting cars in video, real-time object detection, human face recognition and many more.

The course provides complete code for all Image Processing applications which are compatible on Raspberry Pi 3/2/Zero.

Who is the target audience?

Anyone who wants to explore Raspberry Pi and interested in building Image Processing applications

To read more:

How to build your own Raspberry Pi Kubernetes Cluster

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

By popular demand, 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, which is a cheaper and more energy-efficient foundation for your clustering needs.