landscape-config(1)

πŸ“¦
version 26.02.2 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

landscape-config β€” the iconic little tool that configures your Landscape management client. This is section 1 of the manual, bestie, we're in the big leagues πŸ’…


🌸 SYNOPSIS 🌸

landscape-config [options]

✨ DESCRIPTION ✨

okay so before you can even use landscape-client, you gotta feed it your account and computer info. That stuff gets shipped off to the Landscape server the moment the client connects, so it's giving ✨registration era✨. And the best part? You can do the registration with or without user interaction β€” your choice, main character.

If you just run the landscape-config program with no arguments at all? It starts up and prompts you for everything it needs to run the client. Cute, low effort, we love. But you can also hand it command-line arguments (all detailed down below πŸ‘‡) to pre-set your default answers.

You'll get told whether the registration ate or flopped πŸ’€ β€” success or error, no ambiguity. When registration is successful, Landscape is configured and running on your system, periodt. Errors can happen if you gave it wrong registration details, or if the network is being a whole mess. And in that second case? The client doesn't give up β€” it just keeps trying to complete the registration in the background. Resilient queen behavior 🫢


πŸ‘‘ OPTIONS πŸ‘‘

  • --version β€” shows the program's version number and then dips out.
  • -h, --help β€” shows this help message and exits.
  • -c FILE, --config=FILE β€” pull the config from this file. Heads up: any command line options you pass will override settings from the file. Default is '/etc/landscape/client.conf'.
  • -d PATH, --data-path=PATH β€” the directory where data files live. Default: '/var/lib/landscape/client'.
  • -q, --quiet β€” do not log to standard output.
  • -l FILE, --log-dir=FILE β€” the directory to write log files into. Default: '/var/log/landscape'.
  • --log-level=LOG_LEVEL β€” pick one of 'debug', 'info', 'warning', 'error' or 'critical'. Default: 'info'.
  • --ignore-sigint β€” ignore interrupt signals.
  • --ignore-sigusr1 β€” ignore the SIGUSR1 signal that rotates logs.
  • -a NAME, --account-name=NAME β€” the account this computer belongs to.
  • -p KEY, --registration-key=KEY β€” the account-wide key used for registering clients.
  • -t TITLE, --computer-title=TITLE β€” the title of this computer.
  • -u URL, --url=URL β€” the server URL to connect to. Default: 'https://landscape.canonical.com/message-system'.
  • -k SSL_PUBLIC_KEY, --ssl-public-key=SSL_PUBLIC_KEY β€” the public SSL key, which is a CA Certificate used to verify the server. Only used if the server URL you gave is https.
  • --exchange-interval=INTERVAL β€” how many seconds between server exchanges. Default: 900.
  • --urgent-exchange-interval=INTERVAL β€” how many seconds between urgent server exchanges. Default: 60.
  • --ping-interval=INTERVAL β€” how many seconds between pings. Default: 30.
  • --ping-url=PING_URL β€” the URL used to perform lightweight exchange initiation. Default: 'http://landscape.canonical.com/ping'.
  • --package-monitor-interval=PACKAGE_MONITOR_INTERVAL β€” the interval between package monitor runs. Default: 1800.
  • --snap-monitor-interval=SNAP_MONITOR_INTERVAL β€” the interval between snap monitor runs. Default: 1800.
  • --apt-update-interval=APT_UPDATE_INTERVAL β€” the interval between apt update runs. Default: 21600.
  • --flush-interval β€” the number of seconds between flushes to disk for persistent data.
  • --stagger-launch=STAGGER_RATIO β€” a ratio, somewhere between 0 and 1, used to stagger landscape's various tasks.
  • --http-proxy=URL β€” the URL of the HTTP proxy, if you need one.
  • --https-proxy=URL β€” the URL of the HTTPS proxy, if you need one.
  • --access-group β€” the suggested access group for this computer.
  • --tags=TAGS β€” a comma separated list of tag names to send to the server.
  • --import=FILENAME_OR_URL β€” a filename or URL to import configuration from. Imported options behave as if they were passed in on the command line, except real command line options take precedence.
  • --script-users=USERS β€” a comma-separated list of users allowed to run scripts. Wanna let any user run them? Just enter: ALL.
  • --script-tempdir=SCRIPT_TEMPDIR β€” the working directory to use for script executions. It must have read, write, and exec privileges for any script users.
  • --include-manager-plugins=PLUGINS β€” a comma-separated list of manager plugins to load explicitly.
  • --manage-sources-list-d [MANAGE_SOURCES_LIST_D] β€” repository profiles manage the files in /etc/apt/sources.list.d. Default: true.
  • -n, --no-start β€” don't start the client automatically.
  • --ok-no-register β€” return exit code 0 instead of 2 if the client can't be registered.
  • --silent β€” run it with no manual interaction at all.
  • --disable β€” stop running clients and disable start at boot.
  • --init β€” set up the client directories structure and exit.
  • --is-registered β€” DEPRECATED, bestie, listen. It's the same as --registration-sent, so just use --registration-sent instead. This option is getting removed in the 26.04 release. It exits with code 0 (success) if the client has sent a registration request, otherwise it returns 5. It displays registration sent info. (NOTE: use --actively-registered to detect if registration has actually been accepted server-side.)
  • --registration-sent β€” exits with code 0 (success) if the client has sent a registration request, otherwise returns 5. Displays registration sent info. (NOTE: use --actively-registered to detect if registration has been accepted server-side.)
  • --actively-registered β€” exits with code 0 (success) if the client is registered, otherwise returns 5. Displays registration info.
  • --show β€” output all configuration data as plain text and exit.
  • --show-json β€” output all configuration data as JSON and exit.

☁️ CLOUD ☁️

Landscape has some cloud features that only unlock when the EC2 or UEC machine instance was started using Landscape, and the AMI is one of the official ones provided in the Web user interface. We call these instances "Landscape enabled" πŸ’« because they come with a pre-configured landscape-client already installed inside them, which automatically registers the running instance with Landscape the second it starts up. Plug and play, no notes.

You can deploy your own AMI, but if you want that instance to become "Landscape managed", you gotta take a few steps:

  • make sure the cloud is created in Landscape
  • add "CLOUD=1" to /etc/default/landscape-client
  • make sure the client is configured to start at boot (i.e., the /etc/default/landscape-client has the line "RUN=1")

There's no need to further configure the /etc/landscape/client.conf file with details like account or key, because when you're in cloud mode the client discovers all of that itself. Self-sufficient icon behavior, we stan 🌈

And you can dodge this whole thing entirely if you just re-bundle the AMIs we provide β€” landscape-client is already configured and prepared for the cloud in them. Easiest slay of your life ✨


πŸŽ€ EXAMPLES πŸŽ€

Register a machine for the first time, or reconfigure an already registered machine, interactively. Command line parameters suppress interaction for provided values.

landscape-config

Register a machine for the first time, or reconfigure an already registered machine, without requiring user interaction. The client will be configured to start on boot automatically:

landscape-config --silent -a account-name -p secret -t `hostname`

Register a machine with the script execution plugin enabled, without requiring user interaction:

landscape-config --silent -a account-name -p secret -t `hostname` --script-users nobody,landscape,root

Register a machine with some tags:

landscape-config --silent -a account-name -p secret -t `hostname` --tags=server,www

To disable a client, stopping current instances and disabling start at bootup:

landscape-config --disable

πŸ¦‹ SEE ALSO πŸ¦‹

landscape-client (1)


πŸ’œ AUTHOR πŸ’œ

Landscape Development Team <landscape-team@canonical.com>


okay that's the whole page, bestie!! 🫢 this was landscape-config(1) from the Landscape crew, and it's dated 25 November 2025 β€” go forth and register something iconic πŸ’…βœ¨

πŸ“¦ where this page comes from