How to Enable Cockpit Server Manager in AlmaLinux 10
The cockpit is an easy-to-use and simple yet powerful remote manager for GNU/Linux servers, it’s an interactive server administration user interface that offers a live Linux session via a web browser.
Install Cockpit Server Manager
dnf install cockpit
Check latest versions here : Cockpit.
Enable the service to start onboot,
systemctl enable --now cockpit.socket
Allow the service to run through the firewall,
firewall-cmd --permanent --zone=public --add-service=cockpit
firewall-cmd --reload
If you see any warnings like,
[root@drop ~]# firewall-cmd --permanent --zone=public --add-service=cockpit
Warning: ALREADY_ENABLED: cockpit success
You can ignore the warning and proceed ahead.
Allow Root User to Log in to Cockpit
By default, Cockpit blocks the root user. To enable root login:
nano /etc/cockpit/disallowed-users
Change this:
root
To this:
# root
Or delete the root line entirely.
Then restart the Cockpit service:
systemctl restart cockpit.socket
Next, open the following URL in your browser, it will error due to the invalid SSL certificate, you can use LetsEncrypt to set up a valid SSL certificate as needed.
https://YOUR-VPS-IP-ADDRESS:9090
Replace "YOUR-VPS-IP-ADDRESS" with your VPSes IP address
Here you can enter your root username/password (SSH Login Details) and it will take you into the Cockpit server manager!
Please note,
- The web page might render a blank screen in Chrome due to the self-signed/invalid SSL certificate used by default in Cockpit.
- Use Firefox in such a scenario where you do not have an SSL Certificate/Domain to bind the service too.
The Cockpit service User Interface
Within the Cockpit server manager, you can manage nearly all parts of your server from Software Updates, monitoring CPU/RAM Usage, and accessing your Terminal as well.
Now you have successfully installed Cockpit Server Manager in your AlmaLinux 10.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS