GithubHelp home page GithubHelp logo

ultranijia / tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leitbogioro/tools

0.0 0.0 0.0 1.66 MB

Linux reinstall tools

Shell 57.45% HTML 2.86% Batchfile 5.45% Batchfile 5.45% Batchfile 5.45% Batchfile 11.22% Batchfile 12.12%

tools's Introduction

Tools

Something about scripts

Linux reinstall useage

Features:

  • "InstallNET.sh" will give you a clean, safe, official Linux system, and help you escape of your server providers' monitoring.
  • The operation is easy, several minutes installation will be complated.
  • Support Debian 8+, Ubuntu 14.04+, CentOS 6.
  • Support major cloud providers, especially support Oracle Cloud ARM machine.
  • You can modify architecture, mirror, firmware, ssh port, password etc.
  • Friendly to low memory machine(recommend RAM above 256MB).

Download:

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

Fully useage sample

bash InstallNET.sh -d/u/c(os type) 11(os version) -v 64(os bit) -port "your server port" -p "your server password" -a(auto install)/m(manually in VNC) -firmware(with hardware drivers) --mirror 'a valid url for OS image source' --cdimage 'cn'(this option is only for Debian)

Parameters Descriptions

-d : Debian

-u: Ubuntu

-c: CentOS

32/i386 or 64/amd64: OS bit

--mirror: OS install files resource, you can select one which nearest for actual location of your server to upspeed installation.

for Debian, official recommend mirror lists are here:

https://www.debian.org/mirror/list.zh-cn.html

for Ubuntu, official recommend mirror lists are here:

https://wiki.ubuntu.org.cn/%E6%BA%90%E5%88%97%E8%A1%A8

for CentOS, official recommend mirror lists are here:

https://www.centos.org/download/mirrors/

-firmware or -firmware --cdimage 'cn': specify hardware drivers for Debian, if your server location is in mainland China, you can prefer it to mirror of 'University of Science and Technology of China(https://mirrors.ustc.edu.cn/debian-cdimage/)' for downloading more quickly, default mirror is from http://cdimage.debian.org/cdimage/.

-port: you can pre-specify ssh port of system, range is 1~65535, default is '22'.

-p: you can pre-specify ssh password of system, default is 'LeitboGi0ro'.

Quickly start

Debian 8

bash InstallNET.sh -d 8 -v 64 -a

Debian 9

bash InstallNET.sh -d 9 -v 64 -a

Debian 10

bash InstallNET.sh -d 10 -v 64 -a

Debian 11 (prefer mirror manually with firmware, recommend for servers which are locating in mainland China)

Tsinghua University:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'https://mirrors.tuna.tsinghua.edu.cn/debian/' --cdimage 'cn'

Netease, Inc:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://mirrors.163.com/debian/' --cdimage 'cn'

Tencent Cloud:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://mirrors.cloud.tencent.com/debian/' --cdimage 'cn'

Alibaba Cloud:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://mirrors.aliyun.com/debian/' --cdimage 'cn'

Debian 11 (prefer mirror manually with firmware, recommend for servers which are locating outside of mainland China)

Japan:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.riken.jp/Linux/debian/debian/'

HongKong:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.hk.debian.org/debian/'

Singapore:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.sg.debian.org/debian/'

South Korea:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.kr.debian.org/debian/'

Taiwan:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.tw.debian.org/debian/'

America:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.us.debian.org/debian/'

Canada:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.ca.debian.org/debian/'

British:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.uk.debian.org/debian/'

Germany:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.de.debian.org/debian/'

France:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.fr.debian.org/debian/'

Russia:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.ru.debian.org/debian/'

Australia:

bash InstallNET.sh -d 11 -v 64 -a -firmware --mirror 'http://ftp.au.debian.org/debian/'

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.10 -v 64 -a

Default Configurations

Time zone

Asia Tokyo

Default User name

root

Default Password

LeitboGi0ro

Default Port

22

After system installation, you must change passwords immediately if you assigned default password(LeitboGi0ro)!

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.

tools's People

Contributors

leitbogioro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.