Servers
SliTaz Base is a good start for a server: it boots in a few seconds, uses little memory and runs nothing you did not ask for. The SliTaz web sites themselves run on SliTaz.
SSH
The Dropbear SSH server and client are on every image. The server is not started by default:
# /etc/init.d/dropbear start # trame service enable dropbear
The host keys are created at the first start in
/etc/dropbear/. By default root cannot log in over SSH:
log in as a user, then use su. The server options are in
DROPBEAR_OPTIONS in /etc/daemons.conf; add
-s to allow key logins only.
Connect to a machine and copy files:
$ ssh tux@192.168.1.10 $ scp file.txt tux@192.168.1.10:Documents/
For key logins, put your public key in
~/.ssh/authorized_keys on the server. Dropbear makes keys
with dropbearkey; dropbearkey -y -f key prints
the public part. OpenSSH is also available (spk-add openssh,
service openssh).
Web server
BusyBox includes a tiny web server, httpd, fine for static
files and shell CGI. For a full web server, install Lighttpd:
# spk-add lighttpd # trame service enable lighttpd
Lighttpd starts right after the installation and serves
/var/www/ on port 80. Its configuration is
/etc/lighttpd/lighttpd.conf, with virtual hosts in
/etc/lighttpd/vhosts.conf; the logs are in
/var/log/lighttpd/.
- Shell scripts (
.sh,.cgi) in/var/www/cgi-bin/run as CGI. - Each user can publish files in
~/Public/, served athttp://host/~user/. /server-statusshows the server status; it is open to everyone by default, restrict or remove it on a public server.
# nano /etc/lighttpd/lighttpd.conf # /etc/init.d/lighttpd restart
PHP
# spk-add php
Installing PHP also sets up Lighttpd to run .php files
through FastCGI: put an index.php in
/var/www/ and it works. Extensions are separate packages
(php-sqlite, php-mysqli,
php-pdo-pgsql...). For Nginx, use php-fpm.
Other servers
Packaged for i486 and x86_64:
| Use | Packages |
|---|---|
| Web | lighttpd, nginx, apache |
| Databases | sqlite, mariadb, postgresql |
| Files | nfs-utils, samba, vsftpd, pure-ftpd, rsync |
postfix, dovecot | |
| Network | dnsmasq, bind, squid |
| Code | git, mercurial |
| Certificates | uacme, a small Let's Encrypt (ACME) client |
| Security | fail2ban, tinyssh |
| Web apps | privatebin (pastebin), dokuwiki, goaccess (web log analyzer) |
| Backup | restic, rsync |
Versions in SliTaz 5.1: Lighttpd 1.4.84, Apache 2.4.67, Nginx 1.25.4, PHP 7.4.33, MariaDB 11.4.7, PostgreSQL 12.18, SQLite 3.39.2, OpenSSH 9.9p2.
BusyBox also provides small crond, ntpd,
ftpd, tftpd, udhcpd and
dnsd services, with their scripts in
/etc/init.d/ and their options in
/etc/daemons.conf.
SliTaz Doc