Skip to content

Instantly share code, notes, and snippets.

@mirhec
Last active February 11, 2017 16:20
Show Gist options
  • Save mirhec/55452f3e84d34472ffa40737d3128a78 to your computer and use it in GitHub Desktop.
Save mirhec/55452f3e84d34472ffa40737d3128a78 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd ~
sudo apt-get update
sudo apt-get install netatalk git python-dev python-pip python-rpi.gpio -y
sudo pip install Flask
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
cd ..
git clone https://github.com/mirhec/raspi-http-switch.git
sudo cp ./raspi-http-switch/raspi-http-switch.service /etc/systemd/system
sudo systemctl enable raspi-http-switch.service
sudo systemctl start raspi-http-switch.service
@mirhec
Copy link
Author

mirhec commented Feb 11, 2017

Run with https://goo.gl/jHgGBz | /bin/sh

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