website annotate en/doc/scratchbook/base-ncurses.html @ rev 665

Update copyright year
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 21 09:53:47 2010 +0200 (2010-10-21)
parents b8788d938e18
children 0ae6cfc85e03
rev   line source
paul@226 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
paul@226 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
paul@226 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
paul@226 4 <head>
paul@226 5 <title>SliTaz Scratchbook - Base Ncurses</title>
paul@226 6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
paul@226 7 <meta name="description" content="" />
paul@226 8 <meta name="expires" content="never" />
paul@226 9 <meta name="modified" content="2008-11-22 17:00:00" />
paul@226 10 <meta name="publisher" content="www.slitaz.org" />
paul@226 11 <meta name="author" content="Christophe Lincoln"/>
paul@226 12 <link rel="shortcut icon" href="favicon.ico" />
paul@226 13 <link rel="stylesheet" type="text/css" href="book.css" />
paul@226 14 </head>
paul@226 15 <body bgcolor="#ffffff">
paul@226 16
paul@226 17 <!-- Header and quick navigation -->
paul@226 18 <div id="header">
paul@226 19 <div align="right" id="quicknav">
paul@226 20 <a name="top"></a>
paul@226 21 <a href="base-apps.html">Base apps</a> |
paul@226 22 <a href="index.html">Table of contents</a> |
paul@226 23 <a href="locale.html">Locale &amp; i18n</a>
paul@226 24 </div>
paul@226 25 <h1><font color="#3E1220">SliTaz Scratchbook</font></h1>
paul@226 26 </div>
paul@226 27
paul@226 28 <!-- Content. -->
paul@226 29 <div id="content">
paul@226 30 <div class="content-right"></div>
paul@226 31
paul@226 32
paul@226 33 <h2><font color="#df8f06">Ncurses libraries and applications</font></h2>
paul@226 34 <p>
paul@226 35 Installation and configuration of ncurses libraries and applications.
paul@226 36 </p>
paul@226 37 <ul>
pascal@550 38 <li><a href="base-ncurses.html#about">About the chapter.</a> - Description and environmental
paul@226 39 variable ($fs)</li>
pascal@550 40 <li><a href="base-ncurses.html#ncurses">ncurses-5.6</a> - Utilities and libraries for terminal.</li>
pascal@550 41 <li><a href="base-ncurses.html#clex">clex-3.16</a> - File manager.</li>
pascal@550 42 <li><a href="base-ncurses.html#nano">nano-2.0.6</a> - Advanced text editor with colored syntax.</li>
pascal@550 43 <li><a href="base-ncurses.html#retawq">retawq-0.2.6c</a> - Navigate the web in text
paul@226 44 mode using ncurses.</li>
pascal@550 45 <li><a href="base-ncurses.html#htop">htop-0.6.5</a> - System process viewer.</li>
pascal@550 46 <li><a href="base-ncurses.html#dialog">dialog-1.1-20070409</a> - GUI shell scripts.</li>
pascal@550 47 <li><a href="base-ncurses.html#ninvaders">ninvaders-0.1.1</a> - Space Invaders clone.</li>
pascal@550 48 <li><a href="base-ncurses.html#bastet">bastet-0.41</a> - Bastard Tetris clone.</li>
pascal@550 49 <li><a href="base-ncurses.html#rhapsody">rhapsody-0.28b</a> - IRC chat client.</li>
pascal@550 50 <li><a href="base-ncurses.html#initramfs-iso">Generate the initramfs and an ISO image.</a></li>
paul@226 51 </ul>
paul@226 52 <a name="about"></a>
paul@226 53 <h3><font color="#6c0023">About</font></h3>
paul@226 54 <p>
paul@226 55 This chapter describes the construction and installation of some ncurses applications
paul@226 56 and libraries in SliTaz. The procedure consists of moving into the /src directory,
paul@226 57 downloading the sources for the application in question, unpacking, reading the README or
paul@226 58 INSTALL file(s), compiling and installing the binary in SliTaz. Once the applications
paul@226 59 are installed, we can create a new initramfs, copy it to the root of the cdrom and generate
paul@226 60 a new ISO image. For this you can also use <code>mktaziso</code> in
paul@226 61 <a href="http://www.slitaz.org/en/doc/cookbook/slitaz-tools.html">SliTaz tools</a>.
paul@226 62 </p>
paul@226 63 <h4>Assign an environment variable ($fs)</h4>
paul@226 64 <p>
paul@226 65 An environmental variable can't specify the path to the directory, just the name of the directory.
paul@226 66 We will affect a variable '$fs' to indicate the path to the root filesystem
paul@226 67 (rootfs). To do this, we venture into the working directory SliTaz/, and type:
paul@226 68 </p>
paul@226 69 <pre> # export fs=$PWD/rootfs
paul@226 70 </pre>
paul@226 71 <p>
paul@226 72 To check:
paul@226 73 </p>
paul@226 74 <pre> # echo $fs
paul@226 75 </pre>
paul@226 76 <a name="ncurses"></a>
paul@226 77 <h3><font color="#6c0023">ncurses-5.6 - Terminal utilities and libraries</font></h3>
paul@226 78 <p>
paul@226 79 ncurses (<a href="http://dickey.his.com/ncurses/">dickey.his.com/ncurses/</a>) contains
paul@226 80 functions to display text in different ways on the screen of a Linux terminal and also provides
paul@226 81 the terminfo file. Ncurses libraries are used among others by retawq, nano and some games.
paul@226 82 We install the libraries in /lib and the rest in /usr/bin with a small strip to clean the executables:
paul@226 83 </p>
paul@226 84 <pre> # cd src
paul@226 85 # wget ftp://invisible-island.net/ncurses/ncurses-5.6.tar.gz
paul@226 86 # tar xzf ncurses-5.6.tar.gz
paul@226 87 # cd ncurses-5.6
paul@226 88 # ./configure --prefix=/usr \
paul@226 89 --libdir=/lib --sysconfdir=/etc \
paul@226 90 --infodir=/usr/share/info --mandir=/usr/share/man \
paul@226 91 --with-shared --without-debug --without-ada
paul@226 92 # make
paul@226 93 # make DESTDIR=$PWD/_pkg install
paul@226 94 # strip -v _pkg/lib/*
paul@226 95 # strip -v _pkg/usr/bin/*
paul@226 96 </pre>
paul@226 97 <p>
paul@258 98 Copy the libncurses library and some applications in SliTaz. The reset utility is used at the end of
paul@226 99 the rcS initialization script to remove the Linux logo. If you wish, you can copy the associated utilities
paul@226 100 (tic, tack, toe, etc), being careful not to delete the link to BusyBox:
paul@226 101 </p>
paul@226 102 <pre> # cp -a _pkg/lib/libncurses.so* $fs/lib
paul@226 103 # cp -ia _pkg/usr/bin/{clear,ncurses5-config,tset,reset} \
paul@226 104 $fs/usr/bin
paul@226 105 </pre>
paul@226 106 <p>
paul@226 107 Copy terminfo files, we only use a few files. If you want more, you can copy:
paul@226 108 </p>
paul@226 109 <pre> # mkdir -v $fs/usr/share/terminfo
paul@226 110 # mkdir -v $fs/usr/share/terminfo/{a,l,r,v,x}
paul@226 111 # cp _pkg/usr/share/terminfo/a/ansi \
paul@226 112 $fs/usr/share/terminfo/a
paul@226 113 # cp _pkg/usr/share/terminfo/l/linux \
paul@226 114 $fs/usr/share/terminfo/l
paul@226 115 # cp _pkg/usr/share/terminfo/r/rxvt \
paul@226 116 $fs/usr/share/terminfo/r
paul@226 117 # cp _pkg/usr/share/terminfo/x/{xterm,xterm-color,xterm-new,xterm-vt220} \
paul@226 118 $fs/usr/share/terminfo/x
paul@226 119 # cp _pkg/usr/share/terminfo/v/{vt100,vt102*} \
paul@226 120 $fs/usr/share/terminfo/v
paul@226 121 </pre>
paul@226 122 <p>
paul@226 123 Copy the tabset files:
paul@226 124 </p>
paul@226 125 <pre> # cp -a _pkg/usr/share/tabset $fs/usr/share
paul@226 126 </pre>
paul@226 127 <a name="clex"></a>
paul@226 128 <h3><font color="#6c0023">clex-3.16 - File Manager</font></h3>
paul@226 129 <p>
paul@226 130 CLEX (<a href="http://www.clex.sk/">http://www.clex.sk/</a>) is a small ncurses file
paul@226 131 manager (160 KB). The configuration file (rc) is ~/clexrc; ~/.clexbm is used for
paul@226 132 bookmarks:
paul@226 133 </p>
paul@226 134 <pre> # cd ..
paul@226 135 # wget http://www.clex.sk/download/clex-3.16.tar.gz
paul@226 136 # tar xzf clex-3.16.tar.gz
paul@226 137 # cd clex-3.16
paul@226 138 # ./configure --prefix=/usr --infodir=/usr/share/info \
paul@226 139 --mandir=/usr/share/man
paul@226 140 # make
paul@226 141 # make DESTDIR=$PWD/_pkg install
paul@226 142 # strip -v _pkg/usr/bin/clex
paul@226 143 </pre>
paul@226 144 <p>
paul@226 145 Install the clex binary in the rootfs of SliTaz:
paul@226 146 </p>
paul@226 147 <pre> # cp _pkg/usr/bin/clex $fs/usr/bin
paul@226 148 </pre>
paul@226 149 <h4>libs</h4>
paul@226 150 <p>
paul@226 151 If we execute the <code>ldd</code> command on clex, the following dependancies should be displayed:
paul@226 152 </p>
paul@226 153 <pre class="script"> libncurses.so.5 =&gt; /lib/libncurses.so.5 (0x40025000)
paul@226 154 libc.so.6 =&gt; /lib/libc.so.6 (0x40064000)
paul@226 155 /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)
paul@226 156 </pre>
paul@226 157 <a name="nano"></a>
paul@226 158 <h3><font color="#6c0023">nano-2.0.6 - Advanced Text Editor</font></h3>
paul@226 159 <p>
paul@226 160 GNU nano (<a href="http://www.nano-editor.org/">www.nano-editor.org</a>) is a well known,
paul@226 161 fast, effective GNU/Linux text editor that supports colored syntax.
paul@226 162 This is the default text editor in SliTaz:
paul@226 163 </p>
paul@226 164 <pre> # cd ..
paul@226 165 # wget http://www.nano-editor.org/dist/v2.0/nano-2.0.6.tar.gz
paul@226 166 # tar xzf nano-2.0.6.tar.gz
paul@226 167 # cd nano-2.0.6
paul@226 168 # ./configure --enable-all --enable-extra --prefix=/usr \
paul@226 169 --infodir=/usr/share/info --mandir=/usr/share/man \
paul@226 170 --sysconfdir=/etc
paul@226 171 # make
paul@226 172 # make DESTDIR=$PWD/_pkg install
paul@226 173 # strip -v _pkg/usr/bin/nano
paul@226 174 </pre>
paul@226 175 <p>
paul@226 176 Copy the nano binary and the rnano link in SliTaz:
paul@226 177 </p>
paul@226 178 <pre> # cp -a _pkg/usr/bin/* $fs/usr/bin
paul@226 179 </pre>
paul@226 180 <p>
paul@226 181 Copy the configuration files in _pkg/usr/share/nano to our rootfs:
paul@226 182 </p>
paul@226 183 <pre> # cp -a _pkg/usr/share/nano $fs/usr/share
paul@226 184 </pre>
paul@226 185 <h4>libs</h4>
paul@226 186 <p>
paul@226 187 If we execute the <code>ldd</code> command on nano, the following dependancies
paul@226 188 should be displayed:
paul@226 189 </p>
paul@226 190 <pre class="script"> libncurses.so.5 =&gt; /lib/libncurses.so.5 (0x40025000)
paul@226 191 libc.so.6 =&gt; /lib/libc.so.6 (0x40064000)
paul@226 192 /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)
paul@226 193 </pre>
paul@226 194 <h4>locale</h4>
paul@226 195 <p>
paul@226 196 About the language, you can copy the .mo files created when installing nano from
paul@228 197 /usr/share/locale/(fr,en,de,es,etc)/LC_MESSAGES to the rootfs. Example for the French language:
paul@226 198 </p>
paul@226 199 <pre> # cp -a _pkg/usr/share/locale/fr/LC_MESSAGES $fs/usr/share/locale/fr
paul@226 200 </pre>
paul@226 201 <h4>Customize nano</h4>
paul@226 202 <p>
paul@226 203 You can customize nano via /etc/nanorc or ~/.nanorc for each user of the system. It's in
paul@226 204 this file that you can define the colors used by nano through the files in /usr/share/nano.
paul@226 205 You will find a broad example of this file in the archive of nano and
paul@226 206 <a href="http://www.slitaz.org/en/doc/cookbook/slitaz-tools.html">SliTaz tools</a>.
paul@226 207 </p>
paul@226 208 <p>
paul@226 209 For a system configuration file, you can copy the file in SliTaz tools to /etc in the rootfs:
paul@226 210 </p>
paul@226 211 <pre> # cd ..
paul@226 212 # cp -a slitaz-tools-1.1/etc/nanorc $fs/etc
paul@226 213 </pre>
paul@226 214 <a name="retawq"></a>
paul@226 215 <h3><font color="#6c0023">retawq-0.2.6c - Text mode Web browser</font></h3>
paul@226 216 <p>
paul@226 217 retawq (<a href="http://retawq.sourceforge.net/">retawq.sourceforge.net</a>)
paul@226 218 is a small text-only web browser. We only flag a few useful options when configuring,
paul@258 219 retawq needs terminfo files, libncurses libraries and libthread:
paul@226 220 </p>
paul@226 221 <pre> # wget http://switch.dl.sourceforge.net/sourceforge/retawq/retawq-0.2.6c.tar.gz
paul@226 222 # tar xzf retawq-0.2.6c.tar.gz
paul@226 223 # cd retawq-0.2.6c
paul@226 224 # ./configure --enable-i18n --enable-local-cgi --path-prefix=/usr \
paul@226 225 --path-doc=/usr/share/doc/retawq --path-man=/usr/share/man
paul@226 226 # make
paul@226 227 # strip -v retawq
paul@226 228 </pre>
paul@226 229 <p>
paul@226 230 Copy the retawq binary in SliTaz:
paul@226 231 </p>
paul@226 232 <pre> # cp retawq $fs/usr/bin
paul@226 233 </pre>
paul@226 234 <h4>libs</h4>
paul@226 235 <pre class="script"> libncurses.so.5 =&gt; /lib/libncurses.so.5 (0x40025000)
paul@226 236 libpthread.so.0 =&gt; /lib/libpthread.so.0 (0x40064000)
paul@226 237 libc.so.6 =&gt; /lib/libc.so.6 (0x40074000)
paul@226 238 /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)
paul@226 239 </pre>
paul@226 240 <p>
paul@226 241 You can copy the lipthread library from your host system or use the minimum package
paul@226 242 glibc-2.3.6 distributed by SliTaz:
paul@226 243 </p>
paul@226 244 <pre> # cp -a /lib/libpthread* $fs/lib
paul@226 245 # strip --strip-unneeded $fs/lib/*
paul@226 246 </pre>
paul@226 247 <h4>locale</h4>
paul@226 248 <p>
paul@226 249 For language, you can copy the .mo files in /i18n of the retawq archive to
paul@226 250 /usr/share/locale/(fr,en,es,etc)/LC_MESSAGES. Example for the French language,
paul@226 251 renaming the file to retawq.mo:
paul@226 252 </p>
paul@226 253 <pre> # cp -v i18n/fr.mo $fs/usr/share/locale/fr/LC_MESSAGES/retawq.mo
paul@226 254 </pre>
paul@226 255 <h4>Customize retawq</h4>
paul@226 256 <p>
paul@226 257 To personalize retawq, you can use a ~/.retawq directory containing a config file.
paul@226 258 You can also save bookmarks (html) in the root directory of the user. You will find an
paul@226 259 examples/ in the archive of retawq (or SliTaz tools) containing a bookmarks.html
paul@226 260 page with a list of favorite web sites. You can also copy the docs (/documents) from retawq
paul@226 261 to /usr/share/doc/retawq.
paul@226 262 </p>
paul@226 263 <a name="htop"></a>
paul@226 264 <h3><font color="#6c0023">htop-6.0.5 - System process viewer</font></h3>
paul@226 265 <p>
paul@226 266
paul@226 267 htop (<a href="http://htop.sourceforge.net/">htop.sourceforge.net/</a>) is software
paul@226 268 that displays system processes using ncurses.
paul@226 269 </p>
paul@226 270 <p>
paul@226 271 Returning to the /src directory, download, unpack, configure, compile and clean (with strip):
paul@226 272 </p>
paul@226 273 <pre> # cd ..
paul@226 274 # wget http://switch.dl.sourceforge.net/sourceforge/htop/htop-0.6.5.tar.gz
paul@226 275 # tar xzf htop-0.6.5.tar.gz
paul@226 276 # cd htop-0.6.5
paul@226 277 # ./configure --prefix=/usr --mandir=/usr/share/man
paul@226 278 # make
paul@226 279 # make DESTDIR=$PWD/_pkg install
paul@226 280 # strip -v _pkg/usr/bin/htop
paul@226 281 </pre>
paul@226 282 <p>
paul@226 283 Copy the htop binary in SliTaz:
paul@226 284 </p>
paul@226 285 <pre> # cp _pkg/usr/bin/htop $fs/usr/bin
paul@226 286 </pre>
paul@226 287 <p>
paul@226 288 You can still copy the htop icon found in: _pkg/usr/share/pixmaps.
paul@226 289 </p>
paul@226 290 <h4>libs</h4>
paul@226 291 <pre class="script"> libm.so.6 =&gt; /lib/libm.so.6 (0xb7f97000)
paul@226 292 libncurses.so.5 =&gt; /lib/libncurses.so.5 (0xb7f55000)
paul@226 293 libc.so.6 =&gt; /lib/libc.so.6 (0xb7e20000)
paul@226 294 /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0xb7fc9000)
paul@226 295 </pre>
paul@226 296 <a name="dialog"></a>
paul@226 297 <h3><font color="#6c0023">dialog-1.1.20070409 - GUI shell scripts</font></h3>
paul@226 298 <p>
paul@226 299
paul@226 300 dialog (<a href="http://invisible-island.net/dialog/dialog.html">invisible-island.net/dialog/dialog.html</a>),
paul@226 301 is a utility to build GUI-based consoles:
paul@226 302 </p>
paul@226 303 <pre> # cd ..
paul@226 304 # wget ftp://invisible-island.net/dialog/dialog.tar.gz
paul@226 305 # tar xzf dialog.tar.gz
paul@226 306 # cd dialog-1.1-20070409
paul@226 307 # ./configure --enable-nls --with-ncurses --prefix=/usr \
paul@226 308 --sysconfdir=/etc --mandir=/usr/share/man
paul@226 309 # make
paul@226 310 # make DESTDIR=$PWD/_pkg install
paul@226 311 # strip -v _pkg/usr/bin/dialog
paul@226 312 </pre>
paul@226 313 <p>
paul@226 314 Copy dialog binary in SliTaz:
paul@226 315 </p>
paul@226 316 <pre> # cp _pkg/usr/bin/dialog $fs/usr/bin
paul@226 317 </pre>
paul@226 318 <h4>libs</h4>
paul@226 319 <pre class="script"> libncurses.so.5 =&gt; /lib/libncurses.so.5 (0x40027000)
paul@226 320 libm.so.6 =&gt; /lib/libm.so.6 (0x40066000)
paul@226 321 libc.so.6 =&gt; /lib/libc.so.6 (0x40089000)
paul@226 322 /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000)
paul@226 323 </pre>
paul@226 324 <h4>locale</h4>
paul@226 325 <p>
paul@226 326 You can install locale files if you wish:
paul@226 327 </p>
paul@226 328 <pre> # cp -a _pkg/usr/share/locale/fr $fs/usr/share/locale
paul@226 329 </pre>
paul@226 330 <p>
paul@226 331 The dialog configuration file is /etc/dialogrc and/or ~/.dialogrc for each user.
paul@226 332 There are also full examples of scripts in the /sample directory in the sources of dialog.
paul@226 333 </p>
paul@226 334 <a name="ninvaders"></a>
paul@226 335 <h3><font color="#6c0023">Ninvaders-0.1.1 - Space Invaders clone</font></h3>
paul@226 336 <p>
paul@226 337
paul@226 338 ninvaders (<a href="http://ninvaders.sourceforge.net/">http://ninvaders.sourceforge.net/</a>)
paul@226 339 is a clone of the popular Space Invaders game (46 KB). We begin by placing ourselves in the
paul@226 340 /src directory, then we download, untar, compile, clean using strip and copy the nInvaders binary
paul@226 341 in /usr/games of SliTaz:
paul@226 342 </p>
paul@226 343 <pre> # cd ..
paul@226 344 # wget http://ovh.dl.sourceforge.net/sourceforge/ninvaders/ninvaders-0.1.1.tar.gz
paul@226 345 # tar xzf ninvaders-0.1.1.tar.gz
paul@226 346 # cd ninvaders-0.1.1
paul@226 347 # make
paul@226 348 # strip -v nInvaders
paul@226 349 # cp nInvaders $fs/usr/games
paul@226 350 </pre>
paul@226 351 <a name="bastet"></a>
paul@226 352 <h3><font color="#6c0023">bastet-0.41 - Bastard Tetris clone</font></h3>
paul@226 353 <p>
paul@226 354 A game of Tetris (17 KB):
paul@226 355 </p>
paul@226 356 <pre> # wget http://fph.altervista.org/prog/bastet-0.41.tgz
paul@226 357 # tar xzf bastet-0.41.tgz
paul@226 358 # cd bastet-0.41
paul@226 359 # make
paul@226 360 # strip bastet
paul@226 361 # cp bastet $fs/usr/games
paul@226 362 # mkdir -p $fs/var/games
paul@226 363 # touch $fs/var/games/bastet.scores
paul@226 364 # chmod 666 $fs/var/games/bastet.scores
paul@226 365 </pre>
paul@226 366 <a name="rhapsody"></a>
paul@226 367 <h3><font color="#6c0023">rhapsody-0.28b - IRC chat client</font></h3>
paul@226 368 <p>
paul@226 369 Rhapsody (<a href="http://rhapsody.sourceforge.net/">http://rhapsody.sourceforge.net/</a>)
paul@226 370 is a fast and lightweight chat client supporting the IRC protocol. It provides a menu for
paul@226 371 managing servers, channels and configuration. It is therefore easy to use:
paul@226 372 </p>
paul@226 373 <pre> # cd ..
paul@226 374 # wget http://switch.dl.sourceforge.net/sourceforge/rhapsody/rhapsody_0.28b.tgz
paul@226 375 # tar xzf rhapsody_0.28b.tgz
paul@226 376 # cd rhapsody-0.28b
paul@226 377 # ./configure -i /usr/bin -d /usr/share/doc/rhapsody
paul@226 378 # make
paul@226 379 # strip -v rhapsody
paul@226 380 </pre>
paul@226 381 <p>
paul@226 382 Install the binary and help files in SliTaz. We must adjust permissions on
paul@226 383 these files so that everyone can read:
paul@226 384 </p>
paul@226 385 <pre> # cp rhapsody $fs/usr/bin
paul@226 386 # mkdir $fs/usr/share/doc/rhapsody
paul@226 387 # cp -a help $fs/usr/share/doc/rhapsody/help
paul@226 388 # chmod 644 $fs/usr/share/doc/rhapsody/help/*
paul@226 389 </pre>
paul@226 390 <h4>libs</h4>
paul@226 391 <p>
paul@226 392 Rhapsody uses the following libraries:
paul@226 393 </p>
paul@226 394 <pre class="script"> libncurses.so.5 =&gt; /lib/libncurses.so.5 (0x40026000)
paul@226 395 libc.so.6 =&gt; /lib/libc.so.6 (0x40066000)
paul@226 396 /lib/ld-linux.so.2 =&gt; /lib/ld-linux.so.2 (0x40000000))
paul@226 397 </pre>
paul@226 398 <h4>Rhapsody use the following libraries:</h4>
paul@226 399 <p>
paul@226 400 You can customize rhapsody via ~/.rhapsodyrc or use &lt;Ctrl+T&gt; for options:
paul@226 401 </p>
paul@226 402 <a name="initramfs-iso"></a>
paul@226 403 <h3><font color="#6c0023">Generate the initramfs and an ISO image</font></h3>
paul@226 404 <p>
paul@226 405 To create a new ISO image, you can use 'mktaziso' in SliTaz tools.
paul@226 406 Or you can create a new initramfs image, copy it to /boot in the root of the cdrom
paul@226 407 (rootcd) and finally generate an ISO image with genisoimage:
paul@226 408 </p>
paul@226 409 <pre> # cd $fs
paul@226 410 # find . -print | cpio -o -H newc | gzip -9 &gt; ../rootfs.gz
paul@226 411 # cd ..
paul@226 412 # cp rootfs.gz rootcd/boot
paul@226 413 # genisoimage -R -o slitaz-cooking.iso -b boot/isolinux/isolinux.bin \
paul@226 414 -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
paul@226 415 -V "SliTaz" -input-charset iso8859-1 -boot-info-table rootcd
paul@226 416 </pre>
paul@226 417 <h4>Following chapter</h4>
paul@226 418 <p>
paul@226 419 The next chapter describes the installation of the
paul@226 420 <a href="locale.html">locales</a>
paul@226 421 and i18n.
paul@226 422 </p>
paul@226 423
paul@226 424
paul@226 425 <!-- End of content -->
paul@226 426 </div>
paul@226 427
paul@226 428 <!-- Footer. -->
paul@226 429 <div id="footer">
paul@226 430 <div class="footer-right"></div>
pascal@550 431 <a href="base-ncurses.html#top">Top of the page</a> |
paul@226 432 <a href="index.html">Table of contents</a>
paul@226 433 </div>
paul@226 434
paul@226 435 <div id="copy">
pascal@665 436 Copyright &copy; 2010 <a href="http://www.slitaz.org/en/">SliTaz</a> -
paul@226 437 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
paul@226 438 Documentation is under
paul@226 439 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
paul@226 440 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
paul@226 441 </div>
paul@226 442
paul@226 443 </body>
paul@226 444 </html>