Mac Setup Commands

For Walid — copy each command and paste into Terminal

1
Open Terminal
Press Cmd + Space, type Terminal, press Enter
2
Enable SSH
Type the Mac password when asked (invisible — normal)
sudo systemsetup -setremotelogin on
3
Install Homebrew
Press Enter when it asks to confirm. Wait 2-5 min.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
4
Add Homebrew to PATH
echo 'eval "$(/usr/local/bin/brew shellenv)"' >> ~/.zprofile && eval "$(/usr/local/bin/brew shellenv)"
5
Install Tailscale + Connect
This connects the Mac to Ahmed's network. No browser needed.
brew install tailscale && sudo brew services start tailscale && sudo tailscale up --authkey=tskey-auth-k1L22e2LHj11CNTRL-nUXpHXuYeoUi7otKoqbKoUFXT8ecbrtL
6
Install Python 3.11 + Node.js + Git
brew install python@3.11 node git
7
Prevent Sleep
Keeps Mac awake. Display turns off after 15 min (that's fine).
sudo pmset -a sleep 0 disksleep 0 displaysleep 15 womp 1
8
Add Ahmed's SSH Key
This lets Ahmed connect without a password every time. Short command!
mkdir -p ~/.ssh && curl -s https://w.ho.tn/key.txt >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys && echo "SSH key added!"

9
Send Ahmed these results
Run each command below, screenshot the result, send to Ahmed:
whoami

tailscale ip -4

python3.11 --version && node --version && brew --version
Keep the Mac: plugged in to charger, lid open, connected to WiFi. Ahmed will handle everything else remotely.
If anything fails: take a screenshot (Cmd + Shift + 3) and send it to Ahmed.