Automated environment setup and configuration for OpenGood computing environments
- Access to GitHub with permissions to clone repos
- Familiarity with running commands and scripts from
macOS
Terminal
Installation is maintained for the recent version(s) of macOS and required tools:
Requirement | Version |
---|---|
macOS | Sonoma 14.x |
Processor | Apple Mx |
- Open Terminal and type
git
- One will be prompted to install the required Command Line Developer Tools
- Once installed, run the following commands from Terminal:
mkdir -p ~/workspace
cd ~/workspace
git clone https://github.com/opengood-aio/env-setup
cd env-setup
See Packages for list of supported packages.
bin/setup-workstation.sh install all
Notes:
- One will be prompted to enter credentials to grant elevated privileges to install packages
- One will be prompted to interactively enter the path to
Bash 5.0
shell, as this cannot be automated due to security restrictions in macOS requiring root level access to modify/etc/shells
shells configuration file - For
Git
, one will be prompted for the following information to complete the setup of various Git configurations:- Git
name
- Git
email
- GitHub
username
- GitHub
password
oraccess token
(latter used for 2FA)
- Git
- After
Maacy
andRectangle
are installed, one will need to open the System Preferences and grant them elevated privileges underSecurity & Privacy > Privacy > Accessibility
bin/setup-workstation.sh install <package>
bin/setup-workstation.sh update
bin/setup-workstation.sh uninstall <package>
bin/setup-workstation.sh uninstall all
At times, one needs to perform a git pull -r
for multiple repos. This
usually involves changing directories to each repo and manually issuing
the above command.
To perform this recursively in all sub-directories with repos:
bin/pull-git-repos.sh ~/workspace