Some simple shell scripts, for my own use, and for fun!
⚠ Most scripts here only work on Ubuntu 18.04+.
⚠ Bugs everywhere. Use them at your own risk.
Aria2 config file based on Toyo's config.
Systemd service for aria2.
Install aria2 via apt.
Aria2 dht cache file from Toyo.
⚠ Caddy v1 has reached EOL. Use Caddy 2 if possible.
Backup of Caddy 1.0.5 compiled by Teddysun.
Uninstall caddy v1 (default directory only).
Backup of Caddy 1.0.4.
Systemd service for Caddy v1.
Install Caddy v1.
Systemd service for Caddy 2.
⚠ Deprecated: Use the official way instead.
Install Caddy 2.
⚠ Deprecated: Use the official way instead.
Systemd service for filebrowser.
Install filebrowser.
Install frp client.
Install frp server.
Backup nextcloud data automatically.
Backup seafile files and databases automatically in a single zip file.
Sync the backup file of seafile automatically to external storage, e.g. Onedrive.
Remove rclone.
Systemd service for ServerStatus client.
Install ServerStatus client. Domain name support added.
Remove ServerStatus client.
Analysis failed logins attempts.
Removed kernels except the latest one and used one.
⚠ Bug Warning: Unexpected behavior in certain environment. Fix needed.
Some basic setups for new ubuntu server, including:
- Upgrade packages.
- Remove silly vim-tiny & install vim, wget, curl, lrzsz, and screen.
- Set time zone to Asia/Shanghai.
- Add pub key authentication & disable password authentication.
- Create user 'ubuntu' with the same key.
- Activate TCP-BBR.
- Install and enable UFW & add SSH rule (with custom port support).
⚠ You need to add rules manually to make other ports accessible.
- Add some custom aliases.