{"id":2817,"date":"2019-05-03T19:02:09","date_gmt":"2019-05-03T16:02:09","guid":{"rendered":"https:\/\/kifarunix.com\/?p=2817"},"modified":"2019-05-03T19:07:36","modified_gmt":"2019-05-03T16:07:36","slug":"administer-fedora-30-29-from-web-using-cockpit","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/administer-fedora-30-29-from-web-using-cockpit\/","title":{"rendered":"Administer Fedora 30\/29 from Web using Cockpit"},"content":{"rendered":"\n
In this guide, we are going to learn how to administer Fedora 30\/29 from web using Cockpit. Cockpit<\/a> is an open-source modern Linux administration tool that allows you to manage your Linux server and perform the routine system administration tasks such as administering storage, configuring networks, inspecting logs or any other task from web interface just like you would from the terminal.<\/p>\n\n\n\n Cockpit is installed by default on Fedora server. You can verify this by running the command below;<\/p>\n\n\n\n If for some magical reasons Cockpit is not installed on your Fedora server, then you can simply install it using the DNF package manager.<\/p>\n\n\n\n If FirewallD is running, you need to allow Cockpit through it for external access. To verify if Cockpit is allowed on FirewallD, execute the command below;<\/p>\n\n\n\n You can also check by using the port;<\/p>\n\n\n\n If is not allowed yet, then you can allow it using the command below;<\/p>\n\n\n\n Or You can use the service name;<\/p>\n\n\n\n You can learn more about Cockpit Firewall and SELinux here<\/a>.<\/p>\n\n\n\n To start and enable Cockpit to run on system boot and be available to the web browser, start and enable the Cockpit uses self-signed SSL certificate by default. Hence, you can access Cockpit interface via https:\/\/<server’s hostname or IP address>:9090<\/strong>. When you enter, the browser issues a warning. Accept the warning and proceed to Cockpit login interface.<\/p>\n\n\n\n When you login, you should be able to see various system settings and metrics.<\/p>\n\n\n\n To access System logs, you need to either be root or have sudo privileges. If you have sudo privileges, do not forget to check Reuse my password for privileged tasks<\/strong> when logging in.<\/p>\n\n\n\n For storage settings, click on Storage tab.<\/p>\n\n\n\n To access system terminal, click on the Terminal tab.<\/p>\n\n\n\n Well, in short, you can easily administer Fedora 30\/29 from web using Cockpit. It is awesome, isn’t it? You got all the freedom in the world to explore Cockpit and how to use it for system administration. Enjoy.<\/p>\n\n\n\nAdminister Fedora 30\/29 from Web using Cockpit<\/h2>\n\n\n\n
Installing Cockpit on Fedora 30<\/h3>\n\n\n\n
rpm -qa | grep cockpit<\/code><\/pre>\n\n\n\n
dnf install cockpit<\/code><\/pre>\n\n\n\n
Allow through Firewall<\/h3>\n\n\n\n
firewall-cmd --list-services | grep -i cockpit
cockpit dhcpv6-client ssh<\/code><\/pre>\n\n\n\nfirewall-cmd --list-ports | grep 9090<\/code><\/pre>\n\n\n\n
firewall-cmd --add-port=9090\/tcp --permanent
firewall-cmd --reload<\/code><\/pre>\n\n\n\nfirewall-cmd --add-service=cockpit --permanent
firewall-cmd --reload
<\/code><\/pre>\n\n\n\nRunning Cockpit<\/h3>\n\n\n\n
cockpit.socket<\/code>\u00a0service:<\/p>\n\n\n\n
systemctl start cockpit.socket
systemctl enable cockpit.socket<\/code><\/pre>\n\n\n\nAccessing Cockpit Web UI<\/h3>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n
<\/a><\/figure>\n\n\n\n