记录新安装服务器后的常规配置
-
进入系统后修改文件/etc/systemd/system/network-online.target.wants/networking.service
sudo vim /etc/systemd/system/network-online.target.wants/networking.service
将里面的TimeoutStartSec=5min 修改为TimeoutStartSec=2sec -
配置serial console,控制台输出到串口
edit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=“console=tty0 console=ttyS0,115200n8”
GRUB_CMDLINE_LINUX=“net.ifnames=0 biosdevname=0”
GRUB_TERMINAL=‘serial console’
GRUB_SERIAL_COMMAND=“serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1”
run “update-grub” -
开启root,使能ssh登录
sudo passwd root
/etc/ssh/sshd_config
PermitRootLogin without-password
修改为
PermitRootLogin yes -
配置/etc/network/interfaces
执行apt update
apt upgrade
apt install …
apt autoremove -
setup
DHCP服务:isc-dhcp-server
网桥配置工具:bridge-utils
串口传输工具:lrzsz
make工具集:automake
路由跟踪:traceroute
目录:tree