Skip to content

Instantly share code, notes, and snippets.

@tdgunes
Created April 2, 2019 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdgunes/9bb8937193bee2fc56eff92b2049007d to your computer and use it in GitHub Desktop.
Save tdgunes/9bb8937193bee2fc56eff92b2049007d to your computer and use it in GitHub Desktop.
Homebridge Guide

curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -

sudo apt-get install -y nodejs

sudo apt install -y libavahi-compat-libdnssd-dev

sudo npm install -g --unsafe-perm homebridge

https://gist.github.com/johannrichard/0ad0de1feb6adb9eb61a/

Download the two files and place homebridge under /etc/default and homebridge.service under /etc/systemd/system on your Raspberry Pi.

sudo ln $(which homebridge) /usr/local/bin/homebridge

sudo useradd -M --system homebridge

sudo mkdir /var/lib/homebridge

sudo chown -R homebridge:homebridge /var/lib/homebridge sudo chmod 777 -R /var/lib/homebridge

systemctl daemon-reload systemctl enable homebridge systemctl start homebridge

sudo killall ffmpeg; sudo systemctl restart homebridge; sudo journalctl -f -u homebridge

cat /etc/systemd/system/homebridge.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment