#!/bin/bash #修改时区 rm -f /etc/localtime ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime echo Asia/Shanghai > /etc/timezone echo "update timezone Asia/Shanghai" #修改安装源 echo "deb http://mirrors.idste.org/ubuntu/ idste main" > /etc/apt/sources.list.d/idste.list wget http://mirrors.idste.org/ubuntu.key gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/idste.gpg --import ubuntu.key chown _apt /etc/apt/trusted.gpg.d/idste.gpg #关闭自动更新 systemctl stop apt-daily.timer systemctl disable apt-daily.timer systemctl stop apt-daily.service systemctl disable apt-daily.service systemctl daemon-reload systemctl mask apt-daily.service systemctl stop apt-daily-upgrade.timer systemctl disable apt-daily-upgrade.timer systemctl stop apt-daily-upgrade.service systemctl disable apt-daily-upgrade.service systemctl mask apt-daily-upgrade.service #安装支持库 apt update apt-get install ntp ntpstat ntpdate net-tools supervisor unzip -y