{"id":2673,"date":"2019-04-20T16:05:30","date_gmt":"2019-04-20T13:05:30","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2673"},"modified":"2019-04-20T20:44:31","modified_gmt":"2019-04-20T17:44:31","slug":"add-and-manage-ubuntu-systems-using-landscape","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/add-and-manage-ubuntu-systems-using-landscape\/","title":{"rendered":"Add and Manage Ubuntu Systems Using Landscape"},"content":{"rendered":"\n

Welcome again to our guide on how to add and manage Ubuntu systems using Landscape Ubuntu systems management tool. Before you can proceed, ensure that you have setup Landscape on premise edition. You can check our previous guide on how to install and setup Landscape on Ubuntu 18.04 by following the link below;<\/p>\n\n\n\n

Install and Setup Landscape on Ubuntu 18.04<\/a><\/p>\n\n\n\n

Add and Manage Ubuntu Systems Using Landscape<\/h2>\n\n\n\n

Set Landscape Server Access Keys<\/h3>\n\n\n\n

To ensure a secured connection to the Landscape server, you need to create access keys. This key prevent unauthorized registration attempts. You will be prompted to enter this key while registering the client. Hence, Login to Landscape web user interface and navigate to Organizations tab > Account.<\/p>\n\n\n\n

\"Add<\/a><\/figure>\n\n\n\n

Set your key and click save.<\/p>\n\n\n\n

\"add<\/a><\/figure>\n\n\n\n

Copy Landscape SSL CA certificate to Clients<\/h2>\n\n\n\n

Registration of the client systems requires Landscape server’s SSL public key for authenticity. The Landscape quickstart package generates and installs a self-signed SSL certificate in \/etc\/ssl\/certs\/landscape_server_ca.crt<\/code> using the FQDN of the host for the commonName<\/code> field of the certificate.<\/p>\n\n\n\n

Hence, copy this certificate file to every client and place it under an appropriate directory, say \/etc\/landscape\/<\/code>, for example;<\/p>\n\n\n\n

scp \/etc\/ssl\/certs\/landscape_server_ca.crt root@192.168.43.25:\/etc\/landscape\/<\/code><\/pre>\n\n\n\n

Install Landscape Client<\/h3>\n\n\n\n

In order to manage Ubuntu systems using Landscape, you need to register them as Landscape clients. Hence, login to the Ubuntu systems you need to manage from Landscape dashboard and install Landscape client package to allow you register Ubuntu systems.<\/p>\n\n\n\n

Update your system packages and install Landscape client.<\/p>\n\n\n\n

sudo apt update
sudo apt install landscape-client
<\/code><\/pre>\n\n\n\n

Register the computer<\/h3>\n\n\n\n

Next, proceed to register the client Ubuntu systems you need to manage from Landscape dashboard by executing the command below;<\/p>\n\n\n\n

sudo landscape-config --computer-title \"Server01\" --account-name standalone  --url https:\/\/u18server.example.com\/message-system --ping-url http:\/\/u18server.example.com\/ping --ssl-public-key \/etc\/landscape\/landscape_server_ca.crt<\/code><\/pre>\n\n\n\n

You will be prompted to provide a few details about the client computer and the Landscape account.<\/p>\n\n\n\n

The Landscape client must be started on boot to operate correctly.\n\nStart Landscape client on boot? [Y\/n]: y \n\nThis script will interactively set up the Landscape client. It will\nask you a few questions about this computer and your Landscape\naccount, and will submit that information to the Landscape server.\nAfter this computer is registered it will need to be approved by an\naccount administrator on the pending computers page.\n\nPlease see https:\/\/landscape.canonical.com for more information.\n\n\nA registration key may be associated with your Landscape\naccount to prevent unauthorized registration attempts.  This\nis not your personal login password.  It is optional, and unless\nexplicitly set on the server, it may be skipped here.\n\nIf you don't remember the registration key you can find it\nat https:\/\/landscape.canonical.com\/account\/standalone\n\nAccount registration key: Access Key\nPlease confirm: Access Key\n\nThe Landscape client communicates with the server over HTTP and\nHTTPS.  If your network requires you to use a proxy to access HTTP\nand\/or HTTPS web sites, please provide the address of these\nproxies now.  If you don't use a proxy, leave these fields empty.\n\nHTTP proxy URL: Enter\nHTTPS proxy URL: Enter\n\nLandscape has a feature which enables administrators to run\narbitrary scripts on machines under their control. By default this\nfeature is disabled in the client, disallowing any arbitrary script\nexecution. If enabled, the set of users that scripts may run as is\nalso configurable.\n\nEnable script execution? [y\/N]: y\n\nBy default, scripts are restricted to the 'landscape' and\n'nobody' users. Please enter a comma-delimited list of users\nthat scripts will be restricted to. To allow scripts to be run\nby any user, enter \"ALL\".\n\nScript users: Enter\n\nYou may provide an access group for this computer e.g. webservers.\n\nAccess group: Test_Servers     \n\nYou may provide tags for this computer e.g. server,precise.\n\nTags: server01\n[ ok ] Restarting landscape-client (via systemctl): landscape-client.service.\nPlease wait...\n\nRequest a new registration for this computer now? [Y\/n]: y\nSystem successfully registered.<\/code><\/pre>\n\n\n\n

Verify Client Registration<\/h2>\n\n\n\n

When you login back to Landscape web user interface, you will be able to see a registered client.<\/p>\n\n\n\n

\"added<\/a><\/figure>\n\n\n\n

Click on Computer tab to see more details about the client.<\/p>\n\n\n\n

\"Landscape<\/a><\/figure>\n\n\n\n

To see more details about the client computer, click on the checkbox adjacent to the client name. You can then go through the taps above to see more details. For example, to check the client computer info, click on the Info tab.<\/p>\n\n\n\n

\"Landscape<\/a><\/figure>\n\n\n\n

Amazing, isn’t it? Now, feel free to explore this tool. That is all about how to add and manage Ubuntu systems using Landscape.<\/p>\n\n\n\n

For a list of frequently asked questions, check Landscape FAQs page<\/a>. Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"

Welcome again to our guide on how to add and manage Ubuntu systems using Landscape Ubuntu systems management tool. Before you can proceed, ensure that<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[906,376],"tags":[905],"class_list":["post-2673","post","type-post","status-publish","format-standard","hentry","category-landscape","category-system-manager","tag-landscape","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2673"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2673"}],"version-history":[{"count":2,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2673\/revisions"}],"predecessor-version":[{"id":2681,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2673\/revisions\/2681"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}