HB Computer Security | Aide Memoire
  • Introduction
  • Core Technical Skills
    • Core Skills
      • Linux
        • Getting to Know Linux
          • Using the Shell
            • Shells, Terminals, and Virtual Consoles
            • Choose your Shell
            • Shell Commands
              • Non-PATH Commands
              • Command History
                • Command Line Editing
                  • Keystrokes for Navigating Command Lines
                  • Keystrokes for Editing Command Lines
                  • Keystrokes for Cutting and Pasting Text from within Command Lines
                • Command Line Recall
                  • Keystrokes for Command Line Recall
              • Connecting and Expanding Commands
                • Piping Between Commands
                • Sequential Commands
                • Expanding Commands
            • Shell Variables
              • Common Shell Variables
            • Aliases
            • Create your Own Shell Environment
              • Modification Ideas
          • Navigating the Linux File System (LFS)
            • Filesystem Commands
            • Listing Files and Directories
            • File Permissions and Ownership
              • Modifying Permissions with chmod
              • Modifying Default Permissions with umask
              • Change File Ownership with chown
            • Copying, Moving, and Removing Files
            • Finding Files
              • locate
              • find
              • grep
            • Downloading Files
              • axel
              • wget
              • curl
                • User-Agent: Googlebot
          • Working with Text Files
            • Using vim and vi to Edit Text Files
              • Starting with vi
              • Adding Text
              • Moving Around in the Text
            • Text Manipulation
        • System Administration
          • Installing Linux
            • Installing from Live Media
            • Installing in the Enterprise
            • Partitioning Hard Disks
              • Tips for Creating Partitions
          • Account Administration
            • The root Account
              • Becoming root with su
              • sudo
                • The /etc/sudoers File
                • Granting sudo privileges
                  • visudo Guidance
                • Useful sudo Hints
            • Other Administrative Accounts
            • Standard User Accounts
              • Risks of userdel: Orphaned Files
          • Graphical Remote Administration
            • Cockpit
              • Installation Guide
            • Remote Desktop Protocol with xrdp
              • Installation and Configuration
            • Remote Desktop with vnc
              • Installation and Configuration
              • Running VNC as a System Service
          • Managing Running Processes
            • Listing Processes
              • ps
              • top
              • htop
            • Backgrounding and Foregrounding
              • Starting a Background Process
              • Using Foreground and Background Commands
            • Killing and Recining Processes
              • kill and killall
          • Managing Software
            • Managing Software from the Desktop
            • Going Beyond the Limitations of Software Center
              • Debian Packages
                • Advanced Package Tool (apt)
                • Repositories
                • dpkg
        • Shell Scripting
          • Variables
            • Command Substitution
            • Arguments
          • Reading User Input
          • if, else, and elif
          • BOOLEAN Logic
          • Loops
            • for Loops
            • while Loops
          • Functions
          • Local Vs Global Variables
          • Summary
        • Securing Linux
      • Windows
        • Security Hardening
Powered by GitBook
On this page
  • Fedora
  • Red Hat Enterprise Linux
  • Fedora CoreOS
  • Project Atomic
  • CentOS
  • Debian
  • Ubuntu

Was this helpful?

  1. Core Technical Skills
  2. Core Skills
  3. Linux
  4. System Administration
  5. Graphical Remote Administration
  6. Cockpit

Installation Guide

PreviousCockpitNextRemote Desktop Protocol with xrdp

Last updated 1 year ago

Was this helpful?

The following information can be found in greater deal in the online , and the deployment guide can be found .

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.

#Install cockpit:
sudo dnf install cockpit

#Enable cockpit:
sudo systemctl enable --now cockpit.socket
Created symlink /etc/systemd/system/sockets.target.wants/cockpit.socket

#Open the firewall if necessary:
sudo firewall-cmd --add-service=cockpit
sudo firewall-cmd --add-service=cockpit --permanent

Red Hat Enterprise Linux

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

#On RHEL 7, enable the Extras repository. RHEL 8 does not need any non-default repositories.
sudo subscription-manager repos --enable rhel-7-server-extras-rpms

#Install cockpit:
sudo yum install cockpit

#Enable cockpit:
sudo systemctl enable --now cockpit.socket

#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.

#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 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.

#Reboot
sudo shutdown -r now

#Run the Cockpit web service with this privileged container (as root):
podman pull cockpit/ws
podman container runlabel --name cockpit-ws RUN cockpit/ws

#Make Cockpit start on boot:
podman container runlabel INSTALL cockpit/ws
systemctl enable cockpit.service

Steps 3 and 4 are optional if the CoreOS machine will only be connected to from another host running Cockpit. Afterward, use a web browser to log into port TCP 9090 on your host IP address as usual.

Project Atomic

Connect to an Atomic Host from another instance of Cockpit with the Add Server dashboard UI. Alternatively you can access Cockpit directly on the Atomic Host if SSH password authentication is enabled:

#Run the Cockpit web service container:
sudo atomic install cockpit/ws
sudo atomic run cockpit/ws

CentOS

Cockpit is included in CentOS 7.x:

#Install cockpit:
sudo yum install cockpit

#Enable cockpit:
sudo systemctl enable --now cockpit.socket

#Open the firewall if necessary:
sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload

Debian

Cockpit is included in Debian unstable and in backports for 9 (Stretch):

#For Debian 9 you have to enable the backports repository:
echo 'deb http://deb.debian.org/debian stretch-backports main' > \ /etc/apt/sources.list.d/backports.list
apt-get update

#Install the package:
sudo apt-get install cockpit

Ubuntu

Cockpit is included in Ubuntu 17.04 and later, and available as an official backport for 16.04 LTS and later. Backports are enabled by default, but if you customized apt sources you might need to enable them manually.

#Install the package:
sudo apt-get install cockpit
Cockpit documentation
here