12 May
2019

[ubuntu] setup & configurations

also on the old linux box

¢£version

uname -a
cat /etc/os-release


¢£hostname
vi /etc/hostname
vi /etc/hosts
hostnamectl
hostname


¢£¹¹¿·
apt update
apt upgrade
apt dist-upgrade
apt autoremove
apt autoclean


¢£listen
netstat -lnt


¢£logwatch
apt-get install logwatch


¢£firewall (Uncomplicated FireWall)
ufw status verbose
ufw app list
ufw enable
ufw allow 'Apache Full'
ufw status numbered


¢£»þ¹ï·Ï
date
timedatectl
apt-get install ntp
timedatectl
ntpq -p


¢£postfix
apt-get install postfix
apt install mailutils
postconf | grep mail_version
postqueue -p


¢£apache
apt install apache2
a2enmod ssl
service apache2 restart
apt-get install letsencrypt python-letsencrypt-apache
letsencrypt --apache


¢£bind
apt-get install -y bind9


¢£aide
apt install aide
cd /var/lib/aide
aide.wrapper --init
cp -p /var/lib/aide/aide.db.new /var/lib/aide/aide.db


Posted by unchor at 10:54 | Comments (0)
<< [src build] old GCC compile | Main |
Comments
There are no comments.
Post a comment