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