dev:tricks:macos
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:tricks:macos [2013/08/18 03:04] – created hackerzhou | dev:tricks:macos [2020/06/06 23:32] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Mac OS Tricks ====== | ====== Mac OS Tricks ====== | ||
- | ==== Install | + | ==== Change the hostname ==== |
+ | <code bash> | ||
+ | sudo scutil --set HostName testhostname.local | ||
+ | hostname | ||
+ | </ | ||
+ | |||
+ | ==== Create a bootable OS X USB installation disk ==== | ||
+ | <code bash> | ||
+ | sudo / | ||
+ | </ | ||
+ | |||
+ | ==== F11 on a Mac for ESX Installs | ||
< | < | ||
+ | * Fn+Ctrl+option+F11 | ||
+ | * Or Go into the Mission Control settings and set 'Show Desktop' | ||
+ | * Or if you are using VMware Fusion, you can send key using Virtual Machine -> Send Key -> F11. | ||
+ | </ | ||
+ | ==== Install Homebrew ==== | ||
+ | <code bash> | ||
ruby -e " | ruby -e " | ||
brew doctor | brew doctor | ||
Line 8: | Line 25: | ||
==== Mount from directory to directory ==== | ==== Mount from directory to directory ==== | ||
- | < | + | < |
brew install bindfs | brew install bindfs | ||
# brew install pkg-config if needed | # brew install pkg-config if needed | ||
bindfs < | bindfs < | ||
+ | </ | ||
+ | |||
+ | ==== Install useful unix utility ssh-copy-id ==== | ||
+ | <code bash> | ||
+ | curl -L https:// | ||
+ | </ | ||
+ | |||
+ | ==== Schedule tasks in Mac OS X ==== | ||
+ | < | ||
+ | cat >> ~/ | ||
+ | <?xml version=" | ||
+ | < | ||
+ | <plist version=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | EOF | ||
+ | sudo cp / | ||
+ | sudo launchctl load / | ||
+ | </ | ||
+ | |||
+ | ==== Use Time Machine via NFS ==== | ||
+ | < | ||
+ | http:// | ||
+ | http:// | ||
+ | http:// | ||
</ | </ |
dev/tricks/macos.1376795067.txt.gz · Last modified: 2020/06/06 23:32 (external edit)