Skip to content

Instantly share code, notes, and snippets.

@bwbaugh
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwbaugh/ae8d656f7ab3c15de54e to your computer and use it in GitHub Desktop.
Save bwbaugh/ae8d656f7ab3c15de54e to your computer and use it in GitHub Desktop.
Setting up a raspberry pi.

Quick Start for Raspberry Pi

Initial setup

Basic setup involves:

  • Install dotfiles.
  • Change the hostname.
  • Change the timezone and locale.

Refer to the generic guide for additional common setup instructions e.g., configuring the default editor.

Lock the old user

After creating a new user and verifying that passwordless SSH works, lock the old pi user account:

sudo passwd --expire --lock pi

Wifi connection

See also: https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

Ensure the wpasupplicant is installed (it should already be).

Verify the network is visible:

sudo iwlist wlan0 scan

Append the network credentials to the configuration file:

sudo vim /etc/wpa_supplicant/wpa_supplicant.conf

by adding:

network={
    ssid="The_ESSID_from_earlier"
    psk="Your_wifi_password"
}

Restarting the wireless adapter is probably needed:

sudo ifdown wlan0
sudo ifup wlan0

View the results with watch ifconfig.

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