This page aims to list SliTaz tricks that you can't find in other distributions.
The SliTaz GNU/Linux distrbution is published as a downloadable iso image file. The different flavors (base, core64, loram…) are built in this format.
Nowadays booting on a CD-ROM is not so fashionable. People prefer to boot their SliTaz from a USB key, a memory card or a hard disk.
It's easy to create a USB key under Linux with the dd_(Unix) command. Some third party Windows tools aim to be able to create USB keys, but most of them don't support the SliTaz many-in-one format (also known as russian dolls).
C:\> ren slitaz.iso mkusbkey.exe
People would like to add some personal data to the ISO image such as a Wifi configuration or SSH keys. But the ISO remastering is not an easy thing to do.
SliTaz provides a linux tool iso2exe and the DOS/Windows tool isohybrid.exe to add a custom initrd and some extra cmdline arguments.
A linux usage can be:
$ iso2exe -a "rdinit=init.custom" -i initrd.gz slitaz.iso -f
A DOS (16 bits) or Windows (32 bits) usage can be:
C:\> isohybrid -a "rdinit=init.custom" -i initrd.gz slitaz.iso -f
#!/bin/sh # Add custom kernel modules sed -i 's/LOAD_MODULES="/&amodule anothermodule/' /etc/rcS.conf # Start extra daemons sed -i 's/RUN_DAEMONS="/&demon1 demon2/' /etc/rcS.conf # Custom boot commands cat >> /etc/init.d/local.sh <<EOT shell commands... EOT # Continue normal boot sequence exec /init
An iso9660 image file has three parts:
This is a 3 in 1 header:
It includes a iso9660 filesystem md5sum hash and its own checksum (in the .exe file header). Design rational can be found in the README file
The taziso tool can both show and use the ISO header features.
The ISO tail has a magic string and its own md5 hash. The md5 can be checked by taziso and the ISO boot menu under DOS. The ISO9660 filesystem is untouched. The md5 hash in the boot area is still valid.
The isolinux bootloader is modified by SliTaz to load the custom configuration unlike other distributions.
Small custom configurations should not change the ISO image size thanks to the megabyte alignment. Larger configurations can extend the ISO image without limitation.
SliTaz rolling iso map --mem --heads=0 --sectors-per-tracks=0 /boot/slitaz-rolling.iso (hd32) map --hook chainloader (hd32)
Dropbear is a SSH2 client and server. The server side supports X11 forwarding but the client does not. SliTaz provides a tiny shell script named sshx to restore this feature. By the way 2 other scripts are given:
Sshfs-fuse can mount a remote filesystem on the local machine. SliTaz provides a tiny script named rsshfs to mount a local filesystem on a remote machine.
Cloop packages (fusecloop, cloop-utils…) are able to mount any cloop formats. The official software fails to mount earlier formats.
They add a new format to reduce the memory consumption during the compressed file creation.
This PXE has a built in configuration to boot from a SliTaz server and can be used without a local PXE server.
The scanner drivers package adds a GUI in a tazpanel module.