Skip to content

Instantly share code, notes, and snippets.

@spikeheap
Created December 9, 2013 09:22
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 spikeheap/7869563 to your computer and use it in GitHub Desktop.
Save spikeheap/7869563 to your computer and use it in GitHub Desktop.
Instructions to install a basic snug-node instance on a Raspberry Pi. Needs working into the docs, but this is a WIP.

Installing Snug on Raspberry Pi

Enable kernel modules

Install WiringPi

First the WiringPi library:

git clone git://git.drogon.net/wiringPi
cd wiringPi 
sudo ./build

Then for Python:

sudo apt-get install python-setuptools python-dev
git clone https://github.com/Gadgetoid/WiringPi2-Python.git 
cd WiringPi2-Python
sudo python setup.py install

Clone snug

cd /usr/local git clone https://github.com/spikeheap/snug.git cd snug ln -s /usr/local/snug/scripts/snug.init.d /etc/init.d/snug chmod +x /usr/local/snug/scripts/snug.init.d sudo update-rc.d snug defaults useradd snug -d /usr/local/snug -g www-data -M

service snug start

Clone snug-node

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