server
202011
#EXTRACT4:
enable the “partner” repository:
https://askubuntu.com/questions/14629/how-do-i-enable-the-partner-repository
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
===
apt install -y linux-headers-$(uname -r) build-essential dkms
apt install -y coreutils mc htop traceroute netdiag screen tmux openssh-server ncdu p7zip-rar p7zip-full unace unrar zip unzip sharutils uudeview mpack arj cabextract lbzip2 lm-sensors acpi gpm jnettop iftop atop
====
How To Find Best Ubuntu APT Repository Mirror
https://ostechnix.com/how-to-find-best-ubuntu-apt-repository-mirror/
sudo cp /etc/apt/sources.list{,.backup}
sudo apt install python3-pip
pip3 install apt-select
apt-select --choose -t 5 --country UA
sudo mv sources.list /etc/apt/
=====
rc.local IN systemD
https://askubuntu.com/a/919598
printf '%s\n' '#!/bin/sh' 'exit 0' | sudo tee -a /etc/rc.local
sudo chmod +x /etc/rc.local
sudo reboot
++
https://askubuntu.com/questions/261899/run-a-screen-session-on-boot-from-rc-local
sudo -iu username /usr/bin/screen -dmS script bash -c '/var/www/path/to/script/script.sh; exec bash'