journalctl --disk-usage
journalctl --rotate
sudo journalctl --vacuum-time=2days
sudo journalctl --vacuum-size=100M
sudo journalctl --vacuum-files=5
Reference: https://packages.cisofy.com/community/#debian-ubuntu
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 013baa07180c50a7101097ef9de922f1c2fde6c4
sudo apt install apt-transport-https
echo 'Acquire::Languages "none";' | sudo tee /etc/apt/apt.conf.d/99disable-translations
echo "deb https://packages.cisofy.com/community/lynis/deb/ stable main" | sudo tee /etc/apt/sources.list.d/cisofy-lynis.list
sudo apt update
sudo apt install lynis
Beautiful
Reference: https://github.com/ohmyzsh/ohmyzsh
sudo apt install zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Theme: agnoster
SQL database.
Reference: https://www.postgresql.org/download/linux/ubuntu/
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql
Reference: https://stackoverflow.com/questions/57975093/create-a-superuser-in-postgres
sudo -u postgres createuser -s -i -d -r -l -w <username>
sudo -u postgres psql -c "ALTER ROLE <username> WITH PASSWORD '<password>';"
Disk usage scanner! WinDirStat, but Linux.
Reference: https://dev.yorhel.nl/ncdu
sudo apt install ncdu