banner
xingli

xingli

猫娘爱好者

2023 Common Script Backup

2023 Common Script Backup#

Thanks to the following contributors for collecting and organizing the scripts

https://hostloc.com/thread-921605-1-1.htmlhttps://blog.laoda.de/archives/useful-scripthttps://www.wrnxr.cn/163.html

DD Network Reinstallation Script#

PS: To set a custom password, just use -p followed by your desired password!!!

Some machines require network card settings; otherwise, you can use VNC but cannot SSH remotely.

 -firmware                additional driver support
 -d                        Debian system followed by the version number
 -c                        CentOS system followed by the version number
 -v                         specify 64-bit or 32-bit
 -a                        auto, fully automated unattended installation
 --mirror                followed by the mirror source address
 -p                        followed by custom password
 –ip-addr                 ifconfig -a to get it, e.g., 194.87.xxx.xxx
 –ip-gate                 route -n to get it, e.g., 194.87.xxx.xxx
 –ip-mask                 255.255.xxx.xx

Common for most VPS like Oracle, Three Mice, Vir, RN, etc. Remember to remove -firmware for Three Mice and Oracle.

Old

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

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
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 123456 -port 44 -a -firmware

PS: If you are using Tencent Cloud, remember to uninstall components, otherwise it will cause errors and DD failures.#

 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 am using Huawei's source here. If you are using Tencent Cloud, you can switch to the internal network source later to save bandwidth, as mentioned 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 custom_password

Mirror Site Addresses#

The official list of addresses: 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: (generally similar)
 
 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 Internal Network Source (can be modified after DD for faster speeds)
 http://mirrors.tencentyun.com/
 Ali Source
 --mirror 'https://mirrors.aliyun.com/debian/'
 Huawei Source
 --mirror 'https://mirrors.huaweicloud.com/debian/'

DD Windows#

https://git.beta.gs/

 Prerequisite components for installing the system:
 Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file wget screen && screen -S os
 
 RedHat/CentOS:
yum install -y xz openssl gawk file glibc-common wget screen && screen -S os
 
 If anomalies occur, please refresh the Mirrors cache or change the mirror source.
 RedHat/CentOS:
 yum makecache && yum update -y
 Debian/Ubuntu:
 apt update -y && apt dist-upgrade -y
 
 
 Usage:
wget --no-check-certificate -O NewReinstall.sh https://git.io/newbetags && chmod a+x NewReinstall.sh && bash NewReinstall.sh
 
 If it is a CN host (some host providers can no longer be used), there may be errors or issues downloading the script. You can execute the following command to start the installation.
wget --no-check-certificate -O NewReinstall.sh https://cdn.jsdelivr.net/gh/fcurrk/reinstall@master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

41-in-1 System Password:

1、CentOS 7.7 (Firewall and SELinux disabled, default password Pwd@CentOS)
2、CentOS 7 (default password cxthhhhh.com)
3、CentOS 7 (supports ARM64, UEFI, default password cxthhhhh.com)
4、CentOS 8 (default password cxthhhhh.com)
5、Rocky 8 (default password cxthhhhh.com)
6、Rocky 8 (supports UEFI, default password cxthhhhh.com)
7、Rocky 8 (supports ARM64, UEFI, default password cxthhhhh.com)
8、CentOS 9 (default password cxthhhhh.com)
9、CentOS 6 (official source original version, default password Minijer.com)
10、Debian 11 (official source original version, default password Minijer.com)
11、Debian 10 (official source original version, default password Minijer.com)
12、Debian 9 (official source original version, default password Minijer.com)
13、Debian 8 (official source original version, default password Minijer.com)
14、Ubuntu 20.04 (official source original version, default password Minijer.com)
15、Ubuntu 18.04 (official source original version, default password Minijer.com)
16、Ubuntu 16.04 (official source original version, default password Minijer.com)
17、Windows Server 2022 (default password cxthhhhh.com)
18、Windows Server 2022 (supports UEFI, default password cxthhhhh.com)
19、Windows Server 2019 (default password cxthhhhh.com)
20、Windows Server 2016 (default password cxthhhhh.com)
21、Windows Server 2012 (default password cxthhhhh.com)
22、Windows Server 2008 (default password cxthhhhh.com)
23、Windows Server 2003 (default password cxthhhhh.com)
24、Windows 10 LTSC (default password Teddysun.com)
25、Windows 10 LTSC (supports UEFI, default password Teddysun.com)
26、Windows 7 x86 Lite (default password nat.ee)
27、Windows 7 x86 Lite (Aliyun exclusive, default password nat.ee)
28、Windows 7 x64 Lite (default password nat.ee)
29、Windows 7 x64 Lite (supports UEFI, default password nat.ee)
30、Windows 10 LTSC Lite (default password nat.ee)
31、Windows 10 LTSC Lite (Aliyun exclusive, default password nat.ee)
32、Windows 10 LTSC Lite (supports UEFI, default password nat.ee)
33、Windows Server 2003 Lite (C drive default 10G, default password WinSrv2003x86-Chinese)
34、Windows Server 2008 Lite (default password nat.ee)
35、Windows Server 2008 Lite (supports UEFI, default password nat.ee)
36、Windows Server 2012 Lite (default password nat.ee)
37、Windows Server 2012 Lite (supports UEFI, default password nat.ee)
38、Windows Server 2016 Lite (default password nat.ee)
39、Windows Server 2016 Lite (supports UEFI, default password nat.ee)
40、Windows Server 2022 Lite (default password nat.ee)
41、Windows Server 2022 Lite (supports UEFI, default password nat.ee)
99、Custom Image

Baota Panel 7.7.0#

curl -sSO https://raw.githubusercontent.com/8838/btpanel-v7.7.0/main/install/install_panel.sh && bash install_panel.sh
 
 1. Block mobile number
sed -i "s|bind_user == 'True'|bind_user == 'XXXX'|" /www/server/panel/BTPanel/static/js/index.js
 2. Delete the forced binding mobile JS file
rm -f /www/server/panel/data/bind.pl
 3. Manually unlock all paid plugins of Baota for permanent use
 File path: /www/server/panel/data/plugin.json
 Search string: "endtime": -1 replace all with "endtime": 999999999999
 4. Lock the plugin.json file to prevent automatic repair to the free version
chattr +i /www/server/panel/data/plugin.json

Common Scripts#

One-click Enable BBR (suitable for newer Debian, Ubuntu)#

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr

superbench#

wget -qO- git.io/superbench.sh | bash

Bench.sh#

wget -qO- bench.sh | bash

Three Network Speed Test#

bash <(curl -Lso- https://git.io/superspeed_uxh)
bash <(curl -Lso- https://git.io/J1SEh)

wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh
bash jcnf.sh

yabs Machine Benchmark#

curl -sL yabs.sh | bash

curl -sL yabs.sh | bash -s -- -flags
-b This option forces the use of precompiled binaries from the repo instead of local packages
-f/-d This option disables fio (disk performance) tests
-i This option disables iperf (network performance) tests
-g This option disables Geekbench (system performance) tests
-h This option prints a help message containing usage, detected flags, and local package (fio/iperf) status
-r This option reduces the number of iperf locations (Online.net/Clouvider LON+NYC) to reduce bandwidth usage
-4 This option overrides Geekbench 5 performance tests and runs Geekbench 4 tests
-9 This option runs both Geekbench 5 and Geekbench 4 tests
-j This option prints the JSON representation of the results to the screen
-w<filename> This option writes the JSON results to a file with the provided filename
-s<url> This option sends the JSON results to the specified URL (see the section below)

One-click Install Docker#

Abroad#

curl -sSL https://get.docker.com/ | sh

Domestic#

curl -sSL https://get.daocloud.io/docker | sh

Uninstall Docker#

sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/

Streaming Media Test#

Full Media Test#

bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

Netflix Test#

wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf

# First
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

# Second
bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")

Glances: Cross-platform System Performance Monitoring Tool#

curl -L https://bit.ly/glances | bash
wget -O- https://bit.ly/glances | bash
wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

Less Common Scripts#

Du Fu Test#

wget -q https://github.com/Aniverse/A/raw/i/a && bash a

Single Thread Test#

bash <(curl -Lso- https://bench.im/hyperspeed)

Directly Display Return Path#

curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash

# First
wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh
bash testrace.sh

# Second
wget -qO- git.io/besttrace | bash

Test if Port 25 is Open#

telnet smtp.aol.com 25

Test IPv4 or IPv6 Priority#

curl ip.p3terx.com

WARP#

wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi.sh && ./multi.sh

Baota One-click Mount Disk Script#

For CentOS system, please use the following command:
yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

For Ubuntu system, please use the following command:
wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && sudo bash auto_disk.sh

For Debian system, please use the following command:
wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh

FunctionClub's Memory Testing Script#

CentOS

yum install wget -y
yum groupinstall "Development Tools" -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

Ubuntu / Debian

apt-get update
apt-get install wget build-essential -y
wget https://raw.githubusercontent.com/FunctionClub/Memtester/master/memtester.cpp
gcc -l stdc++ memtester.cpp
./a.out

Aria2 One-click Installation Script#

wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh

qbittorrent Installation 4.3.9#

cd /root
wget https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.3.9_v1.2.15/x86_64-qbittorrent-nox
chmod +x x86_64-qbittorrent-nox
./x86_64-qbittorrent-nox

Just input y and then ctrl+c to exit.

cat << "EOF" > /etc/systemd/system/qbittorrent.service
[Unit]
Description=qBittorrent Daemon Service
After=network.target

[Service]
LimitNOFILE=512000
User=root
ExecStart=/root/x86_64-qbittorrent-nox

[Install]
WantedBy=multi-user.target
EOF
# Update configuration
systemctl daemon-reload
# Start service
systemctl start qbittorrent
# Check status
systemctl status qbittorrent

To restart/stop the program, please use the kill command to close the program.
ps -aux | grep qbittorrent
kill the corresponding number
For example, kill 11111
Then use the process guardian to open it for use.

Sword Emperor Script#

wget https://github.com/maintell/webBenchmark/releases/download/0.6/webBenchmark_linux_x64
chmod +x webBenchmark_linux_x64
./webBenchmark_linux_x64 -c 32 -s https://target.url

Other Scripts#

Swap Add/Delete Script#

wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh

DD Windows#

Moe Club's script, you should use this new one, it has a higher success rate and better compatibility than the old address.

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

One-click Modify Default SSH Port, replace 2222 as needed#

sed -i 's/#Port\ 22/Port\ 2222/' /etc/ssh/sshd_config && systemctl reload ssh

One-click Clean Expired Logs in /var/log/ Directory#

find /var/log/ -name "*.1" -exec rm -rf {} \; && find /var/log/ -name "*.log.1" -exec rm -rf {} \; && find /var/log/ -name "*.gz" -exec rm -rf {} \;

Streaming Media Detection:#

bash <(curl -L -s check.unlock.media)

Currently the best and most functional WARP script used#

wget -N https://raw.githubusercontent.com/fscarmen/warp/main/warp-go.sh && bash warp-go.sh [option] [license]

The original poster requests to update the main post. The one-click DD Linux system can include mine, supporting Redhat 7 8 9, including CentOS, AlmaLinux, RockyLinux, Fedora, Debian series Redhat series, ARM64 AMD64 automatic recognition and conversion, eliminating the need to manually add hardware architecture parameters, smooth switching between grub1 and grub2, unlimited mutual installation between Debian and Redhat series, automatically set guest time zone, connect to domestic source optimization, and more intelligent dynamic and static network parameter configuration, for dual-stack IPv4 IPv6 machines, single-stack IPv6 machines, well optimized for Oracle, GitHub address: https://github.com/leitbogioro/Tools

Download:

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

Install Dependencies:

Just install wget.

Debian Series:

apt update -y

apt install wget -y

Redhat Series (CentOS / AlmaLinux / RockyLinux / OracleLinux / Fedora / VzLinux):

yum update --allowerasing -y

yum install wget -y

ddLinux Quick Start:#

#debian
bash InstallNET.sh -debian
#centos
bash InstallNET.sh -centos
#RockyLinux
bash InstallNET.sh -rockylinux
#almalinux
bash InstallNET.sh -almalinux
#fedora
bash InstallNET.sh -fedora
#ubuntu
bash InstallNET.sh -ubuntu
Parameter Details:
-debian 9/10/11 : Debian 9+

-centos 7/8/9-stream: CentOS 7+

-almalinux/alma 8/9: AlmaLinux 8+

-rockylinux/rocky 8/9: RockyLinux 8+

-fedora 34/35/36/37: Fedora 34+

-ubuntu 16.04/18.04/20.04: Ubuntu 16.04~20.04

-mirror "valid source link"

-port "1~65535"

-pwd 'custom password, not too complex, special symbols not recommended, default: LeitboGi0ro'

--network "dhcp/auto or static/manual" #dynamic or static network, optional, can be omitted, the script automatically recognizes

#Parameters with two dashes should be placed at the end of the script execution.

vimsa#

wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

More stable circumvention software.

v2ray#

Installation Command#

source <(curl -sL https://multi.netlify.app/v2ray.sh) --zh

Upgrade Command (update while keeping configuration files)#

source <(curl -sL https://multi.netlify.app/v2ray.sh) -k

Uninstall Command#

source <(curl -sL https://multi.netlify.app/v2ray.sh) --remove
v2ray/xray [-h|help] [options]
-h, help View help
-v, version View version number
start Start V2Ray
stop Stop V2Ray
restart Restart V2Ray
status View V2Ray running status
new Rebuild new v2ray json configuration file
update Update V2Ray to the latest Release version
update [version] Update V2Ray to a specified version
update.sh Update multi-v2ray to the latest version
add Add a new port group
add [protocol] Add a group of a new protocol, port random, e.g., v2ray add utp for adding a new utp protocol
del Delete port group
info View configuration
port Modify port
tls Modify tls
tfo Modify tcpFastOpen
stream Modify transmission protocol
cdn Use cdn
stats v2ray traffic statistics
iptables iptables traffic statistics
clean Clean logs
log View logs
rm Uninstall core

A script for network reinstallation of the Alpine Linux distribution~**#

sh <(curl -k 'https://cdn.jsdelivr.net/gh/52fancy/NetInstallAlpine/alpine.sh')

【2023 Script Collection】Common Script Backup

https://hostloc.com/thread-1097221-1-1.html
(Source: Global Hosting Exchange Forum)

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.