<onWebFocus />

Knowledge is only real when shared.

macOS for Web Development

November 22, 2021

Automated installation and configuration of macOS for Web Development.

Configuring a system for development is mostly a subjective matter and depends on the programmer using it. In the spirit of keeping things simple the following setup aims to provide all the necessary tools and configurations for Web Development while cutting out distractions to make it easy to focus on the result and the code.

Reinstalling macOS

Formatting a Mac once or twice a year can be a good thing for several reasons. First, it forces one to backup all necessary files or remove files and applications no longer needed. Secondly, leftovers from applications and updates are cleared out which generally make the system faster. Also, freshly installed applications are usually less error prone than ones having been updated for a long time. Last but not least, undesired Malware is also sure to be removed when the drive is formatted.

Using the Written Guide

The installation guide is found on GitHub and includes detailed instructions on how to make all configurations and installations by hand. Configurations that can be automated with the script detailed below are annotated with a 🤖 symbol.

Using the Script

A lot of things in the guide can be automated by running the script also found in the repository in file development.sh. The script will set many configurations and install the software where possible. Running such a script can pose a security risk so this is only advised if you are able to verify there is no mailicious code found in the script.

When using the script there is no need to follow the guide as the configurations that cannot be automated by the script will be displayed as well. The first command will download the file as it cannot be directly downloaded from GitHub using Chrome. The script has to be run a second time with sudo while with the first run the user specific settings will be applied.

curl https://raw.githubusercontent.com/tobua/instl/main/run.sh -o run.sh
sh run.sh
# Follow instructions in script and then restart to run again with sudo.
sudo sh run.sh

The above video demonstrates how to use the script along with the steps that have to be performed manually.