• 更新并安装系统组件
apt-get update && apt-get upgrade -y

  • 安装如下基础组件
# aptitude:查看系统源内包含的内核 ubuntu18.04可以直接安装锐速所需要的内核
# iptables:使用逗比的iptables中转脚本时不能安装
# bsdmainutils:MTProtoProxy一键脚本中需要的进制转换组件
apt-get install -y vim mtr ntp ntpdate curl iftop unzip python python3 screen net-tools iptables virt-what ca-certificates

  • 更改时区
dpkg-reconfigure tzdata


  • 同步网络时间
# 阿里云NTP服务器
ntpdate -u ntp1.aliyun.com

# 谷歌NTP服务器
ntpdate -u time.google.com