Landscape is a tool made by Canonical that you can use to manage your Ubuntu Servers. In this tutorial, I’ll walk you through getting it set up on your own server, as well as adding a client for it to manage. It’s an awesome utility, and easy to install.
Setting up the Server
Add repository for Landscape
sudo add-apt-repository --update ppa:landscape/19.10
Install Landscape Quickstart package
sudo apt install landscape-server-quickstart
Note: This may take a while to finish
Implement hostname work-around (if you don’t have a domain)
sudo nano /etc/hosts
Add:
IP-Address landscape-server
For example:
172.105.21.104 landscape-server
Setting up a client
Update repository index
sudo apt install landscape-client
Install Landscape Client
sudo apt install landscape-client
Join the client server to the Landscape server
sudo landscape-config --computer-title "Name/Description of server" --account-name standalone --url https://<IP Address of Landscape Server>/message-system --ping-url http://<IP Address of Landscape Server>/ping
Note: If you get an SSL error, follow the next section and then try this again.
Install client cert
Note: This is only necessary if you get SSL errors Copy the SSL certificate from the server down to the client:
scp user@<IP Address of Landscape Server>:/etc/ssl/certs/landscape_server_ca.crt .
On the client, change ownership of the certificate file:
sudo chown root:root landscape_server_ca.crt
Move the file to the appropriate destination:
sudo mv landscape_server_ca.crt /etc/landscape
Edit
sudo nano /etc/landscape/client.conf
At the end, add:
ssl_public_key = /etc/landscape/landscape_server_ca.crt