You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.7 KiB

acCrocRadio setup Sistema


DNS-zone presso il registrar, esempio:

* 10800 IN A
@ 10800 IN A
wiki 10800 IN CNAME
ac 10800 IN CNAME
wp 10800 IN CNAME
www 10800 IN CNAME


Debian 10

apt update ; apt upgrade ; apt clean

apt install sudo ssh screen net-tools htop strace ntp ufw figlet apg wipe
apt install curl git apt-transport-https tmux byobu man elinks grc dnsutils
apt install fish tree zip nmap rsync mutt logwatch rkhunter


hostnamectl set-hostname croco

figlet: figlet cRoc > /etc/motd


ufw default deny incoming
ufw default allow outgoing
ufw allow ssh
ufw allow 80 (e 443, 2022, 8000, 8005)
ufw enable

Consigliato cambiare porta sshd, abilitare ssh login passwordless


dpkg-reconfigure tzdata




alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias docker='grc docker'


syntax "all" "[\.]*$"
color green "^#.*$"
set tabsize 4
set tabstospaces


Posta solo locale.

apt install postfix

Per riconfigurare:

dpkg-reconfigure postfix


free -h
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon --show
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
cat /proc/sys/vm/swappiness
sysctl vm.swappiness=10
echo vm.swappiness=10 >> /etc/sysctl.conf
cat /proc/sys/vm/vfs_cache_pressure
sysctl vm.vfs_cache_pressure=50
echo vm.vfs_cache_pressure=50 >> /etc/sysctl.conf