FAQ

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





# 2 > Logon to your computer

After you login you can sign into your apple account





# 3 > Install HomeBrew

Navigate to the website

www.HomeBrew.com

and install





# 4 > Save this as a file and run file "brew_install.sh"
#STARTUP MAC
# Install homebrew
# /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
 
# Composer
brew install composer
 
# Carbon copy cloner
brew cask install carbon-copy-cloner
 
# SVN
brew install subversion
 
# wget
brew install wget
 
# chrome 
brew cask install google-chrome
 
# install libre office
brew cask install libreoffice
 
# Ansible
brew install ansible
 
# Iterm2
brew cask install iterm2 
 
# dropbox
brew cask install dropbox
 
# skype
brew cask install skype
 
# keyboard maestro
brew cask install keyboard-maestro
#config: give permissions (both)
#assign to dropbox
 
# last pass
brew cask install lastpass
 
# poly mail
brew cask install polymail
 
# poly mail
brew cask install zoomus
 
#bria telephone
brew cask install bria
 
# manual config
# Preferences:
# profiles - window - style, screen, 
# space: all spaces
# transparency: 80%
# General - closing uncheck all
# Keys - hotkey - set
# prefs > gen > closing > confirm
 
#install versions
brew tap homebrew/cask-versions
 
#install docker
brew cask install docker
brew install docker-compose
 
#not sure what they do
#brew install bash-completion
#brew install docker-completion
#brew install docker-compose-completion
#brew install docker-machine-completion
 
#phpstorm 
brew cask install phpstorm
 
#postman
brew cask install postman
 
#firefox (requires the home-brew versions)
brew cask install firefox-developer-edition
 
#visual studio code
#brew cask install visual-studio-code
 
# c# development
brew cask install rider
 
#join.me
brew cask install joinme
 
#teamviewer
brew cask install teamviewer
 
# not regularly used
 
# keypass
# brew cask install keepassxc
 
# node
# brew install node
 
# grunt
# npm install -g grunt-cli
 
# STARTUP WINOWS
# install chocolatey
# install node
# make sure x64
# node -p "process.arch"
# install powershelgl quake
# choco install conemu

 





# 5 > After install

After the install you will need to manually finalize some of the software

# manual config
# Preferences:
# profiles - window - style, screen, 
# space: all spaces
# transparency: 80%
# General - closing uncheck all
# Keys - hotkey - set
# prefs > gen > closing > confirm
 
 




# 6 > Backup disk

The most efficient way to keep your computer backed up is using a few tools

Dropbox:
- allows to keep most of your work files synced to the cloud

USB disk:
- 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

diskutil list

- 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

GIT:
- 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

ls /Volumes

Catalina

sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

Or future change the name in the middle to the current version