• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Your Linux Server (Debian), But Make It Clickable: Setting Up Cockpit for Web-Based Administration

Lomanu4 Оффлайн

Lomanu4

Команда форума
Администратор
Регистрация
1 Мар 2015
Сообщения
1,481
Баллы
155

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.


From the CLI to the Cloud Control Room

It was 3 AM, and I was knee-deep in systemctl logs, SSH’d into a remote server, eyes half-closed, trying to restart a frozen service. The commands were familiar, but the fatigue was real. That's when I thought: “Why can't Linux server management feel a little more... visual?”

Not because I don't love the terminal — I do.
But because sometimes, the right interface can speed up your workflow, reduce errors, and make monitoring services actually enjoyable.

That’s when I met Cockpit — the open-source web GUI for Linux administration.

This guide walks you through installing and using Cockpit on your Linux server, transforming it into a beautiful, browser-accessible control room. You’ll still have your CLI power — but now with dashboards, charts, toggles, and peace of mind.

What is Cockpit?
Cockpit is a lightweight, real-time, web-based interface that lets you:

  • Monitor system performance
  • Manage services, users, and storage
  • Update software packages
  • Access a web-based terminal
  • Manage containers and virtual machines (with plugins)

It’s fast, secure, and already included in the official repos of many distributions.

[Step 1: Update Your Server & Install Cockpit]


Before installing any new package, it's good practice to ensure the system is up to date.


sudo apt update && sudo apt upgrade -y

This command updates the package lists and upgrades all installed packages to their latest versions.

Cockpit is available in Ubuntu's official repositories, so installation is simple:


sudo apt install cockpit -y

This installs the core Cockpit interface. Depending on your use case, you may add modules later.

[Step 2: Start and Enable Cockpit]


Cockpit uses systemd and comes with a socket-activated service. Enable and start it:


sudo systemctl enable --now cockpit.socket

To confirm Cockpit is up and listening:


sudo systemctl status cockpit.socket

Look for Active: active (listening) and port 9090.

[Step 3: Access the Web Interface & Login to Cockpit]


Now, open your browser and navigate to:

https://:9090
For example: 10.10.0.5

⚠ Don’t worry if you see a self-signed certificate warning. Accept it for now or configure HTTPS properly with Let's Encrypt for production environments.

  • Use your Linux system credentials (e.g., the same user you SSH with).
  • If you are using a non-root user, make sure it has sudo privileges.

Once logged in, you’ll see a dashboard with real-time stats, system health, storage, networking, logs, and a built-in terminal.

[Step 4: Extend Cockpit with Additional Features]


Want more than just basic monitoring? Cockpit supports modules:


sudo apt install cockpit-pcp cockpit-networkmanager cockpit-packagekit
  • cockpit-pcp for performance metrics
  • cockpit-networkmanager for managing networking
  • cockpit-packagekit for software updates via GUI


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Conclusion


Cockpit transforms Linux administration from purely command-line to an experience that is clean, visual, and efficient. It empowers you to:

Respond faster to system issues

Gain visibility into system health

Onboard junior admins with ease

Whether you're managing a home lab, a VPS, or a fleet of servers, Cockpit is a tool worth having.

You’re still the sysadmin. Just now with a dashboard.


Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу