Created
April 19, 2021 19:15
-
-
Save ivylikethevine/3e128362b2830e20c25cb6649f2f6a45 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 | |
# Create Workspace Directory to Work From | |
cd ~ | |
mkdir workspace | |
cd workspace | |
# Update and Upgrade then install basic utilities | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get install -y rar unrar zip git htop software-properties-common apt-transport-https wget xclip net-tools curl | |
# Install Python2 & 3, NodeJS & NPM | |
sudo apt-get install -y python2 python3 python3-pip nodejs npm | |
# Install Yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install -y yarn | |
# Install Chrome | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
rm google-chrome-stable_current_amd64.deb | |
# Install Code | |
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | |
sudo apt update | |
sudo apt install -y code | |
# Install Docker | |
sudo apt-get install -y ca-certificates gnupg-agent | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose | |
# Make Docker Not Need Sudo and Run on Start | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
newgrp docker | |
sudo systemctl enable docker | |
# Clean Up Apt | |
sudo apt --fix-broken install | |
sudo apt autoremove -y | |
# Set Global Github Config | |
git config --global user.name "first last" | |
git config --global user.email "email" | |
# Generate and Add new SSH Key | |
ssh-keygen -t ed25519 -C "email" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_ed25519 | |
# Copy to Clipboard and open Chrome to add to Github | |
xclip -selection clipboard < ~/.ssh/id_ed25519.pub | |
google-chrome https://github.com/settings/keys | |
google-chrome https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account | |
echo "Setup complete!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment