Initial Setup of Raspberry Pi

After boot up the raspberry pi, there are few things need to do to suit your usage style:

1. Change the default login password

passwd


[adsense]
2. Change static ip address
Make a backup of the original file

sudo cp /etc/network/interfaces /etc/network/interfaces.old

Edit the file

sudo nano /etc/network/interfaces

Comment below line
#iface eth0 inet dhcp

Add below lines according to your network environment:
iface eth0 inet static
#your static IP
address 192.168.1.101
#your gateway IP
gateway 192.168.1.1
netmask 255.255.255.0
#your network address “family”
network 192.168.1.0
broadcast 192.168.1.255


[adsense]
Once finish, save the file by pressing Ctrl+X–>Y–>Enter.

Restart the networking using below command. Once successful, your current Putty connection will be terminated, where u need to start new Putty session using your static ip.

sudo /etc/init.d/networking restart

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *