Skip to content

108: Essential System Services

Tom Ormiston edited this page Aug 31, 2017 · 13 revisions

108.1 Maintain system time

Description: Candidates should be able to properly maintain the system time and synchronize the clock via NTP.

Key Knowledge Areas:

Set the system date and time Set the hardware clock to the correct time in UTC Configure the correct timezone Basic NTP configuration Knowledge of using the pool.ntp.org service Awareness of the ntpq command

Terms and Utilities:

/usr/share/zoneinfo/
/etc/timezone
/etc/localtime
/etc/ntp.conf
date
hwclock
ntpd
ntpdate
pool.ntp.org

UrbanPenguin: Maintain system time

Arch Wiki: Time, setting it etc

Arch Wiki: UTC in Ubuntu

date

hwclock

ntpd

ntpdate

pool.ntp.org project is a big virtual cluster of timeservers

timezone

108.2 System logging

Description: Candidates should be able to configure the syslog daemon. This objective also includes configuring the logging daemon to send log output to a central log server or accept log output as a central log server. Use of the systemd journal subsystem is covered. Also, awareness of rsyslog and syslog-ng as alternative logging systems is included.

Key Knowledge Areas:

Configuration of the syslog daemon Understanding of standard facilities, priorities and actions Configuration of logrotate Awareness of rsyslog and syslog-ng

Terms and Utilities:

syslog.conf
syslogd
klogd
/var/log/
logger
logrotate
/etc/logrotate.conf
/etc/logrotate.d/
journalctl
/etc/systemd/journald.conf
/var/log/journal/

UrbanPenguin: System logging

syslog.conf

syslogd

klogd

logger

logrotate

108.3 Mail Transfer Agent (MTA) basics

Description: Candidates should be aware of the commonly available MTA programs and be able to perform basic forward and alias configuration on a client host. Other configuration files are not covered.

Key Knowledge Areas:

Create e-mail aliases Configure e-mail forwarding Knowledge of commonly available MTA programs (postfix, sendmail, qmail, exim) (no configuration)

Terms and Utilities:

~/.forward
sendmail emulation layer commands
newaliases
mail
mailq
postfix
sendmail
exim
qmail

UrbanPenguin: Mail transfer agents MTA basics

mail servers, POP3, IMAP SMTP Mail user-agents

Postfix - fast, secure and sendmail compatible

[Arch Wiki: mailman 2](https://wiki.archlinux.org/index.php/Mailman]

Arch wiki: Sendmail, the classic SMTP server

Arch Wiki: Exim, an SMTP server for Linux/UNIX-like systems

exim

mail -1

postfix

newalias -1

newalias -2

newaliases -sendmail

sendmail -1

sendmail -2

mailq -sendmail

How email works - MTA, MDA, MUA

What is a mail transfer agent, a mail delivery agent, and a mail user agent?

6 Best Mail Transfer Agents (MTA's) for Linux

108.4 Manage printers and printing

Description: Candidates should be able to manage print queues and user print jobs using CUPS and the LPD compatibility interface.

Key Knowledge Areas:

Basic CUPS configuration (for local and remote printers) Manage user print queues Troubleshoot general printing problems Add and remove jobs from configured printer queues

Terms and Utilities:

CUPS configuration files, tools and utilities
/etc/cups/
lpd legacy interface (lpr, lprm, lpq)

UrbanPenguin: Printing

Ubuntu documentation: CUPS - Print Server guide

localhost 631 CUPS Web Printing via Command Line Note: Ensure your firewall isnt blocking port 631 sudo ufw status verbose should show 631. In order to perform administrative tasks via the web interface, you must either have the root account enabled on your server, or authenticate as a user in the lpadmin group. For security reasons, CUPS won't authenticate a user that doesn't have a password.

To add a user to the lpadmin group, run at the terminal prompt:

sudo usermod -aG lpadmin username

Add a Printer On Linux With CUPS Web Utility

Printers and printing

cupsd.conf

Arch wiki: CUPS

Arch Wiki: Installing CUPS printer via command line

Arch Wiki: CUPS/Printer-specific problems

lpq -1

lpq -2

lpr -1

lpr -2

lprm -1

lprm -2

lpstat -1

lpstat -2


Printing exercises

Configuring and testing printers