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