Last active
February 21, 2021 10:12
-
-
Save pongstr/9db3034588609ad28eba54951cf8dbe8 to your computer and use it in GitHub Desktop.
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 | |
echo "Updating Aptitude Source...." | |
sudo cat > /etc/apt/source.list << EOF | |
# deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26]/ buster contrib main | |
# deb cdrom:[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26]/ buster contrib main | |
deb http://deb.debian.org/debian/ buster main contrib non-free | |
deb-src http://deb.debian.org/debian/ buster main contrib non-free | |
deb http://deb.debian.org/debian/ buster-backports main contrib non-free | |
deb-src http://deb.debian.org/debian/ buster-backports main contrib non-free | |
deb http://security.debian.org/debian-security/ buster/updates main contrib | |
deb-src http://security.debian.org/debian-security/ buster/updates main contrib | |
# buster-updates, previously known as 'volatile' | |
deb http://deb.debian.org/debian/ buster-updates main contrib | |
deb-src http://deb.debian.org/debian/ buster-updates main contrib | |
EOF | |
sleep 3 | |
echo "Installing Nvidia Driver" | |
sudo apt update | |
sudo apt install -y nvidia-driver | |
echo "Installing Applications..." | |
sudo dpkg --add-architecture i386 | |
sudo dpkg --print-foreign-architectures | |
sudo apt install -y \ | |
ca-certificates \ | |
libnss3-tools \ | |
libgl1-nvidia-glvnd-glx:i386 \ | |
curl \ | |
dnsmasq \ | |
git \ | |
nginx \ | |
steam \ | |
vim \ | |
zsh | |
sleep 3 | |
echo "Setting up DNSmasq..." | |
sudo cat > /etc/NetworkManager/NetworkManager.conf << EOF | |
[main] | |
dns=dnsmasq | |
plugins=ifupdown,keyfile | |
[ifupdown] | |
managed=false | |
EOF | |
sudo cat > /etc/NetworkManager/dnsmasq.d/dnsmasq.conf << EOF | |
address=/test/127.0.0.1 | |
EOF | |
echo "Starting Services" | |
sudo apt install -y resolvconf | |
sudo systemctl start nginx | |
sudo systemctl start dnsmasq | |
sudo systemctl start resolvconf | |
sleep 3 |
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 | |
echo "Installing Docker Dependencies"... | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
sleep 3 | |
echo "Adding Docker repository to apt source..." | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/debian \ | |
$(lsb_release -cs) \ | |
stable" | |
sleep 3 | |
echo "Updating source list..." | |
sudo apt-get update | |
echo "Installing Docker..." | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
echo "Confirming whether Docker has been installed correctly..." | |
sudo docker run hello-world | |
echo "Logging out and back-in might be necessary for ${USER} permissions to take effect..." | |
sleep 3 | |
echo "Installing Docker Compose" | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sleep 3 | |
sudo chmod +x /usr/local/bin/docker-compose | |
echo "Confirming Docker Compose Installation..." | |
docker-compose --version |
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
## MongoDB | |
# Follow Install and Run instructions here: | |
# - https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/ | |
# | |
# **Heads up!** validate mongo status with: | |
# > systemctl status mongod | |
# | |
# wtf?.. | |
# | |
# > ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=14) | |
# | |
# in cases you run into this error status below, the installation guide does | |
# not mention that the permission setting on these are incorrect: | |
# | |
# - /var/lib/mongodb | |
# - /tmp/mongodb-27017.lock | |
# | |
## change the owner+permissions | |
# > chown -R mongodb:mongodb /var/lib/mongodb | |
# > chown mongodb:mongodb /tmp/mongodb-27017.sock | |
# > sudo systemctl restart mongod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment