• 搜索
  • 夜间模式
    ©2026  異想世界 Theme by OneBlog

    異想世界博客

    搜索
    标签
  • 首页>
  • 默认分类>
  • 正文
  • MoeClub的一键重装脚本

    2022年06月18日 10 阅读 0 评论 876 字

    MoeClub的一键重装脚本


    代码示例:

    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


    更新记录:

    新增对 Oracle AMD,Oracle ARM全面支持. 可支持从 Ubuntu, Oracle Linux 等系统网络重装.
    更新 dd 镜像的基础系统版本.
    移除对外部 wget 的依赖.
    新增 -port 参数, 可更改默认SSH端口.
    更新 内置的网络参数计算 逻辑.
    更新 grub 配置文件定位逻辑, 可支持任意引导grub的系统.
    新增 -cmd, 可接受开机后只运行一次的命令(base64编码).
    新增对 AWS EC2 (ARM) 网络重装的支持.
    

    以下系统已通过测试(其他自测):
    Debian: 9, 10, 11;
    Ubuntu: 18.04, 20.04;
    CentOS: 6.10;

    本文著作权归作者 [ root ] 享有,未经作者书面授权,禁止转载,封面图片来源于 [ 互联网 ] ,本文仅供个人学习、研究和欣赏使用。如有异议,请联系博主及时处理。
    取消回复

    发表留言
    回复

    Copyright©2026  All Rights Reserved.  Load:0.008 s
    Theme by OneBlog V3.6.5
    夜间模式

    开源不易,请尊重作者版权,保留基本的版权信息。