OpenSource For You

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 administra­tion and journal inspection. Although it is a Web tool, switching to the ter

- The author is a Linux lover and FOSS evangelist. He loves to hack various open source software. Readers can reach him at abhijeetka­surde21@gmail.com By Abhijeet Kasurde

Cockpit is free and open source software offered by Red Hat. It is a new graphical interface for handling Linux server administra­tion tasks. The Cockpit project was launched at the start of 2014 and is currently undergoing heavy developmen­t. Cockpit offers a wide variety of features such as LVM administra­tion, journal logging, Docker integratio­n, etc. It is not the first Web interface to manage Linux servers, but it is now attracting those who are interested in administra­ting 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 administra­tion, which means that admins or users can manage multiple servers at the same time.

Installati­on on Fedora

As Cockpit is undergoing heavy developmen­t, 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 recommende­d 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 administra­tor 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 administra­tor 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 administra­tor can get all network related informatio­n 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 administra­tor 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 administra­tor 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

 ??  ??
 ??  ??
 ??  ?? Figure 5: Networking journal
Figure 5: Networking journal
 ??  ?? Figure 8: Shutdown
Figure 8: Shutdown
 ??  ?? Figure 7: Creating a new account
Figure 7: Creating a new account
 ??  ?? Figure 6: Storage journal
Figure 6: Storage journal
 ??  ??

Newspapers in English

Newspapers from India