[[Apple]]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apple [2017/01/12 19:46]
dblume [Configuration]
apple [2018/04/15 22:29] (current)
dblume [Configuration]
Line 15: Line 15:
       * 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
-      * Consider [[http://pilotmoon.com/scrollreverser/|Scroll Reverser]] to have [[http://apple.stackexchange.com/questions/116617/how-to-separate-mouse-and-trackpad-settings|natural scrolling for trackpad, but reversed for the mouse]].+      * 2017-01-15 (still needed): Consider [[http://pilotmoon.com/scrollreverser/|Scroll Reverser]] to have [[http://apple.stackexchange.com/questions/116617/how-to-separate-mouse-and-trackpad-settings|natural scrolling for trackpad, but reversed for the mouse]].
       * Disable [[http://apple.stackexchange.com/questions/159180/yosemite-disabling-inertia-scrolling-using-scroll-wheel-for-the-mouse|inertia mousewheel scrolling]] with:<code>defaults write .GlobalPreferences com.apple.scrollwheel.scaling -1</code>       * Disable [[http://apple.stackexchange.com/questions/159180/yosemite-disabling-inertia-scrolling-using-scroll-wheel-for-the-mouse|inertia mousewheel scrolling]] with:<code>defaults write .GlobalPreferences com.apple.scrollwheel.scaling -1</code>
       * Get SteerMouse (linked below) to stop wheel acceleration (Or [[http://www.logitech.com/en-us/428/146?section=downloads&bit=&osid=9|Logitech V200 LCC]])       * Get SteerMouse (linked below) to stop wheel acceleration (Or [[http://www.logitech.com/en-us/428/146?section=downloads&bit=&osid=9|Logitech V200 LCC]])
 +    * 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: <code>defaults write -g ApplePressAndHoldEnabled -bool false</code>
 +      * Microsoft Natural Ergonomic Keyboard 4000 doesn't have a current driver. That's OK.
 +      * Swap the Option and Command keys.
     * Dock     * Dock
       * Position on Right       * Position on Right
       * Automatically show and hide dock       * Automatically show and hide dock
     * Outlook     * Outlook
-      * Turn off auto underline-to-italic: Preferences -> AutoCorrect then click on the AutoFormat page+      * Turn off auto underline-to-italic, dashes, smart quotes: Preferences -> AutoCorrect then click on the AutoFormat page
  
 **BSD grep** **BSD grep**
Line 28: Line 33:
 OS X comes with BSD grep pre-installed, which doesn't use the Perl -P flag. OS X comes with BSD grep pre-installed, which doesn't use the Perl -P flag.
  
-  - Go to http://brew.sh/ and run the ruby command. +Go to http://brew.sh/ and run the ruby command. 
-  - <nowiki>brew install homebrew/dupes/grep --with-default-namesbrew install gnu-sed --with-default-names&lt;/nowiki+ 
-  - Log out of that console window and log back in again.+  brew install homebrew/dupes/grep --with-default-names 
 +  brew install gnu-sed --with-default-names 
 +  brew install findutils --with-default-names 
 +  brew install jq 
 +  brew install tree 
 +  brew install httpie 
 +  brew install inetutils  # If you need telnet (maybe nc is good enough?) 
 +  # Maybe also readline if you brew install python3 
 +   
 +  brew install bash 
 +  sudo echo /usr/local/bin/bash &gt;> /etc/shells 
 +  chsh -s /usr/local/bin/bash 
 + 
 +Log out of that console window and log back in again.
  
 ** Python Packages ** ** Python Packages **
Line 52: Line 70:
 | Shift+Opt+Command+V | Paste without formatting                                  | | Shift+Opt+Command+V | Paste without formatting                                  |
  
-===== Versions and Codenames ===== 
- 
-Current info at Wikipedia: [[wp>OS_X#Versions]] 
- 
-^ Codename      ^ Version ^ Notes ^ 
-| Snow Leopard  | 10.6    | iMac  | 
-| Lion          | 10.7    | MacBook Air (allows dragging on all window borders) | 
-| Mountain Lion | 10.8    | Current | 
  
 ===== Daemons, Agents, Cron, Launchd ===== ===== Daemons, Agents, Cron, Launchd =====
Line 69: Line 79:
 <code bash tag_ip_address.sh> <code bash tag_ip_address.sh>
 #!/usr/bin/env bash #!/usr/bin/env bash
-curl --data "`hostname -s`=`ifconfig | grep "inet " | grep -v "127.0.0.1" | \ +curl --data "`hostname -s`=`ifconfig | /usr/local/bin/grep "inet " | grep -v "127.0.0.1" | \ 
-sed -E 's/.*inet (([0-9]+.){3}[0-9]+).*/\1/'`&auth=ahov" "http://kvs.dlma.com"+sed -E 's/.*inet (([0-9]+.){3}[0-9]+).*/\1/' | perl -p -e 'chomp if eof;s/\n/,/'`&auth=[your secret auth]" "https://kvs.dlma.com" 
 + 
 +sleep 11  # if launched as a daemon, live for 11s to not be detected as buggy.
 </code> </code>
  
-cd into ~/Library/LaunchAgents and add a new plist file+That "sleep 11" is to mitigate the buggy daemon detection mentioned [[https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html|here]]. 
 + 
 +Note that we had to specify the path to the homebrew grep, because LaunchAgent would use the default one instead. 
 + 
 +cd into ~/Library/LaunchAgents or (/Library/LaunchDaemons if it can really be a daemon) and add a new plist file
  
 <code xml com.dlma.tag_ip_address.plist> <code xml com.dlma.tag_ip_address.plist>
Line 171: Line 187:
  
 [[https://panel.preyproject.com/]] for when the device goes missing. (Or is stolen by a thief.) [[https://panel.preyproject.com/]] for when the device goes missing. (Or is stolen by a thief.)
 +
 +====== NFS for OS X ======
 +
 +On the server side get your user ID and group ID (id -u; id -g), and update /etc/exports with something like:
 +
 +<code>
 +/path/to/share 10.?.?.?(rw,sync,insecure,all_squash_anonuid=<uid>,anongid=<gid>)
 +</code>
 +
 +10.?.?.? would be the IP of the Macintosh. (That'll have to be updated every time it changes.)  For a Macintosh to connect, "insecure" was said to be needed. And "all_squash" was needed for the uid and gid to be set.  Restart and check the NFS server with "sudo systemctl restart nfs-server.service; systemctl status nfs-server.service".
 +
 +Get the "hostname" for the server for the next bit on the client side. Call it jdoe-t3610.
 +
 +On the client side, you could manually mount the NFS volume with something like, "<nowiki>nfs://jdoe-t3610/path/to/share</nowiki>"
 +
 +Or better, configure automounter by adding a line to <nowiki>/etc/auto_master</nowiki>:
 +
 +<code>
 +/- auto_sandbox -rw
 +</code>
 +
 +And then make the file /etc/auto_sandbox
 +
 +<code>
 +/sandbox nfs://jdoe-t3610/path/to/share
 +</code>
 +
 +For the purpose of P4 client compatibility with the dev system, I use a symbolic link at root.
 +
 +<code>
 +$ sudo ln -s /sandbox/sandbox/stb/ /link_to_p4_root
 +</code>
 +
 +If you want your changes to take effect immediately,
 +
 +<code>
 +$ sudo automount -vc
 +</code>
  
 ====== Keywords ====== ====== Keywords ======
  
 aps, todo aps, todo
apple.1484279163.txt.gz · Last modified: 2017/01/12 19:46 by dblume
 
Recent changes RSS feed Driven by DokuWiki