Efficient Server Management with Cockpit
Cockpit is a server management tool that is specially designed for new sysadmins. It allows them to perform simple tasks such as starting and stopping services, storage administration and journal inspection. Although it is a Web tool, switching to the ter
Cockpit is free and open source software offered by Red Hat. It is a new graphical interface for handling Linux server administration tasks. The Cockpit project was launched at the start of 2014 and is currently undergoing heavy development. Cockpit offers a wide variety of features such as LVM administration, journal logging, Docker integration, etc. It is not the first Web interface to manage Linux servers, but it is now attracting those who are interested in administrating Linux from a Web interface rather than the command line.
Cockpit is a user-friendly Web UI that can be run via any browser. It also supports multi-server administration, which means that admins or users can manage multiple servers at the same time.
Installation on Fedora
As Cockpit is undergoing heavy development, there is no stable release for the OS except for Fedora 20 and Fedora 21. There are two ways to install Cockpit - the first is by using the YUM repository and the other by using the GitHub repository. It is recommended that you install Cockpit on a virtual machine since it is not yet production ready.
Using YUM
For the official stable release of Cockpit, use Fedora 21 server:
Using the GitHub repository
Cockpit can be also installed using the official source repository available on github.com – https://github.com/ cockpit-project/cockpit
Provide the username as root and the root password, after which you will see a dashboard (Figure 2).
This dashboard is the main page where the administrator can view all the individual servers and machines. There is an Add server button to add a new server.
After the default server (the machine on which Cockpit is installed), the user is directed to details of the server.
Here, the administrator can monitor the CPU, disk, memory and network activities of the server.
One can control services using the Service tab in the left hand side column.
Cockpit views services using systemd. The administrator can get all network related information using Networking (Figure 5).
Cockpit provides a way to control hardware and perform various storage related tasks such as creating a RAID device, creating a volume group, etc, using the storage section, where the administrator can view the basic details of the storage hardware connected to the server as well as the storage journal logs (Figure 6).
User management can be also done using User Accounts. Adding a new user is very simple—just click New Account and a modal form is presented.
To create a UNIX user, fill in the details as required and click Create (Figure 7).
The administrator can also perform a shutdown or reboot from the Cockpit UI (Figure 8).
More reading and hacking
You can learn more about Cockpit at Cockpit-Project.org. You can also contribute to the Cockpit project using GitHub - https://github.com/ cockpit-project/cockpit/blob/master/ HACKING.md