Documentation

Documentation

Usage patterns, operational recommendations, and direct command examples for helper.sh scripts.

Publishing model

  • Each script has a human-readable landing page and a raw file URL.
  • Use raw URLs in terminal automation and page URLs for handoff or review.
  • Document operational assumptions next to the executable command.

Quick start

helper.sh publishes scripts as plain text files so they can be inspected, downloaded, or piped into bash depending on your operational policy.

curl -fsSL helper.sh/optimize_centos7_ssh.sh | sudo bash
curl -fsSL helper.sh/centos_disable_password_ssh.sh | sudo bash
curl -fsSL helper.sh/install_openvpn_client_centos7.sh | sudo bash
curl -fsSL helper.sh/tree-to-file.sh | sh
curl -fsSL -o switch-centos7-repo.sh helper.sh/switch-centos7-repo.sh && sudo bash switch-centos7-repo.sh
curl -fsSL helper.sh/install_openvpn_client_ubuntu.sh | sudo bash
curl -fsSL helper.sh/install_docker_ubuntu_2404.sh | sudo bash
curl -fsSL helper.sh/install_nginx_base_docker.sh | sudo bash
curl -fsSL helper.sh/install_mysql57_base_docker.sh | sudo bash
curl -fsSL helper.sh/install_redis705_base_docker.sh | sudo bash
curl -fsSL helper.sh/install_php72_base_docker.sh | sudo bash
curl -fsSL helper.sh/install_workerman3524_base_docker.sh | sudo bash
curl -fsSL helper.sh/hello.sh | bash
curl -fsSL helper.sh/docker-data-move.sh | sudo bash
curl -fsSL helper.sh/install_openvpn_server_centos.sh | sudo bash
curl -fsSL helper.sh/install_bleachwrt_docker_centos7.sh | sudo bash -s -- --yes

Per-script docs

Available usage guides

optimize_centos7_ssh.sh

A one-shot CentOS 7 SSH tuning script that disables reverse DNS lookup, turns off GSSAPI auth, pins IPv4, validates sshd_config, and restarts sshd safely.

centos_disable_password_ssh.sh

A CentOS SSH hardening script that verifies an existing authorized_keys file, disables password login, keeps public key auth enabled, validates sshd_config, and reloads sshd safely.

install_openvpn_client_centos7.sh

A helper.sh-hosted CentOS 7 OpenVPN client installer that imports the EPEL GPG key, installs OpenVPN, copies local client.conf and login.txt, deploys a DNS helper, and enables openvpn-client@client.

tree-to-file.sh

A helper.sh-hosted directory tree exporter that writes the current project structure into tree.txt and falls back cleanly when tree is unavailable.

switch-centos7-repo.sh

A CentOS 7 repository switch helper for replacing outdated or unreachable yum mirrors with usable sources.

install_openvpn_client_ubuntu.sh

A helper.sh-hosted Ubuntu OpenVPN client installer that checks for local client.conf and login.txt, installs OpenVPN, optionally copies a local update-resolv-conf helper, and enables a systemd client service.

install_docker_ubuntu_2404.sh

A one-shot installer for Docker Engine and Docker Compose on Ubuntu 24.04.4 LTS, published through helper.sh.

install_nginx_base_docker.sh

A one-shot Docker installer for Nginx 1.22.1 that prepares /data/nginx, mounts host directories, and starts a reusable web service.

install_mysql57_base_docker.sh

A Docker-based one-shot installer for MySQL 5.7 that prepares /data/mysql5.7 and starts a host-mounted database container.

install_redis705_base_docker.sh

A Docker-based one-shot installer for Redis 7.0.5 that prepares /data/redis7.0.5 and starts a host-mounted cache container.

install_php72_base_docker.sh

A Docker-based one-shot installer for PHP 7.2 that prepares /data/php7.2 and starts a host-mounted PHP-FPM container.

install_workerman3524_base_docker.sh

A Docker-based one-shot installer for Workerman 3.5.24 that prepares /data/workerman3.5.24 and starts a simple host-mounted HTTP worker service.

hello.sh

The original helper.sh script used to verify connectivity and establish the shell-first experience.

docker-data-move.sh

An interactive helper that migrates Docker data-root onto a larger disk with path checks, backups, and verification.

install_openvpn_server_centos.sh

A CentOS 7 OpenVPN server installer with username/password auth, CCD fixed-IP support, ovpn-check self-test, and built-in access to the 192.168.30.0/24 LAN behind the VPN server.

install_bleachwrt_docker_centos7.sh

Install a BleachWrt/OpenWrt-compatible Docker container on CentOS 7 with macvlan networking and a host shim for lawful LAN use.

Platform pages

Browse by system and host role

Start from platform pages when your search begins with an operating system, a host type, or a delivery baseline.

Platform pages

CentOS 7 scripts

Recovery-oriented scripts for legacy CentOS 7 hosts that still need package installs, storage cleanup, and controlled maintenance.

Platform pages

Ubuntu 24.04 scripts

Helper pages and install scripts for bringing a fresh Ubuntu 24.04 host into a stable operations baseline.

Platform pages

Docker host setup

Scripts that prepare the host layer before service containers are installed, including Docker engine setup and Docker data layout maintenance.

Platform pages

Docker service stack scripts

A grouped view of the helper.sh service installers for Nginx, MySQL, Redis, PHP, and Workerman running on top of Docker.

Topic pages

Browse grouped operational topics

Use topic pages when you want to navigate by scenario instead of by script filename.

Topic pages

CentOS 7 maintenance and recovery

Keep legacy CentOS 7 hosts installable and maintainable when yum repositories fail, mirrors expire, or Docker data needs to be moved off a crowded disk.

Topic pages

Ubuntu 24.04 deployment basics

Install Docker, bootstrap common runtime services, and keep fresh Ubuntu 24.04 hosts ready for application rollout.

Topic pages

Docker base services for application hosts

Use helper.sh scripts to standardize containerized Nginx, MySQL, Redis, PHP, and Workerman services on long-lived hosts.

Topic pages

OpenVPN client access and DNS handling

Set up OpenVPN client access on Ubuntu and CentOS 7 hosts, keep login files in the expected place, and handle DNS switching safely when private domains depend on the tunnel.

Topic pages

Legacy runtime services on Docker

Maintain older application stacks such as PHP 7.2 and Workerman on Docker while keeping deployment steps standardized enough for handoff and recovery.

Problem pages

Jump straight to common questions

Use these pages when the user starts from a problem description, not from a script name.

Problem pages

Why is CentOS 7 SSH login so slow

The usual causes are reverse DNS lookup, GSSAPI auth negotiation, and sometimes IPv6 fallback. Disable those waits before doing deeper SSH troubleshooting.

Problem pages

Why can I not connect after disabling SSH password login on CentOS

The usual cause is disabling PasswordAuthentication before confirming that the target account already has a working authorized_keys file and a successful key-based login test.

Problem pages

When should I use hello.sh first

Use hello.sh as a low-risk connectivity and shell-delivery check before handing a host to larger installation scripts.

Problem pages

How to install Nginx with Docker

Bring up a baseline Nginx container with fixed host paths so config, logs, and web content stay predictable.

Problem pages

How to install Redis 7.0.5 with Docker

Deploy Redis 7.0.5 with a consistent mounted directory layout so data and config survive container replacement.

Problem pages

How to install PHP 7.2 with Docker

Package an old PHP 7.2 runtime into a repeatable container layout so legacy code can stay isolated from the host.

Problem pages

When should I switch CentOS 7 repositories

Switch repository definitions when old CentOS 7 mirrors fail, time out, or no longer return valid metadata.

Problem pages

How to export a directory tree to tree.txt on Linux

Use tree-to-file.sh when you need a reusable way to export the current directory structure and auto-install tree if the host is missing it.

Problem pages

How to fix CentOS 7 yum 404 errors

Restore package installation on old CentOS 7 hosts when the default repositories no longer work.

Problem pages

How to move Docker data-root on CentOS 7

Move Docker data away from a crowded root or home filesystem before the host runs out of disk.

Problem pages

How to install Docker on Ubuntu 24.04

Use a one-shot install flow that handles package cleanup, official repositories, and Docker Hub reachability checks.

Problem pages

Why OpenVPN update-resolv-conf is not working

Troubleshoot login files, CRLF script issues, and Ubuntu systemd-resolved behavior when private DNS is expected over OpenVPN.

Problem pages

How to install MySQL 5.7 with Docker

Run an older MySQL 5.7 version with predictable mounted directories and generated credentials on a modern Docker host.

Problem pages

How to run Workerman 3.5.24 in Docker

Build a stable Workerman 3.5.24 image with the old PHP 7.2 runtime, archived Debian sources, and foreground process management handled by Docker.