Raspberry Pi

Most of the info on this page is available in a number of other places on the net. The only reason I’m creating this page is so I can easily find some of the useful info I personally want to know.   If you find it useful as well then that’s great.  I’ll provide links to the original sources as well so you can go and check out the full original information.

 

  1. Updating the Raspberry PI, running Raspbian (it’s all I run on mine right now, so any references to the OS will always be aimed at Raspbian)

    1. Keeping Up to Date

    2. You can use the standard Debian way to update your installation:
    3. apt-get update && apt-get dist-upgrade

    4. To get the newest kernel and firmware, rpi-update is included in this image.
    5. Just run the following command:
    6. rpi-update

    7. rpi-update will only work after time has been set. Install ntp as described above or set the time with ntpdate:
      1. apt-get install ntpdate

      ntpdate uk.pool.ntp.org

  2. (SOURCE: http://www.raspbian.org/HexxehImages)

  3. Raspcontrol: I found this while looking for control apps to use on my Android devices.  I found a couple apps in the play store, but honestly they’re all crap and some don’t even work.  However, one of the apps requires something called Raspcontrol to be installed on your RPi.  This gives a neat little web interface to the RPi so you can check it’s health and run some commands.  It’s very simple and quite insecure so read the warnings on their site about not using it in production.  However, saying that it is pretty neat.   In running it for a couple of hours and wondering what was missing I started to hack about with the code and made some changes to some of the commands available to run.  I’ve made some patch files HERE, these are for files in the ./app/_lib/include directory, you’ll notice there are 2 new files as well.   Basically I’ve just added the SysInfo menu and a script to send me the IP address by SMS, while not overly useful in the browser if you’re on it but I added it there anyhow Smile BTW, that script is run at boot time so I get the IP of the RPi.

    You can see from my screen shot how it’s different now
    Raspcontrol - The Raspberry Pi Control Centre - Mozilla Firefox_2012-10-09_00-31-10
    And the Services menu…
    Raspcontrol - The Raspberry Pi Control Centre - Mozilla Firefox_2012-10-09_00-32-32

  4. Configure Wi-Fi – There are lists of what wi-fi dongles work and what doesn’t.  Some of the ones that are marked as working from the list I found on Ebay however most of them were between £10 – £20, a little much for a USB wi-fi dongle these days.  I found one for under £5 and decided to just take a chance, and it worked out fine.  I order THIS ONE.  It worked right out of the box, no need to install anything.  The only thing I had to do was edit the WPA config file (/etc/wpa.config), I used the instructions found on THIS PAGE, jump down to the section that starts “$ sudo nano /etc/wpa.config”.  If you want to save the reading then this is what you edit:

    Edit (create)
    /etc/wpa.config
    Put this in:

    network={
    ssid="YOUR SSID HERE"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    psk="YOUR WPA PASSWORD HERE"
    }

    Edit
    /etc/network/interfaces

    My file looks like:

    auto lo
    iface lo inet loopback
    iface eth0 inet dhcp

    auto wlan0
    iface wlan0 inet dhcp
    wpa-conf /etc/wpa.config

    After that I tried to restart the networking (/etc/init.d/networking restart) but the box hung .. so I just rebooted it.  As soon as it came up it connected to WI-FI AP with no problem at all.

  5. … more coming