Install Cockpit on Ubuntu 18

Every Linux guru loves to show off their L33T (elite) cli skills, but sometimes a nice GUI rules. Like when you are monitoring a bunch of servers and just don’t feel like messing around with cryptic commands and ascii characters.

One tool I like for a simple overall of servers is “Cockpit”. After you log in it gives you the basics every sysadmin wants, CPU, Memory, Disk I/O and Network Traffic.

You can get details by selecting the appropriate selection in the sidebar. It’s not the most feature rich server GUI, but it nails the basics, it’s easy to install, and it does the job. Did I mention it’s free?

Read more on the project here:

https://cockpit-project.org/

To install on a server you wish to monitor, log into it and open a command line. If you are using Ubuntu, just hit CTL+T.

Enter each line individually:

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install cockpit cockpit-docker

Heads up: if you are run a firewall on your local machine, you will have to open port 9090.

Now that every thing is installed, you can access Cockpit.

From a PC:

  • Open your web browser
  • In the address bar, type in the ip address of the server plus the port like so:
192.168.1.23:9090 
(YOUR server ip address, not this example)

That should open Cockpit to the login screen.

Now log in and you should be at the main menu seeing a bunch of great statistics on your server.

Feel free to select items from the sidebar to get details of your server.

That’s it. I hope you found this useful!