Mac OS

12 Notes
+ VMware Tools (Jan. 23, 2017, 11:46 a.m.)

Darwin Image for VMware Tools for Mac OS X:

+ Password Reset (Sept. 11, 2016, 11:09 p.m.)

1-Turn off your Mac (choose Apple > Shut Down). 2-Press the power button while holding down Command-R. The Mac will boot into Recovery mode. ... 3-Select Disk Utility and press Continue. 4-Choose Utilities > Terminal. 5-Enter resetpassword (all one word, lowercase letters) and press Return. 6-Select the volume containing the account (normally this will be your Main hard drive). 7-Choose the account to change with Select the User Account. 8-Enter a new password and re-enter it into the password fields. 9-Enter a new password hint related to the password. 10-Click Save. 11-A warning will appear that the password has changed, but not the Keychain Password. Click OK. 12-Click Apple > Shut Down. Now start up the Mac. You can login using the new password.

+ Install Ionic (June 21, 2016, 9:38 p.m.)

brew install npm sudo npm install -g cordova ionic npm install -g ios-sim npm install -g ios-deploy ----------------------------- ionic platfrom add ios ionic resources ----------------------------- ionic build ios

+ Speed Up Mac by Disabling Features (June 21, 2016, 9:43 p.m.)

Disable Open/Close Window Animations defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false ------------------------------------- Disable Quick Look Animations defaults write -g QLPanelAnimationDuration -float 0 ------------------------------------- Disable Window Size Adjustment Animations defaults write NSGlobalDomain NSWindowResizeTime -float 0.001 ------------------------------------- Disable Dock Animations defaults write launchanim -bool false ------------------------------------- Disable the “Get Info” Animation defaults write DisableAllAnimations -bool true ------------------------------------- Get rid of Dashboard defaults write mcx-disabled -boolean YES killall Dock ------------------------------------- Speed Up Window Resizing Animation Speed defaults write -g NSWindowResizeTime -float 0.003 ------------------------------------- Disable The Eye Candy Transparent Windows & Effects System Preferences -> Accessibility -> Display Check the box for “Reduce Transparency” ------------------------------------- Disable Unnecessary Widgets & Extensions in Notifications Center System Preferences -> Extensions -> Today Uncheck all options you don’t need or care about -------------------------------------

+ Disable SIP (June 19, 2016, 11:07 p.m.)

csrutil status csrutil disable reboot

+ Recovery HD partition with El Capitan bootable via Clover (June 19, 2016, 6:16 p.m.)

1- diskutil list You will get the partition list, note that the Recovery Partition is obviously named "Recovery HD" 2- Create a folder in Volumes folder for Recovery HD and mount it there: sudo mkdir /Volumes/Recovery\ HD sudo mount -t hfs /dev/disk0s3 /Volumes/Recovery\ HD 3- Remove the file `prelinkedkernel`from the directory `` sudo rm -rf /Volumes/Recovery\ HD/ 4- Copy your working `prelinkedkernel` there: sudo cp /System/Library/PrelinkedKernels/prelinkedkernel /Volumes/Recovery\ HD/ 5- Reboot

+ Mac OS X on Virtualbox (June 12, 2016, 1:59 p.m.)

vboxmanage modifyvm "Mac OS X 10.11" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" vboxmanage setextradata "Mac OS X 10.11" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 VBoxManage setextradata "Mac OS X 10.11" "VBoxInternal2/EfiBootArgs" " "

+ Convert Installation DMG to ISO - Create a Bootable ISO (June 11, 2016, 8:34 p.m.)

You need to run these commands on a Mac OS X: # Mount the installer image hdiutil attach /Applications/Install\ OS\ X\ El\ -noverify -nobrowse -mountpoint /Volumes/install_app # Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition - Apple Partition Map hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J # Mount the ElCapitan Blank ISO Image hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build # Restore the Base System into the ElCapitan Blank ISO Image asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase # Remove Package link and replace with actual files rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/ # Copy El Capitan installer dependencies cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg # Unmount the installer image hdiutil detach /Volumes/install_app # Unmount the ElCapitan ISO Image hdiutil detach /Volumes/OS\ X\ Base\ System/ # Convert the ElCapitan ISO Image to ISO/CD master (Optional) hdiutil convert /tmp/ElCapitan.cdr.dmg -format UDTO -o /tmp/ElCapitan.iso # Rename the ElCapitan ISO Image and move it to the desktop mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso

+ Commands (June 9, 2016, 12:15 p.m.)

Locate command: To create the database for using `locate` command, run the following command: sudo launchctl load -w /System/Library/LaunchDaemons/ updatedb ==> sudo /usr/libexec/locate.updatedb ----------------------------------------------------------------------

+ Installing Xcode (June 6, 2016, 2:01 p.m.)

For downloading Xcode or other development tools, you need to log into using your Apple ID account and then open the following link: Download Xcode and Command Line Tools!

+ Applications (June 5, 2016, 12:34 p.m.)

brew install proxychains-ng sudo nano /usr/local/Cellar/proxychains-ng/4.11/etc/proxychains.conf ---------------------------------------------------------------- brew install npm ---------------------------------------------------------------- brew install ssh-copy-id ---------------------------------------------------------------- brew install tmux ----------------------------------------------------------------

+ Installing Homebrew (June 5, 2016, 12:17 p.m.)

Reference Site: ------------------------------------------------ 1-You need to install Developer Tools first. Using the `gcc --version` command check if you have the tools first. If the tools were not installed, a dialog will be opened asking you if you want to install the tools. You choose Install. 2-The website says you only need to use the following command to install brew. (But it might be blocked for us in Iran, as of the time writing this tutorial): /usr/bin/ruby -e "$(curl -fsSL" If it was still blocked, for installing it you need to open the following URL in a proxy activated browser, and save the script in your Mac OS: Install it using this command: ruby