Try Ubuntu Landscape on Xenial (by quqi99)

前端之家收集整理的这篇文章主要介绍了Try Ubuntu Landscape on Xenial (by quqi99)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

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.@H_404_4@

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@H_404_4@

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@H_404_4@

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
原文链接:https://www.f2er.com/ubuntu/351891.html

猜你在找的Ubuntu相关文章