Skip to content

Linux System Configuration

Mattscreative edited this page Dec 5, 2025 · 2 revisions

Linux System Configuration Guide

Complete beginner-friendly guide to configuring Linux system settings, covering Arch Linux, CachyOS, and other distributions including systemd, services, user management, system information, time, locale, and hostname.


Table of Contents

  1. Systemd Basics
  2. Service Management
  3. User Management
  4. System Information
  5. Time and Locale
  6. Hostname Configuration
  7. System Maintenance

Systemd Basics

What is Systemd?

systemd is the init system and service manager.

Functions:

  • Manages services
  • Handles boot process
  • Controls system resources
  • Manages users and sessions

Systemd Components

Main components:

  • systemd: Core system manager
  • systemctl: Service control
  • journalctl: Log viewing
  • systemd-analyze: Boot analysis

Service Management

Enable Service

Start service at boot:

# Enable service
sudo systemctl enable service-name

# Enable and start
sudo systemctl enable --now service-name

Example:

# Enable NetworkManager
sudo systemctl enable --now NetworkManager

Start/Stop Service

Control services:

# Start service
sudo systemctl start service-name

# Stop service
sudo systemctl stop service-name

# Restart service
sudo systemctl restart service-name

# Reload service (if supported)
sudo systemctl reload service-name

Service Status

Check service status:

# Check status
systemctl status service-name

# Check if running
systemctl is-active service-name

# Check if enabled
systemctl is-enabled service-name

See Systemctl Troubleshooting for detailed guide.


User Management

Create User

Add user:

# Create user
sudo useradd -m -G wheel username

# Set password
sudo passwd username

Sudo Configuration

Configure sudo:

# Edit sudoers
sudo visudo

# Ensure wheel group has sudo
%wheel ALL=(ALL) ALL

See User and Groups for detailed guide.


ℹ System Information

System Info

Check system:

# System information
uname -a

# Kernel version
uname -r

# Hostname
hostname

# Uptime
uptime

Hardware Info

Check hardware:

# CPU info
lscpu

# Memory info
free -h

# Disk info
df -h

⏰ Time and Locale

Time Configuration

Set timezone:

# List timezones
timedatectl list-timezones

# Set timezone
sudo timedatectl set-timezone America/New_York

See Time Synchronization for detailed guide.

Locale Configuration

Set locale:

# Generate locale
sudo locale-gen

# Set locale
sudo localectl set-locale LANG=en_US.UTF-8

See Locale and Language for detailed guide.


Hostname Configuration

Set Hostname

Change hostname:

# Set hostname
sudo hostnamectl set-hostname new-hostname

# Check hostname
hostnamectl

System Maintenance

System Updates

Update system:

# Arch/CachyOS
sudo pacman -Syu

# Debian/Ubuntu
sudo apt update && sudo apt upgrade

# Fedora
sudo dnf update

System Cleanup

Clean packages:

# Clean cache
sudo pacman -Sc

# Remove orphans
sudo pacman -Rns $(pacman -Qdtq)

Summary

This guide covered system configuration for Arch Linux, CachyOS, and other distributions, including systemd, services, user management, and system maintenance.


Next Steps


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.

Clone this wiki locally