The Raspberry Pi is a credit-card sized computer whose primary purpose is to help people learn how computers work. For those who are new to the world of technology, it can be quite intimidating if you don’t know what all these terms mean or even how to start. The first step on your journey into tech should be learning about remote desktop software for the Raspberry Pi and it’s many uses in modern computing today.
The “xrdp raspberry pi” is a remote desktop protocol that allows you to remotely control your Raspberry Pi from another computer. This tutorial will show you how to use xrdp on Windows, Linux, and Mac computers.
Using a remote desktop to access your Raspberry Pi interface from another computer is a very easy method to do it. This way, you may use the same device to study my instructions on this page (for example) and implement them. This may be accomplished in a variety of ways. In this essay, I’ll show you the five most effective methods:
- X11 forwarding through SSH
I’ll go through how to set up each method on your Raspberry Pi and how to access it from any operating system (Windows, Linux, Mac and even from your smartphones). So keep reading to find out all there is to know about these options.
If you want to get started with the Raspberry Pi fast, check out my e-book. It’s a 30-day challenge in which you learn something new every day until you’ve mastered the Raspberry Pi. The first third of the book covers the fundamentals, but the latter chapters feature tasks that you may do on your own.
Install XRDP on the Raspberry Pi OS first.
The Pi Glossary is available for download. If you’re confused by all the new terms and acronyms, get my free Raspberry Pi dictionary (PDF format)!
This approach does not work on a new Installation of Raspberry Pi OS Bullseye at this time. You won’t be able to access the site. The auto-login feature in the Raspberry Pi Configuration utility may be disabled as a solution.
XRDP is an open-source remote desktop protocol server that lets you connect to a Linux desktop from any computer running any operating system. Know that XRDP utilizes the standard port 3389 if you need to open or redirect access on your network or firewall.
XRDP is easy to install since it’s included in the original Raspberry Pi OS sources.
All you have to do is type the following command into your terminal: apt-get install xrdp sudo
XRDP is now installed on your Raspberry Pi, and you can use the normal command to administer it: start | stop | restart | status sudo service xrdp
If you’re not comfortable with the Linux command line, you may want to start with this other article. I go through the most helpful Raspberry Pi commands, and you can even obtain a cheat sheet with them all.
If you don’t want to use the command line, you may install it through the Add/Remove program utility.
From the Linux platform
I advocate utilizing a solution like Remmina to connect from a PC running Linux. Most distributions offer it in their repositories, thus you can install it with: apt-get install remmina sudo
Start it after it’s been installed and connect to your Raspberry Pi’s IP address. If you don’t know how to acquire it, read this page, which explains different methods for obtaining an IP address.
The following problem occurred on my Ubuntu version:
“Your libfreerdp does not support h264, thus you requested a h264 GFX mode for server 192.168.1.15. Please double-check your color depth options.”
As a result, I had to add it as a shortcut since the fast connection does not allow for the color depth to be defined. The issue went away when I selected GFX RFX from the list, and I was able to connect.
If you’re having the same problem, here’s a snapshot of my setup:
The advantage of XRDP is that Windows users already have the client installed. We can use the same tool since it’s the same protocol that Windows employs to enable users to access Windows servers remotely.
Using Windows start the “Remote Desktop Connection” tool from the start menu and fill the IP address:
Today’s Raspberry Pi Bootcamp Sale is 10% off. Take it a step farther. I’m here to assist you in getting started with the Raspberry Pi. Learn all of the necessary abilities in the proper sequence.
If you don’t know your IP address, read this article, which explains how to discover it in numerous different methods. If you just have one Raspberry Pi on your network, you may also write “raspberrypi,” which is the default machine name.
When you click “Connect,” you’ll be sent to the XRDP login page, which looks like this:
All you have to do now is input your credentials (by default, pi / raspberry) and click OK. If you’re not sure what you’re doing, set Xorg to Session. The desktop will then seem to be quite well-presented.
The icons were a little large in my instance, so I altered them in the aesthetic preferences, but it was instantly useable.
From the Mac OS X
On Mac OS, I was unable to do the test, although there are numerous RDP clients that may be used in the same manner.
For example, from the App Store, download “Microsoft Remote Desktop” and connect to your Raspberry Pi by giving its IP address (follow the same procedure as for Windows users once the app installed).
From a mobile phone
You can also use the RDP protocol From a mobile phone quite easily. The application “Microsoft Remote Desktop” is also available for Android and iOS.
So, you may connect and utilize it, but don’t anticipate a wonderful experience since the smartphone screen isn’t designed for computer operation!
2. Use X11 Forwarding and enable SSH.
X11 is the most widely used graphical window manager on Linux. When connecting to a server through SSH, one approach to launch an app is to use X11 forwarding. This will start Raspberry Pi apps from our desktop in our scenario (so it is not full access to the desktop).
This strategy might be used from a distance. It would enough to just open SSH port (22) from the outside. To prevent any security risks, remember to restrict the authorized IP addresses and perhaps put up extra measures like fail2ban.
On the Raspberry Pi OS, X11 forwarding is enabled by default, but you must activate SSH, which is currently disabled on any new Installation.
To do so, just launch the Raspberry Pi Configuration tool, go to the “Interfaces” page, and enable SSH:
If you’re having trouble, make sure X11Forwarding in /etc/ssh/sshd config is uncommented and set to yes.
From the Linux platform or Mac OS
Using Linux or macOS, the access is almost same since all you have to do is connect in to SSH with a parameter: ssh -X [email protected] Obviously, instead of mine, you’ll need to use your Raspberry Pi’s IP address.
After entering your password, run your program using the nohup command: chromium-browser & & & & & & & & & & & &
Replace chromium-browser with your preferred app.
The program will launch on your computer (slowly or quickly depending on the circumstances).
If you’re using Windows, it’s a little more complex, but not by much. You’ll need the following software: – Gooey (which you probably already have for the SSH connection) – Xming Xming Xming Xming (download it on Sourceforge)
After you’ve installed Xming (the default parameters are fine), follow these steps:
- Begin with Putty.
- Put something like “[email protected]” in the hostname field.
- Put something like “Raspberry Pi” in the Saved sessions.
- Go to Connection > SSH > X11 in the left menu, and check “Enable X11 forwarding”.
- Return to Session and choose Save.
- Then connect by double-clicking on your newly saved session.
More information about connecting to a Raspberry Pi using SSH may be found in this post. After that, you’ll have SSH access to the Raspberry Pi with X11 forwarding enabled.
With the nohup command, you can run a Raspberry application on your Windows PC while you’re in the console: baobab & baobab & baobab & baobab & baobabamp;
On your Windows desktop, this will launch the Raspberry Pi disk manager:
From a mobile phone
I don’t believe you can utilize this strategy from your phone (tell me if you know how).
People have previously started an X server on Android in order to utilize an Android app on their PC, but not the other way around.
3. Use VNC to connect to the Raspberry Pi remotely.
VNC (Virtual Network Computing) is a graphical desktop sharing solution similar to XRDP. The distinction is that, unlike XRDP, you connect to the existing session directly rather than starting a new one. You may utilize a variety of VNC servers and clients (RealVNC, TightVNC, UltraVNC, etc.).
VNC uses port 5900 to communicate. If necessary, you may NAT this port to make it accessible from the outside.
In only 30 days, you’ll have mastered the Raspberry Pi. Today’s sale is 10% off. Get the eBook here. In a 30-day challenge, uncover the mysteries of the Raspberry Pi. Learn important Linux skills and put them to work on a variety of projects.
VNC, like SSH, is pre-installed on every Raspberry Pi OS version; all we have to do now is activate it. To do so, navigate to the “Interfaces” tab in the Raspberry Pi setup tool and tick the “Enabled” box on the VNC line.
That’s all; the VNC server is now up and running.
From the Linux platform
Installing the RealVNC client on Linux was the simplest solution I discovered (you can also use Remmina for VNC, but it didn’t work for me).
As a result, I propose that you download RealVNC viewer from this link.
If it’s only going to be used once, choose the default selection (Standalone), but if you want the RealVNC shortcut in your applications, pick the.deb or.rpm depending on your OS.
You may usually install it by double-clicking on the following file:
You may do it on the command line if required, for example: dpkg -i VNC-Viewer-6.18.625-Linux-x64.deb in Debian rpm -ihv VNC-Viewer-6.18.625-Linux-x64.rpm rpm -ihv VNC-Viewer-6.18.625-Linux-x64.rpm rpm -ihv VNC-Viewer-6.18.
Then it’s only a matter of inputting the Raspberry Pi’s IP address and validating. The URL will be automatically saved for future use.
Using Windows it is the same thing, you can download and install RealVNC from their official website.
Then, from the start menu, activate the program, input the Raspberry Pi’s IP address, and you’re connected to the remote desktop.
The requested logins are the system’s standard users (for example, pi/raspberry if the password has not been changed).
From the Mac OS X
RealVNC is also available for Mac OS, so download it and install it before continuing with the procedures below.
From a mobile phone
RealVNC also has an app for iOS and Android devices, so you can use it whenever and anywhere you want.
This approach may also be used with an iPad (as discussed in my post here), making your iPad the Raspberry Pi monitor.
4. Teamviewer is the best option for external access.
Teamviewer is a proprietary program for remote desktop usage that is similar to VNC but adds extra functions, most of which are business-oriented. Teamviewer, for example, allows you to connect to a workstation in another building or city through the Internet.
As with prior methods, there is no need to create a separate port for each machine. TeamViewer connects by default to port 5938, although it can also connect to ports 80 and 443 if those ports aren’t accessible (so it will work natively most of the time).
The Installation is not evident since, while being listed in the documentation of an ARM package, it is not available in the Linux download links, and there is no Raspberry Pi category. This is where you download the file. You should be able to access this website from your Raspberry Pi, download the relevant version (32 or 64 bits), and then use the graphical interface to install it.
But, if necessary, I’ll show you how to install it from a terminal without having to go to their website:
- wget https://download.teamviewer.com/download/linux/teamviewer-host armhf.deb Get the ARM package for TeamViewer:
- dpkg -i teamviewer-host armhf.deb sudo dpkg -i teamviewer-host armhf.deb sudo dpkg -i teamviewer-host_
- You’ll encounter certain dependency issues, which you may address by performing the following: apt-get update sudo install sudo apt-get -f
- If you have a paid TeamViewer account, you may set it up by typing sudo teamviewer setup.
- Otherwise, you’ll need to join with a password like this: sudo passwd teamviewer YOURPASSWORD
- The Raspberry Pi ID may then be obtained as follows: sudo info teamviewer
From the Linux platform
To get started on Linux, go to the official TeamViewer website and download the program.
Then use your package manager to install it, or use sudo dpkg -i teamviewer 15.25.5 amd64.deb.
Start the software from the Start menu or from a terminal by entering “TeamViewer.” If you have an account, please log in. Then, in the Partner ID area, type the TeamViewer ID from the Raspberry Pi and hit enter.
It will prompt you for your password and connect to the Raspberry Pi through remote desktop.
Using Windows and Mac OS
Because the technique is the same for both Windows and Mac OS users, I won’t go through it again.
Download Teamviewer, install it and then enter ID & Password previously set.
From a mobile phone
Today’s sale on Master Python on Raspberry Pi is 10% off. Get your hands on the eBook. Make the most of your Raspberry Pi by learning new ideas and using shortcuts. If you don’t know Python, you’ll lose out on half of the pleasure of using a Raspberry Pi.
TeamViewer supports Android, iPhone, Windows, and Blackberry handsets with its software. As a result, the app may be used in the same manner to provide sudden assistance from anywhere.
5. NoMachine’s remote desktop
Another remote desktop access solution that you may use with your RaspberryPi is NoMachine. The NX protocol was intended to increase the performance of the traditional X display, and NoMachine is built on it. It is pretty similar to VNC in terms of how it is used.
Please keep in mind that NoMachine utilizes port 4000 for client connections if you’re using it behind a firewall. In the NoMachine server’s management tools, you may alter the default ports.
NoMachine is available for Raspberry Pi, so you may acquire the package that best suits your needs on this page. ARMv8 is currently only available for 64-bit platforms, therefore if you don’t have a 64-bit OS, download the ARMv7 version instead, even if you’re using a Pi 4/400.
To install it, use your web browser to download it and then double-click on the downloaded file. Alternatively, you may use wget https://download.nomachine.com/download/7.7/Raspberry/nomachine 7.7.4 1 armhf.deb or sudo dpkg -i nomachine 7.7.4 1 armhf.deb to do everything in a terminal. Change the version number to the one you get.
Be patient; depending on your Raspberry Pi model, the installation may take a few minutes. The NoMachine symbol will show in the upper-right corner after everything is finished.
From any operating system
You must also install it on the client computer after the Raspberry Pi installation is complete. Return to the official site and, this time, download the version that corresponds to your machine.
Launch NoMachine after installing the supplied file. After that, NoMachine will automatically discover your Raspberry Pi on the network and activate an assistant.
To connect, you must double-click the Raspberry Pi. You’ll be prompted for your credentials (pi/raspberry or the password you set), and you’ll be signed in.
From a mobile phone
You may connect to your Raspberry Pi from anywhere using NoMachine, which is available for Android and iOS. You can also see a video on how to utilize this approach with an iPad on my YouTube channel.
To get new videos in your feed, subscribe to the YouTube channel:
Take a look at my cheat sheet! Get your free PDF file with all the Raspberry Pi instructions you’ll ever need!
As a result, we learnt how to connect to the remote desktop in five different ways:
- With the Xrdp program, you can have a remote desktop that looks like Windows.
- It is possible to run an app on the client computer using SSH and X11 Forwarding (and not the entire desktop).
- The Raspberry Pi may be accessed locally via VNC.
- With Teamviewer, which offers remote access to the Raspberry Pi among other things.
- NoMachine provides local access in a more beautiful and efficient manner than VNC.
So, which one is your personal favorite?
VNC and NoMachine, in my opinion, are my favorites, since they provide a speedy and clear presentation without the burden of Teamviewer. But that’s because I only need it on my local network, and it varies depending on the situation.
Another option to consider is Anydesk. I just prepared a lesson about it, and you can learn more about it by clicking on the link.
Resources for the Raspberry Pi
Don’t know where to begin? Learn all there is to know about the Raspberry Pi, stop looking for assistance all the time, and start enjoying your projects. Now is the time to watch the Raspberry Pi Bootcamp course.
In only 30 days, you’ll have mastered the Raspberry Pi. You don’t want just the basics? This book is for you if you want to learn the best ways to become a Raspberry Pi expert. With step-by-step instructions, you may learn important Linux skills and perform a variety of tasks. Take a look at the e-book.
VIP Members’ Club You may also join the Patreon community if you simply want to hang out with me and show your support. I provide you early access to my stuff and share behind-the-scenes information there. When you join, you’ll also receive a shoutout. More information may be found here. Do you need assistance building anything using Python? Any Python script for your Raspberry Pi may be created, understood, and improved. Learn the basics in a step-by-step manner, rather than wasting time on irrelevant ideas. Now is the time to get the e-book.
This website also contains all of my tool and hardware suggestions.
The “raspberry pi remote desktop to windows” is a way for people to remotely access the Raspberry Pi from their Windows or Linux computer. The process is very simple and only requires some basic knowledge of SSH, VNC, and RDP.
Frequently Asked Questions
How can I remotely access my Raspberry Pi from my Mac?
A: There are several ways to remotely access your Raspberry Pi from a Mac. If you need more help, please reach out to our support team at https://support.sparc-api.com/
How can I remotely access my Raspberry Pi from Windows?
A: There are a few different ways to do this. You can use a program called PuTTY, which is free and open-source software that you can download from their website. If youre not familiar with how it works, it allows for the remote connection of your Raspberry Pi computer through any SSH client such as Putty on Windows.
How do I enable remote desktop on Raspberry Pi?
A: In order to remotely access your Raspberry Pi, you will need to enable remote desktop. This can be done by opening up a terminal on the keyboard and using the command sudo raspi-config followed by b2 ->> Enable SSH
- raspberry pi remote desktop vnc
- raspberry pi remote desktop windows 10
- remote desktop to raspberry pi from mac
- raspberry pi remote desktop over internet
- chrome remote desktop raspberry pi