cockpit install

Running Cockpit — Cockpit Project

ip:9090

如果9090端口被占用,可以改为9091 

 cat /etc/systemd/system/sockets.target.wants/cockpit.socket
[Unit]
Description=Cockpit Web Service Socket
Documentation=man:cockpit-ws(8)
Wants=cockpit-motd.service[Socket]
#ListenStream=9090
ListenStream=9091
ExecStartPost=-/usr/share/cockpit/motd/update-motd '' localhost
ExecStartPost=-/bin/ln -snf active.motd /run/cockpit/motd
ExecStopPost=-/bin/ln -snf inactive.motd /run/cockpit/motd[Install]
WantedBy=sockets.target
systemctl daemon-reloadsystemctl restart cockpit 

root无法登录的问题需要修改

cat /etc/cockpit/disallowed-users
# List of users which are not allowed to login to Cockpit
#root


 

Fedora

Cockpit comes installed by default in Fedora Server.

To install Cockpit on other variants of Fedora use the following commands. For the latest versions use COPR.

  1. Install cockpit:
    sudo dnf install cockpit
    
  2. Enable cockpit:
    sudo systemctl enable --now cockpit.socket
    
  3. Open the firewall if necessary:
    sudo firewall-cmd --add-service=cockpit
    sudo firewall-cmd --add-service=cockpit --permanent
    

Red Hat Enterprise Linux

Cockpit is available in Red Hat Enterprise Linux 7 and later.

  1. On RHEL 7, enable the Extras repository.
    sudo subscription-manager repos --enable rhel-7-server-extras-rpms
    

    RHEL 8 does not need any non-default repositories.

  2. Install cockpit:
    sudo yum install cockpit
    
  3. Enable cockpit:
    sudo systemctl enable --now cockpit.socket
    
  4. On RHEL 7, or if you use non-default zones on RHEL 8, open the firewall:
    sudo firewall-cmd --add-service=cockpit
    sudo firewall-cmd --add-service=cockpit --permanent
    

Fedora CoreOS

The standard Fedora CoreOS image does not contain Cockpit packages.

  1. Install Cockpit packages as overlay RPMs:
    rpm-ostree install cockpit-system cockpit-ostree cockpit-podman
    

    Depending on your configuration, you may want to use other cockpit-* extensions as well, such as cockpit-kdump or cockpit-networkmanager.

    If you have a custom-built OSTree, simply include the same packages in your build.

  2. Reboot

Steps 1 and 2 are enough when the CoreOS machine is only connected to through another host running Cockpit.

If you want to also run a web server to log in directly on the CoreOS host:

  1. Enable password based SSH logins, unless you only use SSO logins:
    echo 'PasswordAuthentication yes' | sudo tee /etc/ssh/sshd_config.d/02-enable-passwords.conf
    sudo systemctl try-restart sshd
    
  2. Run the Cockpit web service with a privileged container (as root):
    podman container runlabel --name cockpit-ws RUN quay.io/cockpit/ws
    
  3. Make Cockpit start on boot:
    podman container runlabel INSTALL quay.io/cockpit/ws
    systemctl enable cockpit.service
    

Afterward, use a web browser to log into port 9090 on your host IP address as usual.

CentOS

Cockpit is available in CentOS 7 and later:

  1. Install cockpit:
    sudo yum install cockpit
    
  2. Enable cockpit:
    sudo systemctl enable --now cockpit.socket
    
  3. Open the firewall if necessary:
    sudo firewall-cmd --permanent --zone=public --add-service=cockpit
    sudo firewall-cmd --reload
    

Debian

These commands require a POSIX compatible shell like bash. For other shells like fish, temporarily run bash -i.

Cockpit is available in Debian since version 10 (Buster).

  1. To get the latest version, we recommend to enable the backports repository (as root):
    . /etc/os-release
    echo "deb http://deb.debian.org/debian ${VERSION_CODENAME}-backports main" > \/etc/apt/sources.list.d/backports.list
    apt update
    
  2. Install or update the package:
    apt install -t ${VERSION_CODENAME}-backports cockpit
    

armbian debian可以使用debian的方法

systemctl enable cockpit --now

ip:9090

When updating Cockpit-related packages and any dependencies, make sure to use -t ...-backports as above, so backports are included.

Ubuntu

These commands require a POSIX compatible shell like bash. For other shells like fish, temporarily run bash -i.

Cockpit is available in Ubuntu, with updated versions in official backports for LTS releases.

We recommend installing or updating the latest version from backports. This repository is enabled by default, but if you customized apt sources you might need to enable them manually.

. /etc/os-release
sudo apt install -t ${VERSION_CODENAME}-backports cockpit

When updating Cockpit-related packages and any dependencies, make sure to use -t ...-backports as above, so backports are included.

Arch Linux

Cockpit is available in Arch Linux:

sudo pacman -S cockpit
sudo systemctl enable --now cockpit.socket

If the first command fails with “database file for … does not exist”, refresh/update your system with sudo pacman -Syu first.

Clear Linux

Cockpit is in Clear Linux OS and can be installed using swupd:

sudo swupd bundle-add sysadmin-remote
sudo systemctl enable --now cockpit.socket

openSUSE Tumbleweed

Cockpit is available in openSUSE Tumbleweed:

  1. Install cockpit:
    # zypper in cockpit
    
  2. Enable cockpit:
    # systemctl enable --now cockpit.socket
    
  3. Open the firewall if necessary:
    # firewall-cmd --permanent --zone=public --add-service=cockpit
    # firewall-cmd --reload
    

SUSE Linux Enterprise Micro

Cockpit is included in SUSE Linux Enterprise (SLE) Micro 5.x.

  1. Install cockpit (already present in the pre-built images):
    transactional-update pkg install -t pattern microos-cockpit
    
  2. Enable the socket:
    systemctl enable --now cockpit.socket
    
  3. In case you have enabled the firewall, you also must open the port:
    firewall-cmd --permanent --zone=public --add-service=cockpit
    firewall-cmd --reload
    
  4. Access through the web interface:
    https://IP_ADDRESS_OF_MACHINE:9090
    

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/479592.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

VScode写LaTeX配置,实测有效

环境配置请看LaTeX环境配置-TexLive,实测有效http://t.csdnimg.cn/0txlL VScode写LaTeX配置 0.smatra pdf下载 如果使用外部pdf查看器,比如我用的sumatra pdf,官网是Sumatra PDF reader download page 下载对应版本,比如64位,下…

数据结构之线性表插入与删除运算

线性表 线性表的定义 线性表,或称表,是一种非常灵便的结构,可以根据需要改变表的长度,也可以在表中任何位置对元素进行访问、插入或删除等操作。另外,还可以将多个表连接成一个表,或把一个表拆分成多个表…

Solidworks:钣金设计中的参数设定

利用草图工具画一个折线,夹角135度、边长为5mm。参见下图: 然后利用此草图创建钣金基本法兰: 调整视图角度,看一下钣金件与草图的关系: 可以看出,默认情况下草图中的线段对应钣金件的外侧。可以调整“钣…

Innodb底层原理与Mysql日志机制深入剖析

MySQL的内部组件结构 大体来说,MySQL 可以分为 Server 层和存储引擎层两部分。 Server层 主要包括连接器、查询缓存、分析器、优化器、执行器等,涵盖 MySQL 的大多数核心服务功能,以及所有的内置函数(如日期、时间、数学和加密函…

Redis篇----第七篇

系列文章目录 文章目录 系列文章目录前言一、Redis 的回收策略(淘汰策略)?二、为什么 edis 需要把所有数据放到内存中?三、Redis 的同步机制了解么?四、Pipeline 有什么好处,为什么要用 pipeline?前言 前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍…

Android的Compose

Jetpack Compose 是用于构建原生 Android 界面的新工具包,无需修改任何 XML 布局,也不需要使用布局编辑器。相反,只需调用可组合函数来定义所需的元素,Compose 编译器即会完成后面的所有工作。 简而言之,使用Compose&…

数据脱敏(五)脱敏算法-变换算法

脱敏算法篇使用阿里云数据脱敏算法为模板,使用算子平台快速搭建流程来展示数据 "变换脱敏"是一种数据处理技术,主要用于保护个人隐私和数据安全。它通过将敏感信息(如姓名、身份证号、电话号码等)进行某种形式的转换,使…

SpringBoot自动注入源码分析

Spring Boot何时注入Autowired标注的属性? 是在Bean实例化后,填充Bean的时候注入Autowired标注的属性 如果注入类型的Bean存在多个,Spring Boot是如何处理的? 如果存在多个类型的Bean,会根据primary—>javax.ann…

Redis典型应用之分布式锁

目录 前言 分布式锁的基础实现 引入过期时间: 引入校验ID: 引入lua lua的简介: 引入看门狗 (watch dog) 引入Redlock算法 前言 在一个分布式系统中,也会涉及到多个节点同时去访问一个公共资源的时候&am…

ArcGIS API for JavaScript 4.X 本地部署(js,字体)

0 目录(4.19) /4.19/ 1 修改文件 1.1 init.js 编辑器打开/4.19/init.js搜索文本[HOSTNAME_AND_PATH_TO_JSAPI],然后将其连同前面的https://替换为http://ip地址/4.19,可以是localhost,只能本机引用 替换后&#xff…

Selenium 自动化测试—如何搭建自动化测试环境

🍅 视频学习:文末有免费的配套视频可观看 🍅 点击文末小卡片,免费获取软件测试全套资料,资料在手,涨薪更快 最近也有很多人私下问我,selenium学习难吗,基础入门的学习内容很多是3以前…

【linux】体系结构和os管理

冯诺依曼体系结构 输入单元:包括键盘, 鼠标,扫描仪, 写板等 中央处理器(CPU):含有运算器和控制器等 输出单元:显示器,打印机等 这里的存储器指的是内存 三者是相互连接的,设备之间会进行数据的来回拷贝&am…