website view en/doc/scratchbook/xorg.html @ rev 226

en: Add scratchbook pages
author Paul Issott <paul@slitaz.org>
date Tue Dec 23 14:10:23 2008 +0000 (2008-12-23)
parents
children 41c2d8bb137c
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>SliTaz Scratchbook - Xorg</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="" />
8 <meta name="expires" content="never" />
9 <meta name="modified" content="2008-11-22 17:00:00" />
10 <meta name="publisher" content="www.slitaz.org" />
11 <meta name="author" content="Christophe Lincoln"/>
12 <link rel="shortcut icon" href="favicon.ico" />
13 <link rel="stylesheet" type="text/css" href="book.css" />
14 </head>
15 <body bgcolor="#ffffff">
17 <!-- Header and quick navigation -->
18 <div id="header">
19 <div id="quicknav" align="right">
20 <a name="top"></a>
21 <a href="index.html">Table of contents</a>
22 </div>
23 <h1><font color="#3e1220">SliTaz Scratchbook</font></h1>
24 </div>
26 <!-- Content. -->
27 <div id="content">
28 <div class="content-right"></div>
31 <h2><font color="#df8f06">How-to Xorg - Modular graphical server</font></h2>
32 <ul>
33 <li><a href="#woking">Build Xorg automatically with Tazwok.</a></li>
34 <li><a href="#get">Download Xorg using wget.</a></li>
35 <li><a href="#make">Compile Xorg by hand.</a></li>
36 </ul>
37 <p>
38 Note SliTaz uses the Xvesa server provided by XFree86 and Xorg libraries, this page describes
39 the compilation of Xorg libraries used by SliTaz. This document is primarily aimed at
40 develpers and contributors to the project, but it may be useful to all those seeking to rebuild
41 Xorg and Xlib libraries from source generating a minimum of dependencies.
42 </p>
44 <a name="woking"></a>
45 <h3>Build Xorg automatically with Tazwok</h3>
46 <p>
47 On SliTaz, if you have Tazwok installed, you can rebuild Xorg with a few commands.
48 The wok contains a package called <code>xorg</code> and another named <code>xorg-dev</code>,
49 they can compile/cook all the packages used by Xorg on SliTaz. To compile, you must have
50 most of the development packages installed; if this is not the case:
51 </p>
52 <pre> # tazpkg get-install slitaz-dev-pkgs
53 </pre>
54 <p>
55 Then you can start to cook (if everything is ready, wok and development packages, etc),
56 starting with the protos' (xproto, etc):
57 </p>
58 <pre> # tazwok cook xorg-dev-proto
59 # tazwok cook xorg
60 # tazwok cook xorg-dev
61 </pre>
63 <a name="get"></a>
64 <h3>Download Xorg (7.2) using wget</h3>
65 <p>
66 Xorg is distributed in the form of modules, which is handy because you can only install what you want,
67 but it takes a lot of downloads. To help, we have created a small script that downloads the minimum
68 required for SliTaz; you can find the script <code>getXorg.sh</code> in
69 <a href="http://www.slitaz.org/en/doc/cookbook/slitaz-tools.html">SliTaz tools (1.1)</a>.
70 This script is no longer updated, developers use the
71 <a href="http://www.slitaz.org/en/doc/cookbook/wok-tools.html">wok and tools</a>.
72 To use the script, it must be placed in the directory where you want to download Xorg:
73 </p>
74 <pre> # cd ..
75 # mkdir Xorg &amp;&amp; cd Xorg
76 # cp slitaz-tools-1.1/utils/getXorg-7.2.sh .
77 # ./getXorg-7.2.sh
78 </pre>
79 <a name="make"></a>
80 <h3>Compile Xorg by hand</h3>
81 <p>
82 Compiling Xorg can take a long time, there are many packages. To commence you need to
83 compile the downloaded proto packages, you can use the command <code>make DESTDIR=$PWD/_pkg install</code> to
84 install the package in a given directory. Example:
85 </p>
86 <pre> # cd proto
87 # tar xzf xproto-X11R7.2-7.0.10.tar.gz
88 # cd xproto-X11R7.2-7.0.10
89 # ./configure --prefix=/usr --sysconfdir=/etc \
90 --mandir=/usr/share/man --localstatedir=/var \
91 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
92 # make
93 # make install
94 </pre>
95 <p>
96 Compile libraries by taking again the options used by proto. Example using the proper package to
97 compile xtrans, remember to run <code>ldconfig</code> if you install the package on the development machine:
98 </p>
99 <pre> # cd .. &amp;&amp; cd lib
100 # tar xzf xtrans-X11R7.2-1.0.3.tar.gz
101 # cd xtrans-X11R7.2-1.0.3
102 # ./configure --prefix=/usr --sysconfdir=/etc \
103 --mandir=/usr/share/man --localstatedir=/var \
104 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
105 # make
106 # make install
107 # ldconfig
108 </pre>
109 <p>
110 Once all the packaged libraries are compiled, you can begin to compile X applications such as the
111 graphical terminal Xterm. Note: SliTaz uses the RGB package containing the /usr/share/X11/rgt.text
112 file for defining colors. Example using the <code>xsetroot</code> application that permits
113 you to change the background color of the screen (modify $VERSION for the version that you want downloaded):
114 </p>
115 <pre> # cd .. &amp;&amp; cd app
116 # tar xzf xsetroot-$VERSION.tar.gz
117 # cd xsetroot-$VERSION
118 # ./configure --prefix=/usr --sysconfdir=/etc \
119 --mandir=/usr/share/man --localstatedir=/var \
120 --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu
121 # make &amp;&amp; make install
122 </pre>
125 <!-- End of content -->
126 </div>
128 <!-- Footer. -->
129 <div id="footer">
130 <div class="footer-right"></div>
131 <a href="#top">Top of the page</a> |
132 <a href="index.html">Table of contents</a>
133 </div>
135 <div id="copy">
136 Copyright &copy; 2008 <a href="http://www.slitaz.org/en/">SliTaz</a> -
137 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>;<br />
138 Documentation is under
139 <a href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License</a>
140 and code is <a href="http://validator.w3.org/">valid xHTML 1.0</a>.
141 </div>
143 </body>
144 </html>