- Download Raspiban Stretch Lite from https://www.raspberrypi.org/downloads/raspbian/
- Note that Raspbian Stretch was released in April 2019 and can be downloaded at https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-04-09/2019-04-08-raspbian-stretch-lite.zip
- Use Etcher to burn to SD card (5 mins)
- After Etcher has burned image, you may need to reinsert the card to see it again.
- Copy sample
wpa_supplicant.conf
file to SD card.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=NZ
network={
ssid="SSID1"
psk="Password 1"
}
network={
ssid="SSID2"
psk="Password 2"
}
- Create empty
ssh
file on SD card. On Mac, you can usetouch
to do this.
touch /Volumes/boot/ssh
- Pop SD card into Raspberry Pi
- Power up pi.
- To find IP address of pi:
15:57 $ arp -a | grep b8:27
? (10.1.10.49) at b8:27:eb:f6:c2:ef on en0 ifscope [ethernet]
- For a pi Zero W 2, use the following:
➜ ~ arp -a | grep e4:5f
? (10.1.10.28) at e4:5f:1:5a:6e:b3 on en0 ifscope [ethernet]
➜ ~
e4:5f
- Login to pi -
pi
,raspberry
, accepting fingerprint warning if neccessary.
16:00 $ arp -a | grep b8:27
? (10.1.10.49) at b8:27:eb:f6:c2:ef on en0 ifscope [ethernet]
? (10.1.10.74) at b8:27:eb:4c:b:3a on en0 ifscope [ethernet]
✔ ~/dev/astara/EnergyMonitoringDashboard [master|✚ 2]
16:01 $ ssh pi@10.1.10.74
The authenticity of host '10.1.10.74 (10.1.10.74)' can't be established.
ECDSA key fingerprint is SHA256:qmO5vdnwHH/Mw6MaB8LxwdOoLSVNFqAoOxs5umJCukA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.1.10.74' (ECDSA) to the list of known hosts.
pi@10.1.10.74's password:
Linux raspberrypi 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
pi@raspberrypi:~ $
- Download the following two scripts and run them
curl -L "https://gist.github.com/leighghunt/dacfe5320ef06f9fcb24588603bc9397/raw/install-step-1.sh" -o install-step-1.sh
chmod +x install-step-1.sh
curl -L "https://gist.github.com/leighghunt/dacfe5320ef06f9fcb24588603bc9397/raw/install-step-2.sh" -o install-step-2.sh
chmod +x install-step-2.sh
- Download the docker-compose file. N.B. download the correct version depending on whether you're running 5 gauges version.
- Normal version:
curl -L "https://gist.github.com/leighghunt/dacfe5320ef06f9fcb24588603bc9397/raw/docker-compose.yml" -o docker-compose.yml
- 5 Gauges version:
curl -L "https://gist.github.com/leighghunt/dacfe5320ef06f9fcb24588603bc9397/raw/docker-compose-5-gauges.yml" -o docker-compose.yml
- Run
install-step-1.sh
./install-step-1.sh
- Reboot pi
sudo shutdown -r now
- Log in to pi again and run
install-step-2.sh
, and provide the usernameenergymonitoringdashboard
and password when prompted.
./install-step-2.sh
pi@raspberrypi:~$ ./install-step-2.sh
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: energymonitoringdashboard
Password:
WARNING! Your password will be stored unencrypted in /home/pi/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded