From 71a3f2d9277bf79f767783430d64da01068693b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Thu, 26 Oct 2023 13:04:29 +0200 Subject: [PATCH] Update documentation --- docs/04-attach-landscape.md | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/docs/04-attach-landscape.md b/docs/04-attach-landscape.md index 107ef6bfa..e81ddea73 100644 --- a/docs/04-attach-landscape.md +++ b/docs/04-attach-landscape.md @@ -3,24 +3,29 @@ You can use a private Landscape instance (different from [landscape.canonical.co 1. Press Windows+R. 2. Write `regedit.exe` and enter. 3. Go to `HKEY_CURRENT_USER\Software\Canonical\UbuntuPro`. -4. There are two relevant fields: - - `LandscapeAgentURL` should contain the URL where the Landscape Host-agent server is hosted. - - `LandscapeClientConfig` should contain the contents of the YAML file with the settings, such as the [example from the Landscape repository](https://github.com/canonical/landscape-client/blob/master/example.conf). -5. To edit any of the fields, right-click and Edit. -6. If you need more than one line, delete the field and create a new one with the same name, and type `Multi-String Value`. -7. The changes will take effect next time you start the machine. If you want them to be applied now, follow the next steps. Otherwise, you're done. All new distros will automatically attach to Landscape. -8. Stop the agent: +4. There is one relevant field: + - `LandscapeClientConfig` should contain the contents of the ini file with the settings. + ```ini + [host] + url= The URL of the Landscape hostagent API + + [client] + # The configuration for the WSL client. See an example here + # https://github.com/canonical/landscape-client/blob/master/example.conf + ``` +5. The changes will take effect next time you start the machine. If you want them to be applied now, follow the next steps. Otherwise, you're done. All new distros will automatically attach to Landscape. +6. Stop the agent: ```powershell Get-Process -Name Ubuntu-Pro-Agent | Stop-Process ``` -9. Start the agent again: +7. Start the agent again: 1. Open the start Menu and search for "Ubuntu Pro For Windows". 2. The GUI should start. 3. Wait a minute. 4. Click on "Click to restart it". -10. Stop the distro you installed WSL-Pro-Service in: +8. Stop the distro you installed WSL-Pro-Service in: ```powershell wsl --terminate DISTRO_NAME ``` -11. Start the distro you installed WSL-Pro-Service in. -12. You should see a new "pending computer authorisation" in your Landscape dashboard. \ No newline at end of file +9. Start the distro you installed WSL-Pro-Service in. +10. You should see a new "pending computer authorisation" in your Landscape dashboard. \ No newline at end of file