- Raspberry Pi 3
- Case
- Power cable
- MicroSD card
- Optional: HDMI monitor/cable, keyboard
The first step is to flash your MicroSD card with the latest version of Raspbian Lite.
If you intend to setup the hardware "headless" (without a keyboard and monitor), you should create a blank file called ssh
at the top level of the "boot" volume. This will instruct Raspbian to boot up with SSH enabled, but only once.
If you have a monitor and HDMI cable handy, it's the safest way to login to your pi. Insert the MicroSD card, plug in the HDMI cable and keyboard, and power it on. You should see a bunch of text scrolling by, and eventually it should show you a login prompt.
Username: pi
Password: raspberry
Note: this may not work any more, now that the SSH service isn't enabled by default
Once your Pi is up and running, plug it into a router with an ethernet cable & track down the IP address from the DHCP client list. If you have the nmap
utility installed, you can also search for all the clients serving on port 22:
nmap -sV -p 22 192.168.0.1-254
Once you have the IP address you can login:
ssh pi@[ip address]
Password: raspberry
Set a new password: passwd
Type the current password, then your new password twice. When you type your password, it won't show your typing, which can be surprising if you're not expecting it. Please remember your password, it will be annoying later if you forget it.
Run the configuration utility.
sudo raspi-config
- Expand the filesystem
- Change the root password
- Internationalisation
- Change Locale (I chose
en_US-UTF-8 UTF-8
) and select it on the following screen - Change Time Zone to UTC
- Change Keyboard Layout to one that you prefer (I chose
English US
layout, with everything else default)
- Choose your country's Wi-Fi settings
- Advanced settings
- Enable SSH server
- Change the hostname to
smoldata
- Finish (and reboot)
Edit the wifi config: sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Add the following configuration:
network={
ssid="Wifi SSID"
psk="Wifi password"
}
Restart the networking service:
sudo service networking restart
Wait a moment, and then check that you're actually connected to the Internet: ping 8.8.8.8
(type ctrl-C to stop (Mac users that is an actual "ctrl" key, not "command")). If you get an error message, it could just be that you need to wait a bit longer and try again.
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y gpac firmware-linux-nonfree crda
Now let's reboot and then we should be ready to install some new things.
sudo reboot
If you want to login via SSH, you can follow the steps in the headless login section above to figure out the IP address, or type ifconfig wlan0
from the terminal to figure out the current IP.
Then you can login via SSH from Mac/Linux like this: ssh pi@[ip address]
(and type the password you set earlier)
If you use Windows, you may need to install a client like PuTTY.