Tutorials
Concise tutorials for every xyz.sh script: install Docker, enable BBR, add swap, set a firewall or timezone, plus benches, speed tests, and back-route checks. Steps match the scripts; no fabricated benchmarks.
-
Install Docker Tutorial (Official Script on Debian, Ubuntu, CentOS)
This tutorial shows how to install Docker Engine on a Linux VPS with xyz.sh/docker. The install is performed by the official get.docker.com script; xyz.sh only previews and confirms it.
-
Enable BBR Tutorial (TCP BBR on Debian, Ubuntu, CentOS)
This tutorial shows how to enable in-tree TCP BBR on a Linux VPS with xyz.sh/bbr. It only changes sysctl settings, does not replace the kernel, and does not claim any speed-up or benchmark result.
-
Add Swap on a VPS (Chosen Size, Persisted in fstab)
This tutorial shows how to create and persist a swap file on a Linux VPS with xyz.sh/swap, and how to remove it safely.
-
VPS Benchmark Tutorial (YABS Wrapper, No Fabricated Scores)
This tutorial shows how to benchmark a VPS with xyz.sh/bench. The default path wraps open-source YABS; --local is a rough test that downloads no third-party tools. This page does not publish or invent scores.
-
VPS System Info Tutorial (Read-Only, No Public IP Lookup)
This tutorial shows how to take a read-only snapshot of a Linux VPS with xyz.sh/sysinfo. The script does not change the system or look up a public IP.
-
Install the Nezha Agent (Official Script and Environment Variables)
This tutorial shows how to invoke the official Nezha agent installer with xyz.sh/nezha. Use the real connection values from your own Dashboard; do not connect with sample values from the docs.
-
VPS Speedtest Tutorial (Official Ookla CLI)
This tutorial shows how to install the official Ookla Speedtest CLI with xyz.sh/speedtest and run one test. The test contacts Ookla servers and is subject to Ookla's own terms.
-
VPS Back-Route Tutorial (NextTrace / traceroute)
This tutorial shows how to inspect a VPS route to several public resolvers with xyz.sh/route. Official NextTrace is preferred; the script can fall back to system traceroute.
-
VPS Firewall Tutorial (UFW / firewalld, SSH Allowed First)
This tutorial shows how to apply a basic host firewall with xyz.sh/firewall (alias ufw). Confirm the detected SSH port before enabling it, or you may lose access.
-
Linux Timezone Tutorial (timedatectl and Locale)
This tutorial shows how to set the system timezone—and optionally the locale—with xyz.sh/timezone (aliases tz, locale).
-
Experimental China 3-Network Speedtest Tutorial
This tutorial shows how to attempt China Telecom / Unicom / Mobile nodes with the experimental xyz.sh/speedtest-cn script. The test often cannot finish from outside the mainland; for everyday use run xyz.sh/speedtest --overseas or xyz.sh/all.
-
One-Shot VPS Test Tutorial (with Shareable Results)
This tutorial shows how to run the usual checks on a new VPS in one go with xyz.sh/all and share the summary with others.
-
VPS Streaming Unlock Check Tutorial (with IP Quality)
This tutorial shows how to check streaming and AI service availability for a VPS IP with xyz.sh/unlock, and whether the IP looks datacenter or residential.
-
Fail2ban SSH Protection Tutorial
This tutorial shows how to enable Fail2ban auto-banning for SSH on a VPS with xyz.sh/fail2ban.
-
SSH Hardening Tutorial: Port Change and Key Login
This tutorial walks through hardening SSH on a VPS with xyz.sh/ssh without locking yourself out.
-
Automatic Security Updates Tutorial for a VPS
This tutorial shows how to make a VPS install security updates automatically with xyz.sh/autoupdate.
-
BT Panel (Baota) Installation Tutorial
This tutorial shows how to install BT Panel through its official script with xyz.sh/bt.
-
aaPanel Installation Tutorial (Official Script)
This tutorial shows how to install aaPanel with xyz.sh/aapanel.
-
1Panel Installation Tutorial (Official Script)
This tutorial shows how to install the open-source 1Panel with xyz.sh/1panel.
-
WireGuard Server Setup Tutorial
This tutorial shows how to set up a WireGuard server on a VPS with xyz.sh/wireguard and connect clients.
-
Caddy Reverse Proxy and Automatic HTTPS Tutorial
This tutorial shows how to install Caddy with xyz.sh/caddy and reverse-proxy a domain with automatic HTTPS.