apple
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apple [2016/04/01 08:53] – [Configuration] dblume | apple [2024/04/26 20:44] (current) – [BSD vs. Linux commands] add tmux-256color dblume | ||
---|---|---|---|
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:// | * [[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 | ||
- | * Consider [[http:// | + | * 2017-01-15 (still needed): |
* Disable [[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: < | ||
+ | * 2024 Microsoft Natural Ergonomic Keyboard needs [[https:// | ||
+ | * left_option -> left_command | ||
+ | * application -> left_option | ||
+ | * 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 | * Outlook | ||
- | * Turn off auto underline-to-italic: | + | * 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, | + | The old way of installing Command Line Tools from the Terminal |
- | - Go to http:// | + | ==== BSD vs. Linux commands ==== |
- | - brew install homebrew/ | + | |
- | - Log out of that console window and log back in again. | + | |
- | ** Python Packages ** | + | macOS comes with BSD grep pre-installed, |
- | If pip isn't installed yet (Python older than 2.7.9), then install it with easy_install, then install requests. | + | Go to http:// |
- | sudo -H easy_install pip | + | |
- | 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 | ||
+ | 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 echo / | ||
+ | chsh -s / | ||
+ | Log out of that console window and log back in again. | ||
+ | |||
+ | ==== tmux and " | ||
+ | |||
+ | We set tmux to set $TERM to " | ||
+ | |||
+ | VisiData will complain it "could not find terminfo database" | ||
+ | |||
+ | curl -O " | ||
+ | sudo tic -x tmux-256color | ||
+ | |||
+ | That should install the database into / | ||
===== Tips ===== | ===== Tips ===== | ||
Line 52: | Line 98: | ||
| Shift+Opt+Command+V | Paste without formatting | | Shift+Opt+Command+V | Paste without formatting | ||
- | ===== Versions and Codenames ===== | ||
- | |||
- | Current info at Wikipedia: [[wp> | ||
- | |||
- | ^ Codename | ||
- | | Snow Leopard | ||
- | | Lion | 10.7 | MacBook Air (allows dragging on all window borders) | | ||
- | | Mountain Lion | 10.8 | Current | | ||
===== 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' |
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 69: | Line 107: | ||
<code bash tag_ip_address.sh> | <code bash tag_ip_address.sh> | ||
# | # | ||
- | curl --data " | + | curl --data " |
+ | sed -E ' | ||
+ | |||
+ | sleep 11 # if launched as a daemon, live for 11s to not be detected as buggy. | ||
</ | </ | ||
- | cd into ~/ | + | 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> | <code xml com.dlma.tag_ip_address.plist> | ||
Line 84: | Line 129: | ||
< | < | ||
< | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
< | < | ||
- | | + | |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | < | + | < |
- | </ | + | </ |
</ | </ | ||
</ | </ | ||
Line 98: | Line 147: | ||
<code bash> | <code bash> | ||
- | $ launchctl load -w com.dlma.tag_ip_address.plist | + | $ launchctl load -w / |
</ | </ | ||
Line 104: | Line 153: | ||
===== Software to Get ===== | ===== Software to Get ===== | ||
- | * [[http:// | + | * [[http:// |
- | * If you want [[http:// | + | * Preferences |
- | * [[http:// | + | * Install Powerline Fonts per [[private:fonts]]. |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | * GTD: [[http:// | + | |
- | * [[http:// | + | |
* [[http:// | * [[http:// | ||
* Code Editing | * Code Editing | ||
- | * [[http://www.sublimetext.com/3|Sublime Text 3]] and then [[http:// | + | * [[https://code.visualstudio.com/|Visual Studio Code]] |
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | * [[http:// | ||
* Paint program | * Paint program | ||
* [[http:// | * [[http:// | ||
Line 130: | Line 168: | ||
* [[http:// | * [[http:// | ||
- | [[http:// | + | [[http:// |
* http:// | * http:// | ||
Line 144: | Line 182: | ||
* 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 153: | Line 192: | ||
* [[wp> | * [[wp> | ||
* A [[http:// | * A [[http:// | ||
- | * A [[http:// | ||
==== Sokoban ==== | ==== Sokoban ==== | ||
Line 162: | Line 200: | ||
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 |
apple.1459525980.txt.gz · Last modified: 2023/04/12 20:44 (external edit)