Debian 系统安装信息备忘, F2 进入BIOS,F10 快捷启动
分区方案
系统优化 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 apt-get install vim git zsh sudo -y sudo usermod -aG sudo <username> chsh -s $(which zsh) sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -) " auto lo iface lo inet loopback allow-hotplug enp88s0 auto enp88s0 iface enp88s0 inet static address 192.168.68.254/24 gateway 192.168.68.253 dns-nameservers 223.6.6.6 8.8.8.8 dns-search lan iface enp88s0 inet6 auto sudo /etc/init.d/networking restart sudo apt install resolvconf nameserver 1.1.1.1 nameserver 8.8.8.8 sudo resolvconf -u sudo systemctl enable fstrim.timer sudo apt install ufw -y sudo ufw allow from 192.168.8.0/24 proto tcp to any port 2222 sudo ufw enable
UPS 配置 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 sudo apt install nut -y dpkg -l | grep nut lsusb sudo vim /etc/nut/ups.conf [santak] driver = usbhid-ups port = auto desc = "Santak UPS" sudo vim /etc/nut/upsd.conf LISTEN 127.0.0.1 3493 sudo vim /etc/nut/upsd.users [admin] password = 12345678 actions = SET instcmds = ALL sudo vim /etc/nut/upsmon.conf MONITOR santak@localhost 1 admin yourpassword primary sudo vim /etc/nut/nut.conf MODE=standalone sudo systemctl enable nut-server sudo systemctl enable nut-monitor sudo systemctl start nut-server sudo systemctl start nut-monitor upsc santak@localhost
磁盘优化 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 sudo systemctl enable fstrim.timer sudo systemctl start fstrim.timer sudo apt install hdparm -y sudo hdparm -I /dev/sda1 sudo hdparm -W1 /dev/sda1 sudo hdparm -B 254 /dev/sda1 sudo hdparm -A1 /dev/sda1 sudo hdparm -S 120 /dev/sda1 sudo apt install smartmontools -y sudo smartctl -a /dev/sda1 sudo systemctl start smartd sudo cat /var/log/smartd.log