-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacOS-11.txt
executable file
·346 lines (323 loc) · 12.5 KB
/
macOS-11.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
.____.
xuu$``$$$uuu.
. $``$ $$$`$$$
dP*$ $ $$$ $$$
?k $ $ $$$ $$$
$ $ $ $$$ $$$
":$ $ $$$ $$$
N$ $ $$$ $$$
$$ $ $$$ $$$
$ $ $$$ $$$
$ $ $$$ $$$
$ $ $$$ $$$
$ $ $$$ $$$
$ $ $$$ $$$
$$#$ $$$ $$$
$$'$ $$$ $$$
$$`R $$$ $$$
$$$& $$$ $$$
$#*$ $$$ $$$
$ $ $$$ @$$
$ $ $$$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$$$>
```""
macOS 11 (clamshell)
==============================
Create backups.
Download macOS 11 from the App Store.
If download is unavailable create bootable media from macOS 13.
Create bootable install media:
`sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/<volume>`
Eject and boot into recovery.
Prepare volumes with disk utility.
Insert bootable media, reboot and install macOS 11.
Consider creating an admin account to manage a daily, non-admin account.
Placeholders in this document: `<volume>`, `<accountid>`, `<keyid>`, `<name>`, `<email>`
Package manager
==============================
`/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
`echo >> $HOME/.zprofile`
`echo 'eval "$(/opt/homebrew/bin/brew shelling)"' >> $HOME/.zprofile`
`eval "$(/opt/homebrew/bin/brew shellenv)"`
This also installs command line tools (`xcode-select --install`).
VPN
==============================
```
brew install mullvadvpn
mullvad account login <accountid>
mullvad beta-program set on
mullvad auto-connect set on
mullvad lockdown-mode set on
mullvad relay set location us
mullvad relay set tunnel-protocol wireguard
mullvad tunnel set ipv6 off
mullvad connect
```
Enable launch app on start-up in GUI (there's no CLI option).
Web client
==============================
`brew install lynx`
`brew install eloston-chromium`
Configure Default profile:
Set experimental features in chrome://flags.
Disable IPv6 probe.
Prompt to install MIME type files.
Disable search engine collection.
Disable beforeunload.
Force punycode.
Hide labs button.
Hide crash bubble.
Scroll tabs.
Popups to tabs.
Keep old history.
Remove Tabsearch Button.
Set default search engine.
Disable third-party cookies.
Continue where you left off on start-up.
Always use HTTPS.
Don't allow sites to send notifications.
Relaunch.
Install chrome web store:
`curl -L https://github.com/NeverDecaf/chromium-web-store/releases/download/v1.5.4.3/Chromium.Web.Store.crx > webstore.crx && open webstore.crx`
Install uBlock Origin, Dark Reader, New Dark Tab, Video DownloadHelper and KeePassXC-Browser.
Create five additional profiles and copy settings from Default to each:
```
cp -r $HOME/Library/Application\ Support/Chromium/Default/* $HOME/Library/Application\ Support/Chromium/Profile\ 1/
cp -r $HOME/Library/Application\ Support/Chromium/Default/* $HOME/Library/Application\ Support/Chromium/Profile\ 2/
cp -r $HOME/Library/Application\ Support/Chromium/Default/* $HOME/Library/Application\ Support/Chromium/Profile\ 3/
cp -r $HOME/Library/Application\ Support/Chromium/Default/* $HOME/Library/Application\ Support/Chromium/Profile\ 4/
cp -r $HOME/Library/Application\ Support/Chromium/Default/* $HOME/Library/Application\ Support/Chromium/Profile\ 5/
```
Adjust default settings appropriately for each profile.
For example,
Profile for staying logged in to sites: search engine is No Search, new tab page is red.
Profile for search: search engine is set, new tab page is green.
Profile for private search: search engine is set, new tab page is purple, clear data on exit.
etc.
Encrypted containers
==============================
Reboot into recovery.
Select startup disk.
Reboot into recovery.
Update security policy to allow kexts.
Reboot.
Install macFUSE:
`curl -L https://github.com/osxfuse/osxfuse/releases/download/macfuse-4.8.2/macfuse-4.8.2.dmg > macfuse-4.8.2.dmg && open macfuse-4.8.2.dmg`
Reboot.
Install VeraCrypt: `https://sourceforge.net/projects/veracrypt/files/VeraCrypt%201.24-Update8/VeraCrypt_Legacy_1.24-Update8.dmg/download`
Prefer working from encrypted containers when possible.
Enable ask to keep changes when closing documents to disable autosaves.
Log out and log back in.
If disabled, expect repeated autosave failure notifications when editing documents with TextEdit in an encrypted container.
If disabled, saving a document edited with TextEdit with the same name as the version you are editing requires closing, saving, and duplicating the edited document, then closing, renaming and saving the duplicate document before replacing the edited document with the newly created duplicate.
Note that VeraCrypt containers do not implement file versioning.
Password manager
==============================
brew install keepassxc
Minimize when closed.
Don't lock when lid is closed.
Open most recent database on startup.
Download icons with DuckDuckGo.
Enable browser integration with Chromium.
Keep password database and keyfiles in encrypted containers.
System Preferences
==============================
Celebrate the fact that you're not in System Settings and will never see a yellow dot.
Set appearance, accent and highlight colors.
Always show scroll bars and jump to the spot that's clicked.
eloston-chromium (Chromium) is the default browser.
Disable handoff.
Top right corner activates screen saver, which starts after five minutes.
Keep only Terminal, TextEdit, Chromium, VeraCrypt and System Preferences in the dock.
Don't show recent applications in the dock and make it a little smaller.
Show only sound, bluetooth, display, time machine and battery in menu bar.
Hide AM/PM.
Ignore control center icon.
Remove all iOS Desktop widgets from notification center.
No rearranging spaces.
Displays do not have separate spaces.
Right option shows desktop.
No asking or listening for Siri.
Select Siri Suggestions & Privacy.
Click into all twelve iTunes apps and uncheck show suggestions and learn from this app.
Show only applications, folders and system preferences in spotlight search results.
Disable notifications for all apps except Chromium and VPN and always show previews.
Only use Touch ID to unlock device.
Increase scroll speed and enable three finger drag.
Press option five times to enable mouse keys.
Increase the size of the menu bar and the cursor.
Requre password four hours after sleep or screen saver.
Allow apps from identified developers.
Enable disk encryption and write down your recovery key.
Block all incoming traffic until you configure a Samba server.
Terminal gets full disk access.
Log out after sixty minutes of inactivity.
Require admin password for system-wide settings.
No analytics or personalized ads.
Don't check for software updates but do run up-to-date software.
Ignore available macOS 15 update after a check is made anyway.
Axe update badge with `defaults write com.apple.systempreferences AttentionPrefBundleIDs 0;killall Dock`.
Require admin to change networks or turn off Wi-Fi.
Verify that your loopback interface is your DNS server.
Verify that there are no entries in search domains.
Pair bluetooth peripherals and allow them to wake computer.
Set crystal alert volume to 50% and mic volume to 0%.
No start-up sound, sound effects or volume feedback.
Touch bar shows expanded control strip.
Select customize control strip.
Remove Siri, drag brightness controls to the left of volume, swap launchpad and mission control.
Tap to silent click.
Turn up the tracking speed a little.
Enable exposé (mission control) gesture.
Set hours for night shift.
Disable sidecar.
Finder
==============================
Show computer and home folder in sidebar.
Show status bar and hidden files:
`defaults write com.apple.finder ShowStatusBar -bool true`
`defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder`
Terminal
==============================
No audible bell.
Power
==============================
When plugged in turn display off after ten minutes.
Don't sleep when display is off or wake for network access.
GPG Suite
==============================
`brew install gpg-suite`
No Finder access.
Delete "applet" entry added to full disk access view.
Keybase PGP
==============================
`brew install keybase`
Finder integration is broken in macOS 11 so no need to disable or remove it.
`sudo bash -c "echo '/Applications/Keybase.app/Contents/SharedSupport/bin' > /etc/paths.d/Keybase"`
`keybase pgp export | gpg --import`
`keybase pgp export -s | gpg --allow-secret-key-import --import`
Enter passphrase to protect key.
Enter it again to confirm and again to import.
GPG
==============================
`gpg --armor --export <email> > public.key`
`gpg --list-secret-keys --keyid-format LONG`
`echo 'it works' | gpg --clearsign`
Paste in GitHub:
`gpg --armor --export <keyid> | pbcopy`
SSH
==============================
```
ssh-keygen -b 4096 -t rsa -C "<email>"
ssh-keygen -t ed25519 -C "<email>"
eval "$(ssh-agent -s)"
cat <<EOT>> ~/.ssh/config
Host github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
IdentityFile ~/.ssh/id_rsa
EOT
chmod 700 ~/.ssh
chmod 644 ~/.ssh/id_rsa.pub
chmod 644 ~/.ssh/id_ed25519.pub
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_ed25519
```
Add to ssh-agent and Keychain:
`ssh-add -K ~/.ssh/id_ed25519`
`ssh-add -K ~/.ssh/id_rsa`
Paste in GitHub:
`cat ~/.ssh/id_rsa | pbcopy`
`cat ~/.ssh/id_ed25519 | pbcopy`
Git
==============================
```
brew install git
git config --global user.name "<name>"
git config --global user.email "<email>"
git config --global commit.gpgsign true
git config --global --unset gpg.format
git config --global user.signingkey <keyid>
git commit -m "implicit -S" && git push
```
iTunes
==============================
Don't use iCloud.
If you accidentally signed up for iCloud:
Log into your account on another device.
Go to privacy.apple.com. (not apple.com/privacy)
Submit a request to download your data.
It may take weeks to prepare and some of it may be unavailable.
Download what's available and submit a second request to delete it.
TODO:
Window manager
==============================
```
brew install hammerspoon
curl -L https://github.com/Hammerspoon/hammerspoon/releases/download/0.9.100/Hammerspoon-0.9.100.zip > hammerspoon-big-sur.zip && open hammerspoon-big-sur.zip
mv Hammerspoon.app /Applications && rm hammerspoon-big-sur.zip && open /Applications/Hammerspoon.app
```
Launch at login, show in menu bar, allow notifications and allow it to control your computer.
brew install bettertouchtool
brew install tree
brew install fish
brew install emacs
brew install sublime-text
brew install iterm2
brew install tmux
brew install quicksilver
brew install vlc
brew install ableton-live-suite@11
brew install loopback
brew install audio-hijack
brew install eclipse-ide
brew install gcc
brew install jq
brew install awscli
brew install mactex
brew install utm
brew install opencore-patcher
brew install tunnelblick
brew install viscosity
ASCII art: https://www.asciiart.eu/
This document could not be autosaved.