From d8ba340285e45f5630684ecfa3772816747bc49c 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 | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/docs/04-attach-landscape.md b/docs/04-attach-landscape.md index 107ef6bfa..7f6c53447 100644 --- a/docs/04-attach-landscape.md +++ b/docs/04-attach-landscape.md @@ -1,26 +1,13 @@ # How to auto-register WSL distros to Landscape with UP4W You can use a private Landscape instance (different from [landscape.canonical.com](https://landscape.canonical.com)). It must be over HTTP, as using certificates is not yet supported. To do so, follow these steps: -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: - ```powershell - Get-Process -Name Ubuntu-Pro-Agent | Stop-Process +1. Find registry key `HKEY_CURRENT_USER\Software\Canonical\UbuntuPro`, field `LandscapeConfig`. +2. Copy the contents of the `landscape.conf` file with the Landscape 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 ``` -9. 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: - ```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 +3. The changes will take effect next time you start Ubuntu Pro For Windows. All new distros will automatically become landscape-enabled. If you want them to be applied now, follow the steps on how to restart Ubuntu Pro For Windows. Otherwise, you're done.