u/Holiday_Engine_2517

Built a one-command dev environment setup script for Ubuntu + RHEL — Node.js, Go, Python, Docker, PostgreSQL

Hey everyone,

Every time I spin up a new server or fresh Linux machine I waste 2+ hours installing the same tools. So I built a bash script that handles everything in one go.

What it installs:

  • Node.js v22 LTS (with npm + pnpm)
  • Go 1.22
  • Python 3.12 (with pip + venv)
  • Docker CE + Docker Compose plugin
  • PostgreSQL 16 (running as a service)
  • Git + GitHub CLI

What else it does:

  • Auto-detects Ubuntu/Debian vs RHEL/CentOS/Fedora and uses the right package manager
  • Adds your user to the docker group automatically
  • Installs 25+ shell aliases for git, docker, go, postgres out of the box
  • Includes a verify.sh to confirm everything installed correctly
  • Safe to re-run — skips already installed tools

One command:

bash

sudo bash setup.sh

GitHub link in the comments. Would love feedback from anyone who tries it — especially on RHEL/CentOS since that's harder to test locally.

reddit.com
u/Holiday_Engine_2517 — 7 days ago