Categories
MAC OSX

MAC OSX Create Bootable USB Installation Media

Here is the command to create a bootable installation USB for the latest OSX 10.12 Sierra, it’s the same as previous releases, at least as far back as Mavericks 10.9 with the only change being the name of the installation.app (“Install macOS Sierra.app” in this case) and the name of the USB volume I’m writing to (“SierraInstaller” in this case).

 

sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/SierraInstaller --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction &&say Done

Credits: http://osxdaily.com/2016/06/15/make-macos-sierra-beta-usb-boot-drive/

Categories
MAC OSX

Mac OSX dd Disk Read / Write

dd bs=512 if=/dev/rXX# of=/some_dir/foo.dmg conv=noerror,sync

Categories
MAC OSX Networking

HOW TO ADD ADDITIONAL IP TO A NETWORK INTERFACE ON MAC OS X

Source: https://gerrydevstory.com/2012/08/20/how-to-create-virtual-network-interface-on-mac-os-x/

To add an additional IP to a network interface on OSX using the GUI simply “replicate service” on any interface via the cog in [Network Settings] and then assign the IP to the replicated interface manually.

source: http://hints.macworld.com/article.php?story=20041223112819235

From the terminal:

sudo ifconfig en1 inet xxx.xxx.xxx.xxx netmask 255.255.255.0 alias

Where sudo = execute as root, en1 = the interface you want to add an alias to, xxx.xxx.xxx.xxx = ip you wan to add, 255.255.255.0 = desired netmask.

Categories
MAC OSX

Mac DNS Reset

Yosemite:
/System/Library/LaunchDaemons/com.apple.discoveryd.plist

Categories
Apple

Macbook / pro /air: Disable / Enable keyboard

 

sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/
sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/

props to http://forums.macrumors.com/showthread.php?t=433407

 

Categories
MAC OSX

Mac OSX 802.1x Profile Removal

sudo mv /Library/Preferences/SystemConfiguration/com.apple.network.eapolclient.configuration.plist /Library/Preferences/SystemConfiguration/com.apple.network.eapolclient.configuration.plist.good