Skip to main content

How to connect raspberry pi to laptop display

By:Prayag Nao



The reason why I came up with this tutorial was because: one day, me along with my friends were struggling to work on the raspberry pi, since we did not have any HDMI/AV displays. Hence, I came up with this tutorial so that others who are also in the same situation as ours would be able to use the display of their laptops as a monitor to the Raspberry Pi.
As we know Raspberry Pi is known as the “Pocket Size PC”, but for debugging & project purposes its cumbersome to carry an additional display just for that. Also, many of us wont have access to a HDMI display too. So, we figured out a way to easily connect raspberry pi to laptop display. So sit back and enjoy this simple tutorial :)

These are the stuffs we need:

  1. Raspberry Pi.
  2. Ethernet Cable.
  3. Laptop.
  4. SD Card with Raspbian.
  5. Micro USB Cable.
(Optional) Components required for setting it up the first time:
  1. HDMI/ AV Display.
  2. Keyboard and Mouse
How does it work?
To connect raspberry pi to laptop display, you can simply use an ethernet cable. The desktop GUI (Graphical User Interface) of the raspberry pi can be viewed through the laptop display using a 100Mbps ethernet connection between the two. There are many softwares available that could establish connection between the raspberry pi and your laptop. We would be using the VNC server software to connect the pi to your laptop.
Installing the VNC server on your pi allows you to see the raspberry pi’s desktop remotely, using the mouse and keyboard as if you were sitting right in front of your pi. It also means that you can put your pi anywhere else in your home, but still control it. Also, internet can be shared from laptop’s WiFi over Ethernet. This also lets you access internet on the pi and connect raspberry pi to laptop display.
 

Step 1 : Setting up your Raspberry Pi

Before moving to connect raspberry pi to laptop display, you need an SD card having the OS preinstalled. You will find lots of blogs and tutorials about preparing an SD card for the Raspberry Pi. But if you are a beginner, you can simply download this free beginner’s guide eBook on pi: Raspberry Pi guide. This will show how to install the OS for the raspberry pi.
After setting up your SD Card, insert it into the raspberry pi. Next, for powering the pi connect your micro USB cable to it. Also connect your raspberry pi to the laptop via an ethernet cable. And connect the keyboard & mouse to it. Now, connect the HDMI display (the HDMI is only required for running the pi for the first time). Now power on your Pi. And follow the next steps to connect raspberry pi to laptop display.
 

Step 2 : Sharing internet over ethernet

This step explains how you can share your laptop internet with the raspberry pi via Ethernet cable.
In Windows : For sharing internet to multiple users over Ethernet, go to Network and Sharing Center. Then click on the WiFi network:
 
Connect raspberry pi to laptop display DIY Hacking
 
Click on Properties (shown below), then go to Sharing and click on “Allow other network users to connect”. Make sure that networking connection is changed to “Local Area Connection”:
Connect raspberry pi to laptop display DIY Hacking
Connect raspberry pi to laptop display DIY Hacking
Note : Doing this will provide a dynamic IP to the Ethernet port of your laptop and other Devices connected to your laptop. Now, for checking the IP assigned to your laptop, click on the new local area connection link created:
Connect raspberry pi to laptop display DIY Hacking
As shown above, the IP assigned to my laptop is 192.168.137.1. For checking the IP assigned to the connected ethernet device, do the following. Considering that IP assigned to your Laptop is 192.168.137.1 and subnet mask is 255.255.255.0 :
  • Open command prompt.
  • Ping on broadcast address of your IP. (Type) Eg: ping 192.168.137.255
  • Stop the ping after 5 seconds.
  • Check the reply from device: arp –a
 

Step 3 : Setting up the VNC server to connect Raspberry Pi to laptop display

If you have an HDMI display: Using the connected HDMI display on your pi, you should install VNC server in raspberry pi. Open the LX-Terminal and type the following commands to install VNC:
 
$ sudo apt-get update
$ sudo apt-get install tightvncserver
 
If you don’t have an HDMI display: If you do not have a display even for one time setup, then no need to worry. Install Putty as per your windows configuration and via SSH you can connect with your raspberry pi. And, as you get access of your pi terminal, run the same commands as above to install VNC.
Starting VNC Server on Pi :
For starting VNC, enter the following command in SSH terminal:
 
$ vncserver :1
 
You will be prompted to enter and confirm a password. This will be asked only once, during first time setup. Enter an 8 digit password. Note that this is the password you will need to use, to connect to the Raspberry Pi remotely. You will also be asked if you want to create a separate “read-only” password – say no (n).
Yippeee :)….The VNC server is now running on your Pi and so we can attempt to connect to it. But first we must switch to the laptop, from which we want to control the pi. Then setup a VNC client to connect to the pi.
 
 

Step 4 : Setting up the client side (Laptop)

Download VNC client from here and install it. When you first run VNC viewer, you will see following:
Connect raspberry pi to laptop display DIY Hacking
Enter IP address of your raspberry pi given dynamically by your laptop (you got the address from the earlier step). And append with :1 (denoting port number) and press connect. You will get a warning message, press ‘Continue’:
Connect raspberry pi to laptop display DIY Hacking
Enter the 8 digit password which was entered in VNC server installation on raspberry pi:
Connect raspberry pi to laptop display DIY Hacking
Finally, the raspberry pi desktop itself should appear as a VNC window. You will be able to access the GUI and do everything, as if you were using the pi’s keyboard, mouse and monitor directly. As with SSH, since this is working over your network, your pi could be situated anywhere as long as it is connected to your network.

Connect raspberry pi to laptop display DIY Hacking
Raspberry pi desktop on your laptop display

So, whenever you want to do something with your pi, just connect it with ethernet cable to your laptop and power it. Then open VNCViewer, mention the IP address of your pi. And you can use the display of your laptop as the raspberry pi’s monitor.

Comments

Popular posts from this blog

Shows full image when you hover over a thumbnail

By:Prayag nao Thumbnail Zoom Plus   It's a firefox add-ons.Shows full image when you hover over a thumbnail. Works with Amazon, Baidu Images, Bing Images, Facebook, Flickr, Google+, Google Images, IMDb, LinkedIn, Netflix, Pinterest, Reddit, Twitter, Yandex, YouTube, Wikipedia, Yahoo Images, & many more.     About this Add-on Thumbnail Zoom Plus is a Firefox plug-in which shows a full-size image popup when you hover over a thumbnail or image link. When you hover your mouse over a thumbnail or a link to an image or YouTube video, the add-on displays the full-size image or video still-frame in a floating window. The image remains visible until you move the mouse outside the thumb, click the mouse, or press Escape. It’s quick and easy to move the mouse from one thumbnail to another to see the corresponding full-size images. For details see  User Manual . Supported sites include Amazon , Baidu , Bing , Facebook , Flickr , Google , Huffington

Here's How This Supercool Hoverboard Works

By:Prayag nao   If you've ever dreamed of cruising around town on a floating skateboard like Marty McFly does in the classic '80s flick "Back to the Future Part II," then you could soon be in luck. A pair of innovators is trying to make the futuristic fantasy of riding a hoverboard into a reality. About two months ago, husband and wife design team Jill and Greg Henderson launched a Kickstarter campaignfor their Hendo Hoverboard, a levitating skateboard that could hit "hoverparks" as early as October 2015. The Kickstarter campaign , which ends Sunday (Dec. 14), has been a resounding success, bringing in well over its initial goal of $250,000 in its first week. With only a couple of days to go in the impressive crowdfunding campaign, the project has already raised nearly $500,000. But with all the hype comes an important question: How in the world does this thing work? The basic premise behind the technology is something called

Real life Jarvis-Talk With Your Computer like Jarvis in Iron Man ....!

By:Prayag nao                                            Code to Make your Computer like Jarvis New Speech macro..>> Choose Advanced and change the code like this.. <speechMacros>   <command>     <listenFor></listenFor>   </command> </speechMacros> You have to add a commands  <listenFor>........</listenFor> - computer listens the words you specify here and respond accordingly. <speak>............</speak> - computer speaks what is written in this field according to the command which it got. Similarly, You can Edit more commands in the same way.   <speechMacros> <command> <listenFor>What's going on dude</listenFor> <speak>Nothing special tony</speak> </command> </speechMacros> This is just a basic command,If you want more advanced commands.you have to use Java Scripts and VB scripts . Tell me Time : This is d