ドキュメント

ドキュメント

helper.sh スクリプトの使い方、運用上の推奨事項、直接実行コマンド例をまとめています。

配布モデル

  • 各スクリプトには人向けの説明ページと raw ファイル URL を用意しています。
  • 端末自動化には raw URL、引き継ぎや確認にはページ URL を使います。
  • 運用前提は実行コマンドのすぐ横に明記します。

クイックスタート

helper.sh はスクリプトをプレーンテキストとして公開するため、運用ポリシーに応じて閲覧、保存、bash へのパイプ実行を選べます。

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

スクリプト別ドキュメント

利用ガイド一覧

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

helper.sh の最初期スクリプトです。接続確認と shell-first な利用体験の起点として使います。

docker-data-move.sh

Docker data-root をより大きなディスクへ安全に移行するための対話型ヘルパーです。パス検査、バックアップ、検証を含みます。

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.

プラットフォームページ

OS とホスト役割から探す

検索の起点が OS、ホスト種別、初期構成である場合は、まずプラットフォームページから入ると整理しやすくなります。

プラットフォームページ

CentOS 7 scripts

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

プラットフォームページ

Ubuntu 24.04 scripts

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

プラットフォームページ

Docker host setup

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

プラットフォームページ

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.

トピックページ

運用シナリオごとに探す

ファイル名ではなく場面ごとに探したいときは、トピックページから入ると見つけやすくなります。

トピックページ

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.

トピックページ

Ubuntu 24.04 deployment basics

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

トピックページ

Docker base services for application hosts

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

トピックページ

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.

トピックページ

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.

問題ページ

よくある問題から直接探す

スクリプト名ではなく症状や問題文から入るケースでは、まず問題ページを見るのが近道です。

問題ページ

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.

問題ページ

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.

問題ページ

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.

問題ページ

How to install Nginx with Docker

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

問題ページ

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.

問題ページ

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.

問題ページ

When should I switch CentOS 7 repositories

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

問題ページ

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.

問題ページ

How to fix CentOS 7 yum 404 errors

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

問題ページ

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.

問題ページ

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.

問題ページ

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.

問題ページ

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.

問題ページ

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.