1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!-- Place this in the general.ent file
|
---|
8 | <!ENTITY TEMPLATE-version "">
|
---|
9 | -->
|
---|
10 |
|
---|
11 | <!ENTITY lxdm-download-http "http://downloads.sourceforge.net/lxdm/lxdm-&lxdm-version;.tar.xz">
|
---|
12 | <!ENTITY lxdm-download-ftp " ">
|
---|
13 | <!ENTITY lxdm-md5sum "a51686720e606ca456d7f56ae4159d1f">
|
---|
14 | <!ENTITY lxdm-size "232 KB">
|
---|
15 | <!ENTITY lxdm-buildsize "4.7 MB">
|
---|
16 | <!ENTITY lxdm-time "less than 0.1 SBU ">
|
---|
17 | ]>
|
---|
18 |
|
---|
19 | <sect1 id="lxdm" xreflabel="LXDM-&lxdm-version;">
|
---|
20 | <?dbhtml filename="lxdm.html"?>
|
---|
21 |
|
---|
22 | <sect1info>
|
---|
23 | <othername>$LastChangedBy$</othername>
|
---|
24 | <date>$Date$</date>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>LXDM-&lxdm-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="lxdm">
|
---|
30 | <primary sortas="a-LXDM">LXDM</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to LXDM</title>
|
---|
35 |
|
---|
36 | <para>
|
---|
37 | The <application>LXDM</application> is a lightweight Display Manager for
|
---|
38 | the <application>LXDE</application> desktop. It can also be used as an
|
---|
39 | alternative to other Display Managers such as
|
---|
40 | <application>GNOME's</application> <application>GDM</application> or
|
---|
41 | <application>KDE's</application> <application>KDM</application>.
|
---|
42 | </para>
|
---|
43 |
|
---|
44 | &lfs77_checked;
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (HTTP): <ulink url="&lxdm-download-http;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download (FTP): <ulink url="&lxdm-download-ftp;"/>
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download MD5 sum: &lxdm-md5sum;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Download size: &lxdm-size;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated disk space required: &lxdm-buildsize;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | <listitem>
|
---|
74 | <para>
|
---|
75 | Estimated build time: &lxdm-time;
|
---|
76 | </para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect3">LXDM Dependencies</bridgehead>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
83 | <para role="required">
|
---|
84 | <xref linkend="gtk2"/>,
|
---|
85 | <xref linkend="iso-codes"/> and
|
---|
86 | <xref linkend="librsvg"/> (runtime, for default theme background)
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
90 | <para role="recommended">
|
---|
91 | <xref linkend="consolekit"/> and
|
---|
92 | <xref linkend="linux-pam"/>
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
96 | <para role="optional">
|
---|
97 | <xref linkend="gtk3"/>
|
---|
98 | </para>
|
---|
99 |
|
---|
100 | <para condition="html" role="usernotes">
|
---|
101 | User Notes: <ulink url="&blfs-wiki;/lxdm"/>
|
---|
102 | </para>
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="installation">
|
---|
106 | <title>Installation of LXDM</title>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | First, some fixes.
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen><userinput>cat > pam/lxdm << "EOF" &&
|
---|
113 | <literal>#%PAM-1.0
|
---|
114 | auth required pam_unix.so
|
---|
115 | auth requisite pam_nologin.so
|
---|
116 | account required pam_unix.so
|
---|
117 | password required pam_unix.so
|
---|
118 | session required pam_unix.so</literal>
|
---|
119 | EOF
|
---|
120 |
|
---|
121 | sed -i 's:sysconfig/i18n:profile.d/i18n.sh:g' data/lxdm.in &&
|
---|
122 | sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession &&
|
---|
123 | sed -e 's/^bg/#&/' \
|
---|
124 | -e '/reset=1/ s/# //' \
|
---|
125 | -e 's/logou$/logout/' \
|
---|
126 | -e "/arg=/a arg=$XORG_PREFIX/bin/X" \
|
---|
127 | -i data/lxdm.conf.in</userinput></screen>
|
---|
128 |
|
---|
129 | <para>
|
---|
130 | Install <application>LXDM</application> by running the following
|
---|
131 | commands:
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <screen><userinput>./configure --prefix=/usr \
|
---|
135 | --sysconfdir=/etc \
|
---|
136 | --with-pam \
|
---|
137 | --with-systemdsystemunitdir=no &&
|
---|
138 | make</userinput></screen>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | This package does not come with a test suite.
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <para>
|
---|
145 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
149 |
|
---|
150 | </sect2>
|
---|
151 |
|
---|
152 | <!--Optional section-->
|
---|
153 | <sect2 role="commands">
|
---|
154 | <title>Command Explanations</title>
|
---|
155 |
|
---|
156 | <para>
|
---|
157 | <command>cat > pam/lxdm << "EOF" ...</command>: Replace default
|
---|
158 | <filename>/etc/pam.d/lxdm</filename> by another one appropriate for BLFS.
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <para>
|
---|
162 | <command>sed -i ... data/lxdm.conf.in</command>: Modifications in the
|
---|
163 | default configuration:
|
---|
164 | (1) fix the background to the default one;
|
---|
165 | (2) restart X when session is close;
|
---|
166 | (3) typo; and
|
---|
167 | (4) include <envar>XORG_PREFIX</envar>, which may be different from
|
---|
168 | <filename class="directory">/usr</filename>.
|
---|
169 | </para>
|
---|
170 |
|
---|
171 | <para>
|
---|
172 | <command>sed -i ... data/Xsession</command>: Source
|
---|
173 | <filename>/etc/profile</filename>, instead of other file, according to
|
---|
174 | BLFS standard.
|
---|
175 | </para>
|
---|
176 |
|
---|
177 | <para>
|
---|
178 | <command>sed -i ... data/lxdm.in</command>: Fix greeter's locale for BLFS
|
---|
179 | specification.
|
---|
180 | </para>
|
---|
181 |
|
---|
182 | <para>
|
---|
183 | <parameter>--with-pam</parameter>: This parameter enables use of pam
|
---|
184 | authentication.
|
---|
185 | </para>
|
---|
186 |
|
---|
187 | <para>
|
---|
188 | <parameter>--with-systemdsystemunitdir=no</parameter>: BLFS does not
|
---|
189 | support systemd.
|
---|
190 | </para>
|
---|
191 |
|
---|
192 | </sect2>
|
---|
193 |
|
---|
194 | <sect2 role="configuration">
|
---|
195 | <title>Configuring LXDM</title>
|
---|
196 |
|
---|
197 | <sect3 id="lxdm-config">
|
---|
198 | <title>Config Files</title>
|
---|
199 |
|
---|
200 | <para>
|
---|
201 | <filename>/etc/lxdm/lxdm.conf</filename>
|
---|
202 | </para>
|
---|
203 |
|
---|
204 | <indexterm zone="lxdm lxdm-config">
|
---|
205 | <primary sortas="e-etc-lxdm-lxdm.conf">/etc/lxdm/lxdm.conf</primary>
|
---|
206 | </indexterm>
|
---|
207 |
|
---|
208 | </sect3>
|
---|
209 |
|
---|
210 | <sect3 id="lxdm-init">
|
---|
211 | <title>Boot Script</title>
|
---|
212 |
|
---|
213 | <para>
|
---|
214 | Install the <filename>/etc/rc.d/init.d/lxdm</filename> init script from
|
---|
215 | the <xref linkend="bootscripts"/> package.
|
---|
216 | </para>
|
---|
217 |
|
---|
218 | <indexterm zone="lxdm lxdm-init">
|
---|
219 | <primary sortas="f-lxdm">lxdm</primary>
|
---|
220 | </indexterm>
|
---|
221 |
|
---|
222 | <screen role="root"><userinput>make install-lxdm</userinput></screen>
|
---|
223 |
|
---|
224 | </sect3>
|
---|
225 |
|
---|
226 | <sect3>
|
---|
227 | <title>Configuration Information</title>
|
---|
228 |
|
---|
229 | <para>
|
---|
230 | The LXDM daemon configuration <filename>/etc/lxdm/lxdm.conf</filename>
|
---|
231 | file options includes numlock on/off, backgraound image (bg), session,
|
---|
232 | etc. You can set a default session by uncommenting the line:
|
---|
233 | session=/usr/bin/startlxde and replacing <command>startlxde</command>
|
---|
234 | with your session of choice. For <application>GNOME</application>
|
---|
235 | session=/usr/bin/gnome-session. For <application>OPENBOX</application>
|
---|
236 | session=/usr/bin/openbox-session and for
|
---|
237 | <application>XFCE</application> session=/usr/bin/startxfce4.
|
---|
238 | </para>
|
---|
239 |
|
---|
240 | <para>
|
---|
241 | It is also possible to set the preferred session on a per-user basis by
|
---|
242 | editing the ~/.dmrc file for each user and adding:
|
---|
243 | <screen><literal>[Desktop]
|
---|
244 | Session=xfce</literal></screen>
|
---|
245 | </para>
|
---|
246 |
|
---|
247 | <para>
|
---|
248 | You can replace the default dummy face in the greeting screen by other
|
---|
249 | image representing your user. For that, copy or symlink the desired
|
---|
250 | image to your home directory, with the name <filename>.face</filename>.
|
---|
251 | </para>
|
---|
252 |
|
---|
253 | </sect3>
|
---|
254 |
|
---|
255 | <sect3>
|
---|
256 | <title>Starting lxdm</title>
|
---|
257 |
|
---|
258 | <para>
|
---|
259 | You can manually start <command>lxdm</command>, e.g, if the bootscript
|
---|
260 | has been installed, by running, as <systemitem
|
---|
261 | class="username">root</systemitem> user:
|
---|
262 | </para>
|
---|
263 |
|
---|
264 | <screen role="root"><userinput>/etc/rc.d/init.d/lxdm start</userinput></screen>
|
---|
265 |
|
---|
266 | <para>
|
---|
267 | By definition, X should be executed at runlevel 5, consequently, the
|
---|
268 | same is true for <application>lxdm</application>. However, BLFS default
|
---|
269 | runlevel is 3. Changing to runlevel 5, from the terminal, as
|
---|
270 | <systemitem class="username">root</systemitem> user, makes the
|
---|
271 | <command>lxdm</command> bootscript to be executed, obtaining the
|
---|
272 | greeter screen:
|
---|
273 | </para>
|
---|
274 |
|
---|
275 | <screen role="root"><userinput>init 5</userinput></screen>
|
---|
276 |
|
---|
277 | <para>
|
---|
278 | In order to permanently set the default to 5, obtaining the
|
---|
279 | <command>lxdm</command> greeter screen automatically, you can modify
|
---|
280 | <filename>/etc/inittab</filename>, as <systemitem
|
---|
281 | class="username">root</systemitem> user (the instructions below also
|
---|
282 | make a backup, so you can easily revert the modification):
|
---|
283 | </para>
|
---|
284 |
|
---|
285 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
286 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
287 |
|
---|
288 | <para>
|
---|
289 | One important script, executed after login, is
|
---|
290 | <filename>/etc/lxdm/Xsession</filename>, which we have fixed to fit
|
---|
291 | BLFS specifications.
|
---|
292 | </para>
|
---|
293 |
|
---|
294 | </sect3>
|
---|
295 |
|
---|
296 | </sect2>
|
---|
297 | <!--Required section-->
|
---|
298 | <sect2 role="content">
|
---|
299 | <title>Contents</title>
|
---|
300 |
|
---|
301 | <segmentedlist>
|
---|
302 | <segtitle>Installed Programs</segtitle>
|
---|
303 | <segtitle>Installed Libraries</segtitle>
|
---|
304 | <segtitle>Installed Directories</segtitle>
|
---|
305 |
|
---|
306 | <seglistitem>
|
---|
307 | <seg>
|
---|
308 | lxdm, lxdm-binary and lxdm-config
|
---|
309 | </seg>
|
---|
310 | <seg>
|
---|
311 | None
|
---|
312 | </seg>
|
---|
313 | <seg>
|
---|
314 | /etc/lxdm and
|
---|
315 | /usr/share/lxdm
|
---|
316 | </seg>
|
---|
317 | </seglistitem>
|
---|
318 | </segmentedlist>
|
---|
319 |
|
---|
320 | <variablelist>
|
---|
321 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
322 | <?dbfo list-presentation="list"?>
|
---|
323 | <?dbhtml list-presentation="table"?>
|
---|
324 |
|
---|
325 | <!-- If the program or library name conflicts (is the same) as the
|
---|
326 | package name, add -prog or -lib to the varlistentry entity id
|
---|
327 | and the 2nd entry of the indexterm zone entity -->
|
---|
328 |
|
---|
329 | <varlistentry id="lxdm-prog">
|
---|
330 | <term><command>lxdm</command></term>
|
---|
331 | <listitem>
|
---|
332 | <para>
|
---|
333 | is a script to execute <command>lxdm-binary</command>
|
---|
334 | </para>
|
---|
335 | <indexterm zone="lxdm lxdm-prog">
|
---|
336 | <primary sortas="b-lxdm">lxdm</primary>
|
---|
337 | </indexterm>
|
---|
338 | </listitem>
|
---|
339 | </varlistentry>
|
---|
340 |
|
---|
341 | <varlistentry id="lxdm-bin">
|
---|
342 | <term><command>lxdm-binary</command></term>
|
---|
343 | <listitem>
|
---|
344 | <para>
|
---|
345 | is the actual Display Manager; needs to be executed with option
|
---|
346 | <option>-d</option> to daemonize
|
---|
347 | </para>
|
---|
348 | <indexterm zone="lxdm lxdm-bin">
|
---|
349 | <primary sortas="b-lxdm">lxdm</primary>
|
---|
350 | </indexterm>
|
---|
351 | </listitem>
|
---|
352 | </varlistentry>
|
---|
353 |
|
---|
354 | <varlistentry id="lxdm-config-prog">
|
---|
355 | <term><command>lxdm-config</command></term>
|
---|
356 | <listitem>
|
---|
357 | <para>
|
---|
358 | is a graphical customizing program
|
---|
359 | </para>
|
---|
360 | <indexterm zone="lxdm lxdm-config">
|
---|
361 | <primary sortas="b-lxdm">lxdm</primary>
|
---|
362 | </indexterm>
|
---|
363 | </listitem>
|
---|
364 | </varlistentry>
|
---|
365 |
|
---|
366 | </variablelist>
|
---|
367 |
|
---|
368 | </sect2>
|
---|
369 |
|
---|
370 | </sect1>
|
---|