Raspberry Pi: workshop handout

I was commissioned by Furtherfield and the Southend Education Trust to develop and deliver a workshops for teachers on the Raspberry Pi computer. The workshop plan which I produced and delivered with Olga Panades can be found below.

Download: RP-workshop-handout.pdf

WiFi down notification

While in Berlin I was downloading some large files for a project I was working on & kept having a problem where the wifi at the hotel kept automatically logging out. So I wrote this short shell script to notify me when I needed to log back in again. Just save it to a file named "". chmod the file so it can be executed with "chmod u+x". Then just run it from the command line with "./".

while [ 1 ];
  echo "startup"
  for myHost in $HOSTS

Install Arch Linux on Macbook 3,1

Some notes on my attempt (I couldn't get the video drivers to fully work) to dual boot OSx and Arch Linux on this late 2007 model Macbook. To summarise I:

  • Installed rEFInd on OS x
  • Prepared a live USB stick to boot from.
  • Created two new partitions, one 15GB for "root" and one "home" taking up the rest of the space of the drive
  • Installed Arch
  • Installed Grub 2

Prep a live USB stick to boot from

Raspberry Pi Cheat sheet

Some rough notes while I'm playing around with a RaspberryPi.

Find the SD card: $ df -h
Save the name (remove the trailing number) and burn the image:
$ sudo dd bs=4M if=2012-09-18-wheezy-raspbian.img of=/dev/sdb;sudo sync

Start desktop: startx
Shutdown: sudo shutdown now

Find all raspberry pi's on a network:
sudo nmap -sP | awk '/^Nmap/ { printf $5" " } /MAC/ { print }' - | grep Raspberry
sudo nmap -sP | grep aspberry

Linux commandline Cheat Sheet

The following page is a general dumping ground for snippets i have found useful when managing Linux servers and generally operating a Linux machine, its in the process of being tidied up, but in the mean time....

Show devices: ifconfig
Show wireless devices: iwconfig
Scan wifi for IP addresses: sudo arp-scan --interface=wlan0
Scan ethernet for IP addresses: sudo arp-scan --interface=eth0
Restart network: sudo ifdown -a; sudo lspci | ifup -a
Ping Whole Network: ping -b
Show LAN detail: route -n

Setting Up Automated logins via ssh

Quick Instructions to enable a script to automatically connect via ssh.

  1. Generate your public key:
    On the local machine (i.e. the one you want to connect from), execute the command ssh-keygen -t dsa
  2. Copy the public key to the remote machine:
    scp ~/.ssh/
  3. Add the public key to the list of authenticated keys on the remote machine:
    - Login to the remote machine using ssh and your password (as normal), then :
    cat /root/.ssh/ >> .ssh/authorized_keys

Unison on ReadyNAS NV+

As part of my backup strategy I discovered I was able to install Unison on my ReadyNAS NV+ raid system. It look a little bit of fiddling around but I got there in the end.First off I upgraded the ReadyNAS to the latest version of the firmware & installed the ssh and apt add-on's. Then I make sure I have the software so that I can compile Unison by ssh'ing into the ReadyNAS and:
$ apt-get install gcc autoconf libtool make bison

Now we Compile Ocaml: XHTML 1.0 Strict CSS2 WAI