sudo apt-get -y update && sudo apt-get -y upgrade
- Expand file system
- Set new password for
pi
user - Enable SSH
- Change locale, keyboard layout and timezone
- Change hostname
- Force audio through 3.5mm
- Required for everyone:
sudo apt-get -y install alsa-utils mpg321 mplayer git-core lynx netatalk bluetooth bluez libbluetooth-dev
- Phython stuff:
sudo apt-get -y install python-setuptools python-dev python-rpi.gpio
- USB stuff for z-wave (optional):
sudo apt-get -y install libcap2-bin libudev-dev libusb-1.0-0-dev libpcap-dev
- Printer stuff (optional):
sudo apt-get -y install cups foomatic-db foomatic-db-engine
Enable Bluetooth without root
find -path '*noble*Release/hci-ble' -exec sudo setcap cap_net_raw+eip '{}' \;
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
source ./.bashrc
nvm install 6
npm install forever -g
mkdir ~/forever-logs/
- Follow instructions from OpenZWaveShared
sudo ldconfig
git clone https://github.com/petele/HomeOnNode.git
cd HomeOnNode/app
mkdir logs
npm install
- Update
Keys.js
cd ..
git clone https://github.com/OpenZWave/open-zwave
Note: If you're going to use the GPIO pins, you'll also need to run npm install onoff
Edit /etc/kbd/config
and set:
BLANK_TIME=0
BLANK_DPMS=off
POWERDOWN_TIME=0
Follow instructions to prevent console blanking here
Edit /etc/logrotate.conf
and add:
"/users/pi/HomeOnNode/app/logs/rpi-system.log" {
rotate 4
weekly
missingok
nocompress
}
- Create
~/login.sh
with the code below chmod +x ~/login.sh
- Edit
.bashrc
and add./login.sh
to the bottom of the file
#!/bin/bash
echo "Starting HomeOnNode in 5 seconds"
sleep 5
echo "Starting Monitor..."
forever start -l ~/forever-logs/forever.log -o ~/forever-logs/output.log -e ~/forever-logs/error.log ./HomeOnNode/monitor.json
cd HomeOnNode
./pull.sh
./get-zwave-cfg.sh
./controller.sh
Celebrate!