Skip to content

devsetgo/server_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ubuntu Server Setup

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.

Server Setup

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

WSL2 Setup

  • 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
    deactivate

Other Suff

Please 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

About

server setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published