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 "061caae432634e6db38bbdc84bc6ffa0">
|
---|
14 | <!ENTITY lxdm-size "236 KB">
|
---|
15 | <!ENTITY lxdm-buildsize "5.6 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>LightDM</application>.
|
---|
42 | </para>
|
---|
43 |
|
---|
44 | &lfs80_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 | <phrase revision="sysv"><xref linkend="consolekit"/> and</phrase>
|
---|
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># Begin /etc/pam.d/lxdm
|
---|
114 |
|
---|
115 | auth requisite pam_nologin.so
|
---|
116 | auth required pam_env.so
|
---|
117 | auth include system-auth
|
---|
118 |
|
---|
119 | account include system-account
|
---|
120 |
|
---|
121 | password include system-password
|
---|
122 |
|
---|
123 | session required pam_limits.so
|
---|
124 | session include system-session
|
---|
125 |
|
---|
126 | # End /etc/pam.d/lxdm</literal>
|
---|
127 | EOF
|
---|
128 |
|
---|
129 | sed -i 's:sysconfig/i18n:profile.d/i18n.sh:g' data/lxdm.in &&
|
---|
130 | sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession &&
|
---|
131 | sed -e 's/^bg/#&/' \
|
---|
132 | -e '/reset=1/ s/# //' \
|
---|
133 | -e 's/logou$/logout/' \
|
---|
134 | -e "/arg=/a arg=$XORG_PREFIX/bin/X" \
|
---|
135 | -i data/lxdm.conf.in</userinput></screen>
|
---|
136 |
|
---|
137 | <para>
|
---|
138 | Install <application>LXDM</application> by running the following
|
---|
139 | commands:
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <screen revision="sysv"><userinput>./configure --prefix=/usr \
|
---|
143 | --sysconfdir=/etc \
|
---|
144 | --with-pam \
|
---|
145 | --with-systemdsystemunitdir=no &&
|
---|
146 | make</userinput></screen>
|
---|
147 |
|
---|
148 | <screen revision="systemd"><userinput>./configure --prefix=/usr \
|
---|
149 | --sysconfdir=/etc \
|
---|
150 | --with-pam \
|
---|
151 | --with-systemdsystemunitdir=/lib/systemd/system &&
|
---|
152 | make</userinput></screen>
|
---|
153 |
|
---|
154 | <para>
|
---|
155 | This package does not come with a test suite.
|
---|
156 | </para>
|
---|
157 |
|
---|
158 | <para>
|
---|
159 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
160 | </para>
|
---|
161 |
|
---|
162 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
163 |
|
---|
164 | </sect2>
|
---|
165 |
|
---|
166 | <!--Optional section-->
|
---|
167 | <sect2 role="commands">
|
---|
168 | <title>Command Explanations</title>
|
---|
169 |
|
---|
170 | <para>
|
---|
171 | <command>cat > pam/lxdm << "EOF" ...</command>: Replace default
|
---|
172 | <filename>/etc/pam.d/lxdm</filename> by another one appropriate for BLFS.
|
---|
173 | </para>
|
---|
174 |
|
---|
175 | <para>
|
---|
176 | <command>sed -i ... data/lxdm.conf.in</command>: Modifications in the
|
---|
177 | default configuration:
|
---|
178 | (1) fix the background to the default one;
|
---|
179 | (2) restart X when session is close;
|
---|
180 | (3) typo; and
|
---|
181 | (4) include <envar>XORG_PREFIX</envar>, which may be different from
|
---|
182 | <filename class="directory">/usr</filename>.
|
---|
183 | </para>
|
---|
184 |
|
---|
185 | <para>
|
---|
186 | <command>sed -i ... data/Xsession</command>: Source
|
---|
187 | <filename>/etc/profile</filename>, instead of other file, according to
|
---|
188 | BLFS standard.
|
---|
189 | </para>
|
---|
190 |
|
---|
191 | <para>
|
---|
192 | <command>sed -i ... data/lxdm.in</command>: Fix greeter's locale for BLFS
|
---|
193 | specification.
|
---|
194 | </para>
|
---|
195 |
|
---|
196 | <para>
|
---|
197 | <parameter>--with-pam</parameter>: This parameter enables use of pam
|
---|
198 | authentication.
|
---|
199 | </para>
|
---|
200 |
|
---|
201 | <para revision="sysv">
|
---|
202 | <parameter>--with-systemdsystemunitdir=no</parameter>: BLFS does not
|
---|
203 | support systemd.
|
---|
204 | </para>
|
---|
205 |
|
---|
206 | </sect2>
|
---|
207 |
|
---|
208 | <sect2 role="configuration">
|
---|
209 | <title>Configuring LXDM</title>
|
---|
210 |
|
---|
211 | <sect3 id="lxdm-config">
|
---|
212 | <title>Config Files</title>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | <filename>/etc/lxdm/lxdm.conf</filename>
|
---|
216 | </para>
|
---|
217 |
|
---|
218 | <indexterm zone="lxdm lxdm-config">
|
---|
219 | <primary sortas="e-etc-lxdm-lxdm.conf">/etc/lxdm/lxdm.conf</primary>
|
---|
220 | </indexterm>
|
---|
221 |
|
---|
222 | </sect3>
|
---|
223 |
|
---|
224 | <sect3 id="lxdm-init">
|
---|
225 | <title>Boot Script</title>
|
---|
226 |
|
---|
227 | <para revision="sysv">
|
---|
228 | Install the <filename>/etc/rc.d/init.d/lxdm</filename> init script from
|
---|
229 | the <xref linkend="bootscripts"/> package.
|
---|
230 | </para>
|
---|
231 |
|
---|
232 | <para revision="systemd">
|
---|
233 | To start <application>LXDM</application> at boot execute the following
|
---|
234 | command as the <systemitem class="username">root</systemitem> user:
|
---|
235 | </para>
|
---|
236 |
|
---|
237 | <indexterm zone="lxdm lxdm-init">
|
---|
238 | <primary sortas="f-lxdm">lxdm</primary>
|
---|
239 | </indexterm>
|
---|
240 |
|
---|
241 | <screen role="root" revision="sysv"><userinput>make install-lxdm</userinput></screen>
|
---|
242 | <screen role="root" revision="systemd"><userinput>systemctl enable lxdm</userinput></screen>
|
---|
243 |
|
---|
244 | </sect3>
|
---|
245 |
|
---|
246 | <sect3>
|
---|
247 | <title>Configuration Information</title>
|
---|
248 |
|
---|
249 | <para>
|
---|
250 | The LXDM daemon configuration file
|
---|
251 | (<filename>/etc/lxdm/lxdm.conf</filename>) specifies options that
|
---|
252 | include numlock on/off, background image (bg), session, etc. You can
|
---|
253 | set a default session by uncommenting the line:
|
---|
254 | session=/usr/bin/startlxde and replacing <command>startlxde</command>
|
---|
255 | with your session of choice. For <application>GNOME</application>
|
---|
256 | session=/usr/bin/gnome-session. For <application>OPENBOX</application>
|
---|
257 | session=/usr/bin/openbox-session and for
|
---|
258 | <application>XFCE</application> session=/usr/bin/startxfce4.
|
---|
259 | </para>
|
---|
260 |
|
---|
261 | <para>
|
---|
262 | It is also possible to set the preferred session on a per-user basis by
|
---|
263 | editing the ~/.dmrc file for each user and adding:
|
---|
264 | <screen><literal>[Desktop]
|
---|
265 | Session=xfce</literal></screen>
|
---|
266 | </para>
|
---|
267 |
|
---|
268 | <para>
|
---|
269 | You can replace the default dummy face in the greeting screen by another
|
---|
270 | image representing your user. For that, copy or symlink the desired
|
---|
271 | image to your home directory with the name <filename>.face</filename>.
|
---|
272 | </para>
|
---|
273 |
|
---|
274 | </sect3>
|
---|
275 |
|
---|
276 | <sect3 revision="sysv">
|
---|
277 | <title>Starting lxdm</title>
|
---|
278 |
|
---|
279 | <para>
|
---|
280 | You can manually start <command>lxdm</command>, e.g, if the bootscript
|
---|
281 | has been installed, by running, as <systemitem
|
---|
282 | class="username">root</systemitem> user:
|
---|
283 | </para>
|
---|
284 |
|
---|
285 | <screen role="root"><userinput>/etc/rc.d/init.d/lxdm start</userinput></screen>
|
---|
286 |
|
---|
287 | <para>
|
---|
288 | By convention, X should be executed at runlevel 5, consequently, the
|
---|
289 | same is true for <application>lxdm</application>. However, the LFS default
|
---|
290 | runlevel is 3. Changing to runlevel 5, from the console (as
|
---|
291 | <systemitem class="username">root</systemitem> user) starts the
|
---|
292 | <command>lxdm</command> bootscript and presents the
|
---|
293 | greeter screen:
|
---|
294 | </para>
|
---|
295 |
|
---|
296 | <screen role="root"><userinput>init 5</userinput></screen>
|
---|
297 |
|
---|
298 | <para>
|
---|
299 | In order to permanently set the default to 5, starting the
|
---|
300 | <command>lxdm</command> greeter screen automatically, you can modify
|
---|
301 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
302 | class="username">root</systemitem> user:
|
---|
303 | </para>
|
---|
304 |
|
---|
305 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
306 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
307 |
|
---|
308 | <note>
|
---|
309 | <para>
|
---|
310 | One important script, executed after login is
|
---|
311 | <filename>/etc/lxdm/Xsession</filename> which we have fixed to fit
|
---|
312 | BLFS specifications.
|
---|
313 | </para>
|
---|
314 | </note>
|
---|
315 |
|
---|
316 | </sect3>
|
---|
317 |
|
---|
318 | </sect2>
|
---|
319 | <!--Required section-->
|
---|
320 | <sect2 role="content">
|
---|
321 | <title>Contents</title>
|
---|
322 |
|
---|
323 | <segmentedlist>
|
---|
324 | <segtitle>Installed Programs</segtitle>
|
---|
325 | <segtitle>Installed Libraries</segtitle>
|
---|
326 | <segtitle>Installed Directories</segtitle>
|
---|
327 |
|
---|
328 | <seglistitem>
|
---|
329 | <seg>
|
---|
330 | lxdm, lxdm-binary and lxdm-config
|
---|
331 | </seg>
|
---|
332 | <seg>
|
---|
333 | None
|
---|
334 | </seg>
|
---|
335 | <seg>
|
---|
336 | /etc/lxdm and
|
---|
337 | /usr/share/lxdm
|
---|
338 | </seg>
|
---|
339 | </seglistitem>
|
---|
340 | </segmentedlist>
|
---|
341 |
|
---|
342 | <variablelist>
|
---|
343 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
344 | <?dbfo list-presentation="list"?>
|
---|
345 | <?dbhtml list-presentation="table"?>
|
---|
346 |
|
---|
347 | <!-- If the program or library name conflicts (is the same) as the
|
---|
348 | package name, add -prog or -lib to the varlistentry entity id
|
---|
349 | and the 2nd entry of the indexterm zone entity -->
|
---|
350 |
|
---|
351 | <varlistentry id="lxdm-prog">
|
---|
352 | <term><command>lxdm</command></term>
|
---|
353 | <listitem>
|
---|
354 | <para>
|
---|
355 | is a script to execute <command>lxdm-binary</command>
|
---|
356 | </para>
|
---|
357 | <indexterm zone="lxdm lxdm-prog">
|
---|
358 | <primary sortas="b-lxdm">lxdm</primary>
|
---|
359 | </indexterm>
|
---|
360 | </listitem>
|
---|
361 | </varlistentry>
|
---|
362 |
|
---|
363 | <varlistentry id="lxdm-binary">
|
---|
364 | <term><command>lxdm-binary</command></term>
|
---|
365 | <listitem>
|
---|
366 | <para>
|
---|
367 | is the actual Display Manager; needs to be executed with option
|
---|
368 | <option>-d</option> to daemonize
|
---|
369 | </para>
|
---|
370 | <indexterm zone="lxdm lxdm-binary">
|
---|
371 | <primary sortas="b-lxdm-binary">lxdm-binary</primary>
|
---|
372 | </indexterm>
|
---|
373 | </listitem>
|
---|
374 | </varlistentry>
|
---|
375 |
|
---|
376 | <varlistentry id="lxdm-config-prog">
|
---|
377 | <term><command>lxdm-config</command></term>
|
---|
378 | <listitem>
|
---|
379 | <para>
|
---|
380 | is a graphical customizing program
|
---|
381 | </para>
|
---|
382 | <indexterm zone="lxdm lxdm-config">
|
---|
383 | <primary sortas="b-lxdm">lxdm</primary>
|
---|
384 | </indexterm>
|
---|
385 | </listitem>
|
---|
386 | </varlistentry>
|
---|
387 |
|
---|
388 | </variablelist>
|
---|
389 |
|
---|
390 | </sect2>
|
---|
391 |
|
---|
392 | </sect1>
|
---|