source: x/dm/lxdm.xml@ 70bcdf4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 70bcdf4 was 70bcdf4, checked in by Pierre Labastie <pieere@…>, 5 years ago

A few tags

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

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