Program  

Courses
Location
Corporate
Our Students
Resources
Bootcamp Programs
Short Courses
Portfolio Courses
Bootcamp Programs

Launch your career in Data and AI through our bootcamp programs

  • Industry-leading curriculum
  • Real portfolio/industry projects
  • Career support program
  • Both Full-time & Part-time options.
Data Science & Big Data
Data Engineering

Become a data analyst through building hands-on data/business use cases

Become an AI/ML engineer by getting specialized in deep learning, computer vision, NLP, and MLOps

Become a DevOps Engineer by learning AWS, Docker, Kubernetes, IaaS, IaC (Terraform), and CI/CD

Short Courses

Improve your data & AI skills through self-paced and instructor-led courses

  • Industry-leading curriculum
  • Portfolio projects
  • Part-time flexible schedule
AI ENGINEERING
Portfolio Courses

Learn to build impressive data/AI portfolio projects that get you hired

  • Portfolio project workshops
  • Work on real industry data & AI project
  • Job readiness assessment
  • Career support & job referrals

Build data strategies and solve ML challenges for real clients

Help real clients build BI dashboard and tell data stories

Build end to end data pipelines in the cloud for real clients

Location

Choose to learn at your comfort home or at one of our campuses

Corporate Partners

We’ve partnered with many companies on corporate upskilling, branding events, talent acquisition, as well as consulting services.

AI/Data Transformations with our customized and proven curriculum

Do you need expert help on data strategies and project implementations? 

Hire Data, AI, and Engineering talents from WeCloudData

Our Students

Meet our amazing alumni working in the Data industry

Read our students’ stories on how WeCloudData have transformed their career

Resources

Check out our events and blog posts to learn and connect with like-minded professionals working in the industry

Read blogs and updates from our community and alumni

Explore different Data Science career paths and how to get started

Blog

Learning Guide

Install and Run Cockpit on Linux Virtual Machines

December 24, 2021

Objectives

  • This tutorial will walk you through installing the user-friendly Linux sysadmin web console tool Cockpit

Prerequisites

  • Installed Linux OS (this tutorial uses the Debian-based Linux distro Ubuntu)

Introduction

Linux is extremely useful and powerful but due to its flexibility, extensibility, and versatility as an operating system with a plethora of utilities, it can be overwhelming for beginners and even seasoned veterans. IT Ops, SysAdmins and casual hobbyists will tend to perform varying tasks throughout the day to maintain, patch or monitor their Linux systems and servers, and this may include many tools spread across multiple terminals, browsers and scripts. Cockpit is an integrated web-based tool that can help simplify your Linux workflow and lower the learning curve for those new to Linux. You can perform many common sysadmin tasks including managing user accounts, configuring firewalls, network settings, running containers and monitoring multiple Linux servers. Furthermore, it has an integrated terminal so you can continue to work on the command line while monitoring your systems.

We demonstrated how to install Linux virtual machines using a convenient tool by Canonical called Multipass in a previous article. If you haven’t done so yet, read that article to get an Ubuntu instance running first and come back here. Cockpit works on almost all Linux distributions so if you already have a Linux system running then feel free to skip the Multipass article. The rest of this article assumes a working Ubuntu instance so you will need to adapt some of the commands to your specific Linux distro.

Log in to Ubuntu Instance and Install Cockpit

First, get a remote login shell to your running Ubuntu instance via ssh:

ssh ubuntu@wcd-impish

Replace wcd-impish with your Ubuntu instance’s hostname or IP address. Note: if you installed your Ubuntu virtual machine instance with Multipass, you can also just use multipass shell wcd-impish to start a remote login shell into your instance where wcd-impish is the name you gave the instance when you launched it with Multipass.

Once you’re in your Ubuntu instance, add a password to the ubuntu user (you will need this later to log in to Cockpit):

sudo passwd ubuntu

Be sure to use a secure password such as password123.

Now install the Cockpit package:

sudo apt update && sudo apt install -y cockpit

Next enable and start the Cockpit service:

sudo systemctl enable cockpit.socket && sudo systemctl start --now cockpit

Check that the Cockpit service is up and running:

systemctl status cockpit

Cockpit is up and running. You can now connect to Cockpit via a web browser at port 9090. Before you can do so, you first have to point your web browser to your Ubuntu instance’s ip address and port 9090.

Get your Ubuntu instance’s IP address:

ip add | grep inet

The instance’s IP address will likely start with 192 like so:

Now go to the Cockpit web console at http://192.168.64.26:9090 replace 192.168.64.26 with the Ubuntu instance’s IP address you found earlier.

You will likely be greeted with a “This Connection Is Not Private” message since the connection is not TLS encrypted. Proceed anyway.

Once you proceed you should be greeted with a login screen. Log in with the ubuntu user and the password you created earlier.

After login, you should now see the Cockpit web console UI

Click on “Turn on administrative access” to be able to have sudo privileges while using Cockpit

You can now perform sysadmin tasks and even use an integrated terminal

And manage user accounts with ease

Another useful feature of Cockpit is that it lets you manage multiple Linux servers in the same integrated console as long as those servers also have Cockpit installed.

Here’s what you do:

1. Launch another Ubuntu instance using Multipass

2. Install Cockpit in the new server

3. Add the public ssh key of server 1 to server 2 (refer to WeCloudData’s Multipass article if you don’t remember how to do so)

4. Add server 2 as a new host in Cockpit

5. You can now administer both servers in the same Cockpit web console interface and switch back and forth as needed

Summary

We covered a lot of ground in this tutorial. You learned the following items:

  1. Installing packages in Linux Ubuntu
  2. Installing and starting the sysadmin tool Cockpit
  3. Performing tasks such as user management in the Cockpit web console
  4. Adding additional Linux servers to Cockpit to manage multiple servers in the same integrated Cockpit web console

Of course, we’re just scratching the surface here with Cockpit and Linux in general. You can install and run containers such as Docker or Podman containers with ease in the Linux CLI or in the Cockpit console as well. Let’s save that for a future article.

Other blogs you might like
Student Blog
The blog is posted by WeCloudData’s student Luis Vieira. I will be showing how to build a real-time dashboard on…
by Student WeCloudData
October 21, 2020
Uncategorized
Big Data for Data Scientists – Info Session from WeCloudData…
by WeCloudData
November 9, 2019
Previous
Next

Kick start your career transformation

WeCloudData

WeCloudData is the leading data science and AI academy. Our blended learning courses have helped thousands of learners and many enterprises make successful leaps in their data journeys.

Sign up for newsletter
This field is for validation purposes and should be left unchanged.