2018-06-26
更新于 2023-11-26 22:12:21
1 | bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p "password" -port "2222" |
国内机器
1 | bash <(wget --no-check-certificate -qO- 'https://gh-proxy.com/https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p "password" -port "2222" --mirror 'https://mirrors.cloud.tencent.com/debian/' |
OpenVZ/LXC 架构
1 | wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh |
注意
- 全自动安装默认root密码: MoeClub.org,安装完成后请立即更改密码
- 请使用 passwd root 命令更改密码
- OpenVZ构架不适用
确保安装了所需软件
1 | #Debian/Ubuntu: |
如果出现了错误,请运行
1 | #Debian/Ubuntu: |
自用debian9
1 | wget --no-check-certificate -qO DebianNET.sh 'https://raw.githubusercontent.com/bakasine/Scripts/main/DebianNET.sh' && chmod a+x DebianNET.sh |
一键下载
1 | wget --no-check-certificate -qO DebianNET.sh 'https://raw.githubusercontent.com/bakasine/Scripts/main/DebianNET.sh' && chmod a+x DebianNET.sh |
全自动/非自动示例
- 全自动安装
1 | bash DebianNET.sh -d wheezy -v i386 -a |
- VNC手动安装
1 | bash DebianNET.sh -d wheezy -v i386 -m |
- 全自动安装(指定网络参数)
1 | # 将X.X.X.X替换为自己的网络参数. |
使用示例
- 【默认】安装Debian 7 x32
1 | bash DebianNET.sh -d wheezy -v i386 |
1 | bash DebianNET.sh -d 7 -v 32 |
- 安装Debian 8 x64
1 | bash DebianNET.sh -d jessie -v amd64 |
1 | bash DebianNET.sh -d 8 -v 64 |
- 安装Debian 9 x64
1 | bash DebianNET.sh -d stretch -v amd64 |
1 | bash DebianNET.sh -d 9 -v 64 |
- 安装Ubuntu 14.04 x64
1 | bash DebianNET.sh -u trusty -v 64 |
- 安装Ubuntu 16.04 x64
1 | bash DebianNET.sh -u xenial -v 64 |
- 安装Ubuntu 18.04 x64
1 | bash DebianNET.sh -u bionic -v 64 |
转载自