How to Control Raspberry Pi 3 from Laptop?

Hello everyone, I hope you all are doing great. In today’s article, I am going to show you How to Control Raspberry Pi 3 from Laptop or Computer. In our previous tutorial, we have seen How to setup 7 inch HDMI LCD with Raspberry Pi 3 and you must have noticed that designing your code on TFT LCD is quite difficult. So, either you have the LCD or not, its always better to work on your Laptop.

In order to control our raspberry Pi 3 from Laptop, we have to use VNC server & client. It’s a third party tool designed by RealVNC. We have to install VNC server on the raspberry Pi and VNC viewer on our laptop & after that we can quite easily control our VNC Server from VNC Viewer (Client). So, let’s get started with How to Control Raspberry Pi 3 from Laptop using VNC Server & Viewer:

How to Control Raspberry Pi 3 from Laptop

  • As I have told earlier, in order to control Raspberry Pi 3 from Laptop, we have to install two things:
    • VNC Server on Raspberry Pi 3.
    • VNC Viewer on Laptop.
  • If you have already setup your 7 inch HDMI LCD, then first thing you need to do is, you need to connect your raspberry Pi with your Wifi.
  • Simply Click on the Internet Access in the toolbar and then connect to your Wifi as you do in your laptop.
  • Now, one you are connected to internet, now you need to open your LX-Terminal and then type this command in it:

sudo apt-get update

  • The above command will simply update the package, as shown in below figure:

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • Now we are gonna install tightvncserver on our raspberry pi 3, by using the below command:

sudo apt-get install tightvncserver

  • When you will enter the above command then VNC Server will be downloaded on your Raspberry Pi 3, and after that it will ask Do you want to continue, as shown in below figure:

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • So, press Y as yes and it will install the VNC Server on your raspberry Pi 3, as shown in below figure:
  • It will also ask for the password and I have given it “12345678”.

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • As you can see in the above figure that we have successfully installed VNC Server on your Raspberry Pi.
  • Now in order to start vnc server on your raspberry pi 3, you have to use below command:

vncserver :1

  • Now we have to install VNC Viewer on our laptop, so download VNC Viewer for Windows and install it on your laptop.
  • Once its installed then open your VNC Viewer and then click on File in top menu bar and then New Connection.
  • It will open up a new window to add new connection, as shown in below figure:

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • In the IP address section you have to enter the ip address of your Raspberry Pi and then place :1 after that.
  • In order to find the ip address of your raspberry pi 3, you can use the below command:

sudo ifconfig

  • I have shown the results in below figure and you can see ip address of our raspberry pi is written in the second line of wlan0.

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • So, we have gotten the ip address, enter it in the VNC Viewer and give it some friendly name, I am giving it pi, as shown in below figure:

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

I am again mentioning this this here that you have to place :1 after your ip address.

  • Now click OK button and then right click your newly created connection and then click on the Connect, and it will start connecting to your Raspberry Pi 3:

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • It will show you a warning pop and you need to click Continue, as shown in below figure:

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • You can also tick the checkbox, if you don’t want it to appear again.
  • After that, it will ask for the password, which we have set while installing it and it was “12345678”, so simply enter that password, as shown in below figure:

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • Now click OK and your raspberry Pi 3’s desktop will open up in front of you, as shown in below figure:

How to Control Raspberry Pi 3 from Laptop, raspberry pi 3 from laptop, raspberry pi 3 with laptop, raspberry pi 3 laptop, raspberry pi 3 with computer

  • So, that’s how you can quite easily control your raspberry pi 3 from laptop. Now you can write your codes from laptop.

Let me summarize everything. In today’s tutorial, we have seen How to Control our Raspberry Pi 3 from Laptop and we have used VNC Server & Viewer in order to do that. But you must have noticed that in order to install the VNC server on raspberry pi 3, we have to use HDMI LCD. So, what if you don’t have this HDMI LCD? In the next tutorial, we will have a look at that and we will see How to control Raspberry Pi 3 from Laptop using Ethernet. So, that’s all for today. Take care and have fun !!!

Leave a Reply

Your email address will not be published. Required fields are marked *