Administration
Users and root
Daily work is done as a normal user. Administration needs root: in a
terminal, su asks for the root password and opens a root
shell until exit. Graphical tools ask for the root password
themselves; to run any program as root from the desktop, use
tazbox su program.
$ su Password: # spk-up # exit
sudo is not installed by default. If you prefer it, install
it and allow your user with visudo:
# spk-add sudo # visudo
Users and groups are managed with trame user (see
System settings) or the BusyBox
commands adduser, deluser,
addgroup user group and passwd.
Boot and services
SliTaz uses a simple BusyBox init with no runlevels:
/etc/init.d/rcS prepares the system, runs a few scripts and
starts the services, all driven by /etc/rcS.conf:
| Variable | Default | Meaning |
|---|---|---|
LOAD_MODULES | empty | Kernel modules to load at boot |
CHECK_FS | empty | Partitions to check at boot, e.g. "/dev/sda2" |
RUN_SCRIPTS | bootopts.sh system.sh network.sh local.sh | Boot scripts |
RUN_DAEMONS | firewall | Services started at boot, in order |
LOGIN_MANAGER | slim | Graphical login; empty for a text login |
Each service is a script in /etc/init.d/, and its options
are in /etc/daemons.conf:
# /etc/init.d/dropbear start # /etc/init.d/dropbear stop # trame service enable dropbear # adds it to RUN_DAEMONS
Your own commands to run at the end of the boot go in
/etc/init.d/local.sh. The boot messages are saved in
/var/log/boot.log.
Kernel and firmware
SliTaz 5.1 runs Linux 6.12 LTS, package linux-lts, on both
architectures. Its modules are split by use, so a small system only
installs what it needs:
| Package | Modules |
|---|---|
linux-lts-net | Wired network cards |
linux-lts-wireless | Wi-Fi and Bluetooth |
linux-lts-wireless-extra | Less common Wi-Fi drivers (Broadcom, Atheros ath10k...) |
linux-lts-media | Webcams, TV and video capture |
linux-lts-storage | Disk controllers, RAID, memory cards |
linux-lts-fs | File systems |
linux-lts-sound | Sound cards |
linux-lts-input | Keyboards, mice, touchpads, joysticks |
linux-lts-hw | ACPI, sensors, I2C, GPIO |
linux-lts-gpu | Graphics (DRM) |
linux-lts-virt | KVM and virtio |
linux-lts-crypto, linux-lts-extra | Encryption, and less common hardware |
linux-lts-module-headers | To build external modules |
The desktop images have the common sets, SliTaz Base only the kernel
and linux-lts-net. The exFAT, NTFS and F2FS file systems
are in linux-lts-fs, WireGuard in
linux-lts-net. trame kernel modules list shows the loaded modules,
LOAD_MODULES in /etc/rcS.conf loads more at
boot. SliTaz Core Retro runs Linux 3.16, package linux, for
very old machines.
Many devices need a firmware file: trame hardware firmware
tells which, and the firmware-* packages provide them,
see Wi-Fi firmware. The
firmware-sof package gives sound to recent Intel laptops.
Before upgrading the kernel, keep a live USB key at hand: the rescue entry of the boot menu starts the same kernel and cannot recover from a kernel that does not boot.
Disks and partitions
$ cat /proc/partitions # blkid # fdisk -l $ df -h
To mount a partition by hand, create a directory and mount it; the file system type is detected:
# mkdir -p /mnt/data # mount /dev/sda3 /mnt/data # umount /mnt/data
Partitions mounted at every boot are listed in /etc/fstab,
preferably by UUID as given by blkid:
UUID=0f3c... /home/data ext4 defaults 0 2
USB keys and disks are mounted from the file manager or with
trame storage. NTFS and exFAT are supported.
Printing and scanning
Printing uses CUPS. Install it with the drivers of your printer: the
service starts at once, and enable also starts it at
boot:
# spk-add cups cups-filters gutenprint # trame service enable cupsd
Then add the printer in the CUPS web page, Manage Printing in
the Dash, or http://localhost:631/ in a browser. Drivers:
gutenprint and foomatic-db for most printers,
hplip for HP, cnijfilter2 for Canon inkjet.
For a scanner, install sane-backends and the
xsane application.
Logs
| File | Holds |
|---|---|
/var/log/messages | System and kernel messages |
/var/log/boot.log | Last boot (previous boots: .0 to .9) |
/var/log/network.log | Network setup |
/var/log/Xorg.0.log | X server |
/var/log/spk/ | Package installs and upgrades |
/var/log/trame.log | Changes made by Trame |
dmesg shows the kernel messages, trame log view
xorg (or kernel, boot, network...)
shows a log by name.
Scheduled tasks
BusyBox crond runs scheduled tasks. Edit your table with
crontab -e, then start the service and add
crond to RUN_DAEMONS:
# crontab -e 30 3 * * * /usr/sbin/spk-up --check # /etc/init.d/crond start # trame service enable crond
Repair a broken system
Reprise diagnoses and repairs a SliTaz system, without network: packages, libraries, users, desktop, sound, network, Xorg. Run it when something stopped working:
$ reprise # diagnose and explain # reprise --fix # propose each repair, one by one # reprise --undo # restore what the last repairs changed
Before each upgrade, spk-up takes a snapshot, so a bad
upgrade can be undone. When the system does not start a session twice
in a row, the boot offers to run reprise. You can also choose
SliTaz rescue (reprise) in the boot menu, or add
reprise to the boot options. From a live system, repair an
installed one mounted on /mnt/sda2 with:
# reprise --rescue=/mnt/sda2
reprise --check gives a quick summary, reprise
--report a full report to attach to a bug report. reprise
--update-db downloads the latest known fixes from
filature.slitaz.org. Every repair is logged in
/var/log/reprise.log and the changed files are saved in
/var/lib/reprise/backups/.
Security
- On an installed system, choose a real root password and a password for each user; on the live system, change the default root password before connecting to an untrusted network.
- No server is started by default. Start only the services you use, see Servers.
- Enable the firewall rules on machines reachable from internet, see Firewall.
- Keep the system up to date with
spk-up.
SliTaz Doc