No description
alpine | ||
debian | ||
freebsd | ||
README.md | ||
variables |
Useful scripts for common tasks for VPSes
(!) No guarantee the scripts will work, run only if you can revert or on a clean system.
Requirements
- Debian 12 or Alpine 3.21 or FreeBSD 14.3
- working internet
- Root permissions, all scripts must be executed as root (sudo is fine)
- if virtualized, it must be Full virtualization (e.g. KVM) and NOT OS-level virtualization (e.g. OpenVZ, LXC)
Tutorial
- CLONE this repo
- Fill in
variables
- Run a script or scripts
IMPORTANT: you must run this from the main (repo) directory, like you run./debian/debian-secure.sh
and as root
Scripts
-
docker-root.sh
- Installs Docker -
docker-rootless.sh
- Installs Docker and creates a user for it -
tor-repo.sh
- Adds the Tor repo. -
secure.sh
:- Creates a user
- disallows root and password login
- creates a WireGuard profile
- restricts SSH to it
If OS-level virtualization, install wireguard-go
If you'd like, you can install mosh.
Typical workflow
Relevant for Debian
- Update the system and reboot
- Remove bloat like exim or cron
- Setup systemd-networkd and remove other network managers
- Get a random IPv6 (security through obscurity)
secure.sh
- Install mosh, byobu
- Save the connection info somewhere