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 - X Window System</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 id="quicknav" align="right">
|
paul@226
|
20 <a name="top"></a>
|
paul@226
|
21 <a href="boot-scripts.html">Boot scripts</a> |
|
paul@226
|
22 <a href="index.html">Table of contents</a> |
|
paul@226
|
23 <a href="gtk-libs.html">GTK+ libs</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">X window system</font></h2>
|
paul@226
|
34 <p>
|
paul@226
|
35 Installation and basic configuration of the X window system.
|
paul@226
|
36 </p>
|
paul@226
|
37 <ul>
|
pascal@550
|
38 <li><a href="x-window-system.html#about">About this chapter</a> - Description and environmental
|
paul@226
|
39 variable ($fs)</li>
|
pascal@550
|
40 <li><a href="x-window-system.html#expat">expat-2.0.0</a> - XML parser library.</li>
|
pascal@550
|
41 <li><a href="x-window-system.html#freetype">freetype-2.3.1</a> - System font libraries.</li>
|
pascal@550
|
42 <li><a href="x-window-system.html#fontconfig">fontconfig 2.4.2</a> - Font management tools.</li>
|
pascal@550
|
43 <li><a href="x-window-system.html#xserver">Xserver</a> - Graphical server Xvesa of Xfree86
|
paul@226
|
44 4.6.0 and Xorg libraries.</li>
|
pascal@550
|
45 <li><a href="x-window-system.html#xterm">xterm-223</a> - Terminal emulator.</li>
|
pascal@550
|
46 <li><a href="x-window-system.html#libpng">libpng-1.2.18</a> - Libraries that manipulate PNG images.</li>
|
pascal@550
|
47 <li><a href="x-window-system.html#jwm">jwm-2.0</a> - Window manager.</li>
|
pascal@550
|
48 <li><a href="x-window-system.html#jpeg">jpeg-6b</a> - Libraries that manipulate JPEG images.</li>
|
pascal@550
|
49 <li><a href="x-window-system.html#tiff">tiff-3.8.2</a> - TIFF libraries and utilities.</li>
|
pascal@550
|
50 <li><a href="x-window-system.html#links">links-2.1pre29</a> - Graphical and text web browser.</li>
|
pascal@550
|
51 <li><a href="x-window-system.html#initramfs-iso">Generate the initramfs and an ISO image.</a></li>
|
paul@226
|
52 </ul>
|
paul@226
|
53 <a name="about"></a>
|
paul@226
|
54 <h3><font color="#6c0023">About</font></h3>
|
paul@226
|
55 <p>
|
paul@226
|
56 This chapter describes the installation and configuration of the X window system on SliTaz. We will
|
paul@226
|
57 install libraries for expat, XML, fonts, a graphical server (Xvesa), a terminal emulator (xterm),
|
paul@226
|
58 various small tools and a window manager (JWM). We'll also install the JPEG libraries and Links web browser.
|
paul@226
|
59 </p>
|
paul@226
|
60 <h4>Environmental variable ($fs)</h4>
|
paul@226
|
61 <p>
|
paul@226
|
62 If you do not specify any path to the rootfs directory, export the environmental variable:
|
paul@226
|
63 </p>
|
paul@226
|
64 <pre> # export fs=$PWD/rootfs
|
paul@226
|
65 </pre>
|
paul@226
|
66 <p>
|
paul@226
|
67 To check:
|
paul@226
|
68 </p>
|
paul@226
|
69 <pre> # echo $fs
|
paul@226
|
70 </pre>
|
paul@226
|
71 <a name="expat"></a>
|
paul@226
|
72 <h3><font color="#6c0023">expat-2.0.0 - XML parser library</font></h3>
|
paul@226
|
73 <p>
|
paul@226
|
74 Expat (<a href="http://expat.sourceforge.net/">http://expat.sourceforge.net/</a>)
|
paul@226
|
75 contains the XML parsing libraries:
|
paul@226
|
76 </p>
|
paul@226
|
77 <pre> # cd ..
|
paul@226
|
78 # wget http://switch.dl.sourceforge.net/sourceforge/expat/expat-2.0.0.tar.gz
|
paul@226
|
79 # tar xzf expat-2.0.0.tar.gz
|
paul@226
|
80 # cd expat-2.0.0
|
paul@226
|
81 # ./configure --sysconfdir=/etc --prefix=/usr \
|
paul@226
|
82 --mandir=/usr/share/man
|
paul@226
|
83 # make
|
paul@226
|
84 # make DESTDIR=$PWD/_pkg install
|
paul@226
|
85 # strip -v _pkg/usr/lib/*
|
paul@226
|
86 # strip -v _pkg/usr/bin/*
|
paul@226
|
87 </pre>
|
paul@226
|
88 <p>
|
paul@226
|
89 Thereafter, we will install 'xterm' which needs libexpat.so.0, simply create a symbolic link and voilà.
|
paul@226
|
90 Then you can install the 'xmlwf' application and libraries in the rootfs:
|
paul@226
|
91 </p>
|
paul@226
|
92 <pre> # cd _pkg/usr/lib
|
paul@226
|
93 # ln -s libexpat.so.1.5.0 libexpat.so.0
|
paul@226
|
94 # cp -a *.so* $fs/usr/lib
|
paul@226
|
95 # cd ..
|
paul@226
|
96 # cp -a bin/* $fs/usr/bin
|
paul@226
|
97 # cd ../..
|
paul@226
|
98 </pre>
|
paul@226
|
99 <h4>libs</h4>
|
paul@226
|
100 Libraries used by xmlwf:
|
paul@226
|
101 <pre class="script"> libexpat.so.1 => /usr/lib/libexpat.so.1 (0x40021000)
|
paul@226
|
102 libc.so.6 => /lib/tls/libc.so.6 (0x40041000)
|
paul@226
|
103 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
|
paul@226
|
104 </pre>
|
paul@226
|
105 <a name="freetype"></a>
|
paul@226
|
106 <h3><font color="#6c0023">freetype-2.3.1 - System font libraries</font></h3>
|
paul@226
|
107 <p>
|
paul@226
|
108 The package freetype (<a href="http://www.freetype.org/">http://www.freetype.org/</a>)
|
paul@226
|
109 contains libraries used by X for configuring the system fonts:
|
paul@226
|
110 </p>
|
paul@226
|
111 <pre> # cd ..
|
paul@226
|
112 # wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.1.tar.bz2
|
paul@226
|
113 # tar xjf freetype-2.3.1.tar.bz2
|
paul@226
|
114 # cd freetype-2.3.1
|
paul@226
|
115 # ./configure --sysconfdir=/etc --prefix=/usr \
|
paul@226
|
116 --mandir=/usr/share/man
|
paul@226
|
117 # make
|
paul@226
|
118 # make DESTDIR=$PWD/_pkg install
|
paul@226
|
119 # strip -vs _pkg/usr/lib/*
|
paul@226
|
120 # cp -a _pkg/usr/bin/* $fs/usr/bin
|
paul@226
|
121 # cp -a _pkg/usr/lib/*.so* $fs/usr/lib
|
paul@226
|
122 </pre>
|
paul@226
|
123 <a name="fontconfig"></a>
|
paul@226
|
124 <h3><font color="#6c0023">fontconfig-2.4.2 - Manage system fonts</font></h3>
|
paul@226
|
125 <p>
|
paul@226
|
126 The fontconfig package (<a href="http://www.fontconfig.org/wiki/">www.fontconfig.org/wiki/</a>)
|
paul@226
|
127 provides the libfontconfig library used by many programs under X. Note XFree86 also provides these
|
paul@226
|
128 utilities. We chose the original package because it works better with JWM:
|
paul@226
|
129 </p>
|
paul@226
|
130 <pre> # cd ..
|
paul@226
|
131 # wget http://fontconfig.org/release/fontconfig-2.4.2.tar.gz
|
paul@226
|
132 # tar xzf fontconfig-2.4.2.tar.gz
|
paul@226
|
133 # cd fontconfig-2.4.2
|
paul@226
|
134 # ./configure --sysconfdir=/etc --prefix=/usr \
|
paul@226
|
135 --mandir=/usr/share/man --localstatedir=/var
|
paul@226
|
136 # make
|
paul@226
|
137 # make DESTDIR=$PWD/_pkg install
|
paul@226
|
138 # strip -v _pkg/usr/bin/*
|
paul@226
|
139 # strip -v _pkg/usr/lib/*
|
paul@226
|
140 # cp -a _pkg/usr/bin/* $fs/usr/bin
|
paul@226
|
141 # cp -a _pkg/usr/lib/*.so* $fs/usr/lib
|
paul@226
|
142 # cp -a _pkg/etc $fs
|
paul@226
|
143 # cp -a _pkg/var $fs
|
paul@226
|
144 </pre>
|
paul@226
|
145 <h4>libs</h4>
|
paul@226
|
146 <p>
|
paul@226
|
147 A 'ldd' on fc-cache gives the libraries below. You can also use libfreetype of XFree86:
|
paul@226
|
148 </p>
|
paul@226
|
149 <pre class="script"> libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7f12000)
|
paul@226
|
150 libz.so.1 => /usr/lib/libz.so.1 (0xb7eff000)
|
paul@226
|
151 libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7edf000)
|
paul@226
|
152 libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7eb0000)
|
paul@226
|
153 libc.so.6 => /lib/tls/libc.so.6 (0xb7d7b000)
|
paul@226
|
154 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7f8c000)
|
paul@226
|
155 </pre>
|
paul@226
|
156 <a name="xserver"></a>
|
paul@226
|
157 <h3><font color="#6c0023">Xserver - Graphical Xvesa server of Xfree86</font></h3>
|
paul@226
|
158 <p>
|
paul@226
|
159 We will use the binary versions of Xvesa server (<a href="http://www.xfree86.org/">www.xfree86.org/</a>)
|
paul@226
|
160 and fonts distributed by Xfree86.org. We could also copy Xorg libraries from the host system that would
|
paul@226
|
161 be used for compiling X applications. Xvesa works well like this and simplifies things. You can also rebuild
|
paul@226
|
162 <a href="xorg.html">Xorg packages</a> on your development system.
|
paul@226
|
163 </p>
|
paul@226
|
164 <h4>Xtinyx server - Xvesa</h4>
|
paul@226
|
165 <p>
|
paul@226
|
166 The Xvesa server is very light and uses tiny libraries; it is contained in the Xtinyx.tgz archive.
|
paul@226
|
167 Download and install in /usr/bin of SliTaz rootfs:
|
paul@226
|
168 </p>
|
paul@226
|
169 <pre> # cd ..
|
paul@226
|
170 # mkdir -p XFree86-4.6.0 && cd XFree86-4.6.0
|
paul@226
|
171 # wget http://ftp.xfree86.org/pub/XFree86/4.6.0/binaries/Linux-ix86-glibc23/Xtinyx.tgz
|
paul@226
|
172 # tar xzf Xtinyx.tgz
|
paul@226
|
173 # cp bin/Xvesa $fs/usr/bin
|
paul@226
|
174 # strip $fs/usr/bin/Xvesa
|
paul@226
|
175 # chmod 4711 $fs/usr/bin/Xvesa
|
paul@226
|
176 </pre>
|
paul@226
|
177 <h4>libs for Xvesa</h4>
|
paul@226
|
178 <pre class="script"> libz.so.1 => /usr/lib/libz.so.1 (0xb7ed6000)
|
paul@226
|
179 libm.so.6 => /lib/tls/libm.so.6 (0xb7eb1000)
|
paul@226
|
180 libc.so.6 => /lib/tls/libc.so.6 (0xb7d7e000)
|
paul@226
|
181 /lib/ld-linux.so.2 (0xb7ef8000)
|
paul@226
|
182 </pre>
|
paul@226
|
183 <h4>rgb.txt - RGB colors in X</h4>
|
paul@226
|
184 <p>
|
paul@226
|
185 The colors configuration file used by the X server is called: <code>rgb.txt</code>; we suggest
|
paul@226
|
186 that you copy it to the host system. The library libX11.so will seek the configuration files in
|
paul@226
|
187 /usr/share/X11, and the Xvesa server in /usr/X11R6/lib/X11; we create a link in /usr/share/X11 to enable this:
|
paul@226
|
188 </p>
|
paul@226
|
189 <pre> # mkdir -p $fs/usr/share/X11
|
paul@226
|
190 # cp /usr/share/X11/rgb.txt $fs/usr/share/X11
|
paul@226
|
191 # chroot $fs /bin/ash
|
paul@226
|
192 /# mkdir -p /usr/X11R6/lib/X11/
|
paul@226
|
193 /# ln -s /usr/share/X11/rgb.txt /usr/X11R6/lib/X11/rgb.txt
|
paul@226
|
194 /# exit
|
paul@226
|
195 </pre>
|
paul@226
|
196 <h4>Xfnts - Fonts</h4>
|
paul@226
|
197 <p>
|
paul@226
|
198 To operate the server, we need the basic fonts; you can download them from Xfree86.org and then compile
|
paul@226
|
199 packages from Xorg, or copy them from your host system. The system fonts can be put into different folders
|
paul@226
|
200 and the cache updated with <code>lc-cache</code>. Attention, fonts take pride of place and you can only install
|
paul@226
|
201 the minimum. /usr/share/fonts contains the TrueType fonts such as bitstream-vera:
|
paul@226
|
202 </p>
|
paul@226
|
203 <pre> # wget http://ftp.xfree86.org/pub/XFree86/4.6.0/binaries/Linux-ix86-glibc23/Xfnts.tgz
|
paul@226
|
204 # tar xzf Xfnts.tgz
|
paul@226
|
205 # mkdir -p $fs/usr/X11R6/lib/X11/fonts
|
paul@226
|
206 # mkdir -p $fs/usr/share/fonts/truetype
|
paul@226
|
207
|
paul@226
|
208 Copy the fonts...
|
paul@226
|
209 (# cp -a lib/X11/fonts/* $fs/usr/X11R6/lib/X11/fonts)
|
paul@226
|
210 (# cp -a /usr/share/fonts/truetype/* $fs/usr/share/fonts/truetype
|
paul@226
|
211 </pre>
|
paul@226
|
212 <p>
|
paul@226
|
213 Then regenerate the fonts.dir file, you must run mkfontdir on the directory in question:
|
paul@226
|
214 </p>
|
paul@226
|
215 <pre> # mkfontdir $fs/usr/X11R6/lib/X11/fonts/75dpi
|
paul@226
|
216 </pre>
|
paul@226
|
217 <p>
|
paul@226
|
218 Fontconfig configuration files can be found in /etc/fonts provided by the fontconfig package.
|
paul@226
|
219 Now you can run 'fc-cache' to update the cache, and 'fc-list' for a list of fonts. You do this
|
paul@226
|
220 by chrooting into the rootfs:
|
paul@226
|
221 </p>
|
paul@226
|
222 <pre> # chroot $fs /bin/ash
|
paul@226
|
223 # fc-cache -v
|
paul@226
|
224 # fc-list
|
paul@226
|
225 # exit
|
paul@226
|
226 </pre>
|
paul@226
|
227 <h4>Xlib locale - Localization files</h4>
|
paul@226
|
228 <p>
|
paul@226
|
229 On SliTaz, we installed 4 locales: C, iso8859-1, iso8859-15 and iso 8859-2 from the
|
paul@226
|
230 <a href="xorg.html">compilation of Xorg</a>.
|
paul@310
|
231 You can copy these files from the host system or use the files distributed by XFree86.
|
paul@226
|
232 Sample copy of all the locales from the host system:
|
paul@226
|
233 </p>
|
paul@226
|
234 <pre> # mkdir -p $fs/usr/share/X11/locale
|
paul@226
|
235 # cp -a /usr/share/X11/locale/* $fs/usr/share/X11/locale
|
paul@226
|
236 </pre>
|
paul@226
|
237 <h4>Using X</h4>
|
paul@226
|
238 <p>
|
paul@249
|
239 Note that you can already use Xvesa as a X terminal if you have a machine on the network accepting XDMCP connections.
|
paul@249
|
240 For this, you can start the server with the <code>-query</code> option. For example:
|
paul@226
|
241 </p>
|
paul@226
|
242 <pre> # Xvesa -ac -shadow -screen 1024x768x24 -query 192.168.0.2
|
paul@226
|
243 </pre>
|
paul@226
|
244 <a name="xterm"></a>
|
paul@226
|
245 <h3><font color="#6c0023">xterm - Terminal Emulator</font></h3>
|
paul@226
|
246 <p>
|
paul@226
|
247 The xterm package (<a href="http://invisible-island.net/xterm/">invisible-island.net/xterm/</a>)
|
paul@226
|
248 provides a terminal emulator for X:
|
paul@226
|
249 </p>
|
paul@226
|
250 <pre> # wget ftp://invisible-island.net/xterm/xterm-223.tgz
|
paul@226
|
251 # tar xzf xterm-223.tgz
|
paul@226
|
252 # cd xterm-223
|
paul@226
|
253 # ./configure --prefix=/usr --sysconfdir=/etc \
|
paul@226
|
254 --mandir=/usr/share/man --localstatedir=/var \
|
paul@226
|
255 --with-app-defaults=/usr/share/X11/app-defaults \
|
paul@226
|
256 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
|
paul@226
|
257 # make
|
paul@226
|
258 # make DESTDIR=$PWD/_pkg install
|
paul@226
|
259 # strip _pkg/usr/bin/*
|
paul@226
|
260 # cp _pkg/usr/bin/* $fs/usr/bin
|
paul@226
|
261 # cp -a _pkg/usr/share/X11/* $fs/usr/share/X11
|
paul@226
|
262 </pre>
|
paul@226
|
263 <h4>libs</h4>
|
paul@226
|
264 <p>
|
paul@226
|
265 A ldd on XTerm, we copy (and strip) the missing libraries from the host system:
|
paul@226
|
266 </p>
|
paul@226
|
267 <pre class="script"> libXft.so.2 => /usr/lib/libXft.so.2 (0xb7f09000)
|
paul@226
|
268 libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7f00000)
|
paul@226
|
269 libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7ed5000)
|
paul@226
|
270 libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e68000)
|
paul@226
|
271 libz.so.1 => /usr/lib/libz.so.1 (0xb7e54000)
|
paul@226
|
272 libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d68000)
|
paul@226
|
273 libXaw.so.7 => /usr/lib/libXaw.so.7 (0xb7d0f000)
|
paul@226
|
274 libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb7cfa000)
|
paul@226
|
275 libXext.so.6 => /usr/lib/libXext.so.6 (0xb7cec000)
|
paul@226
|
276 libXt.so.6 => /usr/lib/libXt.so.6 (0xb7c9e000)
|
paul@226
|
277 libSM.so.6 => /usr/lib/libSM.so.6 (0xb7c96000)
|
paul@226
|
278 libICE.so.6 => /usr/lib/libICE.so.6 (0xb7c7f000)
|
paul@226
|
279 libncurses.so.5 => /lib/libncurses.so.5 (0xb7c3c000)
|
paul@226
|
280 libc.so.6 => /lib/libc.so.6 (0xb7b2c000)
|
paul@226
|
281 libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7b0b000)
|
paul@226
|
282 libXau.so.6 => /usr/lib/libXau.so.6 (0xb7b08000)
|
paul@226
|
283 libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7b03000)
|
paul@226
|
284 libdl.so.2 => /lib/libdl.so.2 (0xb7aff000)
|
paul@226
|
285 libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7aee000)
|
paul@226
|
286 </pre>
|
paul@226
|
287 <a name="libpng"></a>
|
paul@226
|
288 <h3><font color="#6c0023">libpng-1.2.18 - PNG Libraries</font></h3>
|
paul@226
|
289 <p>
|
paul@226
|
290 PNG libraries (<a href="http://libpng.org/pub/png/libpng.html">http://libpng.org/pub/png/libpng.html</a>)
|
paul@226
|
291 are used to manipulate and format PNG images:
|
paul@226
|
292 </p>
|
paul@226
|
293 <pre> # wget http://puzzle.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.18.tar.bz2
|
paul@226
|
294 # tar xjf libpng-1.2.18.tar.bz2
|
paul@226
|
295 # cd libpng-1.2.18
|
paul@226
|
296 # ./configure --enable-shared --prefix=/usr \
|
paul@226
|
297 --mandir=/usr/share/man
|
paul@226
|
298 # make
|
paul@226
|
299 # make DESTDIR=$PWD/_pkg install
|
paul@226
|
300 # strip _pkg/usr/lib/*.so*
|
paul@226
|
301 # cp -a _pkg/usr/lib/libpng12.so* $fs/usr/lib
|
paul@226
|
302 # cp -a _pkg/usr/bin/libpng12* $fs/usr/bin
|
paul@226
|
303 </pre>
|
paul@226
|
304 <a name="jwm"></a>
|
paul@226
|
305 <h3><font color="#6c0023">jwm-2.0 - Window manager</font></h3>
|
paul@226
|
306 <p>
|
paul@226
|
307 Joe's Window Manager (<a href="http://www.joewing.net/programs/jwm/">http://www.joewing.net/programs/jwm/</a>)
|
paul@226
|
308 is an ultra light and friendly window manager. This is the default SliTaz window manager. The main configuration
|
paul@226
|
309 file: /etc/jwm/system.jwnrc includes the style and config menu:
|
paul@226
|
310 </p>
|
paul@226
|
311 <pre> # cd ..
|
paul@226
|
312 # wget http://www.joewing.net/programs/jwm/releases/jwm-2.0.tar.bz2
|
paul@226
|
313 # tar xjf jwm-2.0.tar.bz2
|
paul@226
|
314 # cd jwm-2.0
|
paul@226
|
315 # ./configure --prefix=/usr --mandir=/usr/share/man \
|
paul@226
|
316 --sysconfdir=/etc/jwm --disable-xinerama
|
paul@226
|
317 # make
|
paul@226
|
318 # strip src/jwm
|
paul@226
|
319 # cp src/jwm $fs/usr/bin
|
paul@226
|
320 # mkdir $fs/etc/jwm
|
paul@226
|
321 # cp example.jwmrc $fs/etc/jwm/system.jwmrc
|
paul@226
|
322 </pre>
|
paul@226
|
323 <h4>libs</h4>
|
paul@226
|
324 <p>
|
paul@226
|
325 Ldd libraries that we have provided:
|
paul@226
|
326 </p>
|
paul@226
|
327 <pre class="script"> libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e35000)
|
paul@226
|
328 libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e12000)
|
paul@226
|
329 libXft.so.2 => /usr/lib/libXft.so.2 (0xb7e00000)
|
paul@226
|
330 libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7df7000)
|
paul@226
|
331 libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7dcc000)
|
paul@226
|
332 libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7d5f000)
|
paul@226
|
333 libz.so.1 => /usr/lib/libz.so.1 (0xb7d4a000)
|
paul@226
|
334 libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7d3a000)
|
paul@226
|
335 libXext.so.6 => /usr/lib/libXext.so.6 (0xb7d2c000)
|
paul@226
|
336 libc.so.6 => /lib/libc.so.6 (0xb7c1c000)
|
paul@226
|
337 libXau.so.6 => /usr/lib/libXau.so.6 (0xb7c19000)
|
paul@226
|
338 libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7c14000)
|
paul@226
|
339 libdl.so.2 => /lib/libdl.so.2 (0xb7c0f000)
|
paul@226
|
340 libm.so.6 => /lib/libm.so.6 (0xb7bea000)
|
paul@226
|
341 libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7bc9000)
|
paul@226
|
342 </pre>
|
paul@226
|
343 <p>
|
paul@226
|
344 You can start the X server and JWM with the command below or create a script in
|
paul@226
|
345 /usr/bin/startx with the content:
|
paul@226
|
346 </p>
|
paul@226
|
347 <pre>Xvesa -ac -shadow -screen 1024x768x24 & exec jwm
|
paul@226
|
348 </pre>
|
paul@226
|
349 <h4>On SliTaz</h4>
|
paul@226
|
350 <p>
|
paul@226
|
351 SliTaz uses the ~/.Xsession file to start a graphical session. The 'startx' command checks
|
paul@226
|
352 whether the file exists or it runs 'tazx' to configure the X system. The user guide on X
|
paul@226
|
353 window is located in: /usr/share/doc/slitaz/user-guide/x-window.html or is on the website:
|
paul@226
|
354 </p>
|
paul@226
|
355 <p>
|
paul@226
|
356 We chose to use the Tango icons theme <a href="http://tango.freedesktop.org/">http://tango.freedesktop.org/</a>,
|
paul@299
|
357 that isn't compiled. We only use the minimum: images in 16 x 16 format that we put in /usr/share/icons.
|
paul@226
|
358 </p>
|
paul@226
|
359 <p>
|
paul@226
|
360 To test JWM with a cooking ISO:
|
paul@226
|
361 </p>
|
paul@226
|
362 <pre> # Xvesa -ac -shadow -screen 800x600x24 & exec jwm
|
paul@226
|
363 </pre>
|
paul@226
|
364 <a name="jpeg"></a>
|
paul@226
|
365 <h3><font color="#6c0023">jpeg-6b - JPEG Libraries</font></h3>
|
paul@226
|
366 <p>
|
paul@226
|
367 Libraries handling JPEG images, and some small utilities:
|
paul@226
|
368 </p>
|
paul@226
|
369 <pre> # wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz
|
paul@226
|
370 # tar xzf jpegsrc.v6b.tar.gz
|
paul@226
|
371 # cd jpeg-6b
|
paul@226
|
372 # ./configure --enable-shared --prefix=/usr \
|
paul@226
|
373 --mandir=/usr/share/man
|
paul@226
|
374 # make
|
paul@226
|
375 # strip .libs/*
|
paul@226
|
376 # cp -a .libs/*.so* $fs/usr/lib
|
paul@226
|
377 # cp .libs/{cjpeg,djpeg,jpegtran} $fs/usr/bin
|
paul@226
|
378 </pre>
|
paul@226
|
379 <a name="tiff"></a>
|
paul@226
|
380 <h3><font color="#6c0023">tiff-3.8.2 - TIFF Libraries and Utilities</font></h3>
|
paul@226
|
381 <p>
|
paul@226
|
382 Libraries handling TIFF images and some small optional utilities:
|
paul@226
|
383 </p>
|
paul@226
|
384 <pre> # wget ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz
|
paul@226
|
385 # tar xzf tiff-3.8.2.tar.gz
|
paul@226
|
386 # cd tiff-3.8.2
|
paul@226
|
387 # ./configure --prefix=/usr --mandir=/usr/share/man
|
paul@226
|
388 # make
|
paul@226
|
389 # make DESTDIR=$PWD/_pkg install
|
paul@226
|
390 # strip _pkg/usr/bin/*
|
paul@226
|
391 # strip _pkg/usr/lib/*.so*
|
paul@226
|
392 # cp -a _pkg/usr/lib/*.so* $fs/usr/lib
|
paul@226
|
393 </pre>
|
paul@226
|
394 <p>
|
paul@226
|
395 You can install the utilities you want.
|
paul@226
|
396 </p>
|
paul@226
|
397 <a name="links"></a>
|
paul@226
|
398 <h3><font color="#6c0023">links-2.1pre29 - Graphical and text mode web browser</font></h3>
|
paul@226
|
399 <p>
|
paul@226
|
400 Links (<a href="http://links.twibright.com/">links.twibright.com</a>) is a web browser offering
|
paul@226
|
401 graphical and text modes. It is translated into multiple languages, including French:
|
paul@226
|
402 </p>
|
paul@226
|
403 <pre> # cd ..
|
paul@226
|
404 # wget http://links.twibright.com/download/links-2.1pre28.tar.gz
|
paul@226
|
405 # tar xzf links-2.1pre28.tar.gz
|
paul@226
|
406 # cd links-2.1pre28
|
paul@226
|
407 # ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \
|
paul@226
|
408 --without-directfb --without-ssl --enable-graphics --enable-javascript
|
paul@226
|
409 # make
|
paul@226
|
410 # make DESTDIR=$PWD/_pkg install
|
paul@226
|
411 # strip -v _pkg/usr/bin/*
|
paul@226
|
412 # cp -v _pkg/usr/bin/* $fs/usr/bin
|
paul@226
|
413 </pre>
|
paul@226
|
414 <h4>libs</h4>
|
paul@226
|
415 <pre class="script"> libtiff.so.3 => /usr/lib/libtiff.so.3
|
paul@226
|
416 libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7ede000)
|
paul@226
|
417 libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7eba000)
|
paul@226
|
418 libz.so.1 => /usr/lib/libz.so.1 (0xb7ea7000)
|
paul@226
|
419 libX11.so.6 => /usr/lib/libX11.so.6 (0xb7dbb000)
|
paul@226
|
420 libdl.so.2 => /lib/tls/libdl.so.2 (0xb7db7000)
|
paul@226
|
421 libpcre.so.0 => /usr/lib/libpcre.so.0 (0xb7d96000)
|
paul@226
|
422 libm.so.6 => /lib/tls/libm.so.6 (0xb7d70000)
|
paul@226
|
423 libc.so.6 => /lib/tls/libc.so.6 (0xb7c3e000)
|
paul@226
|
424 libXau.so.6 => /usr/lib/libXau.so.6 (0xb7c3b000)
|
paul@226
|
425 libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7c36000)
|
paul@226
|
426 /lib/ld-linux.so.2 (0xb7f5d000)
|
paul@226
|
427 </pre>
|
paul@226
|
428 <a name="initramfs-iso"></a>
|
paul@226
|
429 <h3><font color="#6c0023">Generate the initramfs and an ISO image</font></h3>
|
paul@226
|
430 <p>
|
paul@226
|
431 To create a new ISO image, you can use 'mktaziso' in
|
paul@226
|
432 <a href="http://www.slitaz.org/en/doc/cookbook/slitaz-tools.html">SliTaz tools</a> .
|
paul@226
|
433 Or you can create a new initramfs image, copy it to /boot in the root of the cdrom
|
paul@226
|
434 (rootcd) and finally generate an ISO image with genisoimage:
|
paul@226
|
435 </p>
|
paul@226
|
436 <pre> # cd $fs
|
paul@226
|
437 # find . -print | cpio -o -H newc | gzip -9 > ../rootfs.gz
|
paul@226
|
438 # cd ..
|
paul@226
|
439 # cp rootfs.gz rootcd/boot
|
paul@226
|
440 # genisoimage -R -o slitaz-cooking.iso -b boot/isolinux/isolinux.bin \
|
paul@226
|
441 -c boot/isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
|
paul@226
|
442 -V "SliTaz" -boot-info-table rootcd
|
paul@226
|
443 </pre>
|
paul@226
|
444 <h4>Following chapter</h4>
|
paul@226
|
445 <p>
|
paul@226
|
446 The next chapter <a href="gtk-libs.html">GTK+ libs</a>
|
paul@226
|
447 describes the installation of GTK libraries.
|
paul@226
|
448 </p>
|
paul@226
|
449
|
paul@226
|
450
|
paul@226
|
451 <!-- End of content -->
|
paul@226
|
452 </div>
|
paul@226
|
453
|
paul@226
|
454 <!-- Footer. -->
|
paul@226
|
455 <div id="footer">
|
paul@226
|
456 <div class="footer-right"></div>
|
pascal@550
|
457 <a href="x-window-system.html#top">Top of the page</a> |
|
paul@226
|
458 <a href="index.html">Table of contents</a>
|
paul@226
|
459 </div>
|
paul@226
|
460
|
paul@226
|
461 <div id="copy">
|
pascal@669
|
462 Copyright © <span class="year"></span> <a href="http://www.slitaz.org/en/">SliTaz</a> -
|
paul@226
|
463 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
|
paul@226
|
464 Documentation is under
|
paul@226
|
465 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
|
paul@226
|
466 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
|
paul@226
|
467 </div>
|
paul@226
|
468
|
paul@226
|
469 </body>
|
paul@226
|
470 </html>
|