Skip to content

Instantly share code, notes, and snippets.

@scandox
scandox / evercam-gateway-install-script.sh
Last active August 29, 2015 14:22
Basic script to install Evercam Gateway software
#!/bin/bash
# Basic install of Gateway - still requires some configs set and a start script
# Some general dependencies (probably present already)
sudo apt-get install automake autoconf libpcap-dev
# Install Erlang / OTP
cd /tmp
wget http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_3_general/esl-erlang_18.0-rc1-1~ubuntu~trusty_amd64.deb
# Some prequisites
# Install Erlang / OTP
git clone https://github.com/erlang/otp
./otp_build autoconf
./configure
#this takes a hell of a long time
make
make install
@scandox
scandox / evercam-gateway-install-debian8.sh
Last active August 29, 2015 14:24
Install Evercam Gateway on Debian 8 Box
#!/bin/bash
# Basic install of Gateway - still requires some configs set and a start script
# For now best to do everything as root
# Some elements require manual intervention for now...
# Some general dependencies (probably present already)
apt-get install automake autoconf libpcap-dev
# Install Erlang / OTP
@scandox
scandox / gist:3aff84ca0ec48d0c22f9
Created September 2, 2015 10:19
Get PI Serial and MAC
#!/bin/bash
SERIAL=`/bin/grep Serial /proc/cpuinfo | /usr/bin/awk '{print $3}'`
MAC=`/bin/ip link show eth0 | /usr/bin/awk '/ether/ {print $2}'`
echo $MAC > pi-info.txt
echo $SERIAL >> pi-info.txt
### Keybase proof
I hereby claim:
* I am scandox on github.
* I am scandox (https://keybase.io/scandox) on keybase.
* I have a public key whose fingerprint is DB02 C85B 8F31 F9C4 D6FA C53E 4B11 8F6F C21C AB35
To claim this, I am signing this object: