Debian 10 Post Install

Use these commands for post install on Debian 10


Add repositories

First, make a backup of the sources list.

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

Then edit the sources list

sudo nano /etc/apt/sources.list

Copy and paste the following into the sources list file

deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free

deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free

Now run an update

sudo apt-get update && sudo apt-get upgrade

Install a few utilities

sudo apt install git nano rsync ufw samba cmatrix tmux -y

Create a new privileged user profile

sudo adduser username
sudo usermod -aG sudo username

Make sure the user has super user rights

sudo nano /etc/sudoers.d/customsudoers

Add this line of code into /etc/sudoers.d/customesudoers file so the user does not have to enter password

username ALL=(ALL:ALL) NOPASSWD:ALL

Now the super user can use sudo without having to enter the password each time.

I recommend setting up ZSH.