用了三四个月得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
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 -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
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
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