This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
apple [2015/03/09 00:59] dblume |
apple [2023/02/28 17:14] (current) dblume [BSD vs. Linux commands] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Apple ====== | ====== Apple ====== | ||
| - | We got our first Macintosh. | + | First time configuration of a new Macintosh. |
| ===== Configuration ===== | ===== Configuration ===== | ||
| + | * System Preferences: | ||
| + | * Trackpad -> Tap to Click (For not having to press hard for a click.) | ||
| + | * Tap-and-drag: | ||
| + | * Open the Photos app, and drag a userpic to it. Then change your userpic in the System Preferences. | ||
| * Get [[http:// | * Get [[http:// | ||
| - | * [[http:// | + | * [[http:// |
| * System Preferences: | * System Preferences: | ||
| - | * Tap-and-drag: | ||
| - | * Appearance | ||
| - | * Place scroll arrows: At top and bottom | ||
| * Mouse | * Mouse | ||
| * Make tracking speed much faster! | * Make tracking speed much faster! | ||
| * Enable Secondary click for the right mouse button | * Enable Secondary click for the right mouse button | ||
| + | * 2017-01-15 (still needed): Consider [[http:// | ||
| + | * Disable [[http:// | ||
| * Get SteerMouse (linked below) to stop wheel acceleration (Or [[http:// | * Get SteerMouse (linked below) to stop wheel acceleration (Or [[http:// | ||
| + | * Keyboard | ||
| + | * Set Key Repeat to fastest, and Delay until Repeat to second shortest. | ||
| + | * Some apps don't repeat anything because some keys have a character accent menu. To disable: < | ||
| + | * Microsoft Natural Ergonomic Keyboard 4000 doesn' | ||
| + | * Swap the Option and Command keys. | ||
| * Dock | * Dock | ||
| * Position on Right | * Position on Right | ||
| - | * Automatically show and hide dock? | + | * Automatically show and hide dock |
| + | * iTerm2 | ||
| + | * User Powerline Fonts per [[private: | ||
| + | * Outlook | ||
| + | * Turn off auto underline-to-italic, | ||
| + | |||
| + | ===== Tools Installation ===== | ||
| + | |||
| + | The old way of installing Command Line Tools from the Terminal doesn' | ||
| + | |||
| + | ==== BSD vs. Linux commands ==== | ||
| + | |||
| + | macOS comes with BSD grep pre-installed, | ||
| + | |||
| + | Go to http:// | ||
| + | |||
| + | brew install grep | ||
| + | brew install gnu-sed | ||
| + | brew install findutils | ||
| + | brew install ctags | ||
| + | brew install gawk | ||
| + | brew install jq | ||
| + | brew install tree | ||
| + | brew install httpie | ||
| + | brew install inetutils | ||
| + | brew install telnet | ||
| + | brew install gnuplot | ||
| + | brew install pv | ||
| + | brew install gnupg | ||
| + | brew install socat | ||
| + | brew install wget | ||
| + | brew install nmap | ||
| + | brew install tmux | ||
| + | brew install saulpw/ | ||
| + | brew install ripgrep | ||
| + | brew install moreutils | ||
| + | brew install bash-completion. " See .bash_profile | ||
| + | brew install gitui | ||
| + | # Maybe also readline if you brew install python3 | ||
| + | |||
| + | brew install bash | ||
| + | # Note where it was installed. Then something like... | ||
| + | sudo ln -s / | ||
| + | sudo echo / | ||
| + | chsh -s / | ||
| + | |||
| + | Log out of that console window and log back in again. | ||
| ===== Tips ===== | ===== Tips ===== | ||
| Line 31: | Line 86: | ||
| | Shift+Opt+Command+V | Paste without formatting | | Shift+Opt+Command+V | Paste without formatting | ||
| - | ===== Versions and Codenames ===== | ||
| - | Current info at Wikipedia: [[wp> | + | ===== Daemons, Agents, Cron, Launchd ===== |
| - | ^ Codename | + | The preferred way to set a repeating task is not to use a cronjob but launchd. :!: Note that there' |
| - | | Snow Leopard | + | |
| - | | Lion | + | In your ~/bin directory, create a job to run, tag_ip_address.sh |
| - | | Mountain Lion | 10.8 | Current | | + | |
| + | <code bash tag_ip_address.sh> | ||
| + | # | ||
| + | curl --data " | ||
| + | sed -E ' | ||
| + | |||
| + | sleep 11 # if launched as a daemon, live for 11s to not be detected as buggy. | ||
| + | </ | ||
| + | |||
| + | That "sleep 11" is to mitigate the buggy daemon detection mentioned [[https:// | ||
| + | |||
| + | Note that we had to specify the path to the homebrew grep, because LaunchAgent would use the default one instead. | ||
| + | |||
| + | cd into ~/ | ||
| + | |||
| + | <code xml com.dlma.tag_ip_address.plist> | ||
| + | <?xml version=" | ||
| + | < | ||
| + | " | ||
| + | <plist version=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Finally, [[http:// | ||
| + | |||
| + | <code bash> | ||
| + | $ launchctl load -w / | ||
| + | </ | ||
| ===== Software to Get ===== | ===== Software to Get ===== | ||
| - | * If you want [[http://ipython.org/|IPython]], you probably have to install [[http://pypi.python.org/ | + | * [[http://iterm2.com/|iTerm2]] and install |
| - | * [[http:// | + | * Preferences |
| - | * [[http:// | + | * Install Powerline Fonts per [[private:fonts]]. |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | * [[http:// | + | |
| - | * GTD: [[http:// | + | |
| - | * [[http:// | + | |
| * [[http:// | * [[http:// | ||
| * Code Editing | * Code Editing | ||
| + | * [[https:// | ||
| * [[http:// | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| - | * [[http:// | ||
| * Paint program | * Paint program | ||
| * [[http:// | * [[http:// | ||
| Line 67: | Line 156: | ||
| * [[http:// | * [[http:// | ||
| - | [[http:// | + | [[http:// |
| * http:// | * http:// | ||
| Line 81: | Line 170: | ||
| * Command Key: Control Panel -> Keyboard -> Modifier Keys... -> swap Command and Control keys | * Command Key: Control Panel -> Keyboard -> Modifier Keys... -> swap Command and Control keys | ||
| * Except that [[https:// | * Except that [[https:// | ||
| - | * [[http:// | + | * [[http:// |
| + | * [[http:// | ||
| Line 90: | Line 180: | ||
| * [[wp> | * [[wp> | ||
| * A [[http:// | * A [[http:// | ||
| - | * A [[http:// | ||
| ==== Sokoban ==== | ==== Sokoban ==== | ||
| Line 99: | Line 188: | ||
| What matters here is the ability to scrobble what I've played to last.fm directly from my iPhone/ | What matters here is the ability to scrobble what I've played to last.fm directly from my iPhone/ | ||
| - | |||
| - | ==== Plurk ==== | ||
| - | |||
| - | The existing official client could stand improvement. | ||
| ====== Prey ====== | ====== Prey ====== | ||
| [[https:// | [[https:// | ||
| + | |||
| + | ====== NFS for macOS ====== | ||
| + | |||
| + | On the server side get your user ID and group ID (id -u; id -g), and update / | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | 10.?.?.? would be the IP of the Macintosh. (That' | ||
| + | |||
| + | Get the " | ||
| + | |||
| + | On the client side, you could manually mount the NFS volume with something like, "< | ||
| + | |||
| + | Or better, configure automounter by adding a line to < | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | And then make the file / | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | For the purpose of P4 client compatibility with the dev system, I use a symbolic link at root. | ||
| + | |||
| + | < | ||
| + | $ sudo ln -s / | ||
| + | </ | ||
| + | |||
| + | If you want your changes to take effect immediately, | ||
| + | |||
| + | < | ||
| + | $ sudo automount -vc | ||
| + | </ | ||
| ====== Keywords ====== | ====== Keywords ====== | ||
| aps, todo | aps, todo | ||