source: x/dm/lxdm.xml@ 169834cb

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 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 169834cb was af37fa5d, checked in by Pierre Labastie <pieere@…>, 7 years ago

Tags

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

  • Property mode set to 100644
File size: 11.4 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
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 " ">
[1378693]13 <!ENTITY lxdm-md5sum "061caae432634e6db38bbdc84bc6ffa0">
[53dd18f1]14 <!ENTITY lxdm-size "236 KB">
[1378693]15 <!ENTITY lxdm-buildsize "5.6 MB">
[2bda6610]16 <!ENTITY lxdm-time "less than 0.1 SBU ">
17]>
18
[9fa25aa]19<sect1 id="lxdm" xreflabel="lxdm-&lxdm-version;">
[2bda6610]20 <?dbhtml filename="lxdm.html"?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 </sect1info>
26
[9fa25aa]27 <title>lxdm-&lxdm-version;</title>
[2bda6610]28
29 <indexterm zone="lxdm">
[9fa25aa]30 <primary sortas="a-lxdm">lxdm</primary>
[2bda6610]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
[1def00f]41 <application>LightDM</application>.
[2bda6610]42 </para>
43
[af37fa5d]44 &lfs80_checked;
[2bda6610]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"/>,
[1def00f]85 <xref linkend="iso-codes"/>, and
[2bda6610]86 <xref linkend="librsvg"/> (runtime, for default theme background)
87 </para>
88
89 <bridgehead renderas="sect4">Recommended</bridgehead>
90 <para role="recommended">
[f1ce80b]91 <phrase revision="sysv"><xref linkend="consolekit"/> and</phrase>
[2bda6610]92 <xref linkend="linux-pam"/>
93 </para>
[9fa25aa]94
[2bda6610]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>
[f40b4f32]109 First, some fixes.
[2bda6610]110 </para>
111
[f31098e]112<screen><userinput>cat &gt; pam/lxdm &lt;&lt; "EOF"
[1e1b3d6]113<literal># Begin /etc/pam.d/lxdm
114
115auth requisite pam_nologin.so
116auth required pam_env.so
117auth include system-auth
118
119account include system-account
120
121password include system-password
122
123session required pam_limits.so
124session include system-session
125
126# End /etc/pam.d/lxdm</literal>
[2bda6610]127EOF
128
[b43538ae]129sed -i 's:sysconfig/i18n:profile.d/i18n.sh:g' data/lxdm.in &amp;&amp;
[f40b4f32]130sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession &amp;&amp;
[562e942]131sed -e 's/^bg/#&amp;/' \
132 -e '/reset=1/ s/# //' \
133 -e 's/logou$/logout/' \
[6a5aa22]134 -e "/arg=/a arg=$XORG_PREFIX/bin/X" \
[562e942]135 -i data/lxdm.conf.in</userinput></screen>
[2bda6610]136
137 <para>
138 Install <application>LXDM</application> by running the following
139 commands:
140 </para>
141
[3f460da0]142<screen revision="sysv"><userinput>./configure --prefix=/usr \
[2bda6610]143 --sysconfdir=/etc \
144 --with-pam \
[f3979ba]145 --with-systemdsystemunitdir=no &amp;&amp;
[2bda6610]146make</userinput></screen>
147
[3f460da0]148<screen revision="systemd"><userinput>./configure --prefix=/usr \
149 --sysconfdir=/etc \
[1e1b3d6]150 --with-pam \
151 --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
[3f460da0]152make</userinput></screen>
153
[2bda6610]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
[b43538ae]162<screen role="root"><userinput>make install</userinput></screen>
[f3979ba]163
[2bda6610]164 </sect2>
165
166 <!--Optional section-->
167 <sect2 role="commands">
168 <title>Command Explanations</title>
169
170 <para>
171 <command>cat &gt; pam/lxdm &lt;&lt; "EOF" ...</command>: Replace default
172 <filename>/etc/pam.d/lxdm</filename> by another one appropriate for BLFS.
173 </para>
174
175 <para>
[10f84304]176 <command>sed -i ... data/lxdm.conf.in</command>: Modifications in the
[562e942]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>.
[2bda6610]183 </para>
184
[b43538ae]185 <para>
[f40b4f32]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
[b43538ae]193 specification.
194 </para>
195
[2bda6610]196 <para>
[0956cf1]197 <parameter>--with-pam</parameter>: This parameter enables use of pam
[2bda6610]198 authentication.
199 </para>
200
[3f460da0]201 <para revision="sysv">
[0956cf1]202 <parameter>--with-systemdsystemunitdir=no</parameter>: BLFS does not
203 support systemd.
[2bda6610]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
[a1f2d184]224 <sect3 id="lxdm-init">
225 <title>Boot Script</title>
226
[1e1b3d6]227 <para revision="sysv">
[a1f2d184]228 Install the <filename>/etc/rc.d/init.d/lxdm</filename> init script from
[1e1b3d6]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:
[a1f2d184]235 </para>
236
237 <indexterm zone="lxdm lxdm-init">
238 <primary sortas="f-lxdm">lxdm</primary>
239 </indexterm>
240
[1e1b3d6]241<screen role="root" revision="sysv"><userinput>make install-lxdm</userinput></screen>
[72552d9]242<screen role="root" revision="systemd"><userinput>systemctl enable lxdm</userinput></screen>
[a1f2d184]243
244 </sect3>
245
[2bda6610]246 <sect3>
247 <title>Configuration Information</title>
248
249 <para>
[1def00f]250 The LXDM daemon configuration file
251 (<filename>/etc/lxdm/lxdm.conf</filename>) specifies options that
[5eb2b92]252 include numlock on/off, background image (bg), session, etc. You can
[1def00f]253 set a default session by uncommenting the line:
[2bda6610]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>
[1def00f]269 You can replace the default dummy face in the greeting screen by another
[2bda6610]270 image representing your user. For that, copy or symlink the desired
[1def00f]271 image to your home directory with the name <filename>.face</filename>.
[2bda6610]272 </para>
273
274 </sect3>
275
[3f460da0]276 <sect3 revision="sysv">
[f3979ba]277 <title>Starting lxdm</title>
278
279 <para>
[cf694de]280 You can manually start <command>lxdm</command>, e.g, if the bootscript
281 has been installed, by running, as <systemitem
[f3979ba]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>
[1def00f]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
[cf694de]293 greeter screen:
[f3979ba]294 </para>
295
296<screen role="root"><userinput>init 5</userinput></screen>
297
298 <para>
[1def00f]299 In order to permanently set the default to 5, starting the
[cf694de]300 <command>lxdm</command> greeter screen automatically, you can modify
[1def00f]301 <filename>/etc/inittab</filename>. As the <systemitem
302 class="username">root</systemitem> user:
[f3979ba]303 </para>
304
[7a2aeb5]305<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &amp;&amp;
[f3979ba]306sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
307
[1def00f]308 <note>
[a6221fd]309 <para>
[1def00f]310 One important script, executed after login is
311 <filename>/etc/lxdm/Xsession</filename> which we have fixed to fit
[fd19cc7]312 BLFS specifications.
[a6221fd]313 </para>
[1def00f]314 </note>
[a6221fd]315
[f3979ba]316 </sect3>
[9fa25aa]317
[2bda6610]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>
[38af6d4]330 lxdm, lxdm-binary and lxdm-config
[2bda6610]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
[6d772cc]363 <varlistentry id="lxdm-binary">
[2bda6610]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>
[6d772cc]370 <indexterm zone="lxdm lxdm-binary">
371 <primary sortas="b-lxdm-binary">lxdm-binary</primary>
[2bda6610]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>
[a6221fd]387
[2bda6610]388 </variablelist>
[38af6d4]389
[2bda6610]390 </sect2>
[38af6d4]391
[2bda6610]392</sect1>
Note: See TracBrowser for help on using the repository browser.