版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明 (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. IETF国标查询

    IETF官网 https://www.ietf.org/ rfc国标官网 https://www.ietf.org/standards/rfcs/ rfc国标查询 https://www.rfc-ed ...

  2. 跨域nginx,CORS

    浏览器的同源策略是浏览器上为安全性考虑实施的非常重要的安全策略.从一个域上加载的脚本不允许访问另外一个域的文档属性.举个例子:比如一个恶意网站的页面通过iframe嵌入了银行的登录页面(二者不同源), ...

  3. 服务器负载、CPU性能判断

    说在前面: 在linux操作系统中,我们一般查看系统的cpu负载情况常用的命令可以是uptime,top,还有vmstat等这些个都是可以有的.每个工具所提供的信息各不相同, 我这里要讨论的仅说cpu ...

  4. Java IO的Reactor模式

    1.    Reactor出现的原因 Reator模式是大多数IO相关组件如Netty.Redis在使用时的IO模式,为什么需要这种模式,如何设计来解决高性能并发的呢? 最最原始的网络编程思路就是服务 ...

  5. python 解析xml遇到xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 4, column 34

    在调试数字驱动用xml文件的方式时,包含读取xml文件的步骤,运行程序报错: d:\test\0629>python XmlUtil.pyTraceback (most recent call ...

  6. 前端面试题之 sum(2)(3) (链式调用,toString,柯里化,数组操作)

    写一个函数让下面两个输出结果相同:console.log(sum(2)(3));console.log(sum(2,3)); var sum = (function() { var list = [] ...

  7. pyDay13

    内容来自廖雪峰的官方网站. 1.把list.dict.str等Iterable变成Iterator可以使用iter()函数 >>> L = iter([1, 2, 3, 4, 5, ...

  8. 从头到尾测地理解KMP算法【转】

    本文转载自:http://blog.csdn.net/v_july_v/article/details/7041827 1. 引言 本KMP原文最初写于2年多前的2011年12月,因当时初次接触KMP ...

  9. POJ - 3254 Corn Fields(状压DP)题解

    思路: 参照blog,用状压DP做,和题解稍微有点不一样,我这里直接储存了状态而不是索引. 这一题的问题是怎么判断相邻不能种,我们用2进制来表示每一行的种植情况.我们将每一行所能够造的所有可能都打表( ...

  10. Codeforces Round #413, rated, Div. 1 + Div. 2 C. Fountains(贪心 or 树状数组)

    http://codeforces.com/contest/799/problem/C 题意: 有n做花园,有人有c个硬币,d个钻石 (2 ≤ n ≤ 100 000, 0 ≤ c, d ≤ 100  ...