Skip to content

Instantly share code, notes, and snippets.

@xmppjingle
Created March 19, 2018 14:07
Show Gist options
  • Save xmppjingle/afcaf6b90b7e72fc14522243ae0f8474 to your computer and use it in GitHub Desktop.
Save xmppjingle/afcaf6b90b7e72fc14522243ae0f8474 to your computer and use it in GitHub Desktop.
All-One.sh
#!/bin/bash
sudo apt-get update
# Properties
sudo apt-get install -y software-properties-common
# Add Repos
sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
# Update
sudo apt-get update
# Install Java
sudo apt-get install -y oracle-java8-installer
# Check
javac -version
sudo apt update
sudo apt install net-tools wget vim
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
apt-get update
sudo apt-get update && sudo apt-get install elasticsearch
service elasticsearch start
sudo apt-get -y install g++ ncurse* make
sudo apt-get -y install autotools-dev libyaml-dev libexpat-dev libexpat-dev
sudo apt-get -y install build-essential autoconf libncurses5-dev openssl libssl-dev fop xsltproc unixodbc-dev git curl
curl -O https://raw.githubusercontent.com/kerl/kerl/master/kerl
chmod a+x kerl
export CFLAGS="-DOPENSSL_NO_EC=1"
CFLAGS="-DOPENSSL_NO_EC=1" ./kerl build 20.1 erl20.1
./kerl install erl20.1 /opt/erl20.1
. /opt/erl20.1/activate
# RabbitMQ
# Update
sudo apt-get update
# Properties
sudo apt-get install -y software-properties-common
# Install Java
sudo apt-get install -y rabbitmq-server
# Service
sudo service rabbitmq-server restart
# REDIS
# Update
sudo apt-get update
# Properties
sudo apt-get install -y software-properties-common
# Install Redis
sudo apt-get install -y redis-server
# Service
sudo service redis-server restart
# MongoDB
sudo apt-get update
# Keys
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
# Repos
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
# Debian 7
#echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.6 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
# Update
sudo apt-get update
# Install
sudo apt-get install -y mongodb-org
# Startup
sudo service mongod start
# Elastic
sudo apt-get update
# Properties
sudo apt-get install -y software-properties-common
# Add Repos
sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main"
# Update
sudo apt-get update
# Install Java
sudo apt-get install -y oracle-java8-installer
# Check
javac -version
sudo apt update
sudo apt install net-tools wget vim
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
apt-get update
sudo apt-get update && sudo apt-get install elasticsearch
service elasticsearch start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment