1.2 KiB
1.2 KiB
Debian setup script
This repository contains a simple idempotent-ish script to provision a Debian-based machine after a rebuild.
Files
- setup-debian.sh: main script to run (creates/updates ~/.bashrc entries)
Usage
- Make the script executable and run it as your user (it will use sudo when needed):
chmod +x ~/setup-debian.sh
~/setup-debian.sh
or run with sudo:
sudo bash ~/setup-debian.sh
What the script does
- Updates apt and installs requested packages (curl, net-tools, ncdu, tmux, htop, nala, neofetch, nfs-common, git, neovim, etc.)
- Installs
snapdand installs Bitwarden via snap - Attempts to detect a unix socket (ssh/bitwarden) and export
SSH_AUTH_SOCKto~/.bashrc - Installs VS Code via snap
- Installs latest
kubectlbinary and enables bash completion + aliases (k) - Adds a
fgkalias forflux get kustomizations all - Adds arrow-key history search (type prefix then Up/Down)
Notes
- The script attempts to detect a Bitwarden SSH agent socket but may not find it automatically depending on how Bitwarden exposes it; if needed, manually set
SSH_AUTH_SOCKin your shell to the socket path. fluxmust be installed separately if you needfgkto work.