Cara install dan mengaktifkan Cockpit web console di RHEL 8

Bagaimana cara install dan mengaktifkan Cockpit untuk mengelola GNU/Linux dan RHEL 8 dalam bentuk web? Bagaimana melihat dan memanage RHEL 8 server dalam web browser dan melakukan pekerjaan dengan sebuah mouse?

Pendahuluan: Cockpit adalah alat manajemen server berbasis web gratis dan terbuka. Secara default, Cockpit sudah terpasang di server RHEL 8. Namun, itu tidak diaktifkan. Sysadmin harus mengaktifkannya. Seseorang dapat melihat server di browser web dan melakukan tugas sistem dengan GUI / mouse. Mudah untuk memulai, mengelola penyimpanan atau mengggunakan, mengkonfigurasi jaringan, dan memeriksa file log di RHEL 8. Antarmuka web Cockpit ramah pengguna untuk pengguna Linux baru dan sysadmins.

Antarmuka web Cockpit mudah digunakan bagi pengguna baru Linux dan sysadmins. Tentu saja, Anda dapat menggunakan ssh untuk mengelola server Anda atau menggunakan antarmuka web kapan saja. Bahkan ada terminal tertanam di Cockpit web GUI.

Embedded terminal shell session in Cockpit web interface on RHEL 8

Cara install Cockpit web console di RHEL 8

Kokpit termasuk dalam Red Hat Enterprise Linux Extras repositori di versi 7.1 dan yang lebih baru. Ini diinstal secara default pada RHEL 8. Berikut adalah cara menginstalnya di RHEL 8 menggunakan perintah yum

$ sudo yum install cockpit

Install and activate Cockpit web console on RHEL 8
Open the firewall ports:

$ sudo firewall-cmd --add-service=cockpit
$ sudo firewall-cmd --add-service=cockpit --permanent

Sample outputs:

Created symlink /etc/systemd/system/sockets.target.wants/cockpit.socket ? /usr/lib/systemd/system/cockpit.socket.

Cara meengaktifkan Cockpit web console di RHEL 8

Once installed, enable and activate Cockpit web console on RHEL 8, by running the following systemctl command:

$ sudo systemctl enable --now cockpit.socket

Default, Cockpit accepts connections on port TCP port # 9090. Use the ss command to view open port:

$ sudo ss -tulpn | grep :9090

Sample outputs:

tcp    LISTEN   0        128                     *:9090                 *:*      users:(("cockpit-ws",pid=4278,fd=3),("systemd",pid=1,fd=27))

How to use Cockpit web console on RHEL 8

Now that you have Cockpit installed and enabled on RHEL 8, it is time to start using it. All you have to do is fire a web browser and type the following url:

https://ip-address-of-rhel8-server:9090

OR use FQDN:

https://server1.hostnic.id:9090

When prompted use your RHEL 8 system user account and password to log into the system:

How to use Cockpit in RHEL 8
Press Login button and voila:

RHEL 8 Cockpit screenshot
Once logged in you will see the Cockpit Dashboard (click to enlarge)

Let us take a quick tour of rest of the Cockpit web UI that one can use manage RHEL 8 box (click to enlarge image):

Kesimpulan

Perangkat lunak Cockpit sepenuhnya gratis untuk digunakan dan tersedia di bawah LGPL GNU. Ini sempurna untuk mengelola server berdasarkan RHEL 8. Namun, untuk sejumlah besar server atau VM Anda lebih baik menggunakan sesuatu seperti Ansible. Untuk info lebih lanjut lihat halaman resmi Cockpit disini.


Di tulis oleh: