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