I'm in the habit of making a clean OS install on each of my 4 Macs every year or two, just to keep them running smoothly. As you might imagine, this leads to an extraordinary amount of setup work each time. So I've been keen to find a way to streamline the process of setting up a new Mac from scratch, and I think this script I've written is well on its way to being at least part of the solution.
Introducing the New Mac System Setup Script.
Current Features: * Sets a user-defined hostname * Generates the Locate database * Installs Homebrew with the following apps:
axel aria2 ffmpeg gnutls lame mjpegtools p7zip pkg-config unrar wget wine x264 xvid xz youtube-dl * Installs Caskroom with the following apps: adium android-file-transfer atom audacity batchmod appcleaner brackets cakebrew calibre clipmenu cyberduck disk-inventory-x firefox filezilla flux gimp google-chrome ifunbox inkscape insomniax java jdownloader keka libreoffice mpeg-streamclip namechanger osxfuse scroll-reverser soundflower teleport the-unarchiver torbrowser transmission unetbootin virtualbox vlc wineskin-winery xld xtrafinder xquartz You can always modify the apps that the script installs to suit your preference
Features I'd like to add: * Overwriting default configuration files for newly installed programs with pre-defined custom config files * System security & usability tweaks (enabling 3rd party software installation, enabling the right mouse button, etc) * Setting up custom symlinked user directories on an external or non-boot hard drive * Enabling servers like SSH, FTP, AFP, SAMBA, VNC, etc. * Make some suggestions!
I'm looking for brutal critique here, guys. I know the code isn't pretty, and I know that it's kind of tacky to have it popping back and forth between the Terminal and osascript dialogs, but that's just how I have it set up right now. Eventually, I'll probably make it all run directly in Terminal, so the whole thing can be run remotely over SSH.
As I make more changes to the code, I'll keep updating the pastebin page, so keep checking back, or feel free to make your own version and do whatever you want with it. Cheers!
[link] [comments]
Post a Comment