eecs280staff / tutorials

Tools and tutorials
https://eecs280staff.github.io/tutorials/
Other
5 stars 4 forks source link

Reinstall only Ubuntu #169

Closed jamesjuett closed 5 months ago

jamesjuett commented 5 months ago

This PR fixes #168 by instructing students to only uninstall Ubuntu.

The uninstall and install commands recommended in the Microsoft resources are unlikely to change, so they are directly encoded into the tutorial (rather than a link to an external page - there also isn't an external page I could find that concisely shows the uninstall + install together).

Verification I worked through this process on a spare Windows machine.

  1. Start with no WSL installed at all.
  2. Install with wsl --install from administrator PowerShell.
  3. Restart computer as prompted.
  4. Open Ubuntu terminal. It prompts to create a user account. Close the terminal without doing that 😈.
  5. Open Ubuntu terminal. whoami yields root.
  6. Open PowerShell as administrator. wsl --unregister Ubuntu. (Side note, I had an Ubuntu terminal open. It disappeared.)
  7. wsl --install -d Ubuntu from same PowerShell
  8. Output matches the example in this PR, including prompt to create user account. (The PowerShell terminal morphs into bash.)
  9. Double check whoami. Also check account has sudo privileges. Also check via new Ubuntu terminal. All is good.
github-actions[bot] commented 5 months ago

The spec from this PR is available at https://preview.sesh.rs/previews/eecs280staff/tutorials/169/.

(Available until Sat Mar 09 2024.)