Raspberry Pi

From ago control wiki
Revision as of 22:52, 29 December 2013 by JoakimL (Talk | contribs)

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

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

Installation

OS (headless)

Download Raspian from [1] Get the image to an SD card, e.g. using this tutorial: [2] 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 and ssh into the RPi

ssh 192.168.x.xx

user: pi password: raspberry

Set the password to something new

sudo passwd pi [new password]

Start the RPi configuration

sudo raspi-config

Use these option:

  • 1 (expand filesystem)
  • 3 (boot options) -- console
  • 8 (Advanced options)
    • A2 (change name) -- Set whichever host name you like
    • A3 (memory split) – 16
    • A7 (update)

Go into sudo-mode

sudo bash

Set your time zone:

dpkg-reconfigure tzdata  

Upgrade the OS to latest version:

apt-get update
apt-get upgrade

aGo Control

Get the installation key & add installation source

wget http://mirror.at.agocontrol.com/debian/conf/agocontrol.gpg.key
apt-key add agocontrol.gpg.key
echo "deb http://mirror.at.agocontrol.com/debian unstable main" >> /etc/apt/sources.list

Install aGpo Control (Currently approx. 180 MB additional disk) You'll be asked for a QPID daemon password during the install: Set it to something

apt-get update
apt-get install agocontrol
apt-get install systemd systemd-sysv
reboot

After reboot, ssh into the RPI again

ssh 192.168.x.xx

user: pi password: the new password you set before

Add your location to the config file

nano /etc/opt/agocontrol/conf.d/system.conf

add eg:

lat= 56.05
lon=12.7

press [CTRL]X to save

Now open http://192.168.1.77:8008 on another machine In the Web UI, add rooms & floorplans

If problem with sudo:

PATH=$PATH:/usr/bin
echo $PATH
Personal tools