User Tools

Site Tools


apple

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apple [2017/01/16 14:45] dblumeapple [2024/02/07 13:02] (current) – [Configuration] dblume
Line 7: Line 7:
   * System Preferences:   * System Preferences:
     * Trackpad -> Tap to Click (For not having to press hard for a click.)     * Trackpad -> Tap to Click (For not having to press hard for a click.)
-    * Tap-and-drag: Accessibility -> Mouse & Trackpad -> Trackpad Options and enable 'Dragging (with/without) Drag Lock'+    * Tap-and-drag: Accessibility -> Pointer Control -> Trackpad Options and enable 'Dragging (without) Drag Lock'
   * Open the Photos app, and drag a userpic to it. Then change your userpic in the System Preferences.   * Open the Photos app, and drag a userpic to it. Then change your userpic in the System Preferences.
   * Get [[http://www.google.com/chrome/intl/en/landing_chrome.html?hl=en&platform=mac|Chrome]] (Login and sync.)   * Get [[http://www.google.com/chrome/intl/en/landing_chrome.html?hl=en&platform=mac|Chrome]] (Login and sync.)
Line 21: Line 21:
       * Set Key Repeat to fastest, and Delay until Repeat to second shortest.       * 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>       * 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 driverThat's OK.+      * 2024 Microsoft Natural Ergonomic Keyboard needs [[https://karabiner-elements.pqrs.org/|Karabiner Elements]] to make the following two swaps: 
 +        * left_option -> left_command 
 +        * application -> left_option
       * Swap the Option and Command keys.       * 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:fonts]].
     * Outlook     * Outlook
       * Turn off auto underline-to-italic, dashes, smart quotes: 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**+===== Tools Installation =====
  
-OS X comes with BSD grep pre-installed, which doesn'use the Perl -P flag.+The old way of installing Command Line Tools from the Terminal doesn'work anymore. But now it can be done from [[https://developer.apple.com/download/more/?=command%20line%20tools|the Developer download site]], not from the Terminal.
  
-  - Go to http://brew.sh/ and run the ruby command. +==== BSD vsLinux commands ====
-  - <nowiki>brew install homebrew/dupes/grep --with-default-names; brew install gnu-sed --with-default-names</nowiki> +
-  - Log out of that console window and log back in again.+
  
-** Python Packages **+macOS comes with BSD grep pre-installed, which doesn't use the Perl -P flag.
  
-If pip isn't installed yet (Python older than 2.7.9)then install it with easy_installthen install requests.+Go to http://brew.sh/ and run the ruby command. (See [[https://git.dlma.com/dotfiles.git/commit/fc19c7b34f522f3f22a32418c9da55df6b9b5f0e|this .bash_profile change for how we use default names for GNU ctagsfindgrep and sed]].)
  
-  sudo -H easy_install pip +  brew install grep 
-  sudo -H pip install requests+  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  # If you need telnet (maybe nc is good enough?) 
 +  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/vd/visidata 
 +  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 /opt/homebrew/Cellar/bash/5.2.15/bin/bash /usr/local/bin/bash 
 +  sudo echo /usr/local/bin/bash >> /etc/shells 
 +  chsh -s /usr/local/bin/bash 
 + 
 +Log out of that console window and log back in again.
  
  
Line 60: Line 91:
 ===== Daemons, Agents, Cron, Launchd ===== ===== Daemons, Agents, Cron, Launchd =====
  
-The preferred way to set a repeating task is not to use a cronjob but launchd.+The preferred way to set a repeating task is not to use a cronjob but launchd. :!: Note that there's a breaking change in macOS Catalina. [[https://www.reddit.com/r/MacOS/comments/dffpzj/launchd_agent_no_longer_functions_after_catalina/|Launchd agent no longer functions after Catalina upgrade]].
  
 In your ~/bin directory, create a job to run, tag_ip_address.sh In your ~/bin directory, create a job to run, tag_ip_address.sh
Line 66: Line 97:
 <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 82: Line 119:
     <key>Program</key>     <key>Program</key>
         <string>/Users/dblume/bin/tag_ip_address.sh</string>         <string>/Users/dblume/bin/tag_ip_address.sh</string>
 +    <key>StandardOutPath</key>
 +        <string>/tmp/com.dlma.tag_ip_address.plist.out.txt</string>
 +    <key>StandardErrorPath</key>
 +        <string>/tmp/com.dlma.tag_ip_address.plist.err.txt</string>
     <key>StartCalendarInterval</key>     <key>StartCalendarInterval</key>
-    <dict> +        <dict> 
-        <key>Hour</key> +            <key>Hour</key> 
-        <integer>12</integer> +            <integer>12</integer> 
-        <key>Minute</key> +            <key>Minute</key> 
-        <integer>0</integer> +            <integer>0</integer> 
-    </dict>+        </dict>
 </dict> </dict>
 </plist> </plist>
Line 96: Line 137:
  
 <code bash> <code bash>
-$ launchctl load -w com.dlma.tag_ip_address.plist+$ launchctl load -w /Library/LaunchDaemons/com.dlma.tag_ip_address.plist
 </code> </code>
  
Line 103: Line 144:
  
   * [[http://iterm2.com/|iTerm2]] and install your [[http://git.dlma.com/dotfiles.git/|dotfiles]].   * [[http://iterm2.com/|iTerm2]] and install your [[http://git.dlma.com/dotfiles.git/|dotfiles]].
-  If you want [[http://ipython.org/|IPython]], you probably have to install [[http://pypi.python.org/pypi/readline/6.2.4.1|readline]], too: ''sudo easy_install readline ipython'' +    Preferences -> Profiles -> Terminal -> uncheck "Save lines to scrollback in alternate screen mode" 
-  * [[http://www5e.biglobe.ne.jp/~arcana/StartupSound/index.en.html|Startup Sound]] (Make it quieter before Lion!) [[http://hints.macworld.com/article.php?story=20120513121111656|Adjusting Startup Chime]] after Lion. +    Install Powerline Fonts per [[private:fonts]].
-  * [[http://foreword.com/2012/07/6869/vanilla_folders/|TotalFinder]] for some intuitive Finder features. +
-  * [[http://plentycom.jp/en/steermouse/|SteerMouse]] to change ScrollWheel rolling to constant 3x instead of accellerated +
-  * [[http://decimus.net/DTerm/|DTerm]] for quick one-off terminal commands +
-  * [[http://www.apple.com/downloads/macosx/development_tools/plisteditpro.html|Property List Editor]] for giving [[http://bura-bura.com/blog/archives/2006/08/18/increasing-the-heap-size-of-freemind-on-macos-x/|Minecraft more memory]]. +
-  * [[http://toolbar.google.com/gmail-helper/notifier_mac.html|Google Notifier]] ([[http://support.google.com/mail/bin/answer.py?hl=en&answer=10960|Two-step Authentication instructions]]) +
-  * GTD: [[http://www.hogbaysoftware.com/products/taskpaper|Taskpaper]] or [[http://culturedcode.com/things/|Things]] or [[http://www.omnigroup.com/products/omnifocus/|Omnifocus]] +
-  * [[http://magicprefs.com/|MagicPrefs]] for finer tuning of the Magic Mouse+
   * [[http://www.delicious-monster.com/|Delicious Library]]: Keep track of my physical media.   * [[http://www.delicious-monster.com/|Delicious Library]]: Keep track of my physical media.
   * Code Editing   * Code Editing
-    * [[http://www.sublimetext.com/3|Sublime Text 3]] and then [[http://config.dlma.com/#sublime|configure]] it.+    * [[https://code.visualstudio.com/|Visual Studio Code]]
     * [[http://developer.apple.com/tools/xcode/|XCode]]     * [[http://developer.apple.com/tools/xcode/|XCode]]
-    * [[http://macromates.com/|TextMate]] 
-    * [[http://www.barebones.com/products/bbedit/|BBEdit]] (or [[http://www.barebones.com/products/bbedit/comparison.html|TextWrangler]]) 
-    * [[http://www.editrocket.com/|EditRocket]] (Eventually read [[http://regebro.wordpress.com/2010/10/09/is-there-a-better-python-ide/|the comparison of Python IDEs]]) 
-  * [[http://quicksilver.en.softonic.com/mac|Quicksilver]]: Reach any program with a few keystrokes. (Eg., Control+space, M for Mail) 
   * Paint program   * Paint program
     * [[http://gimp.lisanet.de/Website/Download.html|GIMP]] (Can I find something powerful, free **and** user-friendly?) X11 is frustrating.     * [[http://gimp.lisanet.de/Website/Download.html|GIMP]] (Can I find something powerful, free **and** user-friendly?) X11 is frustrating.
Line 128: Line 158:
     * [[http://www.artrage.com/artrage-demos.html|ArtRage]]     * [[http://www.artrage.com/artrage-demos.html|ArtRage]]
  
-[[http://foreword.com/2011/05/6796/hack_os_x/|Danelope]] suggests these Image Editors:+[[http://foreword.com/2011/05/6796/hack_os_x/|Danelope]] suggests these Image Editors in 2011:
  
   * http://gimpshop.com/   * http://gimpshop.com/
Line 142: Line 172:
       * 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://discussions.apple.com/thread/2793826?threadID=2793826&tstart=90|it doesn't persist past logging out]].         * Except that [[https://discussions.apple.com/thread/2793826?threadID=2793826&tstart=90|it doesn't persist past logging out]].
-      * [[http://lifehacker.com/5826055/make-your-keyboard-keys-repeat-properly-when-held-down-in-mac-os-x-lion|Make Your Keyboard Keys Repeat Properly When Held Down in Mac OS X Lion]].+      * [[http://lifehacker.com/5826055/make-your-keyboard-keys-repeat-properly-when-held-down-in-mac-os-x-lion|Make Your Keyboard Keys Repeat Properly When Held Down in Mac OS X Lion (macOS)]]. 
 +  * [[http://quicksilver.en.softonic.com/mac|Quicksilver]]: Reach any program with a few keystrokes. (Eg., Control+space, M for Mail)
  
  
Line 151: Line 182:
   * [[wp>Sokoban|Sokoban]]   * [[wp>Sokoban|Sokoban]]
   * A [[http://build.last.fm/category/Scrobblers|Scrobbler]]   * A [[http://build.last.fm/category/Scrobblers|Scrobbler]]
-  * A [[http://www.plurk.com/API|new Plurk client]] 
  
 ==== Sokoban ==== ==== Sokoban ====
Line 160: Line 190:
  
 What matters here is the ability to scrobble what I've played to last.fm directly from my iPhone/iPod. What matters here is the ability to scrobble what I've played to last.fm directly from my iPhone/iPod.
- 
-==== Plurk ==== 
- 
-The existing official client could stand improvement. 
  
 ====== Prey ====== ====== Prey ======
Line 169: Line 195:
 [[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 ======+====== NFS for macOS ======
  
 On the server side get your user ID and group ID (id -u; id -g), and update /etc/exports with something like: On the server side get your user ID and group ID (id -u; id -g), and update /etc/exports with something like:
apple.1484606700.txt.gz · Last modified: 2023/04/12 20:44 (external edit)