Manage Your Linux Server in the Browser With Cockpit

Cockpit is a web interface for your server. In the browser you see the load and the logs, start and stop services, install updates, look at the disks, manage users and open a terminal. The steps were tested on Ubuntu 26.04 LTS; run the commands as root or with sudo.


1. Install Cockpit

apt install cockpit

Cockpit starts by itself and waits on port 9090. If the ufw firewall is on, open the port, best only for your own address:

ufw allow from 203.0.113.10 to any port 9090 proto tcp

or for everyone: ufw allow 9090/tcp. See Protect Your Linux Server With a Firewall and Fail2ban.

2. Let Cockpit Check for Updates

The installation also adds NetworkManager. On our servers the network is set up without it, so NetworkManager reports the server as offline, and Cockpit's Software updates page shows Cannot refresh cache whilst offline. First check that NetworkManager manages nothing:

nmcli device

If every device shows unmanaged, switch NetworkManager off. Your network keeps working, because it never used NetworkManager:

systemctl disable --now NetworkManager
systemctl restart packagekit

3. Log In

Open https://YOUR.SERVER.IP:9090. The browser warns about the certificate, because Cockpit makes its own; continue to the page. Log in with your user name (1) and password (2) and choose Log in (3). Cockpit does not accept root; use a user with sudo rights (see step 2 of the X2Go guide for how to create one).

The Cockpit login page

After the login, Cockpit shows everything but cannot change the system yet. To change it, choose Turn on administrative access (1).

Web console is running in limited access mode

Type your user's password again (1) and choose Authenticate (2).

Switch to administrative access

4. What You Find Where

Overview shows the state of the server, its load and, at the top right, the button to restart it (1).

The Cockpit overview with health, usage and the Reboot button

  • Logs: the system log, with filters for time and importance.
  • Storage: disks, partitions and how full they are.
  • Services: start, stop and restart services such as your own (see Keep a Program Running on Linux).
  • Accounts: create users and change passwords.
  • Software updates: shows waiting updates and installs them with one button (the round arrow checks again).
  • Terminal: a terminal in the browser, as your user.

Software updates in Cockpit: the system is up to date

💡 Keep it private

Cockpit can change everything on your server. Open port 9090 only for your own addresses, and use a strong password for every user with sudo rights.


Related Guides

View all Linux guides

Was this answer helpful? 0 Users Found This Useful (0 Votes)