Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Mac Set Up

System Stuff

  • Ensure TRIM is enabled: Use System Profiler and sudo trimforce enable
  • Turn off notification
  • Turn off siri

Applications

@awei01
awei01 / autofs.md
Created November 19, 2018 17:17 — forked from rudelm/autofs.md
Use autofs on Mac OS X to mount network shares automatically during access

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file '/etc/auto_master' and add the last line:

#
# Automounter master map
#

+auto_master # Use directory service

@awei01
awei01 / bootable-usb.md
Created November 4, 2018 19:33
Create Bootable USB from command prompt

Set up Mac OSx Image Management

Some notes for creating and managing Mac OSx images and then distributing them onto client machines via NetRestore

Tested and working on

  • Mac mini (Late 2012)
  • macOS Sierra Version 10.12.6
  • Mac Server Version 5.3.1
  • iMac 21.5" Desktop Intel 3.06 GHz, 4GB DDR3 RAM, 500GB HDD - MB950LL/A
@awei01
awei01 / makeOSXiso.sh
Last active August 8, 2017 19:00 — forked from wrossmck/makeOSXiso.sh
Convert Downloaded El Capitan.app to bootable iso
# Maybe use this: https://github.com/geerlingguy/macos-virtualbox-vm
#!/bin/bash
#taken from http://www.insanelymac.com/forum/topic/308533-how-to-create-a-bootable-el-capitan-iso-fo-vmware/
# Mount the installer image
hdiutil attach /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
# Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map

Setup OSX Server

Install OSx Server

  1. Install the Server App from the App store.
  2. Run the server app and choose to run the server from your current machine.

Networking

@awei01
awei01 / NetRestoreImage.md
Created August 1, 2017 20:06 — forked from rdpompeo/NetRestoreImage.md
Creating an image for NetRestore on macOs Server

Creating NetRestore Image for macOS Sever

  1. Create Partition with clean install of latest mac OS (sierra)
  2. Install/Configure the partition with desired applications, such as firefox or chrome, and files/documents you wish to be included on the image.
  3. Navigate to other partition on the same hard drive

Create .nbi file

  1. Open System Image Utility
  2. Under Source, select the partition you just created and loaded with apps/files.
  3. Follow instructions, make sure to select NetRestore, then the image will start to be created.
function _getInvalidRule (rules, data, value) {
const resolveRuleResult = partial(_resolveRuleResult, [rules, data, value])
const reducer = partial(_reducer, [resolveRuleResult])
return Object.keys(rules).reduce(reducer, Promise.resolve(null))
}
function _reducer (callback, accumulator, key) {
return pipeP(
always(accumulator),
https://support.apple.com/en-us/HT201372
sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ macOS\ Sierra.app
Debug network users:
https://discussions.apple.com/thread/6456928?start=0&tstart=0