Notes for setting up a new server
Add new user for general use
sudo su
useradd -m -d /home/<username> <username>
passwd <username>
visudo
ALL=(ALL) NOPASSWD:ALL
sudo su
useradd -m -d /home/<username> <username>
passwd <username>
visudo
ALL=(ALL) NOPASSWD:ALL
sudo snap install core; sudo snap refresh core
sudo apt remove certbot
sudo snap install --classic certbot
This is a script I am using to download a branch or tag from a repository in Gitlab or GitHub. It is used in https://gitlab.com/apiopenstudio/docker_images/apiopenstudio_docker_prod and I wanted to share it for anyone that might find it useful. It takes 3 inputs:
https://github.com/naala89/apiopenstudio
, https://gitlab.com/apiopenstudio/apiopenstudio
)example usage:
git
section, and paste into a text editor", "
with
,