banner
xingli

xingli

猫娘爱好者

Linux ddシンプルスクリプト

linux dd#

PS: Custom password directly -p is the password you want!!!#

Some machines need to set up network cards, otherwise VNC can be used, but remote SSH is not possible.

 -firmware                Additional driver support
 -d                        Debian system followed by the system version number
 -c                        Centos system followed by the system version number
 -v                         Write 64-bit or 32-bit after
 -a                        auto, fully automatic unattended installation
 --mirror                The mirror source address is written after
 -p                        Write custom password after
 –ip-addr                 Obtained after ifconfig -a, for example: 194.87.xxx.xxx
 –ip-gate                 Obtained after route -n, for example: 194.87.xxx.xxx
 –ip-mask                 255.255.xxx.xx

Most VPS such as Oracle, Sanmao, Vir, RN, etc. are universal. Remember to remove -firmware for Sanmao and Oracle#

Old

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

New

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

PS: If you are using Tencent Cloud, remember to uninstall the components, otherwise it will cause an error and the DD will fail#

 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
 # Check if there are still Tencent Cloud components
 # Kill this process

Domestic VPS needs to change the mirror source, otherwise it will be very slow! I use Huawei source here. If you are using Tencent Cloud, you can change it to an internal network source to save traffic. It is written below!#

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 CustomPassword

Mirror site addresses#

Official address list: https://www.debian.org/mirror/list

 Some domestic ones
 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
 
 Usage: (roughly the same for most)
 
 Tsinghua source
 --mirror 'https://mirrors.ustc.edu.cn/debian/'
 Tencent source
 --mirror 'http://mirrors.tencent.com/debian/'
 --mirror 'http://mirrors.cloud.tencent.com/debian/'
 Tencent source internal network (can be modified after DD is completed for faster internal network speed)
 http://mirrors.tencentyun.com/
 Alibaba source
 --mirror 'https://mirrors.aliyun.com/debian/'
 Huawei source
 --mirror 'https://mirrors.huaweicloud.com/debian/'

Example#

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
読み込み中...
文章は、創作者によって署名され、ブロックチェーンに安全に保存されています。