用了三四个月得Oracle主机,申请的时候版本是Canonical Ubuntu 16.04,把下面脚本扔进CLOUD-INIT即可,除了系统,其他不更改。
#!/bin/bash echo root:Abc123456 |sudo chpasswd root sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config; sudo service sshd restart
不需要密钥 直接用root账号登录 初始账号root 密码Abc123456
sudo -i
准备工作
#更新apt源 apt-get update #安装需要的工具包 apt-get install -y xz-utils openssl gawk file net-tools
然后执行以下脚本,脚本全自动运行,dd之后会造成断开链接的情况,不用担心,请耐心等待20分钟或更久。可以通过ping端口来检测是否DD完成。
centOS 6.9 64bit(未实验,谨慎使用):
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -c 6.9 -v 64 -a -firmware
debian 10 64bit(推荐,来回dd几十次正常)
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10.3 -v 64 -a -firmware
debian 9 64bit
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a -firmware -p Abc123456
Ubuntu 16.04 64bit(未实验,谨慎使用):
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -u 16.04 -v 64 -a -firmware
dd时间大概15分钟左右 初始账号root 密码MoeClub.org
Debian11
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware
dd完换内核加bbr
https://github.com/ylx2016/Linux-NetSpeed
DD完还需要修改下DNS
apt-get install resolvconf vim /etc/resolvconf/resolv.conf.d/head
nameserver 1.1.1.1 nameserver 8.8.8.8
加入完,再reboot
八合一共存脚本+伪装站点
https://github.com/mack-a/v2ray-agent
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
bash <(wget –no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh'😉 -d 9 -v 64 -a