使用服务器前常常需要安装纯净系统。尤其是国内腾讯云、阿里云等。但注意一下OpenVZ是没法dd的,会出现grub not found
[推荐] dd脚本
leitbogioro 天权璇玑的脚本,目前用过最好用的脚本,阿里云、腾讯云都可用。
作者:leitbogioro
说明:https://www.nodeseek.com/post-9383-1
项目地址:https://github.com/leitbogioro/Tools
脚本:
1 2 3 4
| wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh
wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh
|
一键配置 Debian 11
1 2 3 4
| wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 11 -architecture 64 -pwd '你的密码'
wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 11 -architecture 64 -pwd '你的密码'
|
ruvds dd系统
ruvds不能直接傻瓜式使用萌咖大佬的脚本
1 2 3 4 5 6 7 8
| apt-get install net-tools (安装网络工具包)
ifconfig -a (查看本机公网IP地址)
route -n (查看网关地址)
|
4:用萌新的DD包和脚本,举例的是Debian9:
1
| bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a --ip-addr 194.87.xxx.xxx(改成ifconfig获取到的) --ip-gate 194.87.xxx.xxx(改成route获取到的) --ip-mask 255.255.xxx.xxx(改成你获取到的)
|
5:等20分钟左右,root用户登入,密码MoeClub.org
,搞定