Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Basics

This section covers fundamental system administration tasks on TeamSBC.

Privilege Escalation

TeamSBC does not include sudo. Instead you can use run0 to run commands as root.

$ run0 hostnamectl set-hostname mydevice

Managing Services

Services are managed through systemctl.

Starting and stopping a service

$ run0 systemctl start sshd.service
$ run0 systemctl stop sshd.service

Enabling and disabling a service

Enabling a service means it will start automatically on boot. Disabling it removes that behavior.

$ run0 systemctl enable sshd.service
$ run0 systemctl disable sshd.service

Checking service status

$ systemctl status sshd.service

Viewing Logs

System logs are managed by journald and can be viewed with journalctl.

Viewing logs for a specific service

$ journalctl -u sshd.service

Following logs in real time

$ journalctl -f

Viewing logs from the current boot

$ journalctl -b

System Information

Hostname

$ hostnamectl

Time and timezone

$ timedatectl

To change the timezone:

$ run0 timedatectl set-timezone Europe/Amsterdam