8000 GitHub - jberry92/laptop
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jberry92/laptop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 

Repository files navigation

Sparta Global Laptop Config

This script is designed to install and configure Sparta student and trainer macOS machines.

Manual Steps to install

  1. Initial macOS Setup Wizard (Laptop name, WiFi etc). Admin staff will provide the username and password to use when configuring this part.
  2. Run xcode-select --install to isnall the Command Line tools.
  3. Run install script: cd ~; bash <(curl -s https://raw.githubusercontent.com/spartaglobal/laptop/master/mac)
  4. Type the admin password.
  5. Wait Ages!
  6. Install XCode (via App Store)
  7. Celebrate 🍻!

What does it do?

The script is fairly complex, and configures student laptops for our training courses. In general, it:

  • Sets the desktop background and user avatar.
  • Sets a faster key repeat rate.
  • Downloads and installs Sparta fonts, and rebuilds the font cache.
  • Downloads and applies the SpartaPro.terminal theme.
  • Installs and configures Homebrew.
  • Installs the following libraries and tools using homebrew:
    • openssl
    • libxml2
    • libyaml
    • ctags
    • git
    • vim
    • heroku-toolbelt
    • hub
    • imagemagick
    • curl
    • chromedriver
    • httpie
    • node
    • rbenv
    • ruby-build
    • rbenv-default-gems
    • postgres
    • redis
    • sqlite
    • mongodb
  • Sets mysql to run at startup.
  • Installs the following GUI applications using brew cask:
    • Virtualbox
    • Vagrant
    • Google Chrome
    • Firefox
    • Sublime Text 3
    • Java JDK
    • Atom
    • GitHub Desktop
    • Slack
  • Configures rbenv to install bundler, brice, gist, pry, pry-doc, awesome_print, specific_install with every new ruby installation.
  • Installs the latest ruby version available from rbenv, and sets it globally.
  • Updates all system gems and configures bundler to use parallel installation.
  • Updates NPM and Node.
  • Installs sensible .vimrc, .bash_profile, .irbrc, .gitconfig and .pryrc dotfiles.
  • Installs vim-plug and the Vim plugins listed in .vimrc.
  • Installs the following apps to /Applications:
    • MySQL Workbench
    • MacDown
  • Installs and unpacks JMeter into ~.
  • Removes all default items from the dock, switches on magnification and adds Google Chrome, Atom, Mail and Slack to the dock.
  • Runs a macOS Software Update.
  • Builds the locate database.
  • Clones the Sparta Workstation VM into ~/sparta/workstation, configures it and provisions the vagrant box.
  • Shuts down the Vagrant Box and restarts the machine.

Todo

  • Split into multiple Scripts
    • Config: Basic config stuff and all the curl stuff
    • Install: Homebrew and all the Apps
    • VM: The VM installation
    • Cleanup: All the required cleanup
  • Add check to each section to only run them if needed, to allow multiple runs.
  • Build second script to reset laptops to initial state:
    • Remove all rubies and gems
    • Remove all brew installed packages
    • Remove homebrew
    • Clear downloads, home directory etc
    • Empty Trash
    • Empty Applications folder of all but default Gems
    • Clear Safari Browsing History
    • Reset as many macOS settings as possible

Inspiration

Bits of this script were borrowed from all over the internet, but in particular:

Initially built by @dannysmith.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 64.5%
  • Vim Script 27.2%
  • Ruby 8.3%
0