What are the stuff required to do this?
- Raspberry Pi.
- Ethernet Cable.
- Laptop.
- SD Card with Raspbian.
- Micro USB Cable.
(Optional) Components required for setting it up the first time:
- HDMI/ AV Display.
- Keyboard and Mouse.
How does it work?
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 2 : Sharing internet over ethernet
In Windows : For sharing internet to multiple users over Ethernet, go to Network and Sharing Center.
- 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.
For more detail: The Best way to Connect Raspberry Pi to Laptop displayThe Best way to Connect Raspberry Pi t