[7d4600c] | 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 | <!-- lightdm -->
|
---|
| 8 | <!ENTITY lightdm-download-http "https://launchpad.net/lightdm/1.24/&lightdm-version;/+download/lightdm-&lightdm-version;.tar.xz">
|
---|
| 9 | <!ENTITY lightdm-download-ftp " ">
|
---|
| 10 | <!ENTITY lightdm-md5sum "76d65ba5d1bc93e80b611771698739db">
|
---|
| 11 | <!ENTITY lightdm-size "508 KB">
|
---|
| 12 | <!ENTITY lightdm-buildsize "20 MB">
|
---|
| 13 | <!ENTITY lightdm-time "0.2 SBU ">
|
---|
| 14 |
|
---|
| 15 | <!-- lightdm-gtk-greeter -->
|
---|
| 16 | <!ENTITY lightdm-gtk-greeter-download-http "https://launchpad.net/lightdm-gtk-greeter/2.0/&lightdm-gtk-greeter-version;/+download/lightdm-gtk-greeter-&lightdm-gtk-greeter-version;.tar.gz">
|
---|
| 17 | <!ENTITY lightdm-gtk-greeter-download-ftp " ">
|
---|
| 18 | <!ENTITY lightdm-gtk-greeter-md5sum "29f352906d200568cceb4d449b5619c6">
|
---|
| 19 | <!ENTITY lightdm-gtk-greeter-size "480 KB">
|
---|
| 20 | <!ENTITY lightdm-gtk-greeter-buildsize "3.9 MB">
|
---|
| 21 | <!ENTITY lightdm-gtk-greeter-time "less than 0.1 SBU ">
|
---|
| 22 | ]>
|
---|
| 23 |
|
---|
| 24 | <sect1 id="lightdm" xreflabel="lightdm-&lightdm-version;">
|
---|
| 25 | <?dbhtml filename="lightdm.html"?>
|
---|
| 26 |
|
---|
| 27 | <sect1info>
|
---|
| 28 | <othername>$LastChangedBy$</othername>
|
---|
| 29 | <date>$Date$</date>
|
---|
| 30 | </sect1info>
|
---|
| 31 |
|
---|
| 32 | <title>lightdm-&lightdm-version;</title>
|
---|
| 33 |
|
---|
| 34 | <indexterm zone="lightdm">
|
---|
| 35 | <primary sortas="a-lightdm">lightdm</primary>
|
---|
| 36 | </indexterm>
|
---|
| 37 |
|
---|
| 38 | <sect2 role="package">
|
---|
| 39 | <title>Introduction to Lightdm</title>
|
---|
| 40 |
|
---|
| 41 | <para>
|
---|
| 42 | The <application>lightdm</application> package contains a lightweight
|
---|
| 43 | display manager based upon GTK.
|
---|
| 44 | </para>
|
---|
| 45 |
|
---|
| 46 | &lfs81_checked;
|
---|
| 47 |
|
---|
| 48 | <bridgehead renderas="sect3">Lightdm Package Information</bridgehead>
|
---|
| 49 | <itemizedlist spacing="compact">
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download (HTTP): <ulink url="&lightdm-download-http;"/>
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download (FTP): <ulink url="&lightdm-download-ftp;"/>
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Download MD5 sum: &lightdm-md5sum;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Download size: &lightdm-size;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>
|
---|
| 72 | Estimated disk space required: &lightdm-buildsize;
|
---|
| 73 | </para>
|
---|
| 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Estimated build time: &lightdm-time;
|
---|
| 78 | </para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
| 81 |
|
---|
| 82 | <note>
|
---|
| 83 | <para>
|
---|
| 84 | The greeter is a program to present a graphical login screen. There
|
---|
| 85 | are several alternative greeters, but the gtk+ package is the reference
|
---|
| 86 | implementation. For a list of other greeters, see <ulink
|
---|
| 87 | url="https://en.wikipedia.org/wiki/LightDM"/>.
|
---|
| 88 | </para>
|
---|
| 89 | </note>
|
---|
| 90 |
|
---|
| 91 | <bridgehead renderas="sect3">Lightdm-gtk-greeter Package Information</bridgehead>
|
---|
| 92 | <itemizedlist spacing="compact">
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>
|
---|
| 95 | Download (HTTP): <ulink url="&lightdm-gtk-greeter-download-http;"/>
|
---|
| 96 | </para>
|
---|
| 97 | </listitem>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>
|
---|
| 100 | Download (FTP): <ulink url="&lightdm-gtk-greeter-download-ftp;"/>
|
---|
| 101 | </para>
|
---|
| 102 | </listitem>
|
---|
| 103 | <listitem>
|
---|
| 104 | <para>
|
---|
| 105 | Download MD5 sum: &lightdm-gtk-greeter-md5sum;
|
---|
| 106 | </para>
|
---|
| 107 | </listitem>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>
|
---|
| 110 | Download size: &lightdm-gtk-greeter-size;
|
---|
| 111 | </para>
|
---|
| 112 | </listitem>
|
---|
| 113 | <listitem>
|
---|
| 114 | <para>
|
---|
| 115 | Estimated disk space required: &lightdm-gtk-greeter-buildsize;
|
---|
| 116 | </para>
|
---|
| 117 | </listitem>
|
---|
| 118 | <listitem>
|
---|
| 119 | <para>
|
---|
| 120 | Estimated build time: &lightdm-gtk-greeter-time;
|
---|
| 121 | </para>
|
---|
| 122 | </listitem>
|
---|
| 123 | </itemizedlist>
|
---|
| 124 |
|
---|
| 125 | <bridgehead renderas="sect3">Lightdm Dependencies</bridgehead>
|
---|
| 126 |
|
---|
| 127 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 128 | <para role="required">
|
---|
| 129 | <xref linkend="gtk3"/>,
|
---|
| 130 | <xref linkend="libgcrypt"/>,
|
---|
| 131 | <xref linkend="linux-pam"/>, and
|
---|
| 132 | <xref linkend="pcre"/>
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 136 | <para role="recommended">
|
---|
| 137 | <xref linkend="gobject-introspection"/>,
|
---|
| 138 | <xref linkend="libxklavier"/>, and
|
---|
| 139 | <xref linkend="vala"/>
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
| 142 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 143 | <para role="optional">
|
---|
| 144 | <xref linkend="at-spi2-core"/>,
|
---|
| 145 | <xref linkend="gtk-doc"/>,
|
---|
| 146 | <xref linkend="itstool"/>,
|
---|
| 147 | <xref linkend="qt5"/>,
|
---|
| 148 | <ulink url="https://launchpad.net/intltool">intltool</ulink>,
|
---|
| 149 | <ulink url="https://launchpad.net/ido">libido</ulink>, and
|
---|
| 150 | <ulink url="https://launchpad.net/libindicator">libindicator</ulink>
|
---|
| 151 |
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <para condition="html" role="usernotes">User Notes:
|
---|
| 155 | <ulink url="&blfs-wiki;/lightdm"/>
|
---|
| 156 | </para>
|
---|
| 157 | </sect2>
|
---|
| 158 |
|
---|
| 159 | <sect2 role="installation">
|
---|
| 160 | <title>Installation of Lightdm</title>
|
---|
| 161 |
|
---|
| 162 | <para>
|
---|
| 163 | First, create a dedicated user and group to take
|
---|
| 164 | control of the <command>lightdm</command> daemon after it is
|
---|
| 165 | started. Issue the following commands as the
|
---|
| 166 | <systemitem class="username">root</systemitem> user:
|
---|
| 167 | </para>
|
---|
| 168 |
|
---|
| 169 | <screen role="root"><userinput>groupadd -g 65 lightdm &&
|
---|
| 170 | useradd -c "Lightdm Daemon" \
|
---|
| 171 | -d /var/lib/lightdm \
|
---|
| 172 | -u 65 -g lightdm \
|
---|
| 173 | -s /bin/false lightdm</userinput></screen>
|
---|
| 174 |
|
---|
| 175 | <para>
|
---|
| 176 | Install <application>lightdm</application> by running the following
|
---|
| 177 | commands:
|
---|
| 178 | </para>
|
---|
| 179 |
|
---|
| 180 | <screen><userinput>./configure \
|
---|
| 181 | --prefix=/usr \
|
---|
| 182 | --libexecdir=/usr/lib/lightdm \
|
---|
| 183 | --localstatedir=/var \
|
---|
| 184 | --sbindir=/usr/bin \
|
---|
| 185 | --sysconfdir=/etc \
|
---|
| 186 | --disable-static \
|
---|
| 187 | --disable-tests \
|
---|
| 188 | --with-greeter-user=lightdm \
|
---|
| 189 | --with-greeter-session=lightdm-gtk-greeter \
|
---|
| 190 | --docdir=/usr/share/doc/lightdm-&lightdm-version; &&
|
---|
| 191 | make</userinput></screen>
|
---|
| 192 |
|
---|
| 193 | <para>
|
---|
| 194 | This package does not come with a test suite.
|
---|
| 195 | </para>
|
---|
| 196 |
|
---|
| 197 | <para>
|
---|
| 198 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 199 | </para>
|
---|
| 200 |
|
---|
| 201 | <screen role="root"><userinput>make install &&
|
---|
| 202 | cp tests/src/lightdm-session /usr/bin &&
|
---|
| 203 | rm -rf /etc/init &&
|
---|
| 204 | install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm &&
|
---|
| 205 | install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm-data &&
|
---|
| 206 | install -v -dm755 -o lightdm -g lightdm /var/cache/lightdm &&
|
---|
| 207 | install -v -dm770 -o lightdm -g lightdm /var/log/lightdm</userinput></screen>
|
---|
| 208 |
|
---|
| 209 | <para>Now build the greeter:</para>
|
---|
| 210 |
|
---|
| 211 | <screen><userinput>tar -xf ../lightdm-gtk-greeter-2.0.3.tar.gz &&
|
---|
| 212 | cd lightdm-gtk-greeter &&
|
---|
| 213 |
|
---|
| 214 | export CFLAGS="$CFLAGS -Wno-declaration-after-statement" &&
|
---|
| 215 |
|
---|
| 216 | ./configure \
|
---|
| 217 | --prefix=/usr \
|
---|
| 218 | --libexecdir=/usr/lib/lightdm \
|
---|
| 219 | --sbindir=/usr/bin \
|
---|
| 220 | --sysconfdir=/etc \
|
---|
| 221 | --with-libxklavier \
|
---|
| 222 | --enable-kill-on-sigterm \
|
---|
| 223 | --disable-libido \
|
---|
| 224 | --disable-libindicator \
|
---|
| 225 | --disable-static
|
---|
| 226 | --docdir=/usr/share/doc/lightdm-gtk-greeter-&lightdm-gtk-greeter-version; &&
|
---|
| 227 |
|
---|
| 228 | make</userinput></screen>
|
---|
| 229 |
|
---|
| 230 | <para>
|
---|
| 231 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 232 | </para>
|
---|
| 233 |
|
---|
| 234 | <screen><userinput>make install</userinput></screen>
|
---|
| 235 |
|
---|
| 236 | </sect2>
|
---|
| 237 | <!--
|
---|
| 238 | <sect2 role="commands">
|
---|
| 239 | <title>Command Explanations</title>
|
---|
| 240 |
|
---|
| 241 | <para>
|
---|
| 242 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
| 243 | apply additional compiler optimizations.
|
---|
| 244 | </para>
|
---|
| 245 |
|
---|
| 246 | </sect2>
|
---|
| 247 | -->
|
---|
| 248 | <sect2 role="configuration">
|
---|
| 249 | <title>Configuring lightdm</title>
|
---|
| 250 |
|
---|
| 251 | <sect3 id="lightdm-config">
|
---|
| 252 | <title>Config Files</title>
|
---|
| 253 |
|
---|
| 254 | <para>
|
---|
| 255 | /etc/lightdm/{lightdm,users,keys}.conf
|
---|
| 256 | </para>
|
---|
| 257 |
|
---|
| 258 | <indexterm zone="lightdm lightdm-config">
|
---|
| 259 | <primary sortas="e-etc-lightdm-lightdm.conf">/etc/lightdm/lightdm.conf</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 |
|
---|
| 262 | <indexterm zone="lightdm lightdm-config">
|
---|
| 263 | <primary sortas="e-users.conf">/etc/lightdm/users.conf</primary>
|
---|
| 264 | </indexterm>
|
---|
| 265 |
|
---|
| 266 | <indexterm zone="lightdm lightdm-config">
|
---|
| 267 | <primary sortas="e-keys.conf">/etc/lightdm/keys.conf</primary>
|
---|
| 268 | </indexterm>
|
---|
| 269 |
|
---|
| 270 | <indexterm zone="lightdm lightdm-config">
|
---|
| 271 | <primary sortas="e-lightdm-gtk-greeter.conf">
|
---|
| 272 | /etc/lightdm/lightdm-gtk-greeter.conf</primary>
|
---|
| 273 | </indexterm>
|
---|
| 274 |
|
---|
| 275 | </sect3>
|
---|
| 276 |
|
---|
| 277 | <sect3 id="lightdm-bootscript">
|
---|
[7dff3ca] | 278 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 279 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
[7d4600c] | 280 |
|
---|
[7dff3ca] | 281 | <para revision="sysv">
|
---|
[7d4600c] | 282 | Install the <filename revision="sysv">/etc/rc.d/init.d/lightdm</filename>
|
---|
[7dff3ca] | 283 | init script from the <xref linkend="bootscripts"/>
|
---|
[7d4600c] | 284 | </para>
|
---|
| 285 |
|
---|
[7dff3ca] | 286 | <screen role="root" revision="sysv"><userinput>make install-lightdm</userinput></screen>
|
---|
[7d4600c] | 287 | <indexterm zone="lightdm lightdm-bootscript">
|
---|
| 288 | <primary sortas="f-lightdm">lightdm</primary>
|
---|
| 289 | </indexterm>
|
---|
| 290 |
|
---|
[7dff3ca] | 291 | <para revision="systemd">
|
---|
| 292 | Install and enable the systemd unit. From the
|
---|
| 293 | <xref linkend="systemd-units"/> package:
|
---|
| 294 | </para>
|
---|
[7d4600c] | 295 |
|
---|
[7dff3ca] | 296 | <screen role="root" revision="systemd"><userinput>make install-lightdm &&
|
---|
| 297 | systemctl enable lightdm</userinput></screen>
|
---|
[7d4600c] | 298 |
|
---|
| 299 | </sect3>
|
---|
| 300 |
|
---|
| 301 | <sect3 id="lightdm-init" revision="sysv">
|
---|
| 302 | <title>Starting lightdm</title>
|
---|
| 303 |
|
---|
| 304 | <para>
|
---|
| 305 | If the lightdm bootscript has been installed, start lightdm by running, as the
|
---|
| 306 | <systemitem class="username">root</systemitem> user:
|
---|
| 307 | </para>
|
---|
| 308 |
|
---|
| 309 | <screen role="root"><userinput>/etc/rc.d/init.d/lightdm start</userinput></screen>
|
---|
| 310 |
|
---|
| 311 | <para>
|
---|
| 312 | By convention, X should be executed at runlevel 5, consequently, the
|
---|
| 313 | same is true for <application>lightdm</application>. However, LFS default
|
---|
| 314 | runlevel is 3. Changing to runlevel 5, from a console terminal, as
|
---|
| 315 | <systemitem class="username">root</systemitem> user, starts the
|
---|
| 316 | <command>lightdm</command> bootscript, bringing up the greeter screen:
|
---|
| 317 | </para>
|
---|
| 318 |
|
---|
| 319 | <screen role="root"><userinput>init 5</userinput></screen>
|
---|
| 320 |
|
---|
| 321 | <para>
|
---|
| 322 | In order to permanently set the default to 5, starting the
|
---|
| 323 | <command>lightdm</command> greeter screen automatically, modify
|
---|
| 324 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
| 325 | class="username">root</systemitem> user:
|
---|
| 326 | </para>
|
---|
| 327 |
|
---|
| 328 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
| 329 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
| 330 |
|
---|
| 331 | </sect3>
|
---|
| 332 |
|
---|
| 333 | <sect3 id="lightdm-sessions">
|
---|
| 334 | <title>Available Sessions</title>
|
---|
| 335 |
|
---|
| 336 | <para>
|
---|
| 337 | The greeter offers a list of available sessions,
|
---|
| 338 | depending on the Window Managers and Desktop Environments installed. The
|
---|
| 339 | list includes sessions which have a corresponding
|
---|
| 340 | <filename>.desktop</filename> file installed under
|
---|
| 341 | <filename class="directory">/usr/share/xsessions</filename>. Most of the
|
---|
| 342 | Window Managers and Desktop Environments automatically provide those
|
---|
| 343 | files, but if necessary, you may include a custom one.
|
---|
| 344 | </para>
|
---|
| 345 |
|
---|
| 346 | </sect3>
|
---|
| 347 |
|
---|
| 348 | </sect2>
|
---|
| 349 |
|
---|
| 350 | <sect2 role="content">
|
---|
| 351 | <title>Contents</title>
|
---|
| 352 |
|
---|
| 353 | <segmentedlist>
|
---|
| 354 | <segtitle>Installed Programs</segtitle>
|
---|
| 355 | <segtitle>Installed Libraries</segtitle>
|
---|
| 356 | <segtitle>Installed Directories</segtitle>
|
---|
| 357 |
|
---|
| 358 | <seglistitem>
|
---|
| 359 | <seg>
|
---|
| 360 | dm-tool,
|
---|
| 361 | lightdm, and
|
---|
| 362 | lightdm-gtk-greeter
|
---|
| 363 | </seg>
|
---|
| 364 | <seg>
|
---|
| 365 | liblightdm-gobject-1.so
|
---|
| 366 | </seg>
|
---|
| 367 | <seg>
|
---|
| 368 | /etc/lightdm,
|
---|
| 369 | /etc/apparmor.d,
|
---|
| 370 | /usr/lib/lightdm,
|
---|
| 371 | /usr/include/lightdm-gobject-1,
|
---|
| 372 | /usr/share/help/C/lightdm
|
---|
| 373 | /usr/share/gtk-doc/html/lightdm-gobject-1,
|
---|
| 374 | /usr/share/doc/lightdm-gtk-greeter-&lightdm-gtk-greeter-version;,
|
---|
| 375 | /var/lib/lightdm,
|
---|
| 376 | /var/lib/lightdm-data,
|
---|
| 377 | /var/cache/lightdm, and
|
---|
| 378 | /var/log/lightdm
|
---|
| 379 | </seg>
|
---|
| 380 | </seglistitem>
|
---|
| 381 | </segmentedlist>
|
---|
| 382 |
|
---|
| 383 | <variablelist>
|
---|
| 384 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 385 | <?dbfo list-presentation="list"?>
|
---|
| 386 | <?dbhtml list-presentation="table"?>
|
---|
| 387 |
|
---|
| 388 | <varlistentry id="lightdm-prog">
|
---|
| 389 | <term><command>lightdm</command></term>
|
---|
| 390 | <listitem>
|
---|
| 391 | <para>
|
---|
| 392 | is a display and login manager.
|
---|
| 393 | </para>
|
---|
| 394 | <indexterm zone="lightdm lightdm-prog">
|
---|
| 395 | <primary sortas="b-lightdm">lightdm</primary>
|
---|
| 396 | </indexterm>
|
---|
| 397 | </listitem>
|
---|
| 398 | </varlistentry>
|
---|
| 399 |
|
---|
| 400 | <varlistentry id="lightdm-gtk-greeter">
|
---|
| 401 | <term><command>lightdm-gtk-greeter</command></term>
|
---|
| 402 | <listitem>
|
---|
| 403 | <para>
|
---|
| 404 | is an auxiliary process that displays the greeter,
|
---|
| 405 | a graphical user interface that performs user
|
---|
| 406 | authentication and initiates the selected window manager
|
---|
| 407 | or display environment.
|
---|
| 408 | </para>
|
---|
| 409 | <indexterm zone="lightdm lightdm-gtk-greeter">
|
---|
| 410 | <primary sortas="b-lightdm-gtk-greeter">lightdm-gtk-greeter</primary>
|
---|
| 411 | </indexterm>
|
---|
| 412 | </listitem>
|
---|
| 413 | </varlistentry>
|
---|
| 414 |
|
---|
| 415 | </variablelist>
|
---|
| 416 |
|
---|
| 417 | </sect2>
|
---|
| 418 |
|
---|
| 419 | </sect1>
|
---|