[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 |
|
---|
[9fa25aa] | 19 | <title>lxdm-&lxdm-version;</title>
|
---|
[2bda6610] | 20 |
|
---|
| 21 | <indexterm zone="lxdm">
|
---|
[9fa25aa] | 22 | <primary sortas="a-lxdm">lxdm</primary>
|
---|
[2bda6610] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to LXDM</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>LXDM</application> is a lightweight Display Manager for
|
---|
| 30 | the <application>LXDE</application> desktop. It can also be used as an
|
---|
| 31 | alternative to other Display Managers such as
|
---|
| 32 | <application>GNOME's</application> <application>GDM</application> or
|
---|
[1def00f] | 33 | <application>LightDM</application>.
|
---|
[2bda6610] | 34 | </para>
|
---|
| 35 |
|
---|
[72c9507] | 36 | &lfs112_checked;
|
---|
[2bda6610] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&lxdm-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&lxdm-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &lxdm-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download size: &lxdm-size;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated disk space required: &lxdm-buildsize;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated build time: &lxdm-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">LXDM Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 75 | <para role="required">
|
---|
| 76 | <xref linkend="gtk2"/>,
|
---|
[1def00f] | 77 | <xref linkend="iso-codes"/>, and
|
---|
[e71a98d9] | 78 | <xref role="runtime" linkend="librsvg"/> (runtime, for default theme
|
---|
| 79 | background)
|
---|
[2bda6610] | 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 83 | <para role="recommended">
|
---|
[51dfb3e] | 84 | <xref linkend="lxsession"/> (for <application>lxpolkit</application>) or
|
---|
[cac7f93] | 85 | <xref role="nodep" linkend="polkit-gnome"/>
|
---|
[2bda6610] | 86 | </para>
|
---|
[9fa25aa] | 87 |
|
---|
[2bda6610] | 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 89 | <para role="optional">
|
---|
| 90 | <xref linkend="gtk3"/>
|
---|
| 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <para condition="html" role="usernotes">
|
---|
| 94 | User Notes: <ulink url="&blfs-wiki;/lxdm"/>
|
---|
| 95 | </para>
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="installation">
|
---|
| 99 | <title>Installation of LXDM</title>
|
---|
| 100 |
|
---|
| 101 | <para>
|
---|
[f40b4f32] | 102 | First, some fixes.
|
---|
[2bda6610] | 103 | </para>
|
---|
| 104 |
|
---|
[f31098e] | 105 | <screen><userinput>cat > pam/lxdm << "EOF"
|
---|
[1e1b3d6] | 106 | <literal># Begin /etc/pam.d/lxdm
|
---|
| 107 |
|
---|
| 108 | auth requisite pam_nologin.so
|
---|
| 109 | auth required pam_env.so
|
---|
[51dfb3e] | 110 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
[1e1b3d6] | 111 | auth include system-auth
|
---|
| 112 |
|
---|
| 113 | account include system-account
|
---|
| 114 |
|
---|
| 115 | password include system-password
|
---|
| 116 |
|
---|
| 117 | session required pam_limits.so
|
---|
| 118 | session include system-session
|
---|
| 119 |
|
---|
| 120 | # End /etc/pam.d/lxdm</literal>
|
---|
[2bda6610] | 121 | EOF
|
---|
| 122 |
|
---|
[b43538ae] | 123 | sed -i 's:sysconfig/i18n:profile.d/i18n.sh:g' data/lxdm.in &&
|
---|
[f40b4f32] | 124 | sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession &&
|
---|
[562e942] | 125 | sed -e 's/^bg/#&/' \
|
---|
| 126 | -e '/reset=1/ s/# //' \
|
---|
| 127 | -e 's/logou$/logout/' \
|
---|
[6a5aa22] | 128 | -e "/arg=/a arg=$XORG_PREFIX/bin/X" \
|
---|
[562e942] | 129 | -i data/lxdm.conf.in</userinput></screen>
|
---|
[2bda6610] | 130 |
|
---|
| 131 | <para>
|
---|
| 132 | Install <application>LXDM</application> by running the following
|
---|
| 133 | commands:
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
[3f460da0] | 136 | <screen revision="sysv"><userinput>./configure --prefix=/usr \
|
---|
[2bda6610] | 137 | --sysconfdir=/etc \
|
---|
| 138 | --with-pam \
|
---|
[f3979ba] | 139 | --with-systemdsystemunitdir=no &&
|
---|
[2bda6610] | 140 | make</userinput></screen>
|
---|
| 141 |
|
---|
[3f460da0] | 142 | <screen revision="systemd"><userinput>./configure --prefix=/usr \
|
---|
| 143 | --sysconfdir=/etc \
|
---|
[1e1b3d6] | 144 | --with-pam \
|
---|
| 145 | --with-systemdsystemunitdir=/lib/systemd/system &&
|
---|
[3f460da0] | 146 | make</userinput></screen>
|
---|
| 147 |
|
---|
[2bda6610] | 148 | <para>
|
---|
| 149 | This package does not come with a test suite.
|
---|
| 150 | </para>
|
---|
| 151 |
|
---|
| 152 | <para>
|
---|
| 153 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 154 | </para>
|
---|
| 155 |
|
---|
[b43538ae] | 156 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[f3979ba] | 157 |
|
---|
[2bda6610] | 158 | </sect2>
|
---|
| 159 |
|
---|
| 160 | <!--Optional section-->
|
---|
| 161 | <sect2 role="commands">
|
---|
| 162 | <title>Command Explanations</title>
|
---|
| 163 |
|
---|
| 164 | <para>
|
---|
| 165 | <command>cat > pam/lxdm << "EOF" ...</command>: Replace default
|
---|
| 166 | <filename>/etc/pam.d/lxdm</filename> by another one appropriate for BLFS.
|
---|
| 167 | </para>
|
---|
| 168 |
|
---|
| 169 | <para>
|
---|
[10f84304] | 170 | <command>sed -i ... data/lxdm.conf.in</command>: Modifications in the
|
---|
[562e942] | 171 | default configuration:
|
---|
| 172 | (1) fix the background to the default one;
|
---|
| 173 | (2) restart X when session is close;
|
---|
| 174 | (3) typo; and
|
---|
| 175 | (4) include <envar>XORG_PREFIX</envar>, which may be different from
|
---|
| 176 | <filename class="directory">/usr</filename>.
|
---|
[2bda6610] | 177 | </para>
|
---|
| 178 |
|
---|
[b43538ae] | 179 | <para>
|
---|
[f40b4f32] | 180 | <command>sed -i ... data/Xsession</command>: Source
|
---|
| 181 | <filename>/etc/profile</filename>, instead of other file, according to
|
---|
| 182 | BLFS standard.
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
| 185 | <para>
|
---|
| 186 | <command>sed -i ... data/lxdm.in</command>: Fix greeter's locale for BLFS
|
---|
[b43538ae] | 187 | specification.
|
---|
| 188 | </para>
|
---|
| 189 |
|
---|
[2bda6610] | 190 | <para>
|
---|
[0956cf1] | 191 | <parameter>--with-pam</parameter>: This parameter enables use of pam
|
---|
[2bda6610] | 192 | authentication.
|
---|
| 193 | </para>
|
---|
| 194 |
|
---|
[3f460da0] | 195 | <para revision="sysv">
|
---|
[0956cf1] | 196 | <parameter>--with-systemdsystemunitdir=no</parameter>: BLFS does not
|
---|
| 197 | support systemd.
|
---|
[2bda6610] | 198 | </para>
|
---|
| 199 |
|
---|
| 200 | </sect2>
|
---|
| 201 |
|
---|
| 202 | <sect2 role="configuration">
|
---|
| 203 | <title>Configuring LXDM</title>
|
---|
| 204 |
|
---|
| 205 | <sect3 id="lxdm-config">
|
---|
| 206 | <title>Config Files</title>
|
---|
| 207 |
|
---|
| 208 | <para>
|
---|
| 209 | <filename>/etc/lxdm/lxdm.conf</filename>
|
---|
| 210 | </para>
|
---|
| 211 |
|
---|
| 212 | <indexterm zone="lxdm lxdm-config">
|
---|
| 213 | <primary sortas="e-etc-lxdm-lxdm.conf">/etc/lxdm/lxdm.conf</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 |
|
---|
| 216 | </sect3>
|
---|
| 217 |
|
---|
[a1f2d184] | 218 | <sect3 id="lxdm-init">
|
---|
[52250565] | 219 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 220 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 221 |
|
---|
| 222 | <indexterm zone="lxdm lxdm-init">
|
---|
| 223 | <primary sortas="f-lxdm">lxdm</primary>
|
---|
| 224 | </indexterm>
|
---|
[a1f2d184] | 225 |
|
---|
[1e1b3d6] | 226 | <para revision="sysv">
|
---|
[52250565] | 227 | To start <command>lxdm</command> automatically when the system is
|
---|
| 228 | switched to runlevel 5, install the
|
---|
| 229 | <filename>/etc/rc.d/init.d/xdm</filename> script and the
|
---|
| 230 | <filename>/etc/sysconfig/xdm</filename> configuration file
|
---|
| 231 | included in the <xref linkend="bootscripts"/> package
|
---|
| 232 | and adjust <filename>/etc/inittab</filename> by running
|
---|
| 233 | as the <systemitem class="username">root</systemitem> user:
|
---|
[1e1b3d6] | 234 | </para>
|
---|
| 235 |
|
---|
[52250565] | 236 | <screen role="root" revision="sysv"><userinput>make install-lxdm</userinput></screen>
|
---|
| 237 |
|
---|
[1e1b3d6] | 238 | <para revision="systemd">
|
---|
| 239 | To start <application>LXDM</application> at boot execute the following
|
---|
| 240 | command as the <systemitem class="username">root</systemitem> user:
|
---|
[a1f2d184] | 241 | </para>
|
---|
| 242 |
|
---|
[72552d9] | 243 | <screen role="root" revision="systemd"><userinput>systemctl enable lxdm</userinput></screen>
|
---|
[a1f2d184] | 244 |
|
---|
| 245 | </sect3>
|
---|
| 246 |
|
---|
[2bda6610] | 247 | <sect3>
|
---|
| 248 | <title>Configuration Information</title>
|
---|
| 249 |
|
---|
| 250 | <para>
|
---|
[1def00f] | 251 | The LXDM daemon configuration file
|
---|
| 252 | (<filename>/etc/lxdm/lxdm.conf</filename>) specifies options that
|
---|
[5eb2b92] | 253 | include numlock on/off, background image (bg), session, etc. You can
|
---|
[1def00f] | 254 | set a default session by uncommenting the line:
|
---|
[2bda6610] | 255 | session=/usr/bin/startlxde and replacing <command>startlxde</command>
|
---|
| 256 | with your session of choice. For <application>GNOME</application>
|
---|
| 257 | session=/usr/bin/gnome-session. For <application>OPENBOX</application>
|
---|
| 258 | session=/usr/bin/openbox-session and for
|
---|
| 259 | <application>XFCE</application> session=/usr/bin/startxfce4.
|
---|
| 260 | </para>
|
---|
| 261 |
|
---|
| 262 | <para>
|
---|
| 263 | It is also possible to set the preferred session on a per-user basis by
|
---|
| 264 | editing the ~/.dmrc file for each user and adding:
|
---|
| 265 | <screen><literal>[Desktop]
|
---|
| 266 | Session=xfce</literal></screen>
|
---|
| 267 | </para>
|
---|
| 268 |
|
---|
| 269 | <para>
|
---|
[1def00f] | 270 | You can replace the default dummy face in the greeting screen by another
|
---|
[2bda6610] | 271 | image representing your user. For that, copy or symlink the desired
|
---|
[1def00f] | 272 | image to your home directory with the name <filename>.face</filename>.
|
---|
[2bda6610] | 273 | </para>
|
---|
| 274 |
|
---|
| 275 | </sect3>
|
---|
| 276 |
|
---|
[3f460da0] | 277 | <sect3 revision="sysv">
|
---|
[f3979ba] | 278 | <title>Starting lxdm</title>
|
---|
| 279 |
|
---|
| 280 | <para>
|
---|
[52250565] | 281 | The <command>lxdm</command> greeter can be started from the command
|
---|
| 282 | line as the <systemitem class="username">root</systemitem> user:
|
---|
[f3979ba] | 283 | </para>
|
---|
| 284 |
|
---|
[52250565] | 285 | <screen role="root"><userinput>telinit 5</userinput></screen>
|
---|
[f3979ba] | 286 |
|
---|
| 287 | <para>
|
---|
[52250565] | 288 | Alternatively the runlevel can be permanently set to 5, starting the
|
---|
| 289 | <command>lxdm</command> greeter screen automatically, by modifying
|
---|
| 290 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
| 291 | class="username">root</systemitem> user:
|
---|
[f3979ba] | 292 | </para>
|
---|
| 293 |
|
---|
[7a2aeb5] | 294 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
[f3979ba] | 295 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
| 296 |
|
---|
[1def00f] | 297 | <note>
|
---|
[52250565] | 298 | <para>
|
---|
[1def00f] | 299 | One important script, executed after login is
|
---|
| 300 | <filename>/etc/lxdm/Xsession</filename> which we have fixed to fit
|
---|
[fd19cc7] | 301 | BLFS specifications.
|
---|
[52250565] | 302 | </para>
|
---|
[1def00f] | 303 | </note>
|
---|
[a6221fd] | 304 |
|
---|
[f3979ba] | 305 | </sect3>
|
---|
[9fa25aa] | 306 |
|
---|
[2bda6610] | 307 | </sect2>
|
---|
[8558044] | 308 |
|
---|
[2bda6610] | 309 | <sect2 role="content">
|
---|
| 310 | <title>Contents</title>
|
---|
| 311 |
|
---|
| 312 | <segmentedlist>
|
---|
| 313 | <segtitle>Installed Programs</segtitle>
|
---|
| 314 | <segtitle>Installed Libraries</segtitle>
|
---|
| 315 | <segtitle>Installed Directories</segtitle>
|
---|
| 316 |
|
---|
| 317 | <seglistitem>
|
---|
| 318 | <seg>
|
---|
[38af6d4] | 319 | lxdm, lxdm-binary and lxdm-config
|
---|
[2bda6610] | 320 | </seg>
|
---|
| 321 | <seg>
|
---|
| 322 | None
|
---|
| 323 | </seg>
|
---|
| 324 | <seg>
|
---|
| 325 | /etc/lxdm and
|
---|
| 326 | /usr/share/lxdm
|
---|
| 327 | </seg>
|
---|
| 328 | </seglistitem>
|
---|
| 329 | </segmentedlist>
|
---|
| 330 |
|
---|
| 331 | <variablelist>
|
---|
| 332 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 333 | <?dbfo list-presentation="list"?>
|
---|
| 334 | <?dbhtml list-presentation="table"?>
|
---|
| 335 |
|
---|
| 336 | <varlistentry id="lxdm-prog">
|
---|
| 337 | <term><command>lxdm</command></term>
|
---|
| 338 | <listitem>
|
---|
| 339 | <para>
|
---|
| 340 | is a script to execute <command>lxdm-binary</command>
|
---|
| 341 | </para>
|
---|
| 342 | <indexterm zone="lxdm lxdm-prog">
|
---|
| 343 | <primary sortas="b-lxdm">lxdm</primary>
|
---|
| 344 | </indexterm>
|
---|
| 345 | </listitem>
|
---|
| 346 | </varlistentry>
|
---|
| 347 |
|
---|
[6d772cc] | 348 | <varlistentry id="lxdm-binary">
|
---|
[2bda6610] | 349 | <term><command>lxdm-binary</command></term>
|
---|
| 350 | <listitem>
|
---|
| 351 | <para>
|
---|
| 352 | is the actual Display Manager; needs to be executed with option
|
---|
| 353 | <option>-d</option> to daemonize
|
---|
| 354 | </para>
|
---|
[6d772cc] | 355 | <indexterm zone="lxdm lxdm-binary">
|
---|
| 356 | <primary sortas="b-lxdm-binary">lxdm-binary</primary>
|
---|
[2bda6610] | 357 | </indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
| 360 |
|
---|
| 361 | <varlistentry id="lxdm-config-prog">
|
---|
| 362 | <term><command>lxdm-config</command></term>
|
---|
| 363 | <listitem>
|
---|
| 364 | <para>
|
---|
| 365 | is a graphical customizing program
|
---|
| 366 | </para>
|
---|
| 367 | <indexterm zone="lxdm lxdm-config">
|
---|
| 368 | <primary sortas="b-lxdm">lxdm</primary>
|
---|
| 369 | </indexterm>
|
---|
| 370 | </listitem>
|
---|
| 371 | </varlistentry>
|
---|
[a6221fd] | 372 |
|
---|
[2bda6610] | 373 | </variablelist>
|
---|
[38af6d4] | 374 |
|
---|
[2bda6610] | 375 | </sect2>
|
---|
[38af6d4] | 376 |
|
---|
[2bda6610] | 377 | </sect1>
|
---|