[2e704d1b] | 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 |
|
---|
[28a5598] | 7 | <!ENTITY gdm-download-http "&gnome-download-http;/gdm/&gnome-minor-36;/gdm-&gdm-version;.tar.xz">
|
---|
| 8 | <!ENTITY gdm-download-ftp "&gnome-download-ftp;/gdm/&gnome-minor-36;/gdm-&gdm-version;.tar.xz">
|
---|
[4a9054a8] | 9 | <!ENTITY gdm-md5sum "2fb78422269f5e75067024ce5386521c">
|
---|
[34fe1f4d] | 10 | <!ENTITY gdm-size "1.2 MB">
|
---|
[4a9054a8] | 11 | <!ENTITY gdm-buildsize "42 MB">
|
---|
[28a5598] | 12 | <!ENTITY gdm-time "0.3 SBU">
|
---|
[2e704d1b] | 13 | ]>
|
---|
| 14 |
|
---|
[51dfb3e] | 15 | <sect1 id="gdm" xreflabel="GDM-&gdm-version;">
|
---|
[2e704d1b] | 16 | <?dbhtml filename="gdm.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>GDM-&gdm-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="gdm">
|
---|
| 26 | <primary sortas="a-GDM">GDM</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to GDM</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>GDM</application> is a system service that is
|
---|
| 34 | responsible for providing graphical logins and managing local
|
---|
| 35 | and remote displays.
|
---|
| 36 | </para>
|
---|
| 37 |
|
---|
[1f1fcdb5] | 38 | &lfs91_checked;
|
---|
[2e704d1b] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&gdm-download-http;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&gdm-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download MD5 sum: &gdm-md5sum;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Download size: &gdm-size;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated disk space required: &gdm-buildsize;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Estimated build time: &gdm-time;
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
[d3207212] | 73 | <!--
|
---|
[dbea07b] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Required patch:
|
---|
| 79 | <ulink url="&patch-root;/gdm-&gdm-version;-security_fix-1.patch"/>
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
[d3207212] | 83 | -->
|
---|
[2e704d1b] | 84 | <bridgehead renderas="sect3">GDM Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 87 | <para role="required">
|
---|
| 88 | <xref linkend="accountsservice"/>,
|
---|
| 89 | <xref linkend="gtk3"/>,
|
---|
| 90 | <xref linkend="iso-codes"/>,
|
---|
| 91 | <xref linkend="itstool"/>,
|
---|
[0129a2f5] | 92 | <xref linkend="libcanberra"/>,
|
---|
| 93 | <xref linkend="libdaemon"/>, and
|
---|
[2e704d1b] | 94 | <xref linkend="linux-pam"/>
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
[e87734c] | 97 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 98 | <para role="optional">
|
---|
| 99 | <xref linkend="keyutils"/>,
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
[2e704d1b] | 102 | <bridgehead renderas="sect4">Runtime Dependencies</bridgehead>
|
---|
| 103 | <para role="required">
|
---|
[9b1042fd] | 104 | <xref role="runtime" linkend="gnome-session"/>,
|
---|
| 105 | <xref role="runtime" linkend="gnome-shell"/>, and
|
---|
[51dfb3e] | 106 | <phrase revision="sysv"><xref role="runtime" linkend="elogind"/></phrase>
|
---|
| 107 | <phrase revision="systemd"><xref role="runtime" linkend="systemd"/></phrase>
|
---|
[2e704d1b] | 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <para condition="html" role="usernotes">User Notes:
|
---|
| 111 | <ulink url="&blfs-wiki;/gdm"/>
|
---|
| 112 | </para>
|
---|
| 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="installation">
|
---|
| 116 | <title>Installation of GDM</title>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
| 119 | It is recommended to have a dedicated user and group to take
|
---|
| 120 | control of the <command>gdm</command> daemon after it is
|
---|
| 121 | started. Issue the following commands as the
|
---|
| 122 | <systemitem class="username">root</systemitem> user:
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <screen role="root"><userinput>groupadd -g 21 gdm &&
|
---|
| 126 | useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
|
---|
[a2858f9] | 127 | -g gdm -s /bin/false gdm &&
|
---|
| 128 | passwd -ql gdm</userinput></screen>
|
---|
[2e704d1b] | 129 |
|
---|
[2126b9e] | 130 | <!--
|
---|
[3f06f142] | 131 | <note revision="sysv">
|
---|
| 132 | <para>
|
---|
| 133 | The <application>gdm</application> login screen is managed by
|
---|
| 134 | <application>gnome-shell</application>, which relies on the
|
---|
| 135 | <command>systemd-localed</command> daemon to get the system
|
---|
| 136 | settings. Since this daemon is not present on this system, a
|
---|
| 137 | <command>sed</command> is applied in the <xref
|
---|
| 138 | linkend="gnome-shell"/> instructions to change this behavior,
|
---|
| 139 | but then <application>gdm</application> uses the system settings,
|
---|
| 140 | which default to a US <quote>qwerty</quote> keyboard layout. This may
|
---|
| 141 | be an inconvience to enter a password when the machine keyboard
|
---|
| 142 | has a different layout. One possibility is to use the screen-keyboard
|
---|
| 143 | from the accessibility menu. Another possibility is to change the
|
---|
| 144 | defaults at compile time, by creating the following file:
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <screen><userinput>cat > data/dconf/defaults/01-keyboard << EOF
|
---|
| 148 | <literal>[org/gnome/desktop/input-sources]
|
---|
| 149 | sources=[('xkb','<replaceable>layout</replaceable>')]</literal>
|
---|
| 150 | EOF</userinput></screen>
|
---|
| 151 |
|
---|
| 152 | <para>
|
---|
| 153 | where <replaceable>layout</replaceable> should be replaced with
|
---|
| 154 | the acronym for your keyboard layout (one of the filenames in
|
---|
| 155 | <filename class="directory">/usr/share/X11/xkb/symbols</filename>).
|
---|
| 156 | </para>
|
---|
| 157 | </note>
|
---|
[2126b9e] | 158 | -->
|
---|
[2e704d1b] | 159 | <para>
|
---|
| 160 | Install <application>GDM</application> by running the following
|
---|
| 161 | commands:
|
---|
| 162 | </para>
|
---|
| 163 |
|
---|
[51dfb3e] | 164 | <screen revision="sysv"><userinput>sed 's@systemd@elogind@' -i data/pam-lfs/gdm-launch-environment.pam &&
|
---|
| 165 |
|
---|
| 166 | ./configure --prefix=/usr \
|
---|
| 167 | --sysconfdir=/etc \
|
---|
| 168 | --localstatedir=/var \
|
---|
| 169 | --without-plymouth \
|
---|
| 170 | --disable-static \
|
---|
| 171 | --enable-gdm-xsession \
|
---|
| 172 | --with-systemdsystemunitdir=no \
|
---|
| 173 | --with-pam-mod-dir=/lib/security &&
|
---|
| 174 | make</userinput></screen>
|
---|
| 175 |
|
---|
| 176 | <screen revision="systemd"><userinput>./configure --prefix=/usr \
|
---|
[fd9878e] | 177 | --sysconfdir=/etc \
|
---|
| 178 | --localstatedir=/var \
|
---|
[3fdc9b0] | 179 | --without-plymouth \
|
---|
[fd9878e] | 180 | --disable-static \
|
---|
[7a90fe5] | 181 | --enable-gdm-xsession \
|
---|
| 182 | --with-pam-mod-dir=/lib/security &&
|
---|
[2e704d1b] | 183 | make</userinput></screen>
|
---|
| 184 |
|
---|
[0b5169af] | 185 | <para>
|
---|
| 186 | This package does not come with a usable test suite.
|
---|
| 187 | </para>
|
---|
[2e704d1b] | 188 |
|
---|
| 189 | <para>
|
---|
| 190 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 191 | </para>
|
---|
| 192 |
|
---|
[51dfb3e] | 193 | <screen role="root" revision="sysv"><userinput>make install</userinput></screen>
|
---|
| 194 |
|
---|
| 195 | <screen role="root" revision="systemd"><userinput>make install &&
|
---|
[4f5369a] | 196 | install -v -m644 data/gdm.service /lib/systemd/system/gdm.service</userinput></screen>
|
---|
[2e704d1b] | 197 |
|
---|
| 198 | </sect2>
|
---|
| 199 |
|
---|
| 200 | <sect2 role="commands">
|
---|
| 201 | <title>Command Explanations</title>
|
---|
| 202 |
|
---|
| 203 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 204 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 205 |
|
---|
| 206 | <para>
|
---|
| 207 | <option>--with-initial-vt=7</option>: Use this switch
|
---|
| 208 | to make <application>GDM</application> start on VT7
|
---|
| 209 | instead of the first free VT.
|
---|
| 210 | </para>
|
---|
| 211 |
|
---|
| 212 | <para>
|
---|
[0129a2f5] | 213 | <parameter>--without-plymouth</parameter>: GDM now explicitly requires
|
---|
| 214 | plymouth to be installed. Use this switch to disable this dependency.
|
---|
[2e704d1b] | 215 | </para>
|
---|
| 216 |
|
---|
| 217 | <para>
|
---|
| 218 | <option>--with-default-pam-config=lfs</option>: Use this
|
---|
| 219 | switch if you did not create the
|
---|
| 220 | <filename>/etc/lfs-release</filename> file or distribution
|
---|
| 221 | auto detection will fail and you will be unable to use
|
---|
| 222 | <application>GDM</application>.
|
---|
| 223 | </para>
|
---|
| 224 |
|
---|
[0129a2f5] | 225 | <para>
|
---|
| 226 | <parameter>--enable-gdm-xsession</parameter>: This enables the
|
---|
| 227 | installation of the <application>GDM</application> Xsession file.
|
---|
| 228 | </para>
|
---|
| 229 |
|
---|
[2e704d1b] | 230 | </sect2>
|
---|
| 231 |
|
---|
| 232 | <sect2 role="configuration">
|
---|
| 233 | <title>Configuring GDM</title>
|
---|
| 234 |
|
---|
| 235 | <sect3 id="gdm-config">
|
---|
| 236 | <title>Config Files</title>
|
---|
| 237 |
|
---|
| 238 | <para>
|
---|
| 239 | <filename>/etc/gdm/custom.conf</filename>
|
---|
| 240 | </para>
|
---|
| 241 |
|
---|
| 242 | <indexterm zone="gdm gdm-config">
|
---|
| 243 | <primary sortas="e-etc-gdm-custom.conf">/etc/gdm/custom.conf</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 |
|
---|
| 246 | </sect3>
|
---|
| 247 |
|
---|
| 248 | <sect3>
|
---|
| 249 | <title>Configuration Information</title>
|
---|
| 250 |
|
---|
| 251 | <para>
|
---|
| 252 | The GDM daemon is configured using the
|
---|
| 253 | <filename>/etc/gdm/custom.conf</filename> file. Default values
|
---|
| 254 | are stored in GSettings in the <filename>gdm.schemas</filename>
|
---|
| 255 | file. It is recommended that end-users modify the
|
---|
| 256 | <filename>/etc/gdm/custom.conf</filename> file because the schemas
|
---|
| 257 | file may be overwritten when the user updates their system to have
|
---|
| 258 | a newer version of <application>GDM</application>.
|
---|
| 259 | </para>
|
---|
| 260 |
|
---|
| 261 | </sect3>
|
---|
| 262 |
|
---|
| 263 | <sect3 id="gdm-init">
|
---|
[51dfb3e] | 264 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 265 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 266 |
|
---|
[fccfaa4] | 267 | <indexterm zone="gdm gdm-init">
|
---|
| 268 | <primary sortas="f-gdm">gdm</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 |
|
---|
[51dfb3e] | 271 | <para revision="sysv">
|
---|
| 272 | To start the <command>gdm</command> automatically when the system
|
---|
| 273 | is booted, install the <filename>/etc/rc.d/init.d/gdm</filename>
|
---|
| 274 | init script included in the <xref linkend="bootscripts"/> package and
|
---|
| 275 | set the default runlevel to 5 (graphical login) as the
|
---|
| 276 | <systemitem class="username">root</systemitem> user:
|
---|
| 277 | </para>
|
---|
[2e704d1b] | 278 |
|
---|
[51dfb3e] | 279 | <para revision="systemd">
|
---|
[2e704d1b] | 280 | To start the <command>gdm</command> daemon at boot, enable
|
---|
| 281 | the previously installed systemd unit by running the following command
|
---|
| 282 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 283 | </para>
|
---|
| 284 |
|
---|
[fccfaa4] | 285 | <screen role="root" revision="sysv"><userinput>make install-gdm</userinput></screen>
|
---|
[2e704d1b] | 286 |
|
---|
[51dfb3e] | 287 | <para revision="sysv">
|
---|
[fccfaa4] | 288 | In order to permanently set the default runlevel to 5, starting the
|
---|
[51dfb3e] | 289 | <command>gdm</command> greeter screen automatically, you can modify
|
---|
| 290 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
| 291 | class="username">root</systemitem> user:
|
---|
| 292 | </para>
|
---|
| 293 |
|
---|
[fccfaa4] | 294 | <screen role="root" revision="sysv"><userinput>sed /initdefault/s/3/5/ -i /etc/inittab</userinput></screen>
|
---|
[51dfb3e] | 295 |
|
---|
| 296 | <para revision="sysv">
|
---|
| 297 | You should also disable default elogind power management:
|
---|
| 298 | </para>
|
---|
| 299 |
|
---|
| 300 | <screen role="root" revision="sysv"><userinput>cat >> /etc/elogind/logind.conf << "EOF"
|
---|
| 301 | <literal>AllowSuspend=no
|
---|
| 302 | AllowHibernation=no</literal>
|
---|
| 303 | EOF</userinput></screen>
|
---|
| 304 |
|
---|
| 305 | <screen role="root" revision="systemd"><userinput>systemctl enable gdm</userinput></screen>
|
---|
[2e704d1b] | 306 |
|
---|
| 307 | </sect3>
|
---|
| 308 |
|
---|
| 309 | </sect2>
|
---|
| 310 |
|
---|
| 311 | <sect2 role="content">
|
---|
| 312 | <title>Contents</title>
|
---|
| 313 |
|
---|
| 314 | <segmentedlist>
|
---|
| 315 | <segtitle>Installed Programs</segtitle>
|
---|
| 316 | <segtitle>Installed Libraries</segtitle>
|
---|
| 317 | <segtitle>Installed Directories</segtitle>
|
---|
| 318 |
|
---|
| 319 | <seglistitem>
|
---|
| 320 | <seg>
|
---|
| 321 | gdm, gdmflexiserver, and gdm-screenshot
|
---|
| 322 | </seg>
|
---|
| 323 | <seg>
|
---|
[0129a2f5] | 324 | libgdm.so and pam_gdm.so (PAM Module)
|
---|
[2e704d1b] | 325 | </seg>
|
---|
| 326 | <seg>
|
---|
| 327 | /etc/gdm,
|
---|
| 328 | /usr/include/gdm,
|
---|
| 329 | /usr/share/gdm,
|
---|
| 330 | /usr/share/help/*/gdm,
|
---|
| 331 | /var/cache/gdm,
|
---|
| 332 | /var/lib/gdm,
|
---|
| 333 | /var/log/gdm, and
|
---|
| 334 | /var/run/gdm
|
---|
| 335 | </seg>
|
---|
| 336 | </seglistitem>
|
---|
| 337 | </segmentedlist>
|
---|
| 338 |
|
---|
| 339 | <variablelist>
|
---|
| 340 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 341 | <?dbfo list-presentation="list"?>
|
---|
| 342 | <?dbhtml list-presentation="table"?>
|
---|
| 343 |
|
---|
| 344 | <varlistentry id="gdm-prog">
|
---|
| 345 | <term><command>gdm</command></term>
|
---|
| 346 | <listitem>
|
---|
| 347 | <para>
|
---|
[0129a2f5] | 348 | is a login prompt for <application>GNOME</application>.
|
---|
[2e704d1b] | 349 | </para>
|
---|
| 350 | <indexterm zone="gdm gdm-prog">
|
---|
| 351 | <primary sortas="b-gdm">gdm</primary>
|
---|
| 352 | </indexterm>
|
---|
| 353 | </listitem>
|
---|
| 354 | </varlistentry>
|
---|
| 355 |
|
---|
| 356 | <varlistentry id="gdm-screenshot">
|
---|
| 357 | <term><command>gdm-screenshot</command></term>
|
---|
| 358 | <listitem>
|
---|
| 359 | <para>
|
---|
[0129a2f5] | 360 | is a screenshot tool for <application>GDM</application>.
|
---|
[2e704d1b] | 361 | </para>
|
---|
| 362 | <indexterm zone="gdm gdm-screenshot">
|
---|
| 363 | <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
|
---|
| 364 | </indexterm>
|
---|
| 365 | </listitem>
|
---|
| 366 | </varlistentry>
|
---|
| 367 |
|
---|
| 368 | </variablelist>
|
---|
| 369 |
|
---|
| 370 | </sect2>
|
---|
| 371 |
|
---|
| 372 | </sect1>
|
---|