Skip to content

Instantly share code, notes, and snippets.

@carlos-moreno
Last active March 15, 2024 22:21
Show Gist options
  • Save carlos-moreno/7222a3479f1db1d363f5806691f0f3a7 to your computer and use it in GitHub Desktop.
Save carlos-moreno/7222a3479f1db1d363f5806691f0f3a7 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Update SO
apt update && apt upgrade -y
apt-get install -y wget apt-transport-https gnupg
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | apt-key add -
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
apt-get update
apt-get install temurin-17-jdk
# Install MongoDB
apt-get install gnupg curl vim wget
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | gpg -o /usr/share/keyrings/mongodb-server-4.4.gpg --dearmor
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list
apt-get update
sudo apt-get install -y mongodb-org
# Install UniFi
apt-get update && apt-get install ca-certificates apt-transport-https
echo 'deb [arch=amd64,arm64] https://www.ui.com/downloads/unifi/debian stable ubiquiti' | tee /etc/apt/sources.list.d/100-ubnt-unifi.list
wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
apt-get update && apt-get install unifi -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment