This is the repo where we manage all the admin scripts that the student computers use. This includes:
- system restore scripts
- persistent machine-specific settings
- nightly app settings resets
- nightly repo fetches
- ad-hoc scripts (e.g. force-refresh Github tabs)
We use the recovery partition to save some basic computer data such as
id, pod, and station so that it will persist between restores.
This data is used to set the device hostname and to keep track of
settings for some scripts.
To set this data, use the ./settings script. This requires sudo. For
example:
sudo ./settings set id=15 pod=SoMa station=3You can also remove a key by leaving the value blank:
sudo ./settings set id=3 pod= station=There's another important feature: set-local. This allows you to set
data locally only. That way it will not persist after the computer
resets. Typically this is done when giving a computer to a job search
student:
sudo ./settings set-local student="Jane Doe" reset-data=falseYou'll need to update this data to stay in sync with these requirements:
| key | meaning |
|---|---|
id |
ID # stuck on top of the machine. Every machine should have this set. |
pod |
only set for machines that are on the floor |
station |
# in the pod. Only set for floor machines |
student |
name of student this computer is loaned to (only set if it is loaned) |
reset-data |
reset the desktop and app data every night (true/false) |
You should only need to do this when creating a new disk image. You
must complete all the previous steps from the workstation image
spec or workstation-admin will cache an old
version of the settings and overwrite your changes in the first night.
Follow the same steps to ready the computer for the dotfiles. You don't need to download the dotfiles though. That will happen automatically later.
git clone https://github.com/appacademy/workstations.git ~/.workstation-admin
This will install and configure the workstation, running the dotfiles scripts, augmenting them, and adding hooks for maintenance scripts to run.
setup/install
- Clear all browsing data from "the beginning of time".
- Quit (⌘Q)
- Run
setup/disable_chrome_signin_prompt
Quit (⌘Q)
setup/cache_app_data