This page aims to list SliTaz tricks that you can't find in other distributions.
ISO9660 image file
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.
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:
- a 32Kb header filled with zeros
- a ISO_9660 filesystem
- a tail filled with zeros to round up the file size to the next megabyte
The ISO header: to create a USB key from DOS/Windows
This is a 3 in 1 header:
- a 16 bits DOS .exe file to launch a Linux utility menu with a USB creation item
- a 32 bits Windows .exe file to create a USB key
The taziso tool can both show and use the ISO header features.
The ISO tail: to store your configurations
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:
- pppssh a poor mans VPN. TCP based, it can add delays to the VPN network.
- sshfbvnc adds authentication and encryption to the fbvnc viewer.
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.