Configure
During this lab, you connect the Raspberry Pi to your computer so you can remotely login using the monitor on your comuputer rather then having to attach an external monitor, keyboard and mouse. Finally you will configure your Raspberry Pi to synchronize it’s clock with the internet so it aways has the correct time.
Connect to Raspberry Pi
- Move Micro SD card to Raspberry Pi Micro SD card slot.
- Connect Raspberry Pi’s USB port (not PWR) to computer using Micro USB to USB cable.
- SSH to Raspbery Pi
- Mac or Linux
- Open terminal window.
- SSH
ssh pi@raspberrypi.local
- Approve authenticity of host.
- Windows
- Open Putty
- Enter raspberrypi.local into Host Name and press the Open button.
- Approve authentication of host.
- Enter login of pi and press enter.
- Mac or Linux
- Enter raspberry as password.
NOTE: If you get a WARNING: POSSIBLE DNS SPOOFING DETECTED! error run the following command and try sshing again.
ssh-keygen -R raspberrypi.local
Configure Networking & Timezone
Networking and Timezone should be configured so it can automatically get the correct time.
NOTE: When you bring the binary clock home or change WiFi networks, you will have to reconfigure the network.
- At the Raspberry Pi’s command-line type:
sudo raspi-config
- Goto Network Options.
- Choose Wi-fi.
- Enter codemash for SSID and press enter for passphrase.
- Goto Localisation Options.
- Choose Change Timezone.
- US
- Select Eastern or timezone you reside in.
- Finish.
- Type the following on the command-line to validate date and time.
date
NOTE: While you are in raspi-config, it is probably a good idea to change the password as the default password is insecure and well known!!!
Manually Configure Time
If WiFi isn’t available, you can set the current time using this command.
sudo date -s "09 JAN 2020 19:11:00"