landscape-config(1)
π 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 theSIGUSR1signal 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 ishttps.--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 between0and1, 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 code0instead of2if 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-sentinstead. This option is getting removed in the26.04release. It exits with code0(success) if the client has sent a registration request, otherwise it returns5. It displays registration sent info. (NOTE: use--actively-registeredto detect if registration has actually been accepted server-side.)--registration-sentβ exits with code0(success) if the client has sent a registration request, otherwise returns5. Displays registration sent info. (NOTE: use--actively-registeredto detect if registration has been accepted server-side.)--actively-registeredβ exits with code0(success) if the client is registered, otherwise returns5. 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-clienthas 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
- ubuntu resolute: landscape-client 26.02.2-0ubuntu1
- ubuntu stonking: landscape-client 26.02.2-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms