Configure Network Services to Start Automatically at Boot

LinuxLinuxBeginner
Practice Now

Introduction

In this challenge, you will learn how to configure network services to start automatically at system boot. This is an essential task for system administrators to ensure that critical network services are available and running when the system is powered on. By completing this challenge, you will gain practical experience in managing network services and improving the overall reliability and availability of your Linux system.


Skills Graph

%%%%{init: {'theme':'neutral'}}%%%% flowchart RL linux(("`Linux`")) -.-> linux/BasicSystemCommandsGroup(["`Basic System Commands`"]) linux/BasicSystemCommandsGroup -.-> linux/echo("`Text Display`") subgraph Lab Skills linux/echo -.-> lab-389439{{"`Configure Network Services to Start Automatically at Boot`"}} end

Configure Network Services to Start Automatically at Boot

Tasks

  • Configure the network service to start automatically at system boot.
  • Configure the sshd service to start automatically at system boot.

Requirements

  • The network service must be configured to start automatically at system boot.
  • The sshd service must be configured to start automatically at system boot.
  • All operations must be performed as the labex user.
  • All commands must be executed in the ~/project directory or its subdirectories.

Example

After completing this challenge, the output of the systemctl list-unit-files --type=service | grep -E 'network|sshd' command should show the following:

network.service                 enabled
sshd.service                    enabled

This indicates that both the network and sshd services are configured to start automatically at system boot.

Summary

In this challenge, you learned how to configure network services to start automatically at system boot. This is an important task for system administrators to ensure the reliability and availability of critical network services. By completing this challenge, you have gained practical experience in managing network services and improving the overall resilience of your Linux system.

If you need to set up the initial environment for this challenge, you can use the following setup.sh script:

#!/bin/bash

## Create the project directory
mkdir -p ~/project

## Change the working directory to the project directory
cd ~/project

You can run the setup.sh script as the labex user to prepare the environment for this challenge.

Other Linux Tutorials you may like