Setup New Server for Tasks of AzatAI

Setup Django behind uWSGI and NGINX on CentOS 7

New User Set Up

To setup this user, should login as administrator (root user)

Create a New user

adduser <username>

Granting Aministration Privileges

usermod -aG sudo <username>

Install Nginx

sudo apt upgrade && sudo apt install nginx -y

Setup Database

Skipped

Setup Firewall

To see available UFW applications;

ufw app list

image-20200804110616643

Add Allow Demanded Application

ufw allow OpenSSH
ufw allow "Nginx Full"

image-20200804110722269

Enable Firewall

ufw enable

image-20200804110906239

Check Firewall Status

ufw status

image-20200804110920030

Setup ~oh my zsh

Install zsh and ohmyzsh

sudo apt install git -y 
git clone https://github.com/AzatAI/zsher
cd zsher
sh zsh.sh

Change the default shell

chsh -s $(which zsh)

configure the oh my zsh

  1. change to the agnoster theme
  2. enable usefull plugins
plugins=(git zsh-completions zsh-autosuggestions zsh-syntax-highlighting)