Last active
November 19, 2021 08:57
-
-
Save YumNumm/697ba5a4fc902bd10b24bb060c3493ff to your computer and use it in GitHub Desktop.
Server Setup Script(RPI)
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
#!/usr/bin/fish | |
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish | |
fisher install oh-my-fish/theme-bobthefish | |
echo "Update" | |
sudo apt-get update > /dev/null | |
echo "install" | |
sudo apt-get install fzf -y > /dev/null | |
fisher install jethrokuan/fzf |
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/sh | |
echo START | |
echo "ADD SERT" | |
ssh-import-id gh:YumNumm | |
echo "APT UPDATE" | |
sudo apt update > /dev/null | |
echo "APT UPGRADE" | |
sudo apt upgrade -y > /dev/null | |
echo "APT INSTALL" | |
sudo apt install fish wget curl htop npm git gnupg lsb-release ca-certificates build-essential -y > /dev/null | |
echo "Docker install" | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt update | |
sudo apt install -y docker-ce docker-ce-cli containerd.io | |
echo "Docker-compose install" | |
curl -L https://github.com/docker/compose/releases/download/v2.1.1/docker-compose-linux-aarch64 -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
echo "check" | |
sudo docker -v | |
sudo docker-compose -v | |
echo "DONE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment