source: x/dm/lxdm.xml@ 00dba2fc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 00dba2fc was 00dba2fc, checked in by DJ Lucas <dj@…>, 7 years ago

tag lxdm

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19167 af4574ff-66df-0310-9fd7-8a98e5e911e0

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