These scripts should work on Ubuntu 18.04 and 20.04 LTS. The scripts are used to setup my server(s) on Digital Ocean.
These are not heavily tested, as I do this maybe once or twice a year. So treat it accordingly.
If you have suggests or improvements, please feel free to create an Issue or Pull Request.
To use just clone the repo. You can also curl any of the scripts and change the permissions (works on Ubuntu 18.04 & 20.04).
- Git Clone <-- Easiest
    apt install git
    git clone https://github.com/devsetgo/server_setup.git
    cd server_setup
    ./server_setup/setup_ubuntu.sh- Curl and Permissions set <-- change url for whatever script you want to use
    curl -O https://github.com/devsetgo/server_setup/blob/master/server_setup/setup.sh
    chmod +x script.sh
    ./setup.sh- Git Clone
    git clone https://github.com/devsetgo/server_setup.git
    cd server_setup
    ./wsl_setup/setup_general.sh
- Clone Repos from the server_setup main folder
    python3 -m venv _venv
    source _venv/bin/activate
    pip3 install --upgrade pip setuptools wheel
    pip3 install -r github_copy/requirements.txt
    cd .. ***this will take you one folder up to your home***
    python3 server_setup/github_copy/run.py
    deactivatePlease note, this is not the most secure way of securing credentials. You will need to get a Personal Access Token (https://github.com/settings/tokens).
- Git Credentials
    git config --global credential.helper store
    git config --global user.name "Your Name"
    git config --global user.email "youremail@yourdomain.com"
    git config --global user.password "your token"
- Git Branch Cleanup
    git fetch
    git remote prune origin