Skip to main content

how to make a static IP Address of an Raspberry-pi

How To Make Raspberry-pi ip-Address Static and show an virtual window of raspberry-pi on Windows desktop through VNC-Viewer



STEP 1: Disconnect your Desktop from Windows operating system.

STEP 2: Connect your Raspberry-pi to your pc install the Raspbian from the below link


STEP 3: Download BalenaEtcher which is basically an image flasher which is going to flash the image of the OS that is Raspbian on the SD card on any USB for further details go to the link below and download it.

Also you can download Win32diskmanger to flash the OS


STEP 4: Now as we download the Raspbian and also we flash it now Download the VNC viewer through the below link 



STEP 5: Now open the Terminal on Rasberry-pi and write the following commands

1. ifconfig : Check out the ip-address , sub-net mask
2. netstat -nr : This command will tell you about the gateway address
3. sudo nano /etc/network/interfaces : This command will give the network file name
4. ctrl-x : To close the file use control-X command.
6. sudo nano /etc/dhcpcd.conf : This is that file which is your network file
  Write the following commands in your file and make the raspberry-pi ip static

  1. interfaces eth0
  2. static ip_address=your ip address
  3. static routers=gateway ip_address
  4. static domain_name_servers=8.8.8.8 8.8.4.4

7. ctrl-X and Y: This will exit and save the file in the raspbian
8. sudo reboot









STEP  6: Now open the VNC Viewer and input the same ip address which you used to make the raspberry-pi static and just press ENTER it will ask you the 
USERNAME :Which is default that is pi
PASSWORD :The default password is raspberry

And after clicking the OK button the Virtual screen of the Raspberry-pi comes to your laptop or desktop 







Comments

Popular posts from this blog

What are the differences between StaticJsonBuffer and DynamicJsonBuffer?

   StaticJsonBuffer ArduinoJson  uses preallocated memory to store the data and this is possible due to StaticJsonBuffer. If one has to use this library then firstly they should create t he StaticJsonBuffer just like: StaticJsonBuffer<200> jsonBuffer; then it creates an  memory of 200 byte size which creates allocated memory in the system for storing the data static as the name tells it has fixed in size type of memory.Also we cannot reuse the memory once it gets allocated.it has high speed performance. DynamicJsonBuffer This library supports DynamicJsonBuffer since it has parameters for dynamic memory allocation but it will be more useful if we use this buffer in the machine having memory more than 10KB of RAM. to use this syntax is just similar. DynamicJsonBuffer jsonBuffer; This will create one dynamic memory for the system so that it can allocate it more precisely.its size is variable it stores the data in heap.while storing it take time and its somehow pro...

How to run Docker inside Docker Container?

Step 1 : Docker pull centos Step 2 : 1. mkdir storage           2. cd storage/ Step 3 : docker run -it --privileged -v /root/storage:/var/lib/docker --name os1 centos 1.    We used  privileged  mode because to run docker engine inside docker container it will be failed due to some security reason. A  privileged  container means it have all root capabilities of host machine 2.    Docker store all data like containers, images, networks, plugins and many mores inside in one place that is  /var/lib/docker,  so this folder is most important folder. We know if we terminate any container than all the content inside the container will be removed. So, for that reason we create a folder that is  mystorage  inside in host machine and linked this folder with that folder  /var/lib/docker  means we create a persistent storage of that folder  /var/lib/docker Now we install docker on  centos...

What is machine learning and how it works?