source: x/dm/lxdm.xml@ 52250565

10.1 11.0 11.1 11.2 11.3 12.0 12.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 52250565 was 52250565, checked in by Pierre Labastie <pieere@…>, 4 years ago

Various clean-up and modifications to the dm pages in view of the recent
change to the bootscripts.

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

  • Property mode set to 100644
File size: 11.1 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
[3d93b04]40 &lfs10_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
[cac7f93]89 <xref role="nodep" 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">
[52250565]223 <title><phrase revision="sysv">Boot Script</phrase>
224 <phrase revision="systemd">Systemd Unit</phrase></title>
225
226 <indexterm zone="lxdm lxdm-init">
227 <primary sortas="f-lxdm">lxdm</primary>
228 </indexterm>
[a1f2d184]229
[1e1b3d6]230 <para revision="sysv">
[52250565]231 To start <command>lxdm</command> automatically when the system is
232 switched to runlevel 5, install the
233 <filename>/etc/rc.d/init.d/xdm</filename> script and the
234 <filename>/etc/sysconfig/xdm</filename> configuration file
235 included in the <xref linkend="bootscripts"/> package
236 and adjust <filename>/etc/inittab</filename> by running
237 as the <systemitem class="username">root</systemitem> user:
[1e1b3d6]238 </para>
239
[52250565]240<screen role="root" revision="sysv"><userinput>make install-lxdm</userinput></screen>
241
[1e1b3d6]242 <para revision="systemd">
243 To start <application>LXDM</application> at boot execute the following
244 command as the <systemitem class="username">root</systemitem> user:
[a1f2d184]245 </para>
246
[72552d9]247<screen role="root" revision="systemd"><userinput>systemctl enable lxdm</userinput></screen>
[a1f2d184]248
249 </sect3>
250
[2bda6610]251 <sect3>
252 <title>Configuration Information</title>
253
254 <para>
[1def00f]255 The LXDM daemon configuration file
256 (<filename>/etc/lxdm/lxdm.conf</filename>) specifies options that
[5eb2b92]257 include numlock on/off, background image (bg), session, etc. You can
[1def00f]258 set a default session by uncommenting the line:
[2bda6610]259 session=/usr/bin/startlxde and replacing <command>startlxde</command>
260 with your session of choice. For <application>GNOME</application>
261 session=/usr/bin/gnome-session. For <application>OPENBOX</application>
262 session=/usr/bin/openbox-session and for
263 <application>XFCE</application> session=/usr/bin/startxfce4.
264 </para>
265
266 <para>
267 It is also possible to set the preferred session on a per-user basis by
268 editing the ~/.dmrc file for each user and adding:
269 <screen><literal>[Desktop]
270 Session=xfce</literal></screen>
271 </para>
272
273 <para>
[1def00f]274 You can replace the default dummy face in the greeting screen by another
[2bda6610]275 image representing your user. For that, copy or symlink the desired
[1def00f]276 image to your home directory with the name <filename>.face</filename>.
[2bda6610]277 </para>
278
279 </sect3>
280
[3f460da0]281 <sect3 revision="sysv">
[f3979ba]282 <title>Starting lxdm</title>
283
284 <para>
[52250565]285 The <command>lxdm</command> greeter can be started from the command
286 line as the <systemitem class="username">root</systemitem> user:
[f3979ba]287 </para>
288
[52250565]289<screen role="root"><userinput>telinit 5</userinput></screen>
[f3979ba]290
291 <para>
[52250565]292 Alternatively the runlevel can be permanently set to 5, starting the
293 <command>lxdm</command> greeter screen automatically, by modifying
294 <filename>/etc/inittab</filename>. As the <systemitem
295 class="username">root</systemitem> user:
[f3979ba]296 </para>
297
[7a2aeb5]298<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &amp;&amp;
[f3979ba]299sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
300
[1def00f]301 <note>
[52250565]302 <para>
[1def00f]303 One important script, executed after login is
304 <filename>/etc/lxdm/Xsession</filename> which we have fixed to fit
[fd19cc7]305 BLFS specifications.
[52250565]306 </para>
[1def00f]307 </note>
[a6221fd]308
[f3979ba]309 </sect3>
[9fa25aa]310
[2bda6610]311 </sect2>
[52250565]312
[2bda6610]313 <sect2 role="content">
314 <title>Contents</title>
315
316 <segmentedlist>
317 <segtitle>Installed Programs</segtitle>
318 <segtitle>Installed Libraries</segtitle>
319 <segtitle>Installed Directories</segtitle>
320
321 <seglistitem>
322 <seg>
[38af6d4]323 lxdm, lxdm-binary and lxdm-config
[2bda6610]324 </seg>
325 <seg>
326 None
327 </seg>
328 <seg>
329 /etc/lxdm and
330 /usr/share/lxdm
331 </seg>
332 </seglistitem>
333 </segmentedlist>
334
335 <variablelist>
336 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
337 <?dbfo list-presentation="list"?>
338 <?dbhtml list-presentation="table"?>
339
340 <varlistentry id="lxdm-prog">
341 <term><command>lxdm</command></term>
342 <listitem>
343 <para>
344 is a script to execute <command>lxdm-binary</command>
345 </para>
346 <indexterm zone="lxdm lxdm-prog">
347 <primary sortas="b-lxdm">lxdm</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
[6d772cc]352 <varlistentry id="lxdm-binary">
[2bda6610]353 <term><command>lxdm-binary</command></term>
354 <listitem>
355 <para>
356 is the actual Display Manager; needs to be executed with option
357 <option>-d</option> to daemonize
358 </para>
[6d772cc]359 <indexterm zone="lxdm lxdm-binary">
360 <primary sortas="b-lxdm-binary">lxdm-binary</primary>
[2bda6610]361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="lxdm-config-prog">
366 <term><command>lxdm-config</command></term>
367 <listitem>
368 <para>
369 is a graphical customizing program
370 </para>
371 <indexterm zone="lxdm lxdm-config">
372 <primary sortas="b-lxdm">lxdm</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
[a6221fd]376
[2bda6610]377 </variablelist>
[38af6d4]378
[2bda6610]379 </sect2>
[38af6d4]380
[2bda6610]381</sect1>
Note: See TracBrowser for help on using the repository browser.