Skip to content

Instantly share code, notes, and snippets.

@saderi
Last active January 3, 2020 08:45
Show Gist options
  • Save saderi/041d33863d42d7c503d97a6640ebed2d to your computer and use it in GitHub Desktop.
Save saderi/041d33863d42d7c503d97a6640ebed2d to your computer and use it in GitHub Desktop.
#!/bin/bash
# This script is meant for quick & easy install via:
# Tested in Ubuntu 18.10
# $ wget -q -O - "https://bit.ly/2tlAk9r" | bash -
apt update && apt install --assume-yes gnupg2
tee /etc/apt/sources.list.d/mongodb-org-4.0.list << EOF
deb https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse
EOF
tee /etc/apt/sources.list.d/pritunl.list << EOF
deb http://repo.pritunl.com/stable/apt bionic main
EOF
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A
apt update
apt --assume-yes install pritunl mongodb-org
systemctl start pritunl mongod
systemctl enable pritunl mongod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment