Remote connect Raspberry Pi 3 to laptop
- 08 February 2018
Raspberry Pi 3B
The Raspberry Pi 3 is a mini computer the size of a credit card. Much like many people use Windows or macOS as an operating system on their personal computers, the Raspberry Pi 3 comes preinstalled with its own operating system, a version of Linux called Raspbian. Many assume that computers require a monitor, keyboard, and mouse in order to fully utilize. This may not necessarily be true and we will take a look at the various different ways that we can interface with our Raspberry Pi.
- Insert 16G Micro SD card into Raspberry Pi
- Connect 40 pin cable as following picture, notice red line must be aligned as the picture and plug LCD on.
- Connect Micro USB cable to the Pi and a 5V phone charger or a computer USB port.
- After connect the power, after about 30 seconds, a beep sound, and LCD display IP address message.
Get Pi IP address is one important step to use Pi with laptop or other computer.
If IP address for example as “192.168.0.15” is displayed on LCD, go to chapter VNC.
Here is workflow how to get wifi IP address:
If there is no IP address is displayed on LCD, there are three ways to get IP.
- Use monitor / keyboard / mouse to connect to wifi
- Use network cable to connect with router to get IP
- Use smartphone hotspot to get IP
Following chapter will introduce above IP methods.
Methods of Connecting:
Monitor, Keyboard, and Mouse
The most standard way of connecting with our Raspberry Pi is using a monitor, keyboard, and mouse. Plug in a monitor through the Raspberry Pi’s HDMI port and the keyboard/mouse through the USB A ports. Upon supplying the Raspberry Pi with power, you will immediately see a user friendly interface. At this point, your Raspberry Pi will be able to do almost everything your personal computer can: access the Internet, create documents, play games, and more!
Click on top-right icon, turn on wifi, select Wifi name and input password. The Pi is on wifi network.
After connection, click the icon again, then move cursor over the icon, the IP address will be displayed as example: 192.168.0.15, or restart Pi, the IP will be displayed on LCD. The IP can be used by other computer / laptop / ipad / phone through VNC.
Use router cable to set Wifi (without monitor)
Connect Pi with router with ethernet cable, start Pi, the IP will be displayed on LCD, go to VNC chapter to setup Wifi or use directly.
Use martphone hotspot to get IP
Set hotspot on smartphone, the spot name “Pizhi”, password “innovaker”.
Start Pi with LCD, the LCD will display Pi IP of hotspot, go to VNC.
Virtual Network Computing (VNC) is another method of remotely connecting with a device such as Raspberry Pi without monitor / keyboard / mouse. When connected with the Raspberry Pi, all mouse and keyboard events from the remotely connected device are transmitted to the Pi, and the graphical interface is updated accordingly.
Laptop / desktop / smartphone / ipad etc can be used as terminal to run Raspberry Pi remotely by VNC.
Getting Set Up:
Install RealVNC Viewer on your local computer or smartphone.
The Pi IP must be at same local network of VNC computer. For example, if Pi uses hotspot, the laptop needs to use hotspot too in order to connect with Pi by VNC.
Connect to the Raspberry Pi its IP address which is obtained before. Run VNC view and type IP address as following picture:
Following window will display, default user name: “pi”, password: “raspberry”, turn on “Remember password” option, the Pi window will be displayed.
It’s Raspbian OS, a kind of Linux OS with window user interface.
Secure Shell (SSH) is a secured network protocol that allows for a secure remote login from one computer to another without window user interface. We can use SSH to create tunnels between your personal computer and the Raspberry Pi, allowing us to operate the Raspberry Pi as a headless device. In order to utilize the device, users must be familiar with the terminal command line to execute commands.
Getting Set Up:
MacOS or Linux:
Use the built-in ssh command to SSH into a device using the IP Address
Ex. ssh firstname.lastname@example.org