mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 13:44:50 +08:00
56 lines
2.1 KiB
Markdown
56 lines
2.1 KiB
Markdown
# 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.
|
||
## Download:
|
||
<pre><code>wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/WedTools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh</code></pre>
|
||
## Install
|
||
### Useage
|
||
<pre><code>bash InstallNET.sh -[OS name] [OS version] -v [Architecture] -a[Automatic, recommend]/m[Manually in VNC]</pre></code>
|
||
### Parameters Describes
|
||
d: Debian
|
||
<br />
|
||
u: Ubuntu
|
||
<br />
|
||
c: CentOS
|
||
<br />
|
||
Architecture: 32/i386 64/amd64
|
||
<br />
|
||
for example:
|
||
### Debian 8
|
||
<pre><code>bash InstallNET.sh -d 8 -v 64 -a</code></pre>
|
||
### Debian 9
|
||
<pre><code>bash InstallNET.sh -d 9 -v 64 -a</code></pre>
|
||
### Ubuntu 16.04
|
||
<pre><code>bash InstallNET.sh -u 16.04 -v 64 -a</code></pre>
|
||
### Ubuntu 18.04
|
||
<pre><code>bash InstallNET.sh -u 18.04 -v 64 -a</code></pre>
|
||
### Cent OS 6
|
||
<pre><code>bash InstallNET.sh -c 6.9 -v 64 -a</code></pre>
|
||
### Cent OS 7
|
||
<pre><code>bash InstallNET.sh -c 7.5 -v 64 -a</code></pre>
|
||
## Default Configurations
|
||
### Time zone
|
||
Shanghai Asia
|
||
### User name
|
||
root
|
||
### Password
|
||
Vicer
|
||
<br />
|
||
<br />
|
||
<b>After installed system, you must change passwords immediately.</b>
|
||
<br />
|
||
<br />
|
||
|
||
# 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
|
||
<ul>
|
||
<li>Compatible with all versions of Windows.</li>
|
||
<li>Only support the group-policy rules which exported by this script.</li>
|
||
<li>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.</li>
|
||
<li>Export operation is irreversible, be cautious to run it!</li>
|
||
<li>I provided a suggested rules file about Windows Server 2016.</li>
|
||
<li>You should run it on desktop.</li>
|
||
</ul>
|