banner
xingli

xingli

猫娘爱好者

linux dd简单脚本

linux dd#

PS:自定义密码直接 -p 你想要的密码就行!!!#

部分机器需要设置网卡,否则可以 VNC,但是不能远程 SSH

 -firmware                额外的驱动支持
 -d                        Debian系统 后面是系统版本号
 -c                        Centos系统 后面是系统版本号
 -v                         后面写64位 32位
 -a                        auto,全自动无人值守安装
 --mirror                后面是镜像源地址
 -p                        后面写自定义密码
 –ip-addr                 ifconfig -a 后获取到的 例:194.87.xxx.xxx
 –ip-gate                 route -n    后获取到的   194.87.xxx.xxx
 –ip-mask                 255.255.xxx.xx

甲骨文、三毛、Vir、RN 等大部分 VPS 通用,三毛、甲骨文 记得去掉 -firmware#

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware -p 自定义密码

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 密码 -port 端口 -a -firmware

PS: 如果你是腾讯云记得卸载组件 否则会导致报错 DD 失败#

 systemctl stop tat_agent
 systemctl disable tat_agent
 rm -rf /etc/systemd/system/tat_agent.service
 rm -fr /usr/local/qcloud
 
 ps -A | grep agent
 # 检查看是否还有腾讯云组件
 # kill 这个进程

国内 VPS 需要更换镜像源否则很慢!我这里使用的华为源,如果你是腾讯云后面可以换成内网源,节省流量,下面有写!#

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a --mirror 'https://mirrors.huaweicloud.com/debian/' -p 自定义密码

镜像站地址#

官方给出的地址列表:https://www.debian.org/mirror/list

 一些国内的
 ftp.cn.debian.org
 mirror.bjtu.edu.cn
 mirror.lzu.edu.cn
 mirror.nju.edu.cn
 mirrors.163.com
 mirrors.bfsu.edu.cn
 mirrors.hit.edu.cn
 mirrors.huaweicloud.com
 mirror.sjtu.edu.cn
 mirrors.tuna.tsinghua.edu.cn
 mirrors.ustc.edu.cn
 
 使用方法:(大致都是一样的)
 
 清华源
 --mirror 'https://mirrors.ustc.edu.cn/debian/'
 腾讯源
 --mirror 'http://mirrors.tencent.com/debian/'
 --mirror 'http://mirrors.cloud.tencent.com/debian/'
 腾讯源内网(dd完毕后可以修改 走内网速度更快)
 http://mirrors.tencentyun.com/
 阿里源
 --mirror 'https://mirrors.aliyun.com/debian/'
 华为源
 --mirror 'https://mirrors.huaweicloud.com/debian/'

例子#

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 123456 -port 10086 -a -firmware
加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。