命令行
开启SSH
sudo apt update
sudo apt install openssh-server
更新软件
sudo apt upgrade
sudo apt install net-tools curl wget vim build-essential
扩展硬盘
把卷组所有剩余空间都给逻辑卷
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
扩展文件系统(假设是 ext4,Ubuntu 默认就是这个)
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
测速脚本
wget -qO- bench.sh | bash
服务器测试脚本
bash <(curl -sL https://run.NodeQuality.com)
Sing-box
bash <(wget -qO- https://raw.githubusercontent.com/yonggekkk/sing-box-yg/main/sb.sh)
禁止IPV6
执行以下命令,创建并写入配置:
sudo tee /etc/sysctl.d/99-disable-ipv6.conf <<-'EOF'
net.ipv6.conf.enp1s0.disable_ipv6 = 1
EOF
然后立即生效(不需要重启):
sudo sysctl -p /etc/sysctl.d/99-disable-ipv6.conf
或者直接:
sudo sysctl --system