Something about tools
Find a file
2021-10-04 11:45:14 +09:00
enable or disable win10 update Add files via upload 2021-02-21 21:09:01 +09:00
error_page Add redirect to homepage automatically 2018-11-29 15:24:45 +08:00
Linux_reinstall Update InstallNET.sh 2021-03-17 19:34:10 +09:00
GroupPolicy_import_export_cn.bat Add files via upload 2018-10-22 23:37:36 +08:00
GroupPolicy_import_export_en.bat Add files via upload 2018-10-22 23:37:36 +08:00
lib.sh a shell to install server componets 2019-03-29 20:49:34 +08:00
README.md Update README.md 2021-10-04 11:45:14 +09:00

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' [these only for Debian, if you're living in China, you can prefer it to University of Science and Technology of China mirror for downloading quickly, default mirror is debian.org] -ssh [ssh port] -p [password]

Parameters Describes

-d: Debian
-u: Ubuntu
-c: CentOS
Architecture: 32/i386 64/amd64
--mirror: Install files resource, you can select one which nearest for actual location of your server to upspeed the installation. for Debian, mirror lists are here: https://www.debian.org/mirror/list.zh-cn.html for Ubuntu, mirror lists are here: https://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8 for CentOS, mirror lists are here: https://www.centos.org/download/mirrors/
-firmware/-firmware --cdimage 'ustc': specify hardware drivers for Debian.

for example:

Debian 8

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 in China with firmware, recommend for Chinese users)

bash InstallNET.sh -d 10 -v 64 -a --mirror 'https://mirrors.tuna.tsinghua.edu.cn/debian/' -firmware --cdimage 'ustc'
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://mirrors.163.com/debian/' -firmware --cdimage 'ustc'
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://mirrors.cloud.tencent.com/debian/' -firmware --cdimage 'ustc'

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

MoeClub.org

After installed system, you must change passwords immediately.

GroupPolicy import and export

This .bat script can only run in Windows. Although only one group-policy rule in Windows can be exported at a time and not support a global one and also have no GUI entrance to import another backuped group policy which exported from another computer. It can help you import or export GroupPolicy conveniently.

Attentions

  • Compatible with all versions of Windows.
  • Only support the group-policy rules which exported by this script.
  • If you want to export group-policy rules. Folder which included group-policy files corresponds to current OS version strictly. Not support export rules which is different from current OS version.
  • Export operation is irreversible, be cautious to run it
  • I provided a suggested rules file about Windows Server 2016.
  • You should run it on desktop.