Last active
August 29, 2015 14:24
-
-
Save scandox/d27a180d79e826a7f4af to your computer and use it in GitHub Desktop.
Install Evercam Gateway on Debian 8 Box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
cd /tmp | |
wget http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_3_general/esl-erlang_18.0-1~debian~jessie_amd64.deb | |
dpkg -i esl-erlang_18.0-1~debian~jessie_amd64.deb | |
# Install Elixir | |
git clone https://github.com/elixir-lang/elixir.git | |
cd elixir | |
make clean test | |
make install | |
# Install NMAP | |
apt-get install nmap | |
# Install arp-scan | |
cd /tmp | |
git clone https://github.com/royhills/arp-scan | |
cd arp-scan | |
autoreconf --install | |
./configure | |
make | |
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 | |
mkdir /opt/vpnclient | |
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 | |
cp goon /usr/bin | |
# Copy custom nmap-probes file into place | |
cd /opt/evercam/evercam-gateway | |
bash bin/install-nmap-config.sh | |
# Install LSB Init Scripts for automatic startup | |
bash 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