Ubuntu – How to install Landscape for personal use
landscape
I'd like to manage my home machines and laptops with Landscape, how can I do this?
Best Answer
For Ubuntu 16.04 or 14.04 LTS
You can install Landscape directly on a machine running Ubuntu 14.04 LTS, this is called "Landscape On Premises." It is free for up to 10 physical (or virtual) machines and 50 containers:
Deploying a single server
WARNING: landscape-quickstart modifies apache configuration files, DO NOT DO THIS ON AN EXISTING SERVER INSTALLATION without understanding what you are getting into.
Just install the Landscape Quickstart package:
Check here for changes to the below instructions:
Where hostname.example.com is the output of hostname -f on that machine, or just hostname if that fails to resolve.
Using Landscape
You should then see the web UI after filling in your name and contact details:
Click on the link highlighted to add client machines:
Follow those instructions on the client you want to join to Landscape. Note the following line:
sudo landscape-config --computer-title "My Web Server" --account-name standalone --url https://<servername>/message-system --ping-url http://<servername>/ping
You can customize the title and so forth for each machine. See the landscape-config man page for more information.
After you type in the landscape-config command the client will ask you some questions, those are optional, you can just hit Enter until the client restarts, then you can accept the client in the web UI.
Registering clients with a self signed certificate:
The quickstart package installs a self-signed certificate that is generated on-the-fly.
Grab this file from the server: /etc/ssl/certs/landscape_server_ca.crt
Copy it somewhere on the client, for example, /etc/landscape/landscape_server_ca.crt
Change /etc/landscape/client.conf to include this line, pointing at the file you just copied: ssl_public_key = /etc/landscape/landscape_server_ca.crt
Then try to register again. (Thanks to panlinux for figuring this out)
Unfortunately, the easiest for now is to access Landscape on the ip address given. You can use something like sshuttle or ssh -D to get access to an environment quite easily with almost no setup.
If you need to create an external IP, the IP address you create needs to be accessible to all the nodes, and the outside.Then you can make a change to the Landscape juju environment like this:
export JUJU_HOME=~/.cloud-install/juju
juju set apache2 servername=<hostname-you-want>
Follow juju debug-log and you should see the charms reacting to the change and updating the root_url correctly.
Once you have access to Landscape, you can continue with installing the OpenStack cloud on the remaining 3 machines. As it is from your description, it sounds like you have this right now:
Machine 1: MAAS
Machine 2: Landscape
Machines 3-5: unused
When you login to Landscape, you will need to continue following the instructions on the page you linked to.
The rc file you sourced is probably incorrect, or the api service isn't running. Did you copy and paste from what landscape offered you in your user settings page?
Check the process listing on the landscape server and look for the api process. Also check the server logs in /var/log/landscape-server/.
Best Answer
For Ubuntu 16.04 or 14.04 LTS
You can install Landscape directly on a machine running Ubuntu 14.04 LTS, this is called "Landscape On Premises." It is free for up to 10 physical (or virtual) machines and 50 containers:
Deploying a single server
WARNING: landscape-quickstart modifies apache configuration files, DO NOT DO THIS ON AN EXISTING SERVER INSTALLATION without understanding what you are getting into.
Just install the Landscape Quickstart package: Check here for changes to the below instructions:
After it finishes, access it with a browser like
https://hostname.example.com/
Where
hostname.example.com
is the output ofhostname -f
on that machine, or justhostname
if that fails to resolve.Using Landscape
You should then see the web UI after filling in your name and contact details:
Click on the link highlighted to add client machines:
Follow those instructions on the client you want to join to Landscape. Note the following line:
You can customize the title and so forth for each machine. See the landscape-config man page for more information.
After you type in the
landscape-config
command the client will ask you some questions, those are optional, you can just hit Enter until the client restarts, then you can accept the client in the web UI.Registering clients with a self signed certificate:
The quickstart package installs a self-signed certificate that is generated on-the-fly.
/etc/ssl/certs/landscape_server_ca.crt
/etc/landscape/landscape_server_ca.crt
/etc/landscape/client.conf
to include this line, pointing at the file you just copied:ssl_public_key = /etc/landscape/landscape_server_ca.crt
Then try to register again. (Thanks to panlinux for figuring this out)
Further Reading: