Skip to content

Instantly share code, notes, and snippets.

@dbrosy
Last active December 19, 2019 11:37
Show Gist options
  • Save dbrosy/1618cd02ffd487d1bbd4752bc2c30525 to your computer and use it in GitHub Desktop.
Save dbrosy/1618cd02ffd487d1bbd4752bc2c30525 to your computer and use it in GitHub Desktop.

NOCAN (OMZLO.COM)

Install Nocand

sudo apt-get install wiringpi
sudo raspi-config
wget -N http://omzlo.com/downloads/nocand-linux-arm.tar.gz
tar xvf nocand-linux-arm.tar.gz
sudo mv nocand /usr/bin/nocand
sudo chmod +x /usr/bin/nocand

Create config file

nano /home/pi/.nocand/config

Populate config file

auth-token = "<changethis>"

Run as service

Create nocand.service file
sudo nano /etc/systemd/system/nocand.service
populate file with following
[Unit]
Description=Nocand service
After=network.target

[Service]
ExecStart=/usr/bin/nocand server
WorkingDirectory=/home/pi
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi

[Install]
WantedBy=multi-user.target
Enable service
sudo systemctl start nocand.service
Check logs
sudo journalctl -f -u nocand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment