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.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.