设置时区为上海

timedatectl set-timezone "Asia/Shanghai"
sudo apt install systemd-timesyncd

sudo nano  /etc/systemd/timesyncd.conf

NTP=pool.ntp.org 0.asia.pool.ntp.org 1.asia.pool.ntp.org 2.asia.pool.ntp.org
systemctl restart systemd-timesyncd
timedatectl set-ntp true
timedatectl

apt install sudo -y
apt install ufw -y
apt install wget -y

1、ip r 先找到网关
default via后面的ip为网关
2、ifconfig 找到掩码
用inet 127.0.0.1 后面的 netmask 255.0.0.0
(如果提示没有ifconfig,请运行apt install net-tools,再次运行ifconfig)
3、执行脚本
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p "密码" -port 22 --ip-addr 你的ip --ip-gate 你的网关 --ip-mask 你的掩码

echo "iface ens3 inet6 static" >> /etc/network/interfaces
echo "address ip地址" >> /etc/network/interfaces
echo "gateway 网关" >> /etc/network/interfaces
echo "dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844" >> /etc/network/interfaces
reboot