Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Getting Hands-on with Cockpit on CentOS 7

In this hands-on lab, we will be managing two CentOS 7 web server instances using Cockpit. Specifically, we will: - Install and Configure Cockpit on CentOS 7 - Manage Storage Using Cockpit - Manage Networking Using Cockpit - Manage systemd Services Using Cockpit - Patch the CentOS 7 Servers Using Cockpit When the lab is complete, you will have a solid understanding of how to manage a Linux server using Cockpit.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 0m
Published
Clock icon Aug 06, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Install and Configure Cockpit on CentOS 7

    Install and Configure Cockpit on CentOS 7 (Duration: 20 minutes):

    • Install and configure Cockpit on both instances of CentOS 7
    • Configure the Cockpit installation on the first instance to manage the second instance

    For more information on installing and configuring Cockpit, see: Running Cockpit — Cockpit Project

  2. Challenge

    Manage Storage Using Cockpit

    We will take a look at storage management (Duration: 10 minutes):

    • Create a new RAID-1 volume (web_data) for website data:
      • Partition, format, and configure a mount point at /web_data
      • Use two disks
    • Create a new volume group (web_vg):
      • Add the remaining disk to it
    • Create and format a new logical volume for the logs (web_logs):
      • Create the web_logs logical volume in the web_vg volume group
      • Format the logical volume
      • Mount the new logical volume on the /web_logs directory

    Configure the storage on both instances as described above.

  3. Challenge

    Manage Networking Using Cockpit

    We will take a look at network management (Duration: 10 minutes):

    • Modify our firewall configuration to enable HTTP traffic
    • Monitor network traffic
    • Review network interfaces
    • Review networking logs

    Configure the firewall on both instances as described above.

  4. Challenge

    Manage systemd Services Using Cockpit

    We’re going to look at using Cockpit to manage systemd services (Duration: 10 minutes):

    • Enable the nginx web server service
    • Start the nginx web server service
    • Confirm that the nginx service is enabled and running
    • Connect to the nginx web server via your web browser (on port 80) to confirm the nginx service is working

    Configure the nginx service on both instances as described above. Confirm that nginx is working on both instances.

  5. Challenge

    Patch the CentOS 7 Servers Using Cockpit

    Finally, we will use Cockpit to make sure the CentOS 7 installation on both instances is up-to-date, and if not, update them. We've allocated 10 minutes for this activity. Feel free to explore Cockpit once this is complete!

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans