# Tools Something about scripts # Linux reinstall useage ## Notes: If your VPS is base by Bandwagon and reinstalled OS which constructed by Bandwagon just now, you must reboot and then execute it. ## Features: Support Debian 8+, Ubuntu 14.04+, CentOS 6+, you can modify architecture, mirror, firmware, ssh port, password etc for easily to reinstall a cleanly Linux system. ## Download:
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/WedTools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
## Install
### Useage
bash InstallNET.sh -[OS name] [OS version] -v [Architecture x86 or x64] -a[Automatic, recommend]/m[Manually in VNC] --mirror '[a Debian/Ubuntu/Debian resource]' -firmware/-firmware --cdimage 'ustc' [this option is only for Debian] -ssh [ssh port] -p [password]
### Parameters Describes
**-d** : Debian
https://www.debian.org/mirror/list.zh-cn.html
https://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8
https://www.centos.org/download/mirrors/
bash InstallNET.sh -d 8 -v 64 -a
### Debian 9
bash InstallNET.sh -d 9 -v 64 -a
### Debian 10 (Default)
bash InstallNET.sh -d 10 -v 64 -a
### Debian 10 (prefer mirror manually with firmware, recommend for servers which are operating in mainland China)
Tsinghua University:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'https://mirrors.tuna.tsinghua.edu.cn/debian/' -p yourpassword -firmware --cdimage 'ustc'
Netease, Inc:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://mirrors.163.com/debian/' -p yourpassword -firmware --cdimage 'ustc'
Tencent Cloud:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://mirrors.cloud.tencent.com/debian/' -p yourpassword -firmware --cdimage 'ustc'
Alibaba Cloud:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://mirrors.aliyun.com/debian/' -p yourpassword -firmware --cdimage 'ustc'
### Debian 10 (prefer mirror manually with firmware, recommend for servers which are operating outside of mainland China)
Japan:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.riken.jp/Linux/debian/debian/' -p yourpassword -firmware
HongKong:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.hk.debian.org/debian/' -p yourpassword -firmware
Singapore:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.sg.debian.org/debian/' -p yourpassword -firmware
South Korea:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.kaist.ac.kr/debian/' -p yourpassword -firmware
America:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.us.debian.org/debian/' -p yourpassword -firmware
Canada:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.ca.debian.org/debian/' -p yourpassword -firmware
British:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.uk.debian.org/debian/' -p yourpassword -firmware
Germany:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.de.debian.org/debian/' -p yourpassword -firmware
France:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.fr.debian.org/debian/' -p yourpassword -firmware
Russia:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.ru.debian.org/debian/' -p yourpassword -firmware
Australia:
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.au.debian.org/debian/' -p yourpassword -firmware
### Debian 11
bash InstallNET.sh -d 11 -v 64 -a
### Ubuntu 16.04
bash InstallNET.sh -u 16.04 -v 64 -a
### Ubuntu 18.04
bash InstallNET.sh -u 18.04 -v 64 -a
### Ubuntu 20.04
bash InstallNET.sh -u 20.04 -v 64 -a
### Cent OS 6
bash InstallNET.sh -c 6.9 -v 64 -a
### Cent OS 7
bash InstallNET.sh -c 7.5 -v 64 -a
## Default Configurations
### Time zone
Shanghai Asia
### User name
root
### Password
LeitboGi0ro
### Port
22