Open the terminal and type
sudo pico interfaces
Then change the content to this,where you will have to set the corresponding values depending upon your network.
iface lo inet loopback
iface eth0 inet static
to save and exit.
Now we have to set the DNS and that is done by esiting the file resolv.conf.So you can edit it by
sudo nano /etc/resolv.conf
and add below shown to the file and save it like before.
Now reboot your system by giving command
That’s all you are ready to go.
Latest posts by Bikash Panda (see all)
- OSMC on Raspberry PI with Setup and Control using Android App - July 7, 2017
- DHT12 Interfacing with Raspberry Pi using Pi4J - June 19, 2017
- Send data using MQTT from Raspberry Pi with JAVA - June 12, 2017