-
Notifications
You must be signed in to change notification settings - Fork 25
Installation
binarybucks edited this page Apr 16, 2013
·
30 revisions
THIS DOCUMENT IS A WORKING DRAFT AND SHOULD NOT BE CONSIDERED COMPLETE
$ git clone https://github.com/binarybucks/homA.git $HOMA_BASEDIR
Install Node.js, NPM and Mosquitto
Add configuration items
$ sudo mkdir /etc/homa
$ sudo sh -c "echo HOMA_BASEDIR='/homA' > /etc/homa/homa.conf"
$ sudo sh -c "echo HOMA_BROKER_HOST='localhost' >> /etc/homa/homa.conf"
$ sudo sh -c "echo HOMA_BROKER_PORT='1883' >> /etc/homa/homa.conf"
Export configuration items as environment variables
[[ -r /etc/homa/homa.conf ]] && . <(sed '/^export/!s/^/export /' "/etc/homa/homa.conf")
Install mosquitto Enable systemd service
$ sudo systemctl enable $HOMA_BASEDIR/misc/mosquitto.service
$ sudo systemctl start mosquitto
tbd
tbd
tbd
tbd