Graphical interfaces for systemd
Cockpit
The Cockpit project [2] primarily concerns server management, but, thanks to the close combination with systemd, also provides the option to administer the session manager on the target system. The current version is 126 – apparently the developers no longer use the major number before it.
Red Hat maintains and further develops the software, and systemd is a mandatory requirement. Prebuilt packages and repositories are available for Fedora Server, CentOS, Red Hat Enterprise Linux, and RHEL Atomic. The application can be found in separate repositories for Debian and Ubuntu, while Arch Linux has unofficial support [14]. Additionally, the developers make the source code of the software available under LGPL on GitHub [15].
False Start
A shortcoming initially stood out during the test installation with the current Cockpit version 126: Unfortunately, the project developers failed to explain the exact specifications for using Cockpit with Ubuntu. If users want to install the program using the official archive in Ubuntu 16.10, the existing PPA archive does not integrate into the system because it is intended for Ubuntu 16.04. Installation on the slightly older Ubuntu version (which is, however, provided with long-term support) works easily using the three steps in Listing 1.
Listing 1
Install Cockpit in Ubuntu 16.04
In the end, the user starts the systemd-socket, which, using
sudo systemctl enable --now cockpit.socket
is no problem. The software is now ready for use, and its interface appears in the web browser of your intranet if you type https://<Server-IP-Address>:9090
into the address bar. With the exception of the installation on the server itself, Cockpit only uses a connection secured with SSL/TLS, whereby it creates a self-signed certificate when first started.
If no connection is established, this is probably due to a blockade of port 9090 via the firewall, and you'll need to unlock the port – Fedora Server does this innately by the way.
The Cockpit dashboard then appears with the login screen in the browser. The admin is authenticated and thus moves into the home screen. On the left are selection lists for various tasks, and the corresponding content appears in a large area on the right (Figure 11). To configure and manage systemd processes on the server, select Services on the left of the selection area. The software lists the existing processes and services in a table, whereby Cockpit initially considers all types, even the inactive ones.
The Cockpit user further manages servers that can be found on the intranet by clicking Dashboard at the top of the main window and using the + button in the vertical center of the window. The server can now be integrated into Cockpit via its IP address. The management software then logs in with the user's authentication information with the new server and collects the necessary information from it. The server then appears under its IP address in the list of server systems waiting at the bottom of the window. Here, the user can call up the performance data of one of the servers via mouse click.
The user can also access the systemd units here via the Services menu item on the left of the dashboard – depending on the device. Cockpit divides the list into the categories Enabled, Disabled, and Static, which serves as an overview. At the top of the list view are the Targets, System Services, Sockets, Timers, and Paths buttons, from which you can very quickly identify individual units (Figure 12).
Regardless of a unit's operating status, after clicking on a unit, the user ends up on the unit in a log window, which displays the respective unit's log. This saves tediously searching for individual log entries in the journal.
Manager
To manage processes and daemons in Cockpit, you need to register the software with administrator rights beforehand. You can start new processes from the dashboard in a terminal with Tools | Terminal. Alternatively, you can select the desired unit from a list with the mouse. You will then see the unit's log entries and other information, including the path.
Two selection fields on the right provide various functions via mouse click: Here the administrator can enable, disabled, or reload systemd units. These also allow a unit to be force started. The user can also modify the configuration file via the integrated terminal. In all, it's very easy to manage systemd processes using Cockpit (Figure 13).
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.