[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 |
|
---|
[c339779] | 7 | <!ENTITY gdm-download-http "&gnome-download-http;/gdm/&gnome-minor-38;/gdm-&gdm-version;.tar.xz">
|
---|
| 8 | <!ENTITY gdm-download-ftp "&gnome-download-ftp;/gdm/&gnome-minor-38;/gdm-&gdm-version;.tar.xz">
|
---|
[d515b88] | 9 | <!ENTITY gdm-md5sum "ddc782eaf0b0345ee34fb396f67bd44d">
|
---|
[c339779] | 10 | <!ENTITY gdm-size "772 KB">
|
---|
[d515b88] | 11 | <!ENTITY gdm-buildsize "35 MB">
|
---|
| 12 | <!ENTITY gdm-time "0.2 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 |
|
---|
[88377804] | 38 | &lfs10_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">
|
---|
[fe4f5dc] | 99 | <xref linkend="keyutils"/>
|
---|
[e87734c] | 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 |
|
---|
[c339779] | 130 | <para revision="sysv">
|
---|
| 131 | First, adapt GDM to build without systemd present:
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <screen revision="sysv"><userinput remap="pre">sed -i -r '/(^| )systemd_dep/d' meson.build</userinput></screen>
|
---|
| 135 |
|
---|
[2e704d1b] | 136 | <para>
|
---|
| 137 | Install <application>GDM</application> by running the following
|
---|
| 138 | commands:
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
[51dfb3e] | 141 | <screen revision="sysv"><userinput>sed 's@systemd@elogind@' -i data/pam-lfs/gdm-launch-environment.pam &&
|
---|
| 142 |
|
---|
[c339779] | 143 | mkdir build &&
|
---|
| 144 | cd build &&
|
---|
| 145 |
|
---|
| 146 | meson --prefix=/usr \
|
---|
| 147 | -Dplymouth=disabled \
|
---|
| 148 | -Dgdm-xsession=true \
|
---|
| 149 | -Dpam-mod-dir=/lib/security \
|
---|
| 150 | -Dsystemd-journal=false \
|
---|
| 151 | -Dsystemdsystemunitdir=/tmp \
|
---|
| 152 | -Dsystemduserunitdir=/tmp .. &&
|
---|
| 153 | ninja</userinput></screen>
|
---|
| 154 |
|
---|
[16a72f7] | 155 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
[c339779] | 156 | cd build &&
|
---|
| 157 |
|
---|
| 158 | meson --prefix=/usr \
|
---|
| 159 | -Dplymouth=disabled \
|
---|
| 160 | -Dgdm-xsession=true \
|
---|
| 161 | -Dpam-mod-dir=/lib/security .. &&
|
---|
| 162 | ninja</userinput></screen>
|
---|
[2e704d1b] | 163 |
|
---|
[0b5169af] | 164 | <para>
|
---|
| 165 | This package does not come with a usable test suite.
|
---|
| 166 | </para>
|
---|
[2e704d1b] | 167 |
|
---|
| 168 | <para>
|
---|
| 169 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
[c339779] | 172 | <screen role="root" revision="sysv"><userinput>ninja install &&
|
---|
| 173 | rm -rv /tmp/*.{service,target.d}</userinput></screen>
|
---|
[51dfb3e] | 174 |
|
---|
[c339779] | 175 | <screen role="root" revision="systemd"><userinput>ninja install</userinput></screen>
|
---|
[2e704d1b] | 176 |
|
---|
| 177 | </sect2>
|
---|
| 178 |
|
---|
| 179 | <sect2 role="commands">
|
---|
| 180 | <title>Command Explanations</title>
|
---|
| 181 |
|
---|
| 182 | <para>
|
---|
[c339779] | 183 | <option>-Dinitial-vt=7</option>: Use this switch
|
---|
[2e704d1b] | 184 | to make <application>GDM</application> start on VT7
|
---|
| 185 | instead of the first free VT.
|
---|
| 186 | </para>
|
---|
| 187 |
|
---|
| 188 | <para>
|
---|
[c339779] | 189 | <parameter>-Dplymouth=disabled</parameter>: GDM now explicitly requires
|
---|
[0129a2f5] | 190 | plymouth to be installed. Use this switch to disable this dependency.
|
---|
[2e704d1b] | 191 | </para>
|
---|
| 192 |
|
---|
| 193 | <para>
|
---|
[c339779] | 194 | <option>-Ddefault-pam-config=lfs</option>: Use this
|
---|
[2e704d1b] | 195 | switch if you did not create the
|
---|
| 196 | <filename>/etc/lfs-release</filename> file or distribution
|
---|
| 197 | auto detection will fail and you will be unable to use
|
---|
| 198 | <application>GDM</application>.
|
---|
| 199 | </para>
|
---|
| 200 |
|
---|
[0129a2f5] | 201 | <para>
|
---|
[c339779] | 202 | <parameter>-Dgdm-xsession=true</parameter>: This enables the
|
---|
[0129a2f5] | 203 | installation of the <application>GDM</application> Xsession file.
|
---|
| 204 | </para>
|
---|
| 205 |
|
---|
[2e704d1b] | 206 | </sect2>
|
---|
| 207 |
|
---|
| 208 | <sect2 role="configuration">
|
---|
| 209 | <title>Configuring GDM</title>
|
---|
| 210 |
|
---|
| 211 | <sect3 id="gdm-config">
|
---|
| 212 | <title>Config Files</title>
|
---|
| 213 |
|
---|
| 214 | <para>
|
---|
| 215 | <filename>/etc/gdm/custom.conf</filename>
|
---|
| 216 | </para>
|
---|
| 217 |
|
---|
| 218 | <indexterm zone="gdm gdm-config">
|
---|
| 219 | <primary sortas="e-etc-gdm-custom.conf">/etc/gdm/custom.conf</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 |
|
---|
| 222 | </sect3>
|
---|
| 223 |
|
---|
| 224 | <sect3>
|
---|
| 225 | <title>Configuration Information</title>
|
---|
| 226 |
|
---|
| 227 | <para>
|
---|
| 228 | The GDM daemon is configured using the
|
---|
| 229 | <filename>/etc/gdm/custom.conf</filename> file. Default values
|
---|
| 230 | are stored in GSettings in the <filename>gdm.schemas</filename>
|
---|
| 231 | file. It is recommended that end-users modify the
|
---|
| 232 | <filename>/etc/gdm/custom.conf</filename> file because the schemas
|
---|
| 233 | file may be overwritten when the user updates their system to have
|
---|
| 234 | a newer version of <application>GDM</application>.
|
---|
| 235 | </para>
|
---|
| 236 |
|
---|
| 237 | </sect3>
|
---|
| 238 |
|
---|
| 239 | <sect3 id="gdm-init">
|
---|
[51dfb3e] | 240 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 241 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 242 |
|
---|
[fccfaa4] | 243 | <indexterm zone="gdm gdm-init">
|
---|
| 244 | <primary sortas="f-gdm">gdm</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 |
|
---|
[51dfb3e] | 247 | <para revision="sysv">
|
---|
[52250565] | 248 | To start <command>gdm</command> automatically when the system is
|
---|
| 249 | switched to runlevel 5, install the
|
---|
| 250 | <filename>/etc/rc.d/init.d/xdm</filename> script and the
|
---|
| 251 | <filename>/etc/sysconfig/xdm</filename> configuration file
|
---|
| 252 | included in the <xref linkend="bootscripts"/> package
|
---|
| 253 | and adjust <filename>/etc/inittab</filename> by running
|
---|
[2e704d1b] | 254 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 255 | </para>
|
---|
| 256 |
|
---|
[fccfaa4] | 257 | <screen role="root" revision="sysv"><userinput>make install-gdm</userinput></screen>
|
---|
[2e704d1b] | 258 |
|
---|
[51dfb3e] | 259 | <para revision="sysv">
|
---|
[fccfaa4] | 260 | In order to permanently set the default runlevel to 5, starting the
|
---|
[51dfb3e] | 261 | <command>gdm</command> greeter screen automatically, you can modify
|
---|
| 262 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
| 263 | class="username">root</systemitem> user:
|
---|
| 264 | </para>
|
---|
| 265 |
|
---|
[fccfaa4] | 266 | <screen role="root" revision="sysv"><userinput>sed /initdefault/s/3/5/ -i /etc/inittab</userinput></screen>
|
---|
[51dfb3e] | 267 |
|
---|
[52250565] | 268 | <para revision="systemd">
|
---|
| 269 | To start the <command>gdm</command> daemon at boot, enable
|
---|
| 270 | the previously installed systemd unit by running the following command
|
---|
| 271 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 272 | </para>
|
---|
| 273 |
|
---|
| 274 | <screen role="root" revision="systemd"><userinput>systemctl enable gdm</userinput></screen>
|
---|
| 275 |
|
---|
| 276 | <!-- [pierre October 2020] I don't understand why this is here: power
|
---|
| 277 | management works perfectly well
|
---|
[51dfb3e] | 278 | <para revision="sysv">
|
---|
| 279 | You should also disable default elogind power management:
|
---|
| 280 | </para>
|
---|
| 281 |
|
---|
| 282 | <screen role="root" revision="sysv"><userinput>cat >> /etc/elogind/logind.conf << "EOF"
|
---|
| 283 | <literal>AllowSuspend=no
|
---|
| 284 | AllowHibernation=no</literal>
|
---|
| 285 | EOF</userinput></screen>
|
---|
[52250565] | 286 | -->
|
---|
[2e704d1b] | 287 |
|
---|
| 288 | </sect3>
|
---|
| 289 |
|
---|
| 290 | </sect2>
|
---|
| 291 |
|
---|
| 292 | <sect2 role="content">
|
---|
| 293 | <title>Contents</title>
|
---|
| 294 |
|
---|
| 295 | <segmentedlist>
|
---|
| 296 | <segtitle>Installed Programs</segtitle>
|
---|
| 297 | <segtitle>Installed Libraries</segtitle>
|
---|
| 298 | <segtitle>Installed Directories</segtitle>
|
---|
| 299 |
|
---|
| 300 | <seglistitem>
|
---|
| 301 | <seg>
|
---|
| 302 | gdm, gdmflexiserver, and gdm-screenshot
|
---|
| 303 | </seg>
|
---|
| 304 | <seg>
|
---|
[0129a2f5] | 305 | libgdm.so and pam_gdm.so (PAM Module)
|
---|
[2e704d1b] | 306 | </seg>
|
---|
| 307 | <seg>
|
---|
| 308 | /etc/gdm,
|
---|
| 309 | /usr/include/gdm,
|
---|
| 310 | /usr/share/gdm,
|
---|
| 311 | /usr/share/help/*/gdm,
|
---|
| 312 | /var/cache/gdm,
|
---|
| 313 | /var/lib/gdm,
|
---|
| 314 | /var/log/gdm, and
|
---|
| 315 | /var/run/gdm
|
---|
| 316 | </seg>
|
---|
| 317 | </seglistitem>
|
---|
| 318 | </segmentedlist>
|
---|
| 319 |
|
---|
| 320 | <variablelist>
|
---|
| 321 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 322 | <?dbfo list-presentation="list"?>
|
---|
| 323 | <?dbhtml list-presentation="table"?>
|
---|
| 324 |
|
---|
| 325 | <varlistentry id="gdm-prog">
|
---|
| 326 | <term><command>gdm</command></term>
|
---|
| 327 | <listitem>
|
---|
| 328 | <para>
|
---|
[0129a2f5] | 329 | is a login prompt for <application>GNOME</application>.
|
---|
[2e704d1b] | 330 | </para>
|
---|
| 331 | <indexterm zone="gdm gdm-prog">
|
---|
| 332 | <primary sortas="b-gdm">gdm</primary>
|
---|
| 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
| 336 |
|
---|
| 337 | <varlistentry id="gdm-screenshot">
|
---|
| 338 | <term><command>gdm-screenshot</command></term>
|
---|
| 339 | <listitem>
|
---|
| 340 | <para>
|
---|
[0129a2f5] | 341 | is a screenshot tool for <application>GDM</application>.
|
---|
[2e704d1b] | 342 | </para>
|
---|
| 343 | <indexterm zone="gdm gdm-screenshot">
|
---|
| 344 | <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
|
---|
| 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 |
|
---|
| 349 | </variablelist>
|
---|
| 350 |
|
---|
| 351 | </sect2>
|
---|
| 352 |
|
---|
| 353 | </sect1>
|
---|