Volker L
banner
lignol23.bsky.social
Volker L
@lignol23.bsky.social
Data, Python 🐍 and Stocks/Crypto

📚 Full documentation and code:
GitHub: github.com/legout/vps-s...
Quick setup gist: gist.github.com/legout/efe26...

Star the repo if you find it useful! ⭐️
GitHub - legout/vps-setup
Contribute to legout/vps-setup development by creating an account on GitHub.
github.com
December 7, 2024 at 1:22 PM
2.
For the repo

github.com/legout/vps-setup

Set the secrets. Push. Done!

5/7
GitHub - legout/vps-setup
Contribute to legout/vps-setup development by creating an account on GitHub.
github.com
December 7, 2024 at 1:20 PM
⚠️ Remember to adjust:
- `user` → your desired username
- `your.vps` → your VPS IP/domain
- `~/.ssh/id_rsa.pub` → path to your SSH public key

4/7
December 7, 2024 at 1:19 PM
1.

$ export USER="user" && \
$ export PUBLIC_KEY=$(cat ~/.ssh/id_rsa.pub) && \
$ ssh [email protected] 'bash <(curl -s gist.githubusercontent.com/legout/efe26... | sed "s/NEW_USER=\"youruser\"/NEW_USER=\"'$USER'\"/; s|PUBLIC_KEY=\"your-public-key-content\"|SSH_PUBLIC_KEY=\"'$SSH_PUBLIC_KEY'\"|")'

4/7
https://gist.githubusercontent.com/legout/efe26c63eb47c595665d4e03976139eb/raw
#!/bin/bash # Variables NEW_USER="youruser" SSH_PUBLIC_KEY="your-public-key-content" # Update system apt update && apt upgrade -y # Install required packages apt install -y sudo ufw fail2ban unatte...
gist.githubusercontent.com
December 7, 2024 at 1:18 PM
🚀 Two ways to use it:

1. Quick setup (using gist):

2. Automated deployment (using Github Action)

3/7
December 7, 2024 at 1:17 PM
🛠️ Features:
• Non-root user with sudo
• SSH key authentication
• fail2ban
• UFW firewall
• Automatic security updates
• Docker ready
• Zero manual configuration

2/7
December 7, 2024 at 12:59 PM