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)

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:

Non-raspbian distro

sudo fdisk /dev/mmcblk0

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

Using Raspbian

To do the same thing in Raspbian perform the following


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.

Setting up wifi

You put your SSID and password into:

nano /etc/wpa_supplicant/wpa_supplicant.conf



Assuming your interface is wlan0 you can connect with:

wpa_cli -i wlan0 reconfigure

The system should then be rebooted and WPA connection will be established.

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.