Skip to content

Instantly share code, notes, and snippets.

@scandox
Last active August 29, 2015 14:22
Show Gist options
  • Save scandox/e4993406958d1cb1af8d to your computer and use it in GitHub Desktop.
Save scandox/e4993406958d1cb1af8d to your computer and use it in GitHub Desktop.
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
sudo dpkg -i esl-erlang_18.0-rc1-1~ubuntu~trusty_amd64.deb
# Install Elixir
git clone https://github.com/elixir-lang/elixir.git
cd elixir
make clean test
sudo make install
# Install NMAP
sudo apt-get install nmap
# Install arp-scan
cd /tmp
git clone https://github.com/royhills/arp-scan
cd arp-scan
autoreconf --install
./configure
make
sudo make install
# Install Softether VPN Client
cd /tmp
wget http://www.softether-download.com/files/softether/v4.17-9562-beta-2015.05.30-tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.17-9562-beta-2015.05.30-linux-x64-64bit.tar.gz
tar xvf softether-vpnclient-v4.17-9562-beta-2015.05.30-linux-x64-64bit.tar.gz
cd vpnclient
make i_read_and_agree_the_license_agreement
sudo mkdir /opt/vpnclient
sudo cp vpnclient vpncmd hamcore.se2 /opt/vpnclient
# Install Gateway Software itself
mkdir /opt/evercam
cd /opt/evercam
git clone https://github.com/evercam/evercam-gateway
cd evercam-gateway/apps/gateway
mix deps.get
# Couple of Yes/No's in here - need to automate installation of Hex and Rebar
mix compile
# Install Goon driver for porcelain
cd /tmp
wget https://github.com/alco/goon/releases/download/v1.1.1/goon_linux_amd64.tar.gz
tar xvf goon_linux_amd64.tar.gz
sudo cp goon /usr/bin
# Copy custom nmap-probes file into place
cd ../../
sh bin/install-nmap-config.sh
# Install LSB Init Scripts for automatic startup
sh bin/install-lsb-init-scripts.sh
# Configure permanently ip forwarding - very important! and not automated at present
# Find and edit file /etc/sysctl.conf
# Uncomment line that says "net.ipv4.ip_forward=1"
# Reboot box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment