Cara Install Web Console Cockpit pada RHEL 8

Cockpit adalah konsol web dengan antarmuka pengguna yang ramah yang memungkinkan Anda untuk melakukan tugas administratif di server Anda. Juga sebagai konsol web, itu artinya Anda juga dapat menggunakannya melalui perangkat seluler.

Cockpit tidak memerlukan konfigurasi khusus dan setelah diinstal siap digunakan. Anda dapat menggunakannya untuk melakukan berbagai tugas seperti memantau kondisi sistem Anda saat ini, mengelola layanan, membuat akun, dan banyak lagi lainnya.

Dalam tutorial ini Anda akan melihat cara menginstal Cockpit dan bagaimana melakukan beberapa tugas dasar dengan itu dalam distribusi RHEL 8.

Catatan: Panduan ini mengasumsikan bahwa Anda memiliki akses root ke instalasi RHEL 8 Anda.

Cara Install Cockpit di RHEL 8

1. Dengan instalasi minimal RHEL 8, kokpit belum terinstal dan Anda dapat menambahkannya ke sistem dengan menggunakan perintah di bawah ini, yang akan menginstal kokpit dengan dependensi yang diperlukan.

# yum install cockpit

Install Cockpit on RHEL 8

Install Cockpit on RHEL 8

2. Setelah Cockpit diinstal, Anda dapat memulai, mengaktifkan dan memverifikasi layanan dan proses yang berjalan menggunakan perintah berikut.

# systemctl start cockpit.socket
# systemctl enable cockpit.socket
# systemctl status cockpit.socket
# ps auxf|grep cockpit

Enable and Star Cockpit on RHEL 8

Enable and Star Cockpit on RHEL 8

3. Untuk mengakses konsol web Cockpit, Anda harus mengizinkan layanan di firewall server.

# firewall-cmd --add-service cockpit
# firewall-cmd --add-service cockpit --perm

Allow Cockpit in Firewall

Allow Cockpit in Firewall

Cara Menggunakan Cockpit do RHEL 8

Sekarang kita siap untuk mengakses konsol web Cockpit, dengan memuat http://localhost:9090 atau http://server-ip-address:9090 di browser.

Perhatikan bahwa jika menggunakan sertifikat yang ditandatangani sendiri, Anda akan melihat peringatan keamanan di browser Anda. Tidak apa-apa untuk melanjutkan ke halaman yang Anda coba muat. Jika Anda ingin menambahkan sertifikat Anda sendiri, Anda dapat menempatkannya di direktori /etc/cockpit/ws-certs.d.

Setelah Anda memuat halaman, Anda akan melihat halaman berikut:

Cockpit Web Console

Cockpit Web Console

Anda dapat mengautentikasi dengan pengguna yang Anda gunakan untuk mengakses sistem RHEL 8 Anda. Jika Anda ingin melakukan tugas administratif, Anda dapat mengautentikasi dengan pengguna root atau pengguna yang ditambahkan ke grup roda.

Ketika Anda mengautentikasi, Anda akan melihat halaman sistem, di mana Anda akan mendapatkan beberapa informasi dasar tentang sistem Anda serta pembaruan langsung CPU, Memori, Disk I/O dan lalu lintas jaringan yang ditunjukkan dalam grafik:

RHEL 8 System Summary

RHEL 8 System Summary

On the left side, you have few different sections allow you to review:

  • Logs – review system logs and filter them by importance.
  • Networking – Network stats and services.
  • Accounts – create and manage accounts on your system.
  • Services – review and manage services on your system.
  • Applications – review and manage applications on your system.
  • Diagnostic Reports – create system report for diagnostic purposes.
  • Kernel Dump – Enable/disable kdump service and change crash dump location.
  • SELinux – Enforce SELinux policy.
  • Software updates – check for software updates.
  • Subscriptions – check subscription status.
  • Terminal – web based terminal.

We will review each of these sections briefly.

Logs

You can click on each log for more detailed information about the event. Use this section if you want to run debug, review error or alerts. To change the severity of the logs you are reviewing, use the “Severity” drop-down menu.

An overview of the logs page can be seen below:

Monitor Logs in RHEL 8

Monitor Logs in RHEL 8

Networking

The networking section provides overview of your current networking usage with graphs, and allows you to configure bond, team, bridge and vlans. You can enable/disable the firewall or stop specific rules. In the networking logs. In the last block you can review the networking logs.

Monitor Network Usage and Traffic

Monitor Network Usage and Traffic

Accounts

The accounts section allows you to manage accounts on your system. When you click on account, you can modify its settings, change passwords, force password change, lock it or change its role.

Manage User Accounts in RHEL 8

Manage User Accounts in RHEL 8

Services

The services section gives you an overview of the services on your system and gives you an easy way to manage them.

Clicking on specific service gives you an overview of its status where you can stop/start, restart, reload, enable/disable that service. You will also see a separate section with that service’s logs:

Manage Services in RHEL 8

Manage Services in RHEL 8

Diagnostic Reports

As the name suggests, you can obtain a diagnostic information about your system. This can help you troubleshoot problems on your system. In order to use this service, you will need to have the sos utility installed.

# yum install sos

Then click on the “Generate report” button and wait for the information to be collected.

Diagnostic Reports of RHEL 8

Diagnostic Reports of RHEL 8

Kernel Dump

In the Kernel Dump page, you can change the status of the kdump status, change crash dump data location and test the configuration.

Kernel Dump

Kernel Dump

SELinux

In the SELinux section, you can change the enforce status of SELinux with a simple switch and also review any SELinux related alerts.

Manage SELinux Policy

Manage SELinux Policy

Software Updates

The software updates section gives an overview of packages waiting for update. You can also force a manual check for updates and enable automatic updates.

Install Software Updates on RHEL 8

Install Software Updates on RHEL 8

Subscriptions

Here you can see your RHEL subscription status and purpose. You can also unregister the system using a single button.

Manage RHEL 8 Subscription

Manage RHEL 8 Subscription

Terminal

Terminal section gives you what it says – a terminal. You can use this instead of connecting over SSH. It is useful if you need to run few commands within a browser.

Cockpit Web Terminal to Manage RHEL 8

Cockpit Web Terminal to Manage RHEL 8

That’s It! Cockpit is a lightweight web console that gives you an easy way to perform different administrative tasks on your RHEL 8 system.


Di tulis oleh: