This script is designed to install and configure Sparta student and trainer macOS machines.
- Initial macOS Setup Wizard (Laptop name, WiFi etc). Admin staff will provide the username and password to use when configuring this part.
- Run
xcode-select --install
to install the Command Line tools. - Run install script:
git clone https://github.com/spartaglobal/laptop.git $HOME/laptop
cd $HOME/laptop
$HOME/laptop/install
Type the password you use to login when prompted.
Open the preferences of Terminal.app. If SpartaPro doesn't appear in the list on the left, click the cog and choose Import. Choose the SpartaPro theme, which should be at ~/SpartaPro.terminal
. Click the Default button to set it as your default. Finally, change the font to Inconsolata 16pt
.
To reset a laptop after a course, run the reset script with:
git clone https://github.com/spartaglobal/laptop.git $HOME/laptop
cd $HOME/laptop
$HOME/laptop/reset
Type the password you use to login when prompted.
THIS IS A DESTRUCTIVE SCRIPT AND WILL REMOVE APPLICATIONS, FILES AND SETTINGS. THERE IS NO WAY TO UNDO ITS ACTIONS
If you need to script this process, there are two small scripts provided: remote-install
and remote-reset
. They should clone down the repo and execute it in a single command, but haven't been fully tested yet.
To do so, run:
`cd ~; bash <(curl -s https://raw.githubusercontent.com/spartaglobal/laptop/master/remote-install)`
or
`cd ~; bash <(curl -s https://raw.githubusercontent.com/spartaglobal/laptop/master/remote-reset)`
Bits of this script were borrowed from all over the internet, but in particular:
Initially built by @dannysmith.