Raspberry Pi To Be Connected With Your Laptop
To connect Raspberry Pi to your Laptop you will just need an Ethernet cable, but before that you will have to install an OS on your SD card, after setting the SD card and inserting Raspberry Pi to it there will be few of the steps, so let’s get started:
Raspberry Pi Following Steps To Be Followed.
• You have to power your Raspberry Pi and connect it to your micro USB cable and to your laptop via Ethernet cable, and afterwards you will have to connect keyboard and mouse to it. Now HDMI display, which is a requirement for using Raspberry Pi for the first time is to be connected and then Raspberry Pi has to be powered on.
• Now through the Ethernet cable internet has to be shared by going to network and sharing center you will have to choose a WIFI network.
• Then you will have to click on properties and then you will have to click on sharing and chose “Allow other networks to connect”, keep this in mind that you select a Local Area Connection.
• After this a dynamic IP will be provided to the Ethernet port to your laptop and other connected devices on your laptop. To check the IP provided to your laptop and click on new local area connection created link:
• You can also check your assigned IP by opening a Command prompt and pinging on the IP address, you will have to stop the ping after five seconds and there will be reply that you will have to check: arp-a.
Raspberry Pi Uses VNS Server
• VNC server to join Raspberry Pi to Laptop has to be set up, there are two ways of setting this:
1. With HDMI display: VNC server can be installed in raspberry Pi by connecting HDMI displays to your Raspberry Pi. By opening LX terminal you will have to type following commands to install VNS:
$ sudo apt-get update
$ sudo apt-get install tightvncserver.
2. Without HDMI display: You have to install putty according to the configuration of your windows and you can connect to your raspberry pi with SSH and as soon as you are able to access Raspberry Pi to your terminal you will have to type the same commands as above to install VNC.
• Now you will have to start VNC by entering following commands in SSH terminal: $ vncserver :1, after this you will get a box to write and verify your password which should be of eight digits, that is to be used to connect Raspberry Pi remotely, if you are asked to create a separate read only password you have to say a no. Now, the VNC will be running on your Raspberry Pi now you can hook up to it, but before that you have to switch to the laptop from where Pi has to be controlled, then a VNC client has to be setup to connect Raspberry Pi.
• To setup up the laptop we will have to download VNC client and then install it, then we have to write IP address of the Raspberry Pi given by your laptop dynamically.
• Denote port number 1 and then connect it, after getting a warning message you will have to continue.
• After entering eight digit password which was entered while VNC installation.
Raspberry Pi As VNC Window
• Lastly, the raspberry pi desktop itself ought to emerge as a VNC window. You will be capable of accessing the GUI and do the whole lot, as if you are using keyboard, mouse and monitor openly of Raspberry Pi. As with SSH, as this is operational on your network, your pi could be positioned everywhere as long as it is associated with your network.
Raspberry Pi To Be Run In VNC Server
• At startup in Raspberry Pi run VNC server: you can connect to your Raspberry Pi remotely with VNC unless your Raspberry Pi is not rebooting and in any case if it does you will have to either follow your Raspberry Pi reboots, arrange for your VNC server to run automatically or else you have to restart your VNC server by connecting SSH.
To make certain that VNC starts automatically every instance on booting up, run the subsequent commands on the terminal:
Open “.config” folder from pi’s: user folder (it is a secret folder).
$ cd /home/pi
$ cd .config
• Generate a folder called “autostart” in it. Also generate a file called “tightvnc.desktop” in that folder. To build a file you can employ any known text editor. We use gnome-text-editor for this:
$ mkdir autostart
$ cd autostart
$ gnome tightvnc.desktop
After that you have to edit the contents in the file with the subsequent text and save the file:
Raspberry Pi To Be Rebooted
• Now, after that the next occasion you reboot your Pi, VNC server will initiate automatically. And flawlessly you would join raspberry pi to the laptop display. So, at any time you want to do anything on your Raspberry pi, just join it with the Ethernet cable to your laptop and power it. Then open VNC Viewer, cite the IP address of your pi. And you can use the demonstration of your laptop as the raspberry pi’s observe.