source: lxde/apps/lxdm-systemd.xml@ 8d33f00b

7.6-blfs 7.6-systemd kde5-14686 systemd-13485
Last change on this file since 8d33f00b was 25dbdaf, checked in by Christopher Gregory <cjg@…>, 10 years ago

Move lxdm.xml to lxdm-systemd.xml to avoid overwrites between branches.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14159 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.2 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 <!-- Place this in the general.ent file
8 <!ENTITY TEMPLATE-version "">
9 -->
10
11 <!ENTITY lxdm-download-http "http://distfiles.alpinelinux.org/distfiles/lxdm-&lxdm-version;.tar.xz">
12 <!ENTITY lxdm-download-ftp "">
13 <!ENTITY lxdm-md5sum "a51686720e606ca456d7f56ae4159d1f">
14 <!ENTITY lxdm-size "232 KB">
15 <!ENTITY lxdm-buildsize "4.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: cjg $</othername>
24 <date>$Date: 2014-08-31 16:03:10 +1200 (Sun, 31 Aug 2014) $</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
38 lightweight display manager for the <application>LXDE</application> desktop. It can also be used as an
39 alternative to <application>GNOME's</application> <application>GDM</application> or
40 <application>KDE's</application> <application>KDM</application>.
41 </para>
42
43 &lfs76_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&lxdm-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&lxdm-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &lxdm-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &lxdm-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &lxdm-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &lxdm-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">LXDM Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Required</bridgehead>
82 <para role="required">
83 <xref linkend="iso-codes"/> and
84 <xref linkend="gtk2"/>
85 </para>
86
87 <bridgehead renderas="sect4">Recommended</bridgehead>
88 <para role="recommended">
89 <xref linkend="linux-pam"/>
90 </para>
91
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>
106 Install <application>LXDM</application> by running the following
107 commands:
108 </para>
109
110<screen><userinput>sed -e "/pam_selinux.so/d" -i pam/lxdm &amp;&amp;
111awk '/system-auth/{c++;if(c==2){sub("system-auth","system-account");}}1' pam/lxdm 2&gt;&amp;1 | tee pam/lxdm &amp;&amp;
112 ./configure --prefix=/usr \
113 --sysconfdir=/etc \
114 --with-pam \
115 --disable-consolekit \
116 --with-systemdsystemunitdir=/lib/systemd/system &amp;&amp;
117make</userinput></screen>
118
119 <para>
120 This package does not come with a test suite.
121 </para>
122
123 <para>
124 Now, as the <systemitem class="username">root</systemitem> user:
125 </para>
126
127<screen role="root"><userinput>make install</userinput></screen>
128 </sect2>
129
130 <!--Optional section-->
131 <sect2 role="commands">
132 <title>Command Explanations</title>
133 <para>
134 <command>sed -e "/pam_selinux.so/d" -i pam/lxdm</command>: This command removes
135 the selinux pam module as selinux is not part of blfs.
136 </para>
137
138 <para>
139 <command>awk '/system-auth/{c++;if(c==2){sub("system-auth","system-account");}}1'</command>:
140 This command repaces the second instance of system-auth with system-account to make logind
141 work correctly.
142 </para>
143
144 <para>
145 <option>--with-pam</option>: This option enables use of pam authentication.
146 </para>
147
148 <para>
149 <option>--disable-consolekit</option>: This option disables the use of
150 <application>consolekit</application> as it is not used on a
151 <application>systemd</application> system.
152 </para>
153
154 <para>
155 <option>--with-systemdsystemunitdir=/lib/systemd/system</option>: This option
156 ensures that the systemd unit file gets installed in the correct location.
157 </para>
158
159 </sect2>
160
161 <sect2 role="configuration">
162 <title>Configuring LXDM</title>
163
164 <sect3 id="lxdm-config">
165 <title>Config Files</title>
166
167 <para>
168 <filename>/etc/lxdm/lxdm.conf</filename>
169 </para>
170
171 <indexterm zone="lxdm lxdm-config">
172 <primary sortas="e-etc-lxdm-lxdm.conf">/etc/lxdm/lxdm.conf</primary>
173 </indexterm>
174
175 </sect3>
176
177 <sect3>
178 <title>Configuration Information</title>
179
180 <para>
181 The LXDM daemon is configured using the
182 <filename>/etc/lxdm/lxdm.conf</filename> file.
183 Within this file you can set a default session by uncommenting
184 the line: session=/usr/bin/startlxde and replacing startlxde
185 with your session of choice. For <application>GNOME</application>
186 session=/usr/bin/gnome-session. For <application>OPENBOX</application>
187 session=/usr/bin/openbox-session and for <application>XFCE</application>
188 session=/usr/bin/startxfce4.
189 </para>
190
191 <para>
192 It is also possible to set the preferred session on a per-user basis by
193 editing the ~/.dmrc file for each user and adding:
194 <screen><literal>
195 [Desktop]
196 Session=xfce</literal></screen>
197 </para>
198
199 <para>
200 To prevent the possibility of lxdm not cleanly logging out a users session
201 add the following to the <filename>/etc/lxdm/PostLogout</filename> as the
202 <systemitem class="username">root</systemitem> user:
203 </para>
204
205<screen role="root"><userinput>cat &gt; /etc/lxdm/PostLogout &lt;&lt; "EOF"
206# Terminate current user session
207/bin/loginctl terminate-session $XDG_SESSION_ID
208
209# Restart lxdm
210/bin/systemctl restart lxdm.service
211EOF</userinput></screen>
212
213 </sect3>
214
215 <sect3 id="lxdm-init">
216 <title>Systemd Units</title>
217
218 <para>
219 To start the <command>LXDM</command> daemon at boot, enable
220 the previously installed systemd unit by running the following command
221 as the <systemitem class="username">root</systemitem> user:
222 </para>
223
224 <indexterm zone="lxdm lxdm-init">
225 <primary sortas="f-lxdm">lxdm</primary>
226 </indexterm>
227
228<screen role="root"><userinput>systemctl enable lxdm</userinput></screen>
229
230 </sect3>
231
232 </sect2>
233 <!--Required section-->
234 <sect2 role="content">
235 <title>Contents</title>
236
237 <segmentedlist>
238 <segtitle>Installed Programs</segtitle>
239 <segtitle>Installed Libraries</segtitle>
240 <segtitle>Installed Directories</segtitle>
241
242 <seglistitem>
243 <seg>
244 lxdm-config, lxdm and lxdm-binary.
245 </seg>
246 <seg>
247 None.
248 </seg>
249 <seg>
250 /etc/lxdm, /etc/pam.d, and
251 /usr/share/lxdm.
252 </seg>
253 </seglistitem>
254 </segmentedlist>
255
256 <variablelist>
257 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
258 <?dbfo list-presentation="list"?>
259 <?dbhtml list-presentation="table"?>
260
261 <!-- If the program or library name conflicts (is the same) as the
262 package name, add -prog or -lib to the varlistentry entity id
263 and the 2nd entry of the indexterm zone entity -->
264
265 <varlistentry id="lxdm-prog">
266 <term><command>lxdm</command></term>
267 <listitem>
268 <para>
269 Is the lxdm daeamon.
270 </para>
271 <indexterm zone="lxdm lxdm-prog">
272 <primary sortas="b-lxdm">lxdm</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276 </variablelist>
277 </sect2>
278</sect1>
Note: See TracBrowser for help on using the repository browser.