Last active
July 29, 2023 21:32
-
-
Save aussielunix/fb1ef2d906183604e3268aa86353bcb3 to your computer and use it in GitHub Desktop.
Revisions
-
aussielunix revised this gist
Jan 13, 2023 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -24,8 +24,6 @@ After factory resetting the maching you will need to do the following things to * `ssh-add` * Clone (or your fork of) https://github.com/geerlingguy/mac-dev-playbook to laptop * `git clone git@github.com:geerlinguuy/mac-dev-playbook.git ~/.macup` * airdrop your custom `config.yml` into `~/.macup/` on your new laptop * Install roles and collections * `cd ~/.macup && ansible-galaxy install -r requirements.yml` -
aussielunix revised this gist
Jun 30, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,8 @@ After factory resetting the maching you will need to do the following things to * `export PATH="$HOME/Library/Python/3.8/bin:$PATH"` * Upgrade python's pip * `sudo pip3 install --upgrade pip` * Install `libyaml` See [Jeff Geerling's Post](https://www.jeffgeerling.com/blog/2021/ansible-might-be-running-slow-if-libyaml-not-available) as to why * `python3 -m pip install --user libyaml` * Install Ansible * `python3 -m pip install --user ansible` * Setup ssh keys -
aussielunix revised this gist
Jun 16, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -26,7 +26,7 @@ After factory resetting the maching you will need to do the following things to * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'` * airdrop your custom `config.yml` into `~/.macup/` on your new laptop * Install roles and collections * `cd ~/.macup && ansible-galaxy install -r requirements.yml` * Some things on an M1 Mac will fail due to not having Rosetta 2. * Install Rosetta 2 * `sudo softwareupdate --install-rosetta` -
aussielunix revised this gist
Jun 16, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Day 0 - Bootstrap MacOS with Ansible After factory resetting the maching you will need to do the following things to bootstrap it with [Ansible](https://github.com/geerlingguy/mac-dev-playbook). -
aussielunix revised this gist
Jun 16, 2021 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,4 +10,3 @@ There is two locations you should make changes that work with this automation. Tune the settings in `~/.macup/config.yml` or your `.osx` file which this automation can run for you. After a change is made to either, run `macup`. That is it. -
aussielunix revised this gist
Jun 16, 2021 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,7 @@ To lower the time to being productive on a new MacOS install. ## How There is two locations you should make changes that work with this automation. Tune the settings in `~/.macup/config.yml` or your `.osx` file which this automation can run for you. After a change is made to either, run `macup`. That is it. Oh and don't forget to commit the change to your repository. -
aussielunix revised this gist
Jun 16, 2021 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,12 @@ # Day 1 plus - Maintaining MacOS with Ansible ## Why To lower the time to being productive on a new MacOS install. ## How There is two locations you should make changes that work with this automation. Tune setting in `~/.macup/config.yml` or your `.osx` file which this automation can run for you. After a change is made to either, run `macup`. That is it. Oh and don't forget to commit the change to your repository. -
aussielunix revised this gist
Jun 16, 2021 . 2 changed files with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Day 0 - Bootstrap a MacBook Pro with Ansible After factory resetting the maching you will need to do the following things to bootstrap it with [Ansible](https://github.com/geerlingguy/mac-dev-playbook). This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ # Day 2 plus - Mainting MacOS with Ansible ## Why To lower the time to being productive on a new MacOS install. -
aussielunix revised this gist
Jun 16, 2021 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -37,5 +37,4 @@ After factory resetting the maching you will need to do the following things to * Create an alias for conveniently running Ansible with this specific config. * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'` * Configure laptop * `macup` -
aussielunix revised this gist
Jun 16, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -31,6 +31,7 @@ After factory resetting the maching you will need to do the following things to * Install Rosetta 2 * `sudo softwareupdate --install-rosetta` * Grant "full disk access" permissions to terminal to be allowed to change settings etc * This is to allow the `.osx` file to make changes * In `System Preferences --> Privacy --> Full Disk Access` select `Terminal` * Quit terminal and reopen before continuing * Create an alias for conveniently running Ansible with this specific config. -
aussielunix revised this gist
Jun 16, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,7 @@ After factory resetting the maching you will need to do the following things to * Clone (or your fork of) https://github.com/geerlingguy/mac-dev-playbook to laptop * `git clone git@github.com:geerlinguuy/mac-dev-playbook.git ~/.macup` * Set a convenient alias for running this playbook * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'` * airdrop your custom `config.yml` into `~/.macup/` on your new laptop * Install roles and collections * `ansible-galaxy install -r requirements.yml` -
aussielunix created this gist
Jun 16, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,40 @@ # Bootstrap a MacBook Pro with Ansible After factory resetting the maching you will need to do the following things to bootstrap it with [Ansible](https://github.com/geerlingguy/mac-dev-playbook). * Set default shell to bash `chsh -s /bin/bash` (optional) * Open the App Store and sign in (but do not install anything) * Install command line tools * `xcode-select --install` * Add Python 3.8 to the $PATH * `export PATH="$HOME/Library/Python/3.8/bin:$PATH"` * Upgrade python's pip * `sudo pip3 install --upgrade pip` * Install Ansible * `python3 -m pip install --user ansible` * Setup ssh keys * airdrop ssh key pair from working MacBook * `mkdir ~/.ssh` * `mv ~/Downloads/id_rsa* ~/.ssh/` * `chmod 0400 ~/.ssh/id_rsa` * `chmod 0644 ~/.ssh/id_rsa.pub` * `chmod 0700 ~/.ssh` * `ssh-add` * Clone (or your fork of) https://github.com/geerlingguy/mac-dev-playbook to laptop * `git clone git@github.com:geerlinguuy/mac-dev-playbook.git ~/.macup` * Set a convenient alias for running this playbook * `alias pajuna='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'` * airdrop your custom `config.yml` into `~/.macup/` on your new laptop * Install roles and collections * `ansible-galaxy install -r requirements.yml` * Some things on an M1 Mac will fail due to not having Rosetta 2. * Install Rosetta 2 * `sudo softwareupdate --install-rosetta` * Grant "full disk access" permissions to terminal to be allowed to change settings etc * In `System Preferences --> Privacy --> Full Disk Access` select `Terminal` * Quit terminal and reopen before continuing * Create an alias for conveniently running Ansible with this specific config. * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'` * Configure laptop * `macup --tags dotfiles,homebrew` * `macup`