Essential One-Click Linux Scripts for VPS Deployment and Management

linux one-click scriptsaria2 offline downloadseafile private cloudresilio syncbbr kernel upgrade
Published·Modified·

If you have multiple VPS instances and frequently need to deploy environments, manually compiling and installing software is extremely time-consuming. Therefore, I have collected some commonly used one-click Linux scripts to help improve efficiency. (All scripts are open source; they are ranked with my own scripts listed first.)

Bash

LACY One-Click Aria2 Setup

One-click installation of Aria2 + Caddy + YAAW in a Linux environment, enabling offline downloading, file management, and online playback.

# For CentOS users
yum -y install wget unzip
# For Debian or Ubuntu users
apt-get install -y wget unzip
# The following command is universal, just copy and paste
wget https://github.com/helloxz/aria2/archive/master.zip
unzip master.zip && cd aria2-master && chmod u+x *.sh && ./install_aria2.sh

Installation Guide: Linux One-Click Install Aria2 + YAAW for Offline Download Documentation: LACY Help Docs Source Code: https://github.com/helloxz/aria2

CentOS 7 One-Click Seafile Private Cloud Setup

Seafile is an open-source enterprise cloud drive developed in Python. It is very stable and secure, making it the ideal choice for building private clouds.

yum -y install wget
wget https://raw.githubusercontent.com/helloxz/seafile/master/install_seafile.sh
chmod +x install_seafile.sh && ./install_seafile.sh

Installation Guide: CentOS 7 One-Click Install Seafile for Private Cloud Storage Source Code: https://github.com/helloxz/seafile

CentOS One-Click Resilio Sync Script

Resilio Sync is a dedicated file sharing system based on the BitTorrent protocol, originally known as BitTorrent Sync. It is used for file sharing and synchronization.

# Install necessary packages
yum -y install wget unzip
# Download the script
wget https://github.com/helloxz/Resilio-Sync/archive/master.zip
# Unzip and install
unzip master.zip && cd Resilio-Sync-master && chmod +x mysync.sh sync.sh && ./sync.sh

Installation Guide: CentOS One-Click Install Resilio Sync Script Source Code: https://github.com/helloxz/Resilio-Sync

OneinStack

Use this to build website environments. It one-click installs Apache, Nginx, MySQL, Tomcat, etc., such as the popular LNMP environment. Note: This script does not support web panels. If you are not very familiar with Linux, it is recommended to use alternatives like Baota or AMH.

yum -y install wget screen curl python # For CentOS/Redhat
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
tar xzf oneinstack-full.tar.gz
cd oneinstack
screen -S oneinstack
./install.sh

Official Website: https://oneinstack.com/

Shadowsocks Python Version One-Click Install Script

A script by the renowned developer QiuShuiYiBing. As for what it can do, let's just say you know.

wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log

Original Article: https://teddysun.com/444.html

One-Click Kernel Upgrade and Enable Google BBR

Google's open-source TCP BBR congestion control algorithm effectively improves TCP transmission speeds. It works even better when paired with Shadowsocks. If your neighbors are hogging the bandwidth, don't you need a solution to surf the web?

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

Original Article: https://teddysun.com/342.html

One-Click Test Script bench.sh

This is another practical work by QiuShuiYiBing. His scripts are all very useful. bench.sh allows you to conveniently check CPU/memory information and test VPS disk I/O and download speeds. It is a must-have for VPS reviews.

# Method 1
wget -qO- bench.sh | bash
# Method 2
curl -Lso- bench.sh | bash

Summary

One-click scripts are suitable for those not very familiar with Linux or who wish to improve efficiency. If you intend to learn Linux, try compiling and installing manually first to better understand the underlying principles, and then write your own one-click scripts to benefit everyone. Of course, there are many excellent scripts; the ones listed above are just a collection of scripts commonly used by xiaoz. If you have any good scripts, feel free to recommend them in the comments below.