Start here image

Basic setup of Raspberry Pi image

Starting the Peggy project requires the use of Linux on a Raspberry Pi. The Raspberry Pi i runs a modified version of Debian Linux called Raspbian. This allows us to run all Debian functionality as normal. Assuming you already have an Raspberry pi image of Raspbian installed (if you don’t please click here) (if you need an SD card that sets up with NOOBs click here)

Setting up the drive

First, the image that was provided needs to be resized to allow for code and packages to be downloaded. This can be done with the following commands:

Using Raspbian

For a Raspbian resizing can be perform using the built in tool.

sudo raspi-config

Select expand file system. While you’re on this menu you should also enable ssh.
IMPORTANT: when enabling ssh you need to change the root password. After this perform a reboot.

Other Linux distro

If you have chosen to use another Linux distribution the same can be accomplished by doing the following:

sudo fdisk /dev/mmcblk0

Now we need to delete the second partition (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w). Reboot the system, then:

sudo resize2fs /dev/mmcblk0p2

Setting up wifi

If you need to setup wifi you need to put your SSID and password into wpa supplicant config file:

nano /etc/wpa_supplicant/wpa_supplicant.conf

Example:


network={
ssid="ssid_name"
psk="password"
}

If you don’t want to restart (which I recommend) you can restart your wifi interface, assuming your interface is wlan0 you can connect with:

wpa_cli -i wlan0 reconfigure

Perform updates

Now that you are online we can do an update:

sudo apt-get update; sudo apt-get upgrade;

For additional how to you can read all my tutorials on Raspberry pi’s here

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.