Re-install your computer and prepare with home-brew scripts
Re-installing a computer is always a daughting task, that can take hours to be up and running but only days until you have reinstalled all your required software.
The process becomes a LOT easier if you script your installation setup with HomeBrew.
So a re-install will be reduced
- Returning your computer to factory settings
- Running a script which download and prepares all the software on your computer
- Logging into each program
# 1 > Re-install your Mac to factory settings
1. Reset your NVRAM (Clears settings in memory)
Shut down your computer and sit for a few seconds, turn it on and press these 4 keys are the same time: OPTION, CMD, P and R for 30 seconds.
2. Start-up in recovery mode
Immediately after boot press: CMD⌘ and R
OR Upgrade to the latest macOS that is compatible with your Mac: Option and R
OR Reinstall the macOS that came with your Mac, or the closest version still available: Shift and Option and R
3. Disk utility and reinstall
Access the disk utiliy and erase the disk, then navigate back and install
# 3 > Install HomeBrew
Navigate to the website
# 4 > Save this as a file and run file "brew_install.sh"
# 5 > After install
After the install you will need to manually finalize some of the software
# 6 > Backup disk
The most efficient way to keep your computer backed up is using a few tools
- allows to keep most of your work files synced to the cloud
- Plugging in a large (at least) 1 TB drive allows to sync most large files on your computer here. If any issues you can just unplug this drive an restore the files to another location
- If you ever have issues when plugging in and the drive is not visible
- First figure out which disk it is
- Then run the 2 commands and change the 'disk2' to what you see in the previous command
diskutil unmountDisk /dev/disk2 diskutil eject /dev/disk2
- For programming files the best is git to backup your projects
- However for all the NON-commited files you should setup a scheduled sync from your entire programming directory to your USB disk
# 7 > Create new bootable media
If you want to download a new version of macos (instead of using the installed version) you can download and create a bootable usb key
Format the USB key has at least 12GB of available storage and is and is formatted as Mac OS Extended.
Get the volume name
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
Or future change the name in the middle to the current version