Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

allow sudo without password

example for current user (executing from user)

Code Block
echo "`whoami`    ALL=(ALL:ALL) NOPASSWD: ALL" |sudo tee /etc/sudoers.d/`whoami`

Update OS

Code Block
apt update
apt upgrade -y

Nginx with http2

Code Block
apt install -y nginx

docker

Code Block
apt install -y docker-compose-v2 docker.io

nfs client

Code Block
apt install -y nfs-common


nice tools

Code Block
apt install -y btop 
apt install -y ncdu duf
apt install -y net-tools #netstat
apt install -y tree
apt install -y iotop

switch from nano to vim

Code Block
sudo update-alternatives --config editor


hardware monitoring tools

Code Block
apt install -y smartmontools lm-sensors 
#apt install -y fancontrol

set timezone

Code Block
#tzselect
echo 'Europe/Kyiv' > /etc/timezone

set history

Code Block
cat <<EOF >> /etc/bash.bashrc
HISTTIMEFORMAT="%Y-%m-%d %T "
HISTSIZE=20000
HISTCONTROL=ignoredups:erasedups
shopt -s histappend
EOF

grub timouts

Code Block
vi /etc/default/grub
# update GRUB_TIMEOUT=3
# add GRUB_RECORDFAIL_TIMEOUT=3
update-grub
grep "timeout=3" /boot/grub/grub.cfg