git status # loads command line tools
NEW_HOST=melkor
sudo scutil --set LocalHostName $NEW_HOST
sudo scutil --set ComputerName $NEW_HOST
sudo scutil --set HostName $NEW_HOST
diskutil rename / $NEW_HOST- Copy important repos over
SOURCE_HOST=nuada
# if you haven't restored Downloads from backup, copy it from another machine:
# rsync -avH --progress --stats $SOURCE_HOST\:Downloads/ ~/Downloads/
ssh github.com # to create ~/.ssh/
scp $SOURCE_HOST\:.ssh/nono\* .ssh/
ssh-add ~/.ssh/nono
scp $SOURCE_HOST\:.ssh/github\* .ssh/
ssh-add ~/.ssh/github
scp $SOURCE_HOST\:.ssh/authorized_keys .ssh/
rsync -avH $SOURCE_HOST\:bin/ ~/bin/
rsync -avH $SOURCE_HOST\:aa/ ~/aa/
rsync -avH $SOURCE_HOST\:docs/ ~/docs/
ln -s ~/bin/env/config ~/.ssh/config
HOSTNAME=$(hostname); pushd ~/aa; git add .; git commit -m"from ${HOSTNAME%%.*}"; git pull -r; git push; pushd ~/docs; git pull; pushd ~/bin; git pull; popd; popd; popdCreate & populate ~/workspace/ with APFS case-sensitive (for Linux kernel):
# diskutil list
sudo newfs_apfs -A -e -v "workspace" disk3
diskutil mount workspace
sudo chown cunnie:staff /Volumes/workspace
ln -s /Volumes/workspace ~/workspace
ls -l ~/workspace/
# Copy `~/workspace` over:
rsync -avzH --progress --stats $SOURCE_HOST\:workspace/ ~/workspace/
git lfs install- Set up git per git.md
- System Settings
- Mini: Mouse buttons → Secondary click → Click Left side
- remove Siri from taskbar
- Turn off Siri (Voice Siri -> scroll to bottom -> Turn Off Siri)
- Displays → Resolution: Scaled → choose desired resolution
- MacBook ("More Space")
- Mini (leave on "Default")
- Sharing
- Screen Sharing
- Remote Login
- Accessibility → Pointer Control → Mouse & Trackpad → Trackpad Options...
- Tap to click
- Use trackpad for dragging
- Dragging style: Three Finger Drag
- Look up & data detectors: Off
- Keyboard Sensitivity
- Key Repeat: Fast
- Delay Until Repeat: Penultimate Short
- Function Keys: Use F1, F2, etc. keys as standard function keys
- Keyboard & Mouse Shortcuts: Unselect Show Desktop F11
- Mac Mini: disable WiFi in taskbar
- Bluetooth
- ✅: Show Bluetooth status in Control Center Menu Bar
- go through each of the connected bluetooth devices:
- Options → Connect to This Mac: When Last Connected to This Mac
- Network → uncheck Limit IP Address Tracking
- Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /Users/cunnie/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> /Users/cunnie/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
cd ~/bin
brew bundle-
Move Dock clutter into trash
-
Open Firefox & configure
- log in brian.cunnie@gmail.com
- open gmail
- Fix
mailto:links:- Firefox → ⌘, → Find in Settings: "Applications" → subsearch: "mailto" → Select "Use Gmail"
- set up new profile brian.cunnie@serc.com, log in
-
System Settings → Apple ID → iCloud → iCloud Drive → Options... → check: Desktop & Documents Folders
-
Set up date in Menu Bar (24-hour, show seconds & Date)
- System Settings → Date & Time
-
System Settings → Desktop & Dock → check: Automatically hide and show the Dock
-
Messages → Preferences → iMessage
- ✅ Send read receipts
- → Start new conversations from +1 (650) 968-6262
-
[if on mini] System Settings → Screen Saver → Lock Screen Settings...
- Start Screen Saver when inactive: For 10 minutes
- Turn display off when inactive: For 20 minutes
- Require password after screen saver begins...: After 15 minutes
- Require password after screen saver begins or display is turned off: After 1 hour
-
On iPhone: Settings → Messages → Text Message Forwarding → new device ✅
-
Photos → ⌘, (Preferences) → iCloud → ✅: Download Originals to this Mac
-
Set up iStat Menus
- No notifications
- No sensors
- No memory
- No disks, not enough room on Taskbar
- CPU: historical
- Register
-
FlyCut (approve accessibility)
- ✅: Launch Flycut on login
- iCloud Sync: ✅: Settings
- Display in Menu: 99 / 99 / 99
- ✅: Remove duplicates
- ✅: Move posted item to top of stack
- Appearance → Menu item icon: Black scissors
-
iTerm ] - iTerm → ⌘, (Preferences) → General → Selection → Uncheck "Clicking on a command selects it to restrict Find and Filter"
- iTerm → ⌘, (Preferences) → Profiles → General → Working Directory → Reuse previous session's directory
- iTerm → ⌘, (Preferences) → Profiles → Colors → uncheck Use different colors for light mode and dark mode
- iTerm → ⌘, (Preferences) → Profiles → Terminal → Unlimited scrollback
-
System Settings → Open at Login
- Add Flycut
- Background App Activity: turn off Zoom; it's annoying
-
Update IPv6 address in DNS; it has changed with reinstall
-
Start Google Drive
- mirror, not stream, my files
-
Wireguard
- download Wireguard from the App Store
- Set up wireguard for new laptop: instructions
- click "Import tunnel(s) from file"
- import from
~/My\ Drive/wg/LosAltos-BrianCunnie.conf
-
if on laptop:
- import from
~/My\ Drive/wg/nuada.conf
- import from
-
Install HP 1536 printer (add printer)
-
Install convenient Golang utilities,
ginkgoandgoimports:
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/onsi/ginkgo/v2/ginkgo@latest- Allow notifications from Chrome & Firefox
- System Settings → Notifications → Application Notifications
- set up autojump and autosuggestions:
nvim ~/.zshrc
# zsh-autosuggestions setup
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# autojump setup
[ -f $(brew --prefix)/etc/profile.d/autojump.sh ] && . $(brew --prefix)/etc/profile.d/autojump.sh- Install Apple containers: https://github.com/apple/container/releases
container system start
gcloud auth login
gcloud config set project majestic-labs-ai
gcloud auth configure-docker us-central1-docker.pkg.dev
gcloud auth print-access-token | container registry login us-central1-docker.pkg.dev \
--username oauth2accesstoken \
--password-stdin
container run -it --rm us-central1-docker.pkg.dev/majestic-labs-ai/images/skeleton:24.04