Posts

Showing posts with the label raspbian

How to set static IP address for Raspberry pi in headless setup?

Image
For a headless raspberry pi device, which was configured for dhcp service in the network, if the router has become unavailable, the device IP assignment is not done in the network. In such scenario, the device will not be accessible in the network as no IP address is available to it.  Using ssh, the raspberry pi device can be accessed from remote system. This require IP address of the raspberry pi device to be know beforehand. For raspberry pi running Raspbian OS from an SD card, there is a way to directly configure the IP address as static. 1) Remove the SD card and load it into an SD card reader. Now plug the card reader to laptop or reader slot attached with the system. Now two partitions will be mounted on the system /boot and /rootfs. To enable ssh simply create an empty file named ssh in the /boot partition  $ cd /boot  $ touch ssh 2) Navigate to "etc" folder in rootfs partition. In ubuntu terminal  $ cd /rootfs/etc 3) Edit the file dh...