unvt / washi

a capacity building material
Creative Commons Zero v1.0 Universal
1 stars 6 forks source link

Set up WiFi and change hostname #12

Open hfu opened 4 years ago

hfu commented 4 years ago

In this issue you can set up WiFi connection and also can change the hostname of your Raspberry Pi so that you can connect to your Raspberry Pi through WiFi. After that, you can connect to your Raspberry Pi from anywhere in the room without connecting your Raspberry Pi and your PC using an Ethernet cable!

sudo raspi-config

Please run the command above. image

2 Network Options

Please select 2 Network Options. image

N2 Wireless LAN

Then select N2 Wireless LAN. image

Select the country in which your Raspberry Pi is to be used

You are probably asked to select your country. image

Ok

Select Ok and enter. image

Enter your SSID

Please select your SSID. image

Enter your WiFi passphrase

Enter your WiFi passphrase then the WiFi connection is set up. image

Why you need to change your hostname

You need to have your own hostname when you have more than two RaspberryPi-s in a single WiFi network. The default hostname is raspberrypi.local which you used to log in. There will be a hostname conflict if your team connect several RaspberryPi-s with this default hostname.

2 Network Options

Select 2 Network Options again. image

N1 Hostname

Select N1 Hostname. image

Ok

Select Ok and press enter. image

Enter your new hostname

Enter your new hostname. image

You can choose a unique name for your Raspberry Pi. I keep the default 'raspberrypi' for this capacity building text for a less confusion.