前提:初始化版本是Canonical Ubuntu 16.04
把下面脚本扔进CLOUD-INIT即可,除了系统,其他不更改
1 2 3 4 5
| #!/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
|
dd时间大概15分钟左右 直接用root账号登录 不用密钥。初始账号root 密码MoeClub.org
centOS 6.9 64bit
1
| bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -c 6.9 -v 64 -a
|
debian 10 64bit(推荐)
1
| bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a
|
Ubuntu 16.04 64bit
1
| bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -u 16.04 -v 64 -a
|
Windows
1
| wget --no-check-certificate -qO InstallNET.sh 'https://tutu.bid/bash/InstallNET.sh' && bash InstallNET.sh -dd 'http://tutu.bid/os/dd/Oracle-Win7-X64%5BAdministrator-www.nat.ee%5D.gz'
|
默认用户名:administrator
密码:www.nat.ee
看不了全球最大教育网站,更改DNS即可
debian
1 2
| apt-get install resolvconf vim /etc/resolvconf/resolv.conf.d/head
|
再加入
1 2
| nameserver 1.1.1.1 nameserver 8.8.8.8
|
最后 reboot即可