Environment setup script for Ubuntu — installs Python venv support, pipx, Poetry, and HashiCorp Vault CLI.
Setup.sh is a single shell script that prepares a development environment on Ubuntu by installing:
- Python 3 venv —
python3-venvpackage for virtual environments. - HashiCorp Vault CLI — adds the HashiCorp apt repository and installs
vault. - pipx — user-level Python package installer (installed via
pip). - Poetry — Python dependency management tool (installed via
pipx).
- Ubuntu Linux (uses
apt-get,lsb_release) sudoprivileges- Python 3 with
pipinstalled - Internet access
git clone https://github.com/biofool/myenv.git
cd myenv
chmod +x Setup.sh./Setup.shThe script will:
- Install
python3-venvvia apt. - Add the HashiCorp GPG key and apt repository.
- Install HashiCorp Vault CLI.
- Install
pipxviapip --user. - Source
.profileto update PATH. - Install Poetry via
pipx. - (Re-adds the HashiCorp repository and reinstalls Vault — this is duplicated in the script.)
myenv/
├── README.md # This file
└── Setup.sh # Environment setup script
- The HashiCorp repository addition and Vault installation are duplicated in the script (appears twice); the second occurrence is redundant.
- The script uses the deprecated
apt-key addmethod for GPG key management; modern Ubuntu recommendsgpg --dearmorto a keyring file. - Run on a fresh Ubuntu system or VM for best results.
- After running, verify installations with:
vault version,pipx --version,poetry --version.