So my alarm system has been running reliably for over 6 years. Looking after my house when I'm out, and waking me up in the mornings with a cup of tea.
Then out of nowhere, the SD card fails :(
No problem - I'll just create a new SD card from my Github repo.
However all the dependancies have changed, and its just not that easy.
This repo is about getting the build working again, and transitioning it to the Raspberry Pi Homebridge image.
The alarm system is intended for use on a Raspberry Pi 3 model B running the Homebridge Raspberry Pi image (Debian Trixie)
At first boot, the Homebridge image will prompt to select the keyboard layout, and then to create a local user account. You will need to attach a keyboard and monitor for these steps. After that, you can continue the install either through the keyboard and monitor, or through an SSH (terminal) session.
Logon using the local user account.
| Stage | Linux command | Notes |
|---|---|---|
| 1 |
sudo raspi-config |
This starts the Raspberry Pi configuration utility. Select the following...
|
| 2 |
sudo apt-get update |
Download package lists for software repositories and update them with the newest versions of packages and dependencies. |
| 3 |
mkdir Downloads |
Downloads from the GitHub will be stored in this directory. |
| 4 |
cd Downloads |
Change into the Downloads directory. |
| 5 |
git clone https://github.com/oddwires/WorkInProgress.git |
Download the alarm web app (copies all files from the Git Hub to the Download directory). |
| 6 |
sudo mv WorkInProgress alarm-system |
Rename the install directory. |
| 7 |
cd alarm-system |
Move into the install directory. |
| 8 |
chmod +x install.sh |
Make install script executable. |
| 9 |
sudo ./install.sh |
Run the install script. |
| or if you want to copy/paste all of the above in one go, here it is all in one line... sudo sudo apt-get update && mkdir Downloads && cd Downloads && git clone https://github.com/oddwires/WorkInProgress.git && sudo mv WorkInProgress alarm-system && cd alarm-system && chmod +x install.sh && sudo ./install.sh | ||
None - but I'm running it for a while because I'm sure there are some in there somehere.
https://<ip address>/ Alarm System console
http://<ip address>:8581/ Homebridge console
apache2 /var/log/apache2/access.log
/var/log/apache2/error.log
/etc/apache2/sites-available/000-default.conf
NGINX /var/log/nginx/error.log
/etc/nginx/nginx.conf
postfix /var/log/postfix.log
/etc/postfix/main.cf
SAMBA /var/log/samba/log.smbd
/etc/samba/smb.conf
Use port 587 (TLS) to connect to Gmail servers
sudo netstat -plnt
sudo hb-config