In this tutorial, we are going to access our Raspberry Pi’s desktop using xrdp. This is a continuation to the earlier post on No Keyboard, Ethernet & Monitor: Setting up Raspberry Pi in headless Mode .
The Microsoft Remote Desktop Protocol (RDP) provides remote display and input capabilities over network connections for Windows-based applications running on a server. RDP is designed to support different types of network topologies and multiple LAN protocols.
There are several different implementations of the RDP protocol for Linux including xrdp. The xrdp project the remote desktop protocol to provide access to a Linux desktop not a Windows desktop. The xrdp server is able to work with other open source RDP clients as well as with Microsoft’s Remote Desktop Connection program. This surely is one of the easiest way to remotely access raspberry pi with Desktop display.
- No Keyboard, Ethernet & Monitor: Setting up Raspberry Pi in headless Mode
- Reading Temperature & Humidity with DHT22 (AM2302) sensor module, Arduino mega
- Motion Detection with PIR sensors and Arduino
So lets get started but you will need to setup SSH first in order to access the Raspberry Pi, refer to: No Keyboard, Ethernet & Monitor: Setting up Raspberry Pi in headless Mode on how to achieve that and enable VNC server using raspi-config -> interfacing options -> VNC. Then run this command to install xrdp from CLI:
sudo apt-get install xrdp
Xdrp will be installed as a service and will be started automatically. There is no further configuration needed to make a remote connection. On a Windows PC, launch the Remote Desktop Connection program. In the “Computer:” field, enter the IP address of your Pi. You can refer to this on how to get the IP Address using Angry IP Scanner: No Keyboard, Ethernet & Monitor: Setting up Raspberry Pi in headless Mode
If the connection is successful, a new window will surface which will prompt for the Pi’s security credentials. Input the username and password and you are in.
You now have full access to your Raspberry Pi Desktop if not the whole system. That is it for this tutorial, stay tuned for the next one. You should be seeing an image like this by now: