|
| 1 | +# Setup Day — Student FAQ |
| 2 | + |
| 3 | +Something not working? Try the fix below. If you've tried it and restarted your computer and it still doesn't work, raise your hand. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## macOS |
| 8 | + |
| 9 | +### "I see `brew: command not found`" (or `pyenv: command not found`, or `direnv: command not found`) |
| 10 | + |
| 11 | +If you have an M1 or M2 Mac (Apple Silicon), Homebrew installs to a different location that your terminal doesn't know about yet. |
| 12 | + |
| 13 | +Fix — run these two commands: |
| 14 | + |
| 15 | +```bash |
| 16 | +echo 'eval "$(/opt/homebrew/bin/brew shellenv 2> /dev/null)"' >> ~/.zprofile |
| 17 | +source ~/.zprofile && exec zsh |
| 18 | +``` |
| 19 | + |
| 20 | +Then try the original command again. |
| 21 | + |
| 22 | +--- |
| 23 | + |
| 24 | +### "I see a permissions error about directories not being writable" |
| 25 | + |
| 26 | +```bash |
| 27 | +sudo chown -R $(whoami) /usr/local/share/zsh /usr/local/share/zsh/site-functions |
| 28 | +``` |
| 29 | + |
| 30 | +Then restart your terminal and try again. |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +### "pyenv install failed with BUILD FAILED" |
| 35 | + |
| 36 | +Your Xcode developer tools need reinstalling: |
| 37 | + |
| 38 | +```bash |
| 39 | +sudo rm -rf /Library/Developer/CommandLineTools |
| 40 | +xcode-select --install |
| 41 | +``` |
| 42 | + |
| 43 | +Wait for the install to finish (it takes a few minutes), then retry the `pyenv install` command. |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## Windows / WSL |
| 48 | + |
| 49 | +### "WSL install gave me a 403 Forbidden error" |
| 50 | + |
| 51 | +Your WiFi network is blocking the Microsoft download. Try either: |
| 52 | + |
| 53 | +- Connect to a mobile hotspot and retry |
| 54 | +- Run `wsl --install --online` instead |
| 55 | +- Install Ubuntu from the Microsoft Store directly |
| 56 | + |
| 57 | +--- |
| 58 | + |
| 59 | +### "Ubuntu/WSL is frozen or very slow" |
| 60 | + |
| 61 | +Open **Command Prompt** (not Ubuntu) and run: |
| 62 | + |
| 63 | +``` |
| 64 | +wsl --shutdown |
| 65 | +``` |
| 66 | + |
| 67 | +Then close all Ubuntu windows and reopen them. This is the correct way to restart WSL. Restarting Windows also works but takes much longer. |
| 68 | + |
| 69 | +--- |
| 70 | + |
| 71 | +### "The `code` command doesn't work in Ubuntu" |
| 72 | + |
| 73 | +Restart your computer. This almost always fixes it. |
| 74 | + |
| 75 | +--- |
| 76 | + |
| 77 | +### "I forgot my Ubuntu password" |
| 78 | + |
| 79 | +Ask a teacher — they can reset it for you. |
| 80 | + |
| 81 | +--- |
| 82 | + |
| 83 | +### "My CMD commands don't work / I see access errors" |
| 84 | + |
| 85 | +Right-click on Command Prompt and choose **"Run as administrator"**. |
| 86 | + |
| 87 | +--- |
| 88 | + |
| 89 | +## GCP |
| 90 | + |
| 91 | +### "I accidentally created an Organization when making my GCP project" |
| 92 | + |
| 93 | +Create a new GCP project: |
| 94 | + |
| 95 | +1. Go to the [Cloud Console](https://console.cloud.google.com/) |
| 96 | +2. Click the project dropdown at the top → **New Project** |
| 97 | +3. Give it a name (e.g. `Wagon Bootcamp 2`) |
| 98 | +4. **Leave the Organization field as "No organization"** |
| 99 | +5. Click Create |
| 100 | + |
| 101 | +Then continue from the step where you set your project in the terminal: |
| 102 | + |
| 103 | +```bash |
| 104 | +gcloud config set project YOUR_NEW_PROJECT_ID |
| 105 | +``` |
| 106 | + |
| 107 | +--- |
| 108 | + |
| 109 | +### "My gcloud commands return a 403 error" |
| 110 | + |
| 111 | +Run the authentication command again: |
| 112 | + |
| 113 | +```bash |
| 114 | +gcloud auth application-default login |
| 115 | +``` |
| 116 | + |
| 117 | +Make sure you log in with the **same Google account** that owns your GCP project (your personal Gmail, not a work or school account). |
| 118 | + |
| 119 | +Also check your Project ID is set correctly: |
| 120 | + |
| 121 | +```bash |
| 122 | +gcloud config list project |
| 123 | +``` |
| 124 | + |
| 125 | +The Project ID looks like `wagon-bootcamp-123456` — it's different from the project name you chose. |
| 126 | + |
| 127 | +--- |
| 128 | + |
| 129 | +### "I don't know my Project ID" |
| 130 | + |
| 131 | +```bash |
| 132 | +gcloud config list project |
| 133 | +``` |
| 134 | + |
| 135 | +Or go to [console.cloud.google.com](https://console.cloud.google.com/) — the Project ID is shown below the project name in the dashboard (format: `your-project-name-123456`). |
| 136 | + |
| 137 | +--- |
| 138 | + |
| 139 | +## SSH |
| 140 | + |
| 141 | +### "I set a passphrase but now I've forgotten it" |
| 142 | + |
| 143 | +You'll need to delete your SSH key and create a new one without a passphrase. Ask a teacher for help — they'll walk you through the three commands needed. |
| 144 | + |
| 145 | +--- |
| 146 | + |
| 147 | +## General |
| 148 | + |
| 149 | +### "I don't know if a step worked" |
| 150 | + |
| 151 | +Run the command shown in the guide. If you see no error message (just a new prompt `$`), it worked. If you see a line starting with `error:` or `fatal:` or `zsh: command not found`, it didn't. |
| 152 | + |
| 153 | +### "When should I ask for help?" |
| 154 | + |
| 155 | +If you've tried the fix above, restarted your computer, and it still doesn't work — raise your hand. Don't spend more than 5 minutes on the same error. |
0 commit comments