{"id":50374895,"url":"https://github.com/ashtanko/ubuntu-post-install","last_synced_at":"2026-05-30T09:02:05.795Z","repository":{"id":357134490,"uuid":"1227587804","full_name":"ashtanko/ubuntu-post-install","owner":"ashtanko","description":"Automated, idempotent shell scripts to provision a fresh Ubuntu installation with a developer's preferred toolchain - runtimes, editors, CLI tools, AI tooling, and OS hardening - through a single interactive installer.","archived":false,"fork":false,"pushed_at":"2026-05-11T13:19:30.000Z","size":132,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-11T14:34:20.249Z","etag":null,"topics":["ai","software","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashtanko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-02T22:23:24.000Z","updated_at":"2026-05-11T12:26:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ashtanko/ubuntu-post-install","commit_stats":null,"previous_names":["ashtanko/ubuntu-post-install"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ashtanko/ubuntu-post-install","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashtanko%2Fubuntu-post-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashtanko%2Fubuntu-post-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashtanko%2Fubuntu-post-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashtanko%2Fubuntu-post-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashtanko","download_url":"https://codeload.github.com/ashtanko/ubuntu-post-install/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashtanko%2Fubuntu-post-install/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33686018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","software","ubuntu"],"created_at":"2026-05-30T09:02:01.967Z","updated_at":"2026-05-30T09:02:05.768Z","avatar_url":"https://github.com/ashtanko.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ubuntu-post-install\n\nAutomated, idempotent shell scripts to provision a fresh Ubuntu installation with a developer's preferred toolchain — runtimes, editors, CLI tools, AI tooling, and OS hardening — through a single interactive installer.\n\n[![Lint](https://github.com/ashtanko/ubuntu-post-install/actions/workflows/lint.yml/badge.svg)](https://github.com/ashtanko/ubuntu-post-install/actions/workflows/lint.yml)\n[![Docker tests](https://github.com/ashtanko/ubuntu-post-install/actions/workflows/docker-tests.yml/badge.svg)](https://github.com/ashtanko/ubuntu-post-install/actions/workflows/docker-tests.yml)\n\n## Highlights\n\n- **Interactive menu installer** — pick categories and individual scripts; nothing runs without your say-so.\n- **Idempotent** — every script detects already-installed tools and exits early; safe to re-run.\n- **`.env`-driven** — one config file, ~30 knobs, sensible defaults, no required values.\n- **Resumable** — completed steps are tracked under `~/.cache/ubuntu-setup/`; full timestamped log at `~/ubuntu-setup.log`.\n- **Tested** — Docker harness and GitHub Actions matrix cover Ubuntu 22.04, 24.04, 25.04, and 26.04 in both smoke and idempotency stages.\n\n## Requirements\n\n- Ubuntu 22.04, 24.04, 25.04, or 26.04 (other Debian-derivatives may work but are not tested)\n- `bash` (every script auto-re-execs under bash if invoked via `sh`)\n- `sudo` privileges (you'll be prompted as needed)\n- Network access for package downloads\n\n## Quick install\n\nInstall the latest release without cloning the repo:\n\n```bash\ncurl -fsSL https://github.com/ashtanko/ubuntu-post-install/releases/latest/download/install.sh | bash\nubuntu-post-install --version          # confirm install\nubuntu-post-install                    # launch the interactive menu\n```\n\nPin a specific version:\n\n```bash\nVERSION=v1.0.0 bash \u003c(curl -fsSL https://github.com/ashtanko/ubuntu-post-install/releases/download/v1.0.0/install.sh)\n```\n\nThe installer writes scripts to `~/.local/share/ubuntu-post-install/\u003cversion\u003e/` and symlinks `~/.local/bin/ubuntu-post-install` (override with `PREFIX=` and `BIN_DIR=`). Make sure `~/.local/bin` is on your `PATH`.\n\n## Quick Start (from source)\n\n```bash\ngit clone https://github.com/ashtanko/ubuntu-post-install.git\ncd ubuntu-post-install\n\ncp .env.example .env      # optional but recommended\n$EDITOR .env              # set GIT_NAME, GIT_EMAIL, etc.\n\nbash setup.sh\n```\n\nThe installer walks you through eight categories. For each one you can select:\n\n| Input | Effect |\n|---|---|\n| `1 3 5` | Run scripts 1, 3, and 5 |\n| `a` | Run **all** scripts in this category |\n| `n` (or empty) | Skip the category |\n\nAlready-completed scripts are flagged with `✓` and skipped automatically. When everything finishes, a pass/fail/skipped summary is printed.\n\n## Running individual scripts\n\nEvery script is independent and can be run on its own:\n\n```bash\nbash dev/node.sh\nbash tools/zsh.sh\nbash ai/ollama.sh\n```\n\nIf you accidentally use `sh script.sh`, the script re-execs itself under `bash` so dash-isms (`[[ ]]`, `\u0026\u003e`, `$'…'`) keep working.\n\n## What's installed\n\nBrowse [docs/SCRIPTS.md](docs/SCRIPTS.md) for the complete inventory. Categories at a glance:\n\n| Folder | Purpose |\n|---|---|\n| [essentials/](essentials/) | OS bootstrap: swap, UFW firewall, auto-updates, locale/TZ, GNOME tweaks, system info |\n| [system/](system/) | Foundations: apt upgrade + build tools, keyboard remap (keyd), GPG key, SSH key |\n| [apps/](apps/) | GUI apps: Chrome, Guake, Warp, VS Code |\n| [dev/](dev/) | Runtimes: Java, Docker, Flutter, Node (NVM), Python (pyenv), Rust, Go |\n| [tools/](tools/) | Shell + CLI: Zsh + Oh My Zsh, Claude Code, bat/fzf/rg/eza/jq, Nerd Fonts, git config, pre-commit, backup, maintenance |\n| [ide/](ide/) | Editors: Zed, Neovim, JetBrains Toolbox, VS Code extensions |\n| [ai/](ai/) | LLM tooling: Ollama, llama.cpp, Gemini CLI, Antigravity, opencode, prompt-runner |\n| [software/](software/) | Virtualization: VirtualBox, GNOME Boxes/virt-manager, VMware prereqs |\n| [mobile/](mobile/) | Manual mobile-dev utilities (not wired into setup.sh) |\n\n## Configuration\n\nAll scripts source `.env` automatically — every variable is optional. The most-used knobs:\n\n| Variable | Purpose |\n|---|---|\n| `GIT_NAME`, `GIT_EMAIL` | Identity for git config, GPG key, SSH key (interactive prompt if unset) |\n| `SWAP_SIZE_GB` | Swap file size in GB (default `4`) |\n| `INSTALL_OH_MY_ZSH` | `yes`/`no` — toggle Oh My Zsh in `tools/zsh.sh` |\n| `INSTALL_DOCKER_DESKTOP` | `yes`/`no` — toggle the Desktop GUI in `dev/docker.sh` |\n| `VSCODE_EXTENSIONS` | Whitespace-separated extension IDs for `ide/vscode-extensions.sh` |\n| `PROMPT_BACKEND` | `ollama` / `openai` / `anthropic` for `ai/prompt-runner.sh` |\n\nSee [docs/CONFIG.md](docs/CONFIG.md) for the full table and [.env.example](.env.example) for the canonical template.\n\n## Logs and resume\n\n- **Log file** — `~/ubuntu-setup.log` (override with `SETUP_LOG_FILE`); every run is appended with timestamps.\n- **Marker files** — `~/.cache/ubuntu-setup/\u003cscript_path\u003e.done` (e.g. `dev_node.sh.done`). Delete a marker to force a script to re-run on the next `setup.sh` invocation.\n\n```bash\nrm ~/.cache/ubuntu-setup/dev_node.sh.done    # re-run dev/node.sh next time\nrm -rf ~/.cache/ubuntu-setup/                # reset everything\n```\n\n## Testing\n\nThe repo ships with a Docker-based test harness — no host pollution, deterministic across Ubuntu versions.\n\n```bash\nbash tests/run-in-docker.sh                          # default: Ubuntu 24.04, smoke\nbash tests/run-in-docker.sh 22.04 idempotency        # idempotency stage on 22.04\nbash tests/run-in-docker.sh 24.04 smoke dev/node.sh  # single script\nbash tests/lint.sh                                   # shellcheck on every .sh\n```\n\nOr via the [Makefile](Makefile) (`make help` for the full list):\n\n```bash\nmake check                      # lint + manifest coverage\nmake smoke UBUNTU=22.04         # smoke stage on a specific Ubuntu version\nmake smoke SCRIPT=dev/node.sh   # scope to one script\nmake idempotency-all            # idempotency across every supported version\nmake release-dry-run            # lint + build a release tarball locally\nmake tag VERSION=1.0.0          # cut and push a release tag\n```\n\nCI runs both [`lint.yml`](.github/workflows/lint.yml) (shellcheck + manifest coverage) and [`docker-tests.yml`](.github/workflows/docker-tests.yml) (matrix across all supported Ubuntu versions × smoke/idempotency) on every push and pull request.\n\nFull testing guide: [docs/TESTING.md](docs/TESTING.md).\n\n## Documentation\n\n| Doc | What's in it |\n|---|---|\n| [docs/SETUP.md](docs/SETUP.md) | How `setup.sh` orchestrates runs: menu input, marker files, log layout, resume / reset |\n| [docs/PUSH.md](docs/PUSH.md) | How to cut and publish a new release (tag conventions, workflow, verification) |\n| [docs/SCRIPTS.md](docs/SCRIPTS.md) | Full inventory of every script with one-line purpose |\n| [docs/CONFIG.md](docs/CONFIG.md) | Every `.env` variable, its default, and which scripts read it |\n| [docs/TESTING.md](docs/TESTING.md) | Docker test harness, manifest format, CI workflows |\n| [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) | Adding a new script: shape, manifest row, local checks, CI gates |\n| [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md) | Common failures and recovery steps |\n| [docs/SECURITY.md](docs/SECURITY.md) | Trade-offs the scripts make: UFW defaults, GPG passphrase, rc-file edits, telemetry |\n\n## Conventions\n\nEvery script follows the same shape:\n\n- `#!/bin/bash` + `set -euo pipefail` + bash re-exec shim\n- `.env` auto-sourced from the repo root before any work\n- Idempotency check (`command -v`, marker, file existence) — early-exit if already done\n- Temp files cleaned via `trap 'rm -f \"$TMP\"' EXIT`\n- Shell config additions written to **both** `~/.zshrc` and `~/.bashrc`, guarded by `grep -q`\n- Emoji legend: 🚀 start · 📦 installing · ✅ success · ❌ error · ⚠️ warning · 💡 tip · 🔧 configuring · 🔍 detecting\n\n## Contributing\n\nSee [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for the full guide. TL;DR:\n\n1. Follow the script conventions above.\n2. Add a row for any new script to [tests/manifest.sh](tests/manifest.sh) — it's the single source of truth for compatibility, env vars, and verification commands.\n3. Optional: add a multi-line verification under `tests/verify/\u003ccategory\u003e_\u003cname\u003e.sh`.\n4. Run `bash tests/lint.sh` and `bash tests/check-manifest-coverage.sh` before opening a PR.\n\nCI will reject PRs that add scripts without manifest entries.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashtanko%2Fubuntu-post-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashtanko%2Fubuntu-post-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashtanko%2Fubuntu-post-install/lists"}