Skip to content

Instantly share code, notes, and snippets.

@notbrain
Last active September 25, 2017 01:19
Show Gist options
  • Save notbrain/4c0c9fd415f3479493a3 to your computer and use it in GitHub Desktop.
Save notbrain/4c0c9fd415f3479493a3 to your computer and use it in GitHub Desktop.
ubuntu 16.04 LTS mongodb_3.2 mariadb_10.1 nginx_ppa-stable nodejs_6 git build-essential all in one installer
#!/bin/bash
# all in one non-interactive runner
export DEBIAN_FRONTEND=noninteractive;
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y;
sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y;
# build-essential
sudo apt-get install -y build-essential;
# kerberos headers
sudo apt-get install -y libkrb5-dev;
# git
sudo apt-get install -y git;
# mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 \
&& echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list \
&& sudo apt-get update && sudo apt-get install -y mongodb-org;
# mariadb server
sudo apt-get install software-properties-common \
&& sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 \
&& sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.osuosl.org/pub/mariadb/repo/10.2/ubuntu xenial main' \
&& sudo debconf-set-selections <<< 'mariadb-server-10.2 mysql-server/root_password password themagicword' \
&& sudo debconf-set-selections <<< 'mariadb-server-10.2 mysql-server/root_password_again password themagicword' \
&& sudo apt-get update && sudo apt-get install -y mariadb-server;
# nginx
sudo add-apt-repository -y ppa:nginx/stable && sudo apt-get update && sudo apt-get install -y nginx;
# node
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - && sudo apt-get install -y nodejs;
# npm
sudo npm i -g npm;
@notbrain
Copy link
Author

notbrain commented Jan 5, 2017

Used in Vagrant as a quick shell provision file.

root mariadb password is themagicword.

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