There are two ways to control the desktop of the Raspberry Pi remotely:
VNC and XRDP, you can use any of them.
You can use the function of remote desktop through VNC.
Enable VNC service
The VNC service has been installed in the system. By default, VNC is disabled. You need to enable it in config.
Input the following command:
Choose 3 Interfacing Options by press the down arrow key on your keyboard, then press the Enter key.
Select Yes -> OK -> Finish to exit the configuration.
Login to VNC
You need to download and install the VNC Viewer on personal computer. After the installation is done, open it.
Then select New connection.
<IP address> of Raspberry Pi and any Name.
Double click the connection just created:
Enter Username and Password.
Now you can see the desktop of the Raspberry Pi:
That’s the end of the VNC part.
Another method of remote desktop is XRDP, it provides a graphical login to remote machines using RDP (Microsoft Remote Desktop Protocol).
Login to Raspberry Pi by using SSH.
Input the following instructions to install XRDP.
sudo apt-get update sudo apt-get install xrdp
Later, the installation starts.
Y, press key
Enter to confirm.
Finished the installation, you should login to your Raspberry Pi by using Windows remote desktop applications.
Login to XRDP
If you are a Windows user, you can use the Remote Desktop feature that comes with Windows. If you are a Mac user, you can download and use Microsoft Remote Desktop from the APP Store, and there is not much difference between the two. The next example is Windows remote desktop.
mstsc in Run (
WIN+R) to open the Remote Desktop
Connection, and input the
<IP address> of Raspberry Pi, then click on Connect.
Then the xrdp login page pops out. Please type in your username and password. After that, please click OK.
Here, you successfully login to RPi by using the remote desktop.