Fresh Ubuntu 22.04 VPS ko production-ready banao — ek script mein.
No GUI. No desktop. No Tailscale. Sirf security + performance.
| Step | Kya hoga |
|---|---|
| 1 | Timezone → Asia/Kolkata |
| 2 | APT mirrors fix (Linode/DO/Vultr/Hetzner → archive.ubuntu.com) |
| 3 | Full system update + upgrade |
| 4 | Base packages install (curl, git, htop, fail2ban, tmux, jq...) |
| 5 | UFW firewall — sirf SSH (22) open, baaki sab band |
| 6 | SSH hardening — root login on, max 3 tries, DNS off |
| 7 | Swap — automatic size (2x RAM, min 1GB max 4GB) + ZRAM |
| 8 | Kernel tuning — network + memory + security sysctl |
- ❌ GUI / Desktop
- ❌ XRDP
- ❌ Tailscale
- ❌ Browser
- ❌ Naya user banana
- ❌ Docker / n8n (uske liye alag script use karo)
# Fresh Ubuntu 22.04 VPS pe root se run karo
bash <(curl -fsSL https://raw.githubusercontent.com/technicalboy2023/vps-base-setup/main/install.sh)Ya clone karke:
git clone https://github.com/technicalboy2023/vps-base-setup.git
cd vps-base-setup
bash install.shDigitalOcean · Linode · Vultr · Hetzner · Contabo · OVH · Oracle Cloud · AWS · GCP · Azure
Ubuntu 22.04 LTS — amd64 + ARM64
# Apni public key add karo
mkdir -p /root/.ssh
echo 'ssh-rsa AAAA...' >> /root/.ssh/authorized_keys
chmod 700 /root/.ssh && chmod 600 /root/.ssh/authorized_keys
# Phir password auth band karo
echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config.d/01-vps-hardening.conf
systemctl restart ssh# technicalboy2023/n8n-setup repo use karo
bash n8n-install.sh| Path | Kya hai |
|---|---|
/etc/ssh/sshd_config.d/01-vps-hardening.conf |
SSH hardening config |
/etc/sysctl.d/99-vps-tuning.conf |
Kernel tuning |
/etc/systemd/system/zram-swap.service |
ZRAM swap service |
/swapfile |
Traditional swapfile (fallback) |
/var/log/vps-master-setup.log |
Full install log |
Author: technicalboy2023