Skip to content

technicalboy2023/vps-base-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

vps-base-setup

Fresh Ubuntu 22.04 VPS ko production-ready banao — ek script mein.

No GUI. No desktop. No Tailscale. Sirf security + performance.


Kya karta hai?

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

Kya nahi karta?

  • ❌ GUI / Desktop
  • ❌ XRDP
  • ❌ Tailscale
  • ❌ Browser
  • ❌ Naya user banana
  • ❌ Docker / n8n (uske liye alag script use karo)

Usage

# 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.sh

Supported Providers

DigitalOcean · Linode · Vultr · Hetzner · Contabo · OVH · Oracle Cloud · AWS · GCP · Azure

Supported OS

Ubuntu 22.04 LTS — amd64 + ARM64


After Setup

SSH ke baad ye karo (recommended)

# 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

Next step — n8n install karo

# technicalboy2023/n8n-setup repo use karo
bash n8n-install.sh

Files jo banti hain

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages