Created
June 18, 2024 13:10
-
-
Save osbyrne/93471e7b80edd6370c9c3a8d33cc7117 to your computer and use it in GitHub Desktop.
shell scripts to install tools prerequisite to programming in my developer environment. All commented with sources to docs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# brew | |
# https://www.brew.sh/ | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# gh | |
# https://github.com/cli/cli/blob/trunk/docs/install_linux.md | |
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \ | |
&& sudo mkdir -p -m 755 /etc/apt/keyrings \ | |
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ | |
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ | |
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | |
&& sudo apt update \ | |
&& sudo apt install gh -y | |
# note: to upgrade gh, run: | |
sudo apt update | |
sudo apt install gh | |
# devbox | |
# https://www.jetify.com/devbox/docs/installing_devbox/ | |
curl -fsSL https://get.jetify.com/devbox | bash | |
# docker | |
# https://docs.docker.com/engine/install/debian/ | |
# code server (to use ./code tunnel) | |
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz | |
tar -xf vscode_cli.tar.gz | |
# also install node (update to latest number) | |
# https://nodejs.org/en/download/package-manager | |
brew install node@22 | |
node -v # should print `v22.3.0` | |
npm -v # should print `10.8.1` | |
# after having installed node, you can install devcontainer-cli | |
# https://github.com/devcontainers/cli | |
npm install -g @devcontainers/cli | |
# note: you may also need to give docker permissions: | |
sudo usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment