Raspberry Pi is one of the best and inexpensive single-board computers out there. If you are a tech hobbyist, then it opens the door for nearly everything from building a smart speaker to creating your personal VPN server. That said, you need a separate monitor to set up the Raspberry Pi, which adds to the overall cost. However, there is a nifty way to use your Windows laptop as a monitor for Raspberry Pi. In this tutorial, we have explained the steps to connect Raspberry Pi to a Windows laptop in simple terms. On that note, let’s go ahead and learn how to connect Raspberry Pi to a laptop display.
In this guide, I am using Raspberry Pi 4 Model B to demonstrate all the steps. However, if you have an old Raspberry Pi, there is nothing to worry about. I have mentioned separate steps for old boards too. You can click on the table below and jump to the relevant section right away.
1. First off, to use a Windows laptop as a monitor for Raspberry Pi, you need an ethernet cable. You can then connect the Raspberry Pi to your Windows 10 laptop directly or to your router. I would recommend connecting to the laptop directly for a faster connection.
2. Next, you need a microSD card of a minimum of 16GB in size.
1. You need to download Raspbian OS from here. I suggest downloading “Raspberry Pi OS with desktop and recommended software” on the web page that opens. It will have all the required packages, utilities, and dependencies.
2. After that, download balenaEtcher (Free) to flash Raspbian OS onto the SD card.
3. Next, download Putty (Free) for connecting your laptop to the Raspberry Pi’s console.
4. Finally, download VNC Viewer (Free) so that you can access the desktop environment of Raspberry Pi on your Windows laptop.
1. Once you have downloaded Raspbian OS, extract the ZIP file. You will get an IMG file.
2. Next, install balenaEtcher and open it. Select the extracted image and choose the SD card under the “Select target” option. After that, click on “Flash“.
3. Once the flashing process is complete, you need to follow one more step to enable SSH. Create an empty text file on the desktop. To do that, right-click on your desktop and select “New -> Text Document” to create the file.
4. Now, open the text file and save it as a ssh
file with no extension. Simply select “All files” from the “Save as type” drop-down menu. Make sure there is no extension added to the filename.
5. Finally, move the ssh file to the root directory of the flashed SD card. You are done on this front. Remove the SD card from your laptop and insert it into the Raspberry Pi.
1. Use the ethernet cable and connect the Raspberry Pi to your Windows laptop. After that, connect the Raspberry Pi to a power source using a USB Type-C cable. You can also use your laptop’s USB port as a power source.
2. Next, install Putty and open it. You don’t need to change any default settings. Just enter raspberrypi.local
in the Host Name field. And make sure “SSH” is selected as the Connection type. Finally, click on “Open” at the bottom.
3. A console window will then open up. By default, Raspberry Pi’s username is pi
and password is raspberry
. Enter these details on the console window and hit enter. You will successfully log into Raspberry Pi’s console.
4. As you are using your Raspberry Pi for the first time, it’s better to run the below command to update all the packages and dependencies to the latest version. You can skip this step if you have already updated your RPi. Note that you will need an internet connection on your Windows 10 laptop to execute this command. If you can’t update it right away, you can skip this step.
sudo apt-get update && sudo apt-get upgrade -y
5. Once the update is installed, enter the command sudo raspi-config
and hit enter.
6. It will launch the configuration tool for Raspberry Pi. Move to “Interface Options” or “Interfacing Options” using the keyboard’s arrow keys. Then, hit Enter.
7. Under Interface options, move to “VNC” and hit enter.
8. On the next page, choose “Yes” and hit enter.
9. After that, open “System Options” and go to “Boot/ Auto Login”. Next, move to the “Desktop Autologin” option. If you are using an old Raspberry Pi, navigate to Boot “Options -> Desktop/ CLI -> Desktop Autologin”.
10. Finally, hit enter to apply the changes. Next, move to “Finish” by pressing Tab and hit Enter. It will reboot your Raspberry Pi, and the SSH session will end. Now, close Putty and other windows.
11. Now, install VNC Viewer and open it. Enter raspberrypi.local
and hit enter.
12. Then, a prompt will appear, click on “Continue”. On the next window, enter your RPi’s credentials, username: pi
and password: raspberry
. Now, click on “OK”.
13. Within seconds, the Raspberry Pi’s screen will be live on your Windows 10 laptop’s display. Now, go through the on-screen instructions and set up Raspberry Pi. If you get any errors, move to the next section.
If you get the “Cannot currently show the desktop” error while trying to connect your Raspberry Pi to a laptop display, there is nothing to worry about. Follow the steps below to fix the issue.
1. Close all the windows and fire up Putty. Follow the same steps as above and connect to Raspberry Pi’s console once again. To explain briefly, enter raspberrypi.local
as the Host Name, select “SSH” and click on “Open”.
2. Next, enter RPi’s credentials and hit enter. Now, enter sudo raspi-config
to open the Configuration tool.
3. Here, open “Display Options” and navigate to “Resolution”. But if you have an old Raspberry Pi, you will find this setting under “Advanced Options”.
4. Choose a resolution other than “Default”. According to your laptop’s aspect ratio and display resolution, you can choose any other mode.
5. Now, press Tab to move to “Finish” and close the Putty session.
6. Finally, open VNC Viewer, and this time, you will be able to connect to Raspberry Pi’s desktop environment without any issues. If the “Cannot currently show the desktop” error persists, keep changing the resolution and check which one works for you. That’s it.
So this is how you can use your Windows 10 laptop as a monitor for Raspberry Pi. The steps may seem lengthy, but believe me, it’s easy and doable. You need to follow the instructions step-by-step, and you will be ready to use the Raspberry Pi in no time. If you face any issues while setting up Raspberry Pi without a monitor, comment down below, and we will help you out. And if you have managed to connect Raspberry Pi to your Windows laptop, go ahead and find the best Raspberry Pi 4 projects from our linked article.
After the flashing process finishes, insert the microSD card into your Raspberry Pi. Then, connect your board to the ethernet cable already connected to your laptop. Afterward, power it up using a recommended supply. Raspberry Pi recommends a 5.1V 3A power supply unit for Raspberry Pi 4 models.
You can now log in to the Raspberry Pi from your laptop. This step will differ for Windows and Mac users. If you're on a Windows device, here's what you need to do:
1. Download and install PuTTY. This will be used to connect your Windows device to the board's console.
2. Download and install VNC Viewer. This app will display your board's desktop environment on the Windows device.
Afterward, you can connect your board to the ethernet cable already connected to your Windows computer. Then, power up the Raspberry Pi using a 5V 2A source. From here, continue with the following steps:
1. Launch PuTTY.
2. Under "Host Name (or IP address)," type "raspberrypi.local" (without the quotes).
3. Under "Connection type," ensure that SSH is selected.
4. Click the Open button.
SlashGear
5. If a PuTTY Security Alert pops up, select Accept.
6. In the console window, type "pi" after "login as."
7. Enter the password you created earlier. You should be able to log in to the Raspberry Pi successfully.
Meanwhile, if you're using a Mac device, these are the steps to follow:
1. Open your terminal.
2. Type "ssh-keygen -R raspberrypi.local" (without quotes) to generate an SSH key for your Raspberry Pi. This will allow your Mac to connect to the board. If you see any warnings, simply ignore them.
3. Type "ssh pi@raspberrypi.local" (without quotes) to log in to your board.
4. Type "yes" to continue connecting to the Raspberry Pi.
5. Enter the password you previously set. You should be able to log in with no issues.