Created
August 22, 2021 17:09
-
-
Save sitsh/3300e36a5ddc6f78489ddf44f5a6d26d to your computer and use it in GitHub Desktop.
MoeClub InstallNET.sh new
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
万能不更新了,今天更新了一下 | |
1.新增对 Oracle AMD,Oracle ARM全面支持. 可支持从 Ubuntu, Oracle Linux 等系统网络重装. | |
2.更新 dd 镜像的基础系统版本. | |
3.移除对外部 wget 的依赖. | |
4.新增 -port 参数, 可更改默认SSH端口. | |
5.更新 内置的网络参数计算 逻辑. | |
6.更新 grub 配置文件定位逻辑, 可支持任意引导grub的系统. | |
以下系统已通过测试(其他自测): | |
Debian: 9, 10, 11; | |
Ubuntu: 18.04, 20.04; | |
CentOS: 6.10; | |
以下平台已通过测试(其他自测): | |
Oracle、Do、Azure | |
示例: | |
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口" | |
开机改密: | |
#!/bin/bash | |
echo root:Vicer |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 reboot | |
PS虽然我不在了,但是我还是爱你们的locer 代发帖 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment