Basics on Makalu
NOTE
This section applies to the Makalu variant.
This section covers fundamental system administration tasks on TeamSBC.
Privilege Escalation
TeamSBC does not include sudo. Use run0 to run commands as root. For example, to set the hostname:
console
$ run0 hostnamectl set-hostname mydeviceNOTE
Commands in the maintenance section are expected to be run as root, so the examples omit run0.
WARNING
Some commands can fail when run with run0 because of an SELinux issue. If a command fails, try run0 --via-shell before the command.
Managing Services
Services are managed through systemctl.
Starting and stopping a service
console
$ systemctl start sshd.service
$ systemctl stop sshd.serviceEnabling and disabling a service
Enabling a service means it will start automatically on boot. Disabling it removes that behavior.
console
$ systemctl enable sshd.service
$ systemctl disable sshd.serviceChecking service status
console
$ systemctl status sshd.serviceViewing Logs
System logs are managed by journald and can be viewed with journalctl.
Viewing logs for a specific service
console
$ journalctl -u sshd.serviceFollowing logs in real time
console
$ journalctl -fViewing logs from the current boot
console
$ journalctl -bSystem Information
Hostname
console
$ hostnamectlTime and timezone
console
$ timedatectlTo change the timezone:
console
$ timedatectl set-timezone Europe/AmsterdamFor help with problems, see Troubleshooting on Makalu.
