Skip to content

Instantly share code, notes, and snippets.

@dphiffer
Last active February 19, 2016 00:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dphiffer/221ef61cbd9ff7c98399 to your computer and use it in GitHub Desktop.
Save dphiffer/221ef61cbd9ff7c98399 to your computer and use it in GitHub Desktop.
Raspberry Pi setup

Raspberry Pi Setup

Hardware

Install Raspbian

Once your RPi 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]

The default password is: raspberry

Or just use a keyboard/monitor to login directly. I prefer the headless method because screens and keyboards are more bulky and annoying than a router and ethernet cable.

First, set a new password for the pi user: passwd

Initial config

Run the configuration utility.

sudo raspi-config
  1. Expand the filesystem
  2. Change the root password
  3. Internationalisation
  • Change Locale: en_US-UTF-8 UTF-8 (and select it on the second screen)
  • Change Time Zone
  • Change Keyboard Layout to en_US
  1. Finish (and reboot)

Setup wifi

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

Check that you're actually connected to the Internet (ping 8.8.8.8, ctrl-C to exit out of ping)

Install dependencies

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gpac firmware-linux-nonfree crda

Set your wifi card to US mode, then reboot.

sudo iw reg set US
sudo reboot

Wait for the RPi to reboot, then log back in: ssh pi@[ip address]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment