/linux-server

I'm using this repo to streamline my server setup process and keep my preferred tools and settings in sync across servers

Primary LanguageShell

Setting up a new linux server

Adding non-root user

Create new user

adduser <username>

Add the new user to the sudo group

usermod -aG sudo <username>

Disable password and root login

modify /etc/ssh/sshd_config:

PasswordAuthentication no
PermitRootLogin no

Install Git

sudo apt install git-all

Install ZSH

run sudo apt-get install zsh

run chsh (and enter /usr/bin/zsh)

Install epegzz/linux-server

mkdir -p "$HOME/.config"
git clone https://github.com/epegzz/linux-server.git "$HOME/.config/linux-server"
~/.config/linux-server/install.sh