[e1c7dc0] | 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 | -->
|
---|
[0c39c27] | 10 | <!ENTITY lxdm-download-http "http://sourceforge.net/projects/lxdm/files/lxdm 0.5.0/lxdm-0.5.0.tar.xz">
|
---|
| 11 | <!-- <!ENTITY lxdm-download-http "http://distfiles.alpinelinux.org/distfiles/lxdm-&lxdm-version;.tar.xz">-->
|
---|
[f88457d] | 12 | <!ENTITY lxdm-download-ftp "">
|
---|
| 13 | <!ENTITY lxdm-md5sum "a51686720e606ca456d7f56ae4159d1f">
|
---|
[e1c7dc0] | 14 | <!ENTITY lxdm-size "232 KB">
|
---|
| 15 | <!ENTITY lxdm-buildsize "4.6 MB">
|
---|
| 16 | <!ENTITY lxdm-time "less than 0.1 SBU ">
|
---|
| 17 | ]>
|
---|
| 18 |
|
---|
[f88457d] | 19 | <sect1 id="lxdm" xreflabel="LXDM-&lxdm-version;">
|
---|
[e1c7dc0] | 20 | <?dbhtml filename="lxdm.html"?>
|
---|
| 21 |
|
---|
| 22 | <sect1info>
|
---|
[25dbdaf] | 23 | <othername>$LastChangedBy: cjg $</othername>
|
---|
| 24 | <date>$Date: 2014-08-31 16:03:10 +1200 (Sun, 31 Aug 2014) $</date>
|
---|
[e1c7dc0] | 25 | </sect1info>
|
---|
| 26 |
|
---|
[dfa4daf] | 27 | <title>LXDM-&lxdm-version;</title>
|
---|
[e1c7dc0] | 28 |
|
---|
| 29 | <indexterm zone="lxdm">
|
---|
[f88457d] | 30 | <primary sortas="a-LXDM">LXDM</primary>
|
---|
[e1c7dc0] | 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
[f88457d] | 34 | <title>Introduction to LXDM</title>
|
---|
[e1c7dc0] | 35 |
|
---|
| 36 | <para>
|
---|
[f88457d] | 37 | The <application>LXDM</application> is a
|
---|
[6745246] | 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>.
|
---|
[e1c7dc0] | 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 |
|
---|
[f88457d] | 79 | <bridgehead renderas="sect3">LXDM Dependencies</bridgehead>
|
---|
[e1c7dc0] | 80 |
|
---|
| 81 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 82 | <para role="required">
|
---|
| 83 | <xref linkend="gtk2"/>
|
---|
[d11d80f] | 84 | <xref linkend="iso-codes"/> and
|
---|
| 85 | <xref linkend="librsvg"/> (runtime, for default theme background)
|
---|
[e1c7dc0] | 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 89 | <para role="recommended">
|
---|
| 90 | <xref linkend="linux-pam"/>
|
---|
| 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 94 | <para role="optional">
|
---|
| 95 | <xref linkend="gtk3"/>
|
---|
| 96 | </para>
|
---|
| 97 |
|
---|
| 98 | <para condition="html" role="usernotes">
|
---|
| 99 | User Notes: <ulink url="&blfs-wiki;/lxdm"/>
|
---|
| 100 | </para>
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="installation">
|
---|
[f88457d] | 104 | <title>Installation of LXDM</title>
|
---|
[e1c7dc0] | 105 |
|
---|
[0e657ea] | 106 | <para>
|
---|
| 107 | The following fixes are needed.
|
---|
| 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <screen><userinput>cat > pam/lxdm << "EOF" &&
|
---|
| 111 | <literal>#%PAM-1.0
|
---|
| 112 | auth substack system-auth
|
---|
| 113 | auth optional pam_gnome_keyring.so
|
---|
| 114 | account include system-account
|
---|
| 115 | session optional pam_systemd.so
|
---|
| 116 | session optional pam_keyinit.so force revoke
|
---|
| 117 | session include system-auth
|
---|
| 118 | session optional pam_gnome_keyring.so auto_start</literal>
|
---|
| 119 | EOF
|
---|
| 120 |
|
---|
| 121 | sed -i 's:sysconfig/i18n:profile.d/i18n.sh:g' data/lxdm.in &&
|
---|
| 122 | sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession &&
|
---|
| 123 | sed -i 's/^bg/#&/' data/lxdm.conf.in</userinput></screen>
|
---|
| 124 |
|
---|
[e1c7dc0] | 125 | <para>
|
---|
[f88457d] | 126 | Install <application>LXDM</application> by running the following
|
---|
[e1c7dc0] | 127 | commands:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
[b1f9f130] | 130 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 131 | --sysconfdir=/etc \
|
---|
| 132 | --with-pam \
|
---|
| 133 | --disable-consolekit \
|
---|
| 134 | --with-systemdsystemunitdir=/lib/systemd/system &&
|
---|
[e1c7dc0] | 135 | make</userinput></screen>
|
---|
| 136 |
|
---|
| 137 | <para>
|
---|
| 138 | This package does not come with a test suite.
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <para>
|
---|
| 142 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
[0e657ea] | 145 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[e1c7dc0] | 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <!--Optional section-->
|
---|
| 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
| 151 | <para>
|
---|
[0e657ea] | 152 | <command>cat > pam/lxdm << "EOF" ...</command>: Replace default
|
---|
| 153 | <filename>/etc/pam.d/lxdm</filename> by another one appropriate for BLFS.
|
---|
| 154 | </para>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | <command>sed -i ... data/lxdm.conf.in</command>: Fix the background to the
|
---|
| 158 | default one.
|
---|
| 159 | </para>
|
---|
| 160 |
|
---|
| 161 | <para>
|
---|
| 162 | <command>sed -i ... data/Xsession</command>: Source
|
---|
| 163 | <filename>/etc/profile</filename>, instead of other file, according to
|
---|
| 164 | BLFS standard.
|
---|
[e1c7dc0] | 165 | </para>
|
---|
| 166 |
|
---|
| 167 | <para>
|
---|
[0e657ea] | 168 | <command>sed -i ... data/lxdm.in</command>: Fix greeter's locale for BLFS
|
---|
| 169 | specification.
|
---|
[e1c7dc0] | 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <para>
|
---|
| 173 | <option>--with-pam</option>: This option enables use of pam authentication.
|
---|
| 174 | </para>
|
---|
| 175 |
|
---|
| 176 | <para>
|
---|
| 177 | <option>--disable-consolekit</option>: This option disables the use of
|
---|
| 178 | <application>consolekit</application> as it is not used on a
|
---|
| 179 | <application>systemd</application> system.
|
---|
| 180 | </para>
|
---|
| 181 |
|
---|
| 182 | <para>
|
---|
| 183 | <option>--with-systemdsystemunitdir=/lib/systemd/system</option>: This option
|
---|
| 184 | ensures that the systemd unit file gets installed in the correct location.
|
---|
| 185 | </para>
|
---|
| 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
[f88457d] | 189 | <sect2 role="configuration">
|
---|
| 190 | <title>Configuring LXDM</title>
|
---|
| 191 |
|
---|
[dfa4daf] | 192 | <sect3 id="lxdm-config">
|
---|
| 193 | <title>Config Files</title>
|
---|
| 194 |
|
---|
| 195 | <para>
|
---|
| 196 | <filename>/etc/lxdm/lxdm.conf</filename>
|
---|
| 197 | </para>
|
---|
| 198 |
|
---|
| 199 | <indexterm zone="lxdm lxdm-config">
|
---|
| 200 | <primary sortas="e-etc-lxdm-lxdm.conf">/etc/lxdm/lxdm.conf</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 |
|
---|
| 203 | </sect3>
|
---|
| 204 |
|
---|
| 205 | <sect3>
|
---|
| 206 | <title>Configuration Information</title>
|
---|
| 207 |
|
---|
| 208 | <para>
|
---|
| 209 | The LXDM daemon is configured using the
|
---|
| 210 | <filename>/etc/lxdm/lxdm.conf</filename> file.
|
---|
| 211 | Within this file you can set a default session by uncommenting
|
---|
| 212 | the line: session=/usr/bin/startlxde and replacing startlxde
|
---|
| 213 | with your session of choice. For <application>GNOME</application>
|
---|
| 214 | session=/usr/bin/gnome-session. For <application>OPENBOX</application>
|
---|
| 215 | session=/usr/bin/openbox-session and for <application>XFCE</application>
|
---|
| 216 | session=/usr/bin/startxfce4.
|
---|
| 217 | </para>
|
---|
| 218 |
|
---|
| 219 | <para>
|
---|
| 220 | It is also possible to set the preferred session on a per-user basis by
|
---|
| 221 | editing the ~/.dmrc file for each user and adding:
|
---|
[6745246] | 222 | <screen><literal>
|
---|
| 223 | [Desktop]
|
---|
[dfa4daf] | 224 | Session=xfce</literal></screen>
|
---|
| 225 | </para>
|
---|
| 226 |
|
---|
| 227 | <para>
|
---|
| 228 | To prevent the possibility of lxdm not cleanly logging out a users session
|
---|
| 229 | add the following to the <filename>/etc/lxdm/PostLogout</filename> as the
|
---|
| 230 | <systemitem class="username">root</systemitem> user:
|
---|
| 231 | </para>
|
---|
| 232 |
|
---|
| 233 | <screen role="root"><userinput>cat > /etc/lxdm/PostLogout << "EOF"
|
---|
| 234 | # Terminate current user session
|
---|
[bba09ea] | 235 | /bin/loginctl terminate-session $XDG_SESSION_ID
|
---|
[dfa4daf] | 236 |
|
---|
| 237 | # Restart lxdm
|
---|
[bba09ea] | 238 | /bin/systemctl restart lxdm.service
|
---|
[dfa4daf] | 239 | EOF</userinput></screen>
|
---|
| 240 |
|
---|
| 241 | </sect3>
|
---|
| 242 |
|
---|
[f88457d] | 243 | <sect3 id="lxdm-init">
|
---|
[e1c7dc0] | 244 | <title>Systemd Units</title>
|
---|
| 245 |
|
---|
| 246 | <para>
|
---|
[f88457d] | 247 | To start the <command>LXDM</command> daemon at boot, enable
|
---|
[e1c7dc0] | 248 | the previously installed systemd unit by running the following command
|
---|
| 249 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 250 | </para>
|
---|
| 251 |
|
---|
| 252 | <indexterm zone="lxdm lxdm-init">
|
---|
[92c741b] | 253 | <primary sortas="f-lxdm">lxdm</primary>
|
---|
[e1c7dc0] | 254 | </indexterm>
|
---|
| 255 |
|
---|
| 256 | <screen role="root"><userinput>systemctl enable lxdm</userinput></screen>
|
---|
| 257 |
|
---|
[f88457d] | 258 | </sect3>
|
---|
| 259 |
|
---|
| 260 | </sect2>
|
---|
[e1c7dc0] | 261 | <!--Required section-->
|
---|
| 262 | <sect2 role="content">
|
---|
| 263 | <title>Contents</title>
|
---|
| 264 |
|
---|
| 265 | <segmentedlist>
|
---|
| 266 | <segtitle>Installed Programs</segtitle>
|
---|
| 267 | <segtitle>Installed Libraries</segtitle>
|
---|
| 268 | <segtitle>Installed Directories</segtitle>
|
---|
| 269 |
|
---|
| 270 | <seglistitem>
|
---|
| 271 | <seg>
|
---|
[f88457d] | 272 | lxdm-config, lxdm and lxdm-binary.
|
---|
[e1c7dc0] | 273 | </seg>
|
---|
| 274 | <seg>
|
---|
| 275 | None.
|
---|
| 276 | </seg>
|
---|
| 277 | <seg>
|
---|
| 278 | /etc/lxdm, /etc/pam.d, and
|
---|
| 279 | /usr/share/lxdm.
|
---|
| 280 | </seg>
|
---|
| 281 | </seglistitem>
|
---|
| 282 | </segmentedlist>
|
---|
| 283 |
|
---|
| 284 | <variablelist>
|
---|
| 285 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 286 | <?dbfo list-presentation="list"?>
|
---|
| 287 | <?dbhtml list-presentation="table"?>
|
---|
| 288 |
|
---|
| 289 | <!-- If the program or library name conflicts (is the same) as the
|
---|
| 290 | package name, add -prog or -lib to the varlistentry entity id
|
---|
| 291 | and the 2nd entry of the indexterm zone entity -->
|
---|
| 292 |
|
---|
| 293 | <varlistentry id="lxdm-prog">
|
---|
| 294 | <term><command>lxdm</command></term>
|
---|
| 295 | <listitem>
|
---|
| 296 | <para>
|
---|
[d699558] | 297 | Is a wrapper script for calling lxdm-binary.
|
---|
[e1c7dc0] | 298 | </para>
|
---|
| 299 | <indexterm zone="lxdm lxdm-prog">
|
---|
| 300 | <primary sortas="b-lxdm">lxdm</primary>
|
---|
| 301 | </indexterm>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
| 304 | </variablelist>
|
---|
| 305 | </sect2>
|
---|
| 306 | </sect1>
|
---|