Skip to content

Commit

Permalink
docs: Simplify documentation table of contents (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell authored Dec 12, 2023
2 parents a7e5bdd + bd8d76e commit 7712543
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
23 changes: 18 additions & 5 deletions docs/02-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

This guide will show you how to install Ubuntu Pro For Windows for local development and testing.

## Requirements
## Install Ubuntu Pro For Windows from scratch

### Requirements
- A Windows machine with access to the internet
- Appx from the Microsoft Store:
- Windows Subsystem For Linux
- Either Ubuntu, Ubuntu 22.04, or Ubuntu (Preview)
- The Windows Subsystem for Windows optional feature enabled

## Download
### Download
<!-- TODO: Update when we change were artifacts are hosted -->
1. Go to the [repository actions page](https://github.com/canonical/ubuntu-pro-for-windows/actions/workflows/qa-azure.yaml?query=branch%3Amain+).
2. Click the latest successful workflow run.
Expand All @@ -20,7 +22,7 @@ This guide will show you how to install Ubuntu Pro For Windows for local develop

Notice that, for the step above, there is also an alternative version of the MSIX bundle enabled for end-to-end testing. Most likely, that's not what you want to download.

## Install the Windows agent
### Install the Windows agent
This is the Windows-side agent that manages the distros.
1. Uninstall Ubuntu Pro For Windows if you had installed previously:
```powershell
Expand All @@ -33,7 +35,7 @@ This is the Windows-side agent that manages the distros.
6. The Firewall may ask for an exception. Allow it.
7. The GUI should show up. You’re done.
## Install the WSL Pro Service
### Install the WSL Pro Service
This is the Linux-side component that talks to the agent. Choose one or more distros Jammy or greater, and follow the instructions.
1. Uninstall the WSL-Pro-Service from your distro if you had it installed previously:
```bash
Expand All @@ -52,4 +54,15 @@ This is the Linux-side component that talks to the agent. Choose one or more dis
6. Ensure it works via systemd:
```bash
systemctl status wsl-pro.service
```
```
## Reset Ubuntu Pro for Windows back to factory settings
You can reset Ubuntu Pro For Windows to factory settings following these steps:
1. Uninstall the package and shut down WSL:
```powershell
Get-AppxPackage -Name "CanonicalGroupLimited.UbuntuProForWindows" | Remove-AppxPackage`
wsl --shutdown
```
2. Remove registry key `HKEY_CURRENT_USER\Software\Canonical\UbuntuPro`.
3. Install the package again (see the section on [how to install](./02-install.md)).
4. You're done. Next time you start the GUI it'll be like a fresh install.
11 changes: 0 additions & 11 deletions docs/03-restart.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,3 @@ This is the simple one. If you're not in a hurry to see the configuration update
3. Wait a minute.
4. Click on "Click to restart it".
8. Start the distro, or distros you installed WSL-Pro-Service in.
# How to reset Ubuntu Pro for Windows back to factory settings
You can reset Ubuntu Pro For Windows to factory settings following these steps:
1. Uninstall the package and shut down WSL:
```powershell
Get-AppxPackage -Name "CanonicalGroupLimited.UbuntuProForWindows" | Remove-AppxPackage`
wsl --shutdown
```
2. Remove registry key `HKEY_CURRENT_USER\Software\Canonical\UbuntuPro`.
3. Install the package again (see the section on [how to install](./02-install.md)).
4. You're done. Next time you start the GUI it'll be like a fresh install.
10 changes: 5 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Thinking about using Ubuntu Pro for Windows for your next project? Get in touch!
```{toctree}
:hidden:
How to install Ubuntu Pro for Windows <02-install>
How to restart Ubuntu Pro For Windows <03-restart>
How to auto-attach distros to Ubuntu Pro <04-enable-pro>
How to auto-register distros to Landscape <05-attach-landscape>
How to access the logs <06-access-the-logs.md>
Install Ubuntu Pro for Windows <02-install>
Restart Ubuntu Pro For Windows <03-restart>
Auto-attach distros to Ubuntu Pro <04-enable-pro>
Auto-register distros to Landscape <05-attach-landscape>
Access the logs <06-access-the-logs.md>
Windows Agent command line interface <07-windows-agent-command-line-reference>
WSL Pro Service command line interface <08-wsl-pro-service-command-line-reference>
```

0 comments on commit 7712543

Please sign in to comment.