# 更新源并安装 sudo apt update && sudo apt install fail2ban -y # 启动并设置开机自启 sudo systemctl start fail2ban sudo systemctl enable […]
Category: LNMP
Bitwarden
# First step: run the docker and sign up a accountant for yourself # This is only a temp container […]
Block direct IP visit
# Step 1: # create a new file under a certain path (e.g. /etc/conf.d/) as below: server { listen 80 […]
Quick stop wireguard
# 1. Check the ipv6 address ip -6 addr ip -6 route ping6 ipv6.google.com curl https://ifconfig.co –ipv6 # 2. How […]
Audit Linux With Lynis for Safety
sudo apt update sudo apt install lynis # if you want run it sudo lynis audit system # if you […]
Enhance Safety with Fail2ban
sudo apt udate sudo apt install fail2ban sudo systemctl start fail2ban sudo systemctl enable fail2ban
How to Create Directory in Temporary Directory
# to create a ‘test’ directory in /run cd /run vim autocreatedir.conf # paste “d /run/test 0755 root root -” […]
How to find useless pkg
# Way 1: Debfoster sudo apt-get update sudo apt-get install debfoster sudo debfoster # Way 2: Deborphan sudo apt-get update […]
Display File Content Colorfully with Bat
# Step 1: Install sudo apt-get update sudo apt-get install bat mkdir -p ~/.local/bin ln -s /usr/bin/batcat ~/.local/bin/bat echo ‘export […]
Delete @eadir or .DS_Store on NAS
Login in to NAS via SSH, then as below: