版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明 (http://blog.csdn.net/quqi99)

Landscape is used for manage your Ubuntu Cluster remotely. You can install Landscape directly on a machine running Xenial (Ubuntu 16.04), this is called “Landscape On Premises.” It is free for up to 10 physical machines and 10 more virtual machines for a total of 20.

Install Landscape Server

; refer https://askubuntu.com/questions/549809/how-do-i-install-landscape-for-personal-use
sudo ufw disable
sudo add-apt-repository ppa:landscape/17.03
sudo apt update
sudo apt install landscape-server-quickstart
; register the landscape account using text based web brower, or visit 'https://<server-hostname>'
sudo apt install links
links https://<server-hostname>

Register Landscape Clients

; now register ubuntu node
; copy /etc/landscape/landscape_server.pem from landscape server to every ubuntu nodes
sudo nano /etc/landscape/client.conf
  ssl_public_key = /etc/landscape/landscape_server.pem
sudo apt install landscape-client
sudo landscape-config --computer-title "node2" --account-name standalone  --url https://xenial/message-system --ping-url http://xenial/ping --ok-no-register --silent
; then accept this node in GUI page

Customized Installation for Landscape by Preseed

1, Prepare preseed.cfg and a customized script lds.sh

export DEBIAN_FRONTEND=noninteractive
apt-get install -y landscape-client
landscape-client --daemon --pid-file /run/landscape.pid
landscape-config --computer-title "node2" --account-name standalone  --url https://xenial/message-system --ping-url http://xenial/ping --ok-no-register --silent --http-proxy PROXY-URL --https-proxy PROXY-URL
kill $(cat /run/landscape.pid)

2, Use ‘python -m SimpleHTTPServer 8080’ to setup web server for them

3, After selecting language press F6 at installer welcome screen

4, Edit boot command and replace “file=/cdrom/preseed/ubuntu-server.seed” with “preseed/url=http://IP/preseed.cfg

5, Press Enter and complete installation

Appendix - How to Create Certificate

; above /etc/landscape/landscape_server.pem is created automatically by landscape-server-quickstart, you can also do it by hand.
; create your own CA (Certificate Authority), then we will have ./demoCA/private/cakey.pem
; refer https://help.landscape.canonical.com/LDS/SSL
/usr/lib/ssl/misc/CA.pl -newca
; generate an SSL certificate signed by your new CA, then we will have newkey.pem
/usr/lib/ssl/misc/CA.pl -newreq-nodes
; sign your newly created SSL certificate with your newly created CA, then we will have newcert.pem
/usr/lib/ssl/misc/CA.pl -signreq
; install the files to Landscape
sudo mv newcert.pem /etc/ssl/certs/landscape.pem
sudo mv newkey.pem /etc/ssl/private/landscape.key
sudo cp demoCA/cacert.pem /etc/ssl/certs/landscape_server_ca.crt
; make Landscape Clients trust the newly created CA
copy /etc/ssl/certs/landscape_server_ca.crt from the LDS server to the client's directory /usr/local/share/ca-certificates/ and run 'sudo update-ca-certificates'.
; adding the certificate file to /etc/landscape/client.conf
ssl_public_key = /usr/local/share/ca-certificates/landscape_server_ca.crt

Try Ubuntu Landscape on Xenial (by quqi99)的更多相关文章

  1. Ubuntu 16.04 LAMP server 指南 - 配置 Apache2.4,PHP7,和MariaDB(而不是MySQL)

    翻译自:https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-16-04-lamp/ 昨天在虚 ...

  2. Ubuntu 16.04 LTS发布

    [Ubuntu 16.04 LTS发布]Ubuntu 16.04 LTS 发布日期已正式确定为 2016 年 4 月 21 日,代号为 Xenial Xerus.Ubuntu16.04 将是非常受欢迎 ...

  3. Bay Trail平板安装Ubuntu ThinkPad 8(20BNA00RCD)

    首先说下没搞定的事项: 1,grub不能启动w10 2,ubuntu不能检测到无线网卡硬件 3,ubuntu更新软件和语言支持时,unpacking文件时经常都会发生卡死(怀疑是emmc驱动的问题) ...

  4. 将Ubuntu 15.10升级到Ubuntu 16.04

    Ubuntu 16.04 LTS 代号为 Xenial Xerus,其最终版将于 2016 年 4 月 21 日正式发布,Ubuntu16.04 将是非常受欢迎的开源操作系统 Ubuntu 的第 6 ...

  5. virtualbox 安装ubuntu

    1. 下载已经安装好的ubuntu的virtualbox的vdi 下载地址: http://www.osboxes.org/ubuntu/ ubuntu 16.04 Xenial VirtualBox ...

  6. Ubuntu 16.04 LTS Final Beta

    期待已久的Ubuntu  LTS 版本开放了公测版本 Ubuntu 16.04 (Xenial Xerus) Daily Build(http://cdimage.ubuntu.com/daily-l ...

  7. docker installation on ubuntu

    Ubuntu Docker is supported on these Ubuntu operating systems: Ubuntu Xenial 16.04 (LTS) Ubuntu Trust ...

  8. Ubuntu 16.04 LTS今日发布

    Ubuntu 16.04 LTS今日发布 Ubuntu16.04 LTS 发布日期已正式确定为 2016 年 4 月 21 日,代号为 Xenial Xerus.Ubuntu16.04 将是非常受欢迎 ...

  9. 使用Qemu运行Ubuntu文件系统(1)

    参考 https://blog.csdn.net/mountzf/article/details/51707853 https://blog.csdn.net/stephen_lu_fahai/art ...

随机推荐

  1. mysql索引详解(转)

    什么是索引 索引用来快速地寻找那些具有特定值的记录,所有MySQL索引都以B-树的形式保存.如果没有索引,执行查询时MySQL必须从第一个记录开始扫描整个表的所有记录,直至找到符合要求的记录.表里面的 ...

  2. django基础之Ajax、分页、cookie与session

    目录: Ajax之json Ajax简介 jquery实现的ajax js实现的ajax django分页器 COOKIE与SESSION 一.Ajax之json 1.什么是json? 定义: JSO ...

  3. POJ2195:Going Home(费用流入门)

    http://poj.org/problem?id=2195 #include <iostream> #include <stdio.h> #include <strin ...

  4. POJ1845:Sumdiv(求因子和+逆元+质因子分解)好题

    题目链接:http://poj.org/problem?id=1845 定义: 满足a*k≡1 (mod p)的k值就是a关于p的乘法逆元. 为什么要有乘法逆元呢? 当我们要求(a/b) mod p的 ...

  5. java多线程(五)

    Java 多线程同步 锁机制与synchronized 打个比方:一个object就像一个大房子,大门永远打开.房子里有很多房间(也就是方法).这些房间有上锁的(synchronized方法), 和不 ...

  6. SEO笔记:Anatomy of a URL

    Dr. Peter J. Meyers 原文链接:https://moz.com/blog/seo-cheat-sheet-anatomy-of-a-url 原文主要通过对比讲解 SEO优化后的URL ...

  7. 字王谈M1字形与个人云字库

    字王谈M1字形与个人云字库   最近在忙网络项目,字库其实也没完全搁下,只是没有时间细大理,这些文字idea,来自近日和大梁先生的QQ聊天,虽然口语化很重,但觉得有些价值,作为blog发了 ----- ...

  8. 20145326 《Java程序设计》第8周学习总结

    20145326 <Java程序设计>第8周学习总结 教材学习内容总结 第十四章 一.认识NIO 1.NIO叙述 对于高级输入/输出处理,Java从JDK1.4开始提供了NIO(New I ...

  9. 学习Zookeeper之第3章Zookeeper内部原理

    第 3 章 Zookeeper 内部原理 3.1 选举机制 3.2 节点类型 3.3 stat 结构体 3.4 监听器原理   1)监听原理详解   2)常见的监听 3.5 写数据流程 第 3 章 Z ...

  10. uboot能ping通本机无法ping通本机上搭建的虚拟机

    注意 转载请注明出处:https://www.cnblogs.com/dakewei 一.背景 1.1 uboot不能被其它主机ping通,这是由于uboot没有对其它主机发送过来的arp包进行响应, ...