There are several basic tools associated with Landscape. But you need to know how to set up and register a client. You'll then learn how easy it is to monitor registered client systems.
When you register with Landscape (even with a trial subscription), you should receive an e-mail confirmation, with an embedded link. Navigate to the associated URL and follow the instructions. Remember any included passphrase, as you'll need it when logging into Landscape, as shown in Figure 8-10. The passphrase used here can and probably should be different from the registration password. You'll also need the registration password when registering Landscape systems.
▼ NOTE Access to Landscape is available with a Canonical support subscription. A 60-day trial may be available from www.canonical.com/landscape/register. For more information, see www.canonical .com/projects/landscape.
To register an Ubuntu client with Landscape, you need to update the associated /etc/ apt/sources.list configuration file with the appropriate repository. For example, you would add the following line for the Hardy Heron release:
If you're working with a different release, substitute for hardy accordingly.
While it's not absolutely required, you should download the appropriate GPG (GNU Privacy Guard) key with the following command:
$ gpg --keyserver-options no-http-proxy --keyserver keyserver.ubuntu.com \ --recv-key C605E80D
If there is a proxy server somewhere between the local network and the Internet, replace no-http-proxy with http-proxy, and you'll be prompted for such as needed. If you don't acquire the GPG key, some sort of "GPG error" and "Warning" messages will appear.
If the download is successful, you'll see a message about a public key associated with the "Landscape Development Team," along with several keys in the current user's home directory, in the .gnupg/ subdirectory. You can then make the key available to the apt-* commands as follows:
$ gpg --armor --export C605E80D | sudo apt-key add -The message I see when this command is successful is
Now you can update the local repository cache: $ sudo apt-get update And install the Landscape client package:
$ sudo apt-get install landscape-client
The command installs a number of dependent packages. I tried it on three different Hardy Heron systems; between 8 and 36 were installed from my configuration to help enable remote administration. In the first case, most of the dependent packages were already installed. In either case, expect this command to take some time to download and install associated packages.
Finally, the following command starts the process of registering the client. You'll be prompted for required information. The computer title can be a descriptive human-readable name; my entries are in boldface:
$ sudo landscape-config
The Landscape client must be started on boot to operate correctly. Start Landscape client on boot? (Y/n): y Starting Landscape client: landscape-client
This script will interactively set up the Landscape client. It will ask you a few questions about this computer and your Landscape account, and will submit that information to the Landscape server.
After this computer is registered it will need to be approved by an account administrator on the pending computers page.
Please see https://landscape.canonical.com for more information.
The computer title you provide will be used to represent this computer in the Landscape user interface. It's important to use a title that will allow the system to be easily recognized when it appears on the pending computers page.
This computer's title: Office Desktop Computer
You'll also need the account name, the registration password (which is the passphrase described earlier), any applicable proxy server information. While Landscape allows script management of clients from the web-based interface, it doesn't normally allow it from the client. This should be enabled on systems controlled by administrators:
Enable script execution? [y/N] y
Be aware that this information is saved in clear text in the /etc/landscape/client.conf configuration file.
If you enable script execution, the landscape-config utility prompts for users with appropriate permissions:
Script users: michael,donna
Finally, the landscape-config utility prompts you to request a new registration for this computer:
Request a new registration for this computer now? (Y/n): y Please wait... System successfully registered.
Next, you can confirm the connection from your administrative Landscape account by navigating to https://landscape.canonical.com/dashboard. Log into the account and click Pending Computers. The options are intuitive and are available to subscribers.
The administrative power of Landscape comes from the way computers can be configured. The standard Landscape screen is shown in Figure 8-11, and the different monitoring options are shown at the bottom of the screen.
Info Basic information for each configured system is included in the Info screen.
History User and group configuration actions associated with the local system are listed in the History screen.
Hardware A list of detected hardware devices are shown in the Hardware screen. More information based on how the hardware was detected is available by hyperlink. Similar information is available from the client command line with the hal-device command.
Monitoring The Monitoring screen includes graphical information on RAM, swap space, load, disk usage, and temperature. Similar information is available from the client command line with the top and df commands.
Scripts The Scripts screen allows you to configure and run a script, based on the shell interpreter of your choice, run as the user of your choice. As Landscape provides an administrative interface, scripts can even be run as the root user.
Processes The Processes screen displays all currently running processes. Similar information is available from the client command line with variations on the ps x command.
Packages The Packages screen supports lists of currently installed and upgradable packages. A list of currently installed packages can be shown with the dpkg -l command; a list of upgradeable packages is available from the apt-get upgrade command.
Users The Users screen supports management of users and groups. The options available from this screen are effective front ends to user management commands such as useradd, usermod, groupadd, and groupmod.
Was this article helpful?