Complete guide for server configuration, troubleshooting, and maintenance
apt update && apt install -y task-gnome-desktop
systemctl set-default graphical.target && reboot
apt install --fix-broken -y && apt autoremove -y && apt autoclean
apt update && apt upgrade -y
apt dist-upgrade -y
apt --fix-broken install -y
dpkg --configure -a
apt install -y apache2 apache2-utils
systemctl status apache2
journalctl -u apache2 --no-pager -n 50
apache2ctl configtest
a2enmod rewrite && systemctl restart apache2
chown -R www-data:www-data /var/www/html/
apt install -y git curl build-essential libssl-dev libreadline-dev zlib1g-dev libsqlite3-dev
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt install -y nodejs
ruby --version
apt install -y ruby ruby-dev
git clone https://github.com/beefproject/beef.git
cd beef && ./install
gem install bundler
bundle install
npm install
apt install -y certbot python3-certbot-apache
certbot --apache -d appbeef.b70.online -d www.appbeef.b70.online
echo "0 0,12 * * * root python3 -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q" | sudo tee -a /etc/crontab > /dev/null
apt install -y postfix dovecot-core dovecot-imapd dovecot-pop3d
Server: mail.b70.online
Port: 587 (TLS)
Authentication: Plain
Username: user@b70.online
echo "Test email from server" | mail -s "Test Subject" user@b70.online
apt autoremove -y && apt autoclean -y
journalctl --vacuum-time=7d
apt purge $(dpkg -l | awk '/^rc/ { print $2 }')