Raspberry Pi

From ago control wiki
Revision as of 12:35, 6 November 2017 by JoakimL (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Installation with readymade images

Raspberry Pi 1 / RPiB+ (ARMv6)

Jessie image created from raspbian-ua-netinst v1.0.7, based on the guide below to get Agocontrol installed and working, then updated Wheezy to Jessie. Details how to to the update, see [1] user: pi password: raspbian (Note root account also enabled: root/raspbian) Locale to en_DK and city to Copenhagen, change for your need. You must minimum use an 8GB SD card.

Link to RPI B+ AMRv6 image: [2] (Older: [3])
Verify the download with: md5sum raspbian_jessie_agocontrol_ver01.img.xz 396e7df1ca9cda1220edd86e6645f477 raspbian_jessie_agocontrol_ver01.img.xz

This will copy your image to your 8GB SD card. the "--keep" ensure your original image isn't deleted after decompressing

sudo xzcat --keep raspbian_jessie_agocontrol.img.xz |  sudo dd of=/dev/sdb

You might have another /dev/sdb, check in a console "demsg |grep sd"

Raspberry Pi 2 / RPiB2 (ARMv7)

Download Debian Jessie image at: [4]

The apt sources list is already configured. So no need to mess with it. But if you change it, make sure to use our regular repository, not the raspbian one.

User: root
Password: agocontrol

The image recognized my NIC on the 1st boot, but assigned it to eth1. I did not have internet until editing the udev by commenting out the NIC ending c3:12 and changing my NIC from eth1 to eth0.

nano /etc/udev/rules.d/70-persistent-net.rules

Installation from scratch

This is a full walk-through example install on a headless Raspberry Pi.

OS (headless)


N.B. The latest versions of Jessie seems to have SSH disabled; so the first steps needs to be performed with a keyboard and monitor attached.

I recommend using Raspian Jessie lite (minimised image, no GUI etc.) [5] Full version [6]

Get files onto SD card

Get the image to an SD card, e.g. using one of these tutorials: Windows, Linux, Mac


Insert the SD card, connect an ethernet cable and power up the RPi.
Find the IP adress it has received, e.g. look at the DHCP table in your router
Open a term window (on windows use Putty) and ssh into the RPi

ssh pi@192.168.x.xx

login: pi

password: raspberry


To enable SSH: - Create an empty file named ssh in the boot partition

touch ssh

To enable Wifi: - Create a config file named wpa_supplicant.conf in the boot partition. Example content:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

Now, insert the SD card, optionally connect an ethernet cable and power up the RPi.

ssh pi@raspberrypi.local

login: pi

password: raspberry


Set the password to something new

sudo passwd pi

install raspi-config

apt-get install raspi-config 

Start the RPi configuration

sudo raspi-config

Use these options:

  • 1 (expand filesystem)
  • 3 (boot options) -- console
  • 4(Locale) Add your local country/langage besides the default
  • 7 (Advanced options)
    • A2 (change name) -- Set whichever host name you like
    • A3 (memory split) – 0 (16 in older version)
    • A4 (SSH) likely you'll want to enable it
  • Finish

Reboot so filesystem is expanded to avoid issues later

sudo reboot

Log back in using new password

Go into sudo-mode

sudo bash

Set your time zone:

dpkg-reconfigure tzdata