Skip to content

Techeons

Imagine | Explore | Innovate

Menu
  • Home
Menu

How to setup Cockpit on Ubuntu

Posted on September 6, 2024

Cockpit is a free, open-source, and web-based server management tool that simplifies server administration tasks. It provides a user-friendly interface for managing servers, making it easier for system administrators to monitor and control their servers from a single dashboard.

Key Features:

  • System Monitoring: Real-time monitoring of system performance, resource usage, and logs.
  • User Management: Manage user accounts, permissions, and access controls.
  • Storage Management: Configure and manage storage devices, file systems, and networks.
  • Network Configuration: Manage network settings, including interfaces, routes, and firewalls.
  • Package Management: Install, update, and manage software packages.
  • Security: Configure security settings, including firewalls, SELinux, and access controls.

Benefits:

  • Easy to use: Intuitive web-based interface reduces the learning curve for system administrators.
  • Centralized management: Manage multiple servers from a single dashboard.
  • Real-time monitoring: Quickly identify and resolve system issues.
  • Flexible: Extensive plugin architecture allows for customization and extension.

Common Use Cases:

  • Managing servers in data centers or cloud environments
  • Monitoring and troubleshooting system performance issues
  • Automating routine system administration tasks
  • Providing a user-friendly interface for non-technical users to manage servers

Installation

1) Run this command:

sudo apt update
sudo apt install cockpit

Default port is 9090.

2) If you need to change the default port, check these steps:

On servers with systemd Cockpit starts on demand via socket activation. To change its port and/or address you should place the following content in the /etc/systemd/system/cockpit.socket.d/listen.conf file. Create the file and directories in that path which not already exist. The ListenStream option specifies the desired address and TCP port.

mkdir -p /etc/systemd/system/cockpit.socket.d
sudo touch /etc/systemd/system/cockpit.socket.d/listen.conf
sudo vim /etc/systemd/system/cockpit.socket.d/listen.conf
[Socket]
ListenStream=
ListenStream=9099

sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket

Now it should be available at Port 9099.

Useful links

  • https://cockpit-project.org/guide/latest/listen.html
  • https://cockpit-project.org/guide/latest/cockpit.conf.5.html
Share on Social Media
x facebook pinterest linkedin tumblr reddit emailwhatsapptelegrammastodon

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • Nginx: How to increase timeout for Nginx
  • Cheat Sheet: Essential Git Commands
  • Setting a default shell in Linux
  • Setting up Composer on Linux
  • Switch easily between Python versions on a Mac using pyenv

Tags

ai alerting aws b2 backblaze certificate cheatsheet cloud commands data-science datalake devops dns docker dremio git gitlab infra jenkins kubernetes linux metabase minikube minio monitoring mount mysql nginx nodejs notebooks openssh php python scala secrets spark ssh ssl ubuntu ufw usb web dev tools windows xampp zeppelin

©2026 Techeons | Design: Newspaperly WordPress Theme