website diff en/doc/scratchbook/base-apps.html @ rev 1344
Resize balinor logo to 120px
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 22 23:02:15 2021 +0100 (2021-01-22) |
parents | c2f9d5d0f314 |
children |
line diff
1.1 --- a/en/doc/scratchbook/base-apps.html Thu Mar 29 01:59:45 2012 +0300 1.2 +++ b/en/doc/scratchbook/base-apps.html Fri Jan 22 23:02:15 2021 +0100 1.3 @@ -1,23 +1,22 @@ 1.4 -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 1.5 - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 1.7 +<!DOCTYPE html> 1.8 +<html lang="en"> 1.9 <head> 1.10 - <title>SliTaz Scratchbook - Base Applications</title> 1.11 - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 1.12 - <meta name="description" content="" /> 1.13 - <meta name="expires" content="never" /> 1.14 - <meta name="modified" content="2008-11-22 17:00:00" /> 1.15 - <meta name="publisher" content="www.slitaz.org" /> 1.16 - <meta name="author" content="Christophe Lincoln"/> 1.17 - <link rel="shortcut icon" href="favicon.ico" /> 1.18 - <link rel="stylesheet" type="text/css" href="book.css" /> 1.19 + <meta charset="UTF-8"> 1.20 + <title>SliTaz Scratchbook - Base Applications</title> 1.21 + <meta name="description" content=""> 1.22 + <meta name="expires" content="never"> 1.23 + <meta name="modified" content="2008-11-22 17:00:00"> 1.24 + <meta name="publisher" content="www.slitaz.org"> 1.25 + <meta name="author" content="Christophe Lincoln"> 1.26 + <link rel="shortcut icon" href="favicon.ico"> 1.27 + <link rel="stylesheet" href="book.css"> 1.28 </head> 1.29 -<body bgcolor="#ffffff"> 1.30 +<body> 1.31 1.32 <!-- Header and quick navigation --> 1.33 <div id="header"> 1.34 <div align="right" id="quicknav"> 1.35 - <a name="top"></a> 1.36 + <span id="top"></span> 1.37 <a href="base-system.html">Base system</a> | 1.38 <a href="index.html">Table of contents</a> | 1.39 <a href="base-ncurses.html">Base ncurses</a> 1.40 @@ -44,18 +43,18 @@ 1.41 <li><a href="#lighttpd">lighttpd-1.4.18</a> - HTTP web server.</li> 1.42 <li><a href="#iptables">iptables-1.3.7</a> - Netfilter, Linux firewall.</li> 1.43 <li><a href="#sqlite">sqlite-3.5.1</a> - Small SQL database engine.</li> 1.44 - <li><a href="#cdrkit">cdrkit-1.1.5</a> - Tools for manipulating cdrom 1.45 + <li><a href="#cdrkit">cdrkit-1.1.5</a> - Tools for manipulating CD-ROM 1.46 and ISO images.</li> 1.47 <li><a href="#cpio">cpio-2.8</a> - Archiver used for SliTaz packages and 1.48 initramfs.</li> 1.49 <li><a href="#microperl">microperl-5.8.8</a> - A tiny Perl.</li> 1.50 <li><a href="#module-init-tools">module-init-tools-3.2</a> - Tools for 1.51 - manipulating the kernel modules.</li> 1.52 + manipulating the Kernel modules.</li> 1.53 <li><a href="#kernel-modules">Copy and compress the Kernel modules.</a></li> 1.54 <li><a href="#initramfs-iso">Generate the initramfs and an ISO image.</a></li> 1.55 </ul> 1.56 -<a name="about"></a> 1.57 -<h3><font color="#6c0023">About</font></h3> 1.58 + 1.59 +<h3 id="about">About</h3> 1.60 <p> 1.61 This chapter describes the facilities libraries and basic text mode applications supplied with 1.62 SliTaz. 1.63 @@ -63,7 +62,7 @@ 1.64 <h4>Assign an environment variable ($fs)</h4> 1.65 <p> 1.66 An environmental variable can't specify the path to the directory, just the name of the directory. 1.67 -We will affect a variable '$fs' to indicate the path to the root filesystem 1.68 +We will affect a variable ‘$fs’ to indicate the path to the root filesystem 1.69 (rootfs). To do this, we venture into the working directory SliTaz/, and type: 1.70 </p> 1.71 <pre> # export fs=$PWD/rootfs 1.72 @@ -73,8 +72,8 @@ 1.73 </p> 1.74 <pre> # echo $fs 1.75 </pre> 1.76 -<a name="bc"></a> 1.77 -<h3><font color="#6c0023">bc-1.06 - Text mode calculator</font></h3> 1.78 + 1.79 +<h3 id="bc">bc-1.06 - Text mode calculator</h3> 1.80 <p> 1.81 The application bc (<a href="http://www.gnu.org/software/bc/">www.gnu.org/software/bc/</a>) provides 1.82 a small calculator. When compiling the utility, dc is also built, 1.83 @@ -100,8 +99,8 @@ 1.84 <pre class="script"> libc.so.6 => /lib/libc.so.6 (0x40029000) 1.85 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) 1.86 </pre> 1.87 -<a name="zlib"></a> 1.88 -<h3><font color="#6c0023">zlib-1.2.3 - Compression libraries</font></h3> 1.89 + 1.90 +<h3 id="zlib">zlib-1.2.3 - Compression libraries</h3> 1.91 <p> 1.92 The zlib (<a href="http://www.zlib.net/">http://www.zlib.net/</a>) package provides compression 1.93 and decompression functions used by among others, the SSH server Dropbear and the X server: 1.94 @@ -115,8 +114,8 @@ 1.95 # strip -vs libz.so* 1.96 # cp -av libz.so* $fs/usr/lib 1.97 </pre> 1.98 -<a name="pcre"></a> 1.99 -<h3><font color="#6c0023">pcre-7.4 - Perl-compatible regular expressions</font></h3> 1.100 + 1.101 +<h3 id="pcre">pcre-7.4 - Perl-compatible regular expressions</h3> 1.102 <p> 1.103 The package pcre (<a href="http://www.pcre.org/">http://www.pcre.org/</a>) provides libraries of 1.104 functions for Perl compatible regular expressions used by among others, the web server Lighttpd: 1.105 @@ -133,8 +132,8 @@ 1.106 # cp -av _pkg/usr/bin/* $fs/usr/bin 1.107 # cp -av _pkg/usr/lib/*.so* $fs/usr/lib 1.108 </pre> 1.109 -<a name="e2fsprogs"></a> 1.110 -<h3><font color="#6c0023">e2fsprogs-1.39 - Filesystem management utilities</font></h3> 1.111 + 1.112 +<h3 id="e2fsprogs">e2fsprogs-1.39 - Filesystem management utilities</h3> 1.113 <p> 1.114 The e3fsprogs (<a href="http://e2fsprogs.sourceforge.net/">http://e2fsprogs.sourceforge.net/</a>) provides 1.115 utilities for handling ext2 and ext3 filesystems. We will not take all of them because we need the space. 1.116 @@ -176,13 +175,13 @@ 1.117 <pre> # mkdir $fs/usr/share/locale 1.118 # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale 1.119 </pre> 1.120 -<a name="dropbear"></a> 1.121 -<h3><font color="#6c0023">Dropbear-0.50 - Lightweight SSH client and server</font></h3> 1.122 + 1.123 +<h3 id="dropbear">Dropbear-0.50 - Lightweight SSH client and server</h3> 1.124 <p> 1.125 Dropbear (<a href="http://matt.ucc.asn.au/dropbear/dropbear.html">http://matt.ucc.asn.au/dropbear/dropbear.html</a>) 1.126 is a small secure client/server supporting SSH 2. Dropbear is compatible with 1.127 OpenSSH and uses ~/.ssh/authorized_keys for the management of public keys. Dropbear also 1.128 -provides a version of scp, which must be compiled with 'make scp': 1.129 +provides a version of scp, which must be compiled with ‘make scp’: 1.130 </p> 1.131 <pre> # cd .. 1.132 # wget http://matt.ucc.asn.au/dropbear/releases/dropbear-0.50.tar.gz 1.133 @@ -236,8 +235,8 @@ 1.134 </p> 1.135 <pre> # /etc/init.d/dropbear start 1.136 </pre> 1.137 -<a name="lighttpd"></a> 1.138 -<h3><font color="#6c0023">lighttpd-1.4.18 - HTTP Web server</font></h3> 1.139 + 1.140 +<h3 id="lighttpd">lighttpd-1.4.18 - HTTP Web server</h3> 1.141 <p> 1.142 Lighttpd (<a href="http://www.lighttpd.net/">www.lighttpd.net</a>) is a light, secure and powerful web server. 1.143 The project is very active and the server's configuration simple. It supports virtual hosts, CGI scripts, 1.144 @@ -280,7 +279,7 @@ 1.145 </pre> 1.146 <h4>/var/www - root of documents served</h4> 1.147 <p> 1.148 -/var/www is the root directory of documents served by default. You can access this via the url http://localhost/. 1.149 +/var/www is the root directory of documents served by default. You can access this via the URL http://localhost/. 1.150 This directory contains an <code>index.html</code> automatically displayed by a query. 1.151 We will create the directory /var/www, to see what's placed inside: 1.152 </p> 1.153 @@ -302,8 +301,8 @@ 1.154 <h4>User and group www</h4> 1.155 <p> 1.156 We will add a user and a group for the web server, it adds security and there is no reason for it to be run a root. 1.157 -The default user on SliTaz is 'www', but you can change this in the configuration file lighttpd.conf. 1.158 -The BusyBox application adduser has some limitations, so we add user 'www' manually. We also change permissions on 1.159 +The default user on SliTaz is ‘www’, but you can change this in the configuration file lighttpd.conf. 1.160 +The BusyBox application adduser has some limitations, so we add user ‘www’ manually. We also change permissions on 1.161 the directory of web server logs: 1.162 </p> 1.163 <pre> # echo "www:x:80:80:www:/var/www:/bin/sh" >> $fs/etc/passwd 1.164 @@ -319,11 +318,11 @@ 1.165 <code>/etc/init.d/lighttpd start</code>. You can also automate its 1.166 launch at boot with a link /etc/init.d/lighttpd pointing to /etc/rc.d/60lighttpd. 1.167 </p> 1.168 -<a name="iptables"></a> 1.169 -<h3><font color="#6c0023">iptables-1.3.7 - Netfilter, Linux firewall</font></h3> 1.170 + 1.171 +<h3 id="iptables">iptables-1.3.7 - Netfilter, Linux firewall</h3> 1.172 <p> 1.173 Netfilter (<a href="http://www.netfilter.org/">www.netfilter.org</a>) is the module which provides the Linux 1.174 -kernel firewall functions, shared internet connections (NAT) and the archiving of network traffic. 1.175 +Kernel firewall functions, shared internet connections (NAT) and the archiving of network traffic. 1.176 The iptables command allows you to configure Netfilter using iptables-restore 1.177 and iptable-save, to save and restore the Netfilter configuration: 1.178 </p> 1.179 @@ -354,8 +353,8 @@ 1.180 <pre> # cp -va /lib/libnsl* $fs/lib/tls 1.181 # strip $fs/lib/libnsl* 1.182 </pre> 1.183 -<a name="sqlite"></a> 1.184 -<h3><font color="#6c0023">sqlite-3.5.1 - Small SQL database engine</font></h3> 1.185 + 1.186 +<h3 id="sqlite">sqlite-3.5.1 - Small SQL database engine</h3> 1.187 <p> 1.188 This package provides sqlite3 (<a href="http://www.sqlite.org/">www.sqlite.org</a>) and sqlite3.so* 1.189 libraries. SQLite is fast and efficient and integrates directly to programs using database files: 1.190 @@ -376,10 +375,10 @@ 1.191 <pre> # cp -a _pkg/usr/lib/*.so* $fs/usr/lib 1.192 # cp -a _pkg/usr/bin/* $fs/usr/bin 1.193 </pre> 1.194 -<a name="cdrkit"></a> 1.195 -<h3><font color="#6c0023">cdrkit-1.1.5 - Tools for manipulating cdrom and ISO images</font></h3> 1.196 + 1.197 +<h3 id="cdrkit">cdrkit-1.1.5 - Tools for manipulating CD-ROM and ISO images</h3> 1.198 <p> 1.199 -cdrkit (<a href="http://www.cdrkit.org/">www.cdrkit.org</a>) provides tools for manipulating cdroms. 1.200 +cdrkit (<a href="http://www.cdrkit.org/">www.cdrkit.org</a>) provides tools for manipulating CD-ROMs. 1.201 SliTaz installs by default wodim for burning and genisoimage to create an ISO image. 1.202 The compilation is a bit different (cmake), but shouldn't pose any problems: 1.203 </p> 1.204 @@ -399,11 +398,11 @@ 1.205 </p> 1.206 <pre> # cp -a /lib/libcap.so* $fs/lib 1.207 </pre> 1.208 -<a name="cpio"></a> 1.209 -<h3><font color="#6c0023">cpio-2.8 - Archiver</font></h3> 1.210 + 1.211 +<h3 id="cpio">cpio-2.8 - Archiver</h3> 1.212 <p> 1.213 <code>cpio</code> (<a href="http://www.gnu.org/software/cpio/">http://www.gnu.org/software/cpio/</a>) provides tools for 1.214 -manipulating cpio archives. The archive format is used for packages and the SliTaz initramfs image of the cdrom. 1.215 +manipulating cpio archives. The archive format is used for packages and the SliTaz initramfs image of the CD-ROM. 1.216 Note that BusyBox provides a version of cpio that only unpacks archives: 1.217 </p> 1.218 <pre> # cd .. 1.219 @@ -425,8 +424,8 @@ 1.220 # cp -a _pkg/usr/bin/* $fs/usr/bin 1.221 # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale 1.222 </pre> 1.223 -<a name="microperl"></a> 1.224 -<h3><font color="#6c0023">microperl-5.8.8 - A tiny Perl</font></h3> 1.225 + 1.226 +<h3 id="microperl">microperl-5.8.8 - A tiny Perl</h3> 1.227 <p> 1.228 Microperl is a tiny implementation of Perl using the most basic functions of the language. 1.229 You can find more info in the source archive and the file <code>README.micro</code>. 1.230 @@ -448,8 +447,8 @@ 1.231 /# ln -s microperl perl 1.232 /# exit 1.233 </pre> 1.234 -<a name="module-init-tools"></a> 1.235 -<h3><font color="#6c0023">module-init-tools-3.2 - Utilities for manipulating kernel modules</font></h3> 1.236 + 1.237 +<h3 id="module-init-tools">module-init-tools-3.2 - Utilities for manipulating Kernel modules</h3> 1.238 <p> 1.239 The <a href="http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/">module-init-tools</a> 1.240 from kernel.org: modprobe, insmod, rmmod and lsmod. We have chosen to use these because we can compile 1.241 @@ -471,24 +470,24 @@ 1.242 # cp -i _pkg/bin/lsmod $fs/bin 1.243 # cd .. 1.244 </pre> 1.245 -<a name="kernel-modules"></a> 1.246 -<h3><font color="#6c0023">Copy kernel modules</font></h3> 1.247 + 1.248 +<h3 id="kernel-modules">Copy Kernel modules</h3> 1.249 <p> 1.250 Copy files from linux-2.6.20/_pkg: 1.251 </p> 1.252 <pre> # cp -a linux-2.6.20/_pkg/lib/* $fs/lib 1.253 </pre> 1.254 -<h4>Compress kernel modules</h4> 1.255 +<h4>Compress Kernel modules</h4> 1.256 <p> 1.257 Compress modules, this step will gain us back around 50% of available space. 1.258 We begin by moving into the rootfs, then we search for all files with the 1.259 <code>.ko</code> extension, and compress them. You 1.260 -can also do this with the 'gzmodtaz.sh' script found in SliTaz tools: 1.261 +can also do this with the ‘gzmodtaz.sh’ script found in SliTaz tools: 1.262 </p> 1.263 <pre> # cd $fs 1.264 </pre> 1.265 <p> 1.266 -With 'gztazmod.sh': 1.267 +With ‘gztazmod.sh’: 1.268 </p> 1.269 <pre> # cp -v ../src/slitaz-tools-1.1/utils/gztazmod.sh sbin 1.270 # ./sbin/gztazmod.sh lib/modules/2.6.20-slitaz 1.271 @@ -502,12 +501,12 @@ 1.272 # rm modules.dep 1.273 # mv tmp.dep modules.dep 1.274 </pre> 1.275 -<a name="initramfs-iso"></a> 1.276 -<h3><font color="#6c0023">Generate the initramfs and an ISO image</font></h3> 1.277 + 1.278 +<h3 id="initramfs-iso">Generate the initramfs and an ISO image</h3> 1.279 <p> 1.280 -To create a new ISO image, you can use 'mktaziso' in 1.281 +To create a new ISO image, you can use ‘mktaziso’ in 1.282 <a href="http://doc.slitaz.org/en:cookbook:slitaztools">SliTaz tools</a>. 1.283 -Or you can create a new initramfs image, copy it to /boot in the root of the cdrom 1.284 +Or you can create a new initramfs image, copy it to /boot in the root of the CD-ROM 1.285 (rootcd) and finally generate an ISO image with genisoimage: 1.286 </p> 1.287 <pre> # cd $fs 1.288 @@ -519,7 +518,7 @@ 1.289 -V "SliTaz" -input-charset iso8859-1 -boot-info-table rootcd 1.290 </pre> 1.291 <p> 1.292 -Test iso image: 1.293 +Test ISO image: 1.294 </p> 1.295 <pre> # qemu -cdrom slitaz-test.iso 1.296 </pre>