有需要的赏个鸡腿!
第一步:DD成Debian11系统
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p "密码" -port "ssh端口"
如果要D成ubuntu 20.04的就把 -d 11修改为 -u 20.04
第二步: 更新apt包及安装必要软件
apt update && apt upgrade -y && apt dist-upgrade -y && apt full-upgrade -y && apt autoremove -y && apt install vim git curl screen htop vnstat net-tools dnsutils sudo
第三步:更换软件源(一般是给国内机换)
bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
第四步:禁止密码登录SSH,只允许密钥登录
bash <(curl -fsSL git.io/key.sh) -og AAAAA -p 77777 -d
其中AAAAA是你的Github用户名,自己去GitHub设置里的SSH Keys上传你密钥的公钥就行了,77777是你想要的ssh端口
第五步:开启BBR(debian11默认开启了,可以不执行)
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr
第六步:修改系统时区和中文
dpkg-reconfigure locales
timedatectl set-timezone Asia/Shanghai
第七步:安装docker
wget -qO- get.docker.com | bash
第八步:安装python(根据个人需要安装)
sudo apt-get update && sudo apt-get install python3.6 && sudo apt-get install python3-pip
其他什么YABS 融合怪等测试我就不贴了,有需要的自己测
还有一些什么面板啥的,有需要自己安装
最后贴一个自己常用的多合一脚本
科技lion的
curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh
Ednovas的
sudo wget -P /root -N https://cdn.jsdelivr.net/gh/ednovas/vpstoolbox@main/ednovastool.sh && sudo chmod +x /root/ednovastool.sh && /root/ednovastool.sh
不应该是dd完就挂探针吃灰吗?不要再误导别人了
收藏了
@shuai #1 真实
好
@shuai #1
笑死
不先跑融合怪就dd
你这比我专业,学习了
大便好像是默认开启bbr的吧?
另外,在改时区后,我还会习惯给history加上时间戳
@Portainer #7 我看你设置密钥登录那个太麻烦了,其实只要把公钥上传到Github就一键的事情
@搁浅 #8 现在的内核好像都默认开启了,我还停留在deiban8的时候hhh