[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 |
|
---|
[b6b01cb] | 7 | <!ENTITY gdm-download-http "&gnome-download-http;/gdm/&gnome-43;/gdm-&gdm-version;.tar.xz">
|
---|
| 8 | <!ENTITY gdm-download-ftp "&gnome-download-ftp;/gdm/&gnome-43;/gdm-&gdm-version;.tar.xz">
|
---|
| 9 | <!ENTITY gdm-md5sum "d9ca2abdf2359d0420dc71a1bd1d7530">
|
---|
| 10 | <!ENTITY gdm-size "812 KB">
|
---|
| 11 | <!ENTITY gdm-buildsize "33 MB">
|
---|
[0650fd6] | 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 |
|
---|
| 19 | <title>GDM-&gdm-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="gdm">
|
---|
| 22 | <primary sortas="a-GDM">GDM</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to GDM</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>GDM</application> is a system service that is
|
---|
| 30 | responsible for providing graphical logins and managing local
|
---|
| 31 | and remote displays.
|
---|
| 32 | </para>
|
---|
| 33 |
|
---|
[19f84a6] | 34 | &lfs112_checked;
|
---|
[2e704d1b] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&gdm-download-http;"/>
|
---|
| 41 | </para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&gdm-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download MD5 sum: &gdm-md5sum;
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download size: &gdm-size;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Estimated disk space required: &gdm-buildsize;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated build time: &gdm-time;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
[d3207212] | 69 | <!--
|
---|
[dbea07b] | 70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 71 | <itemizedlist spacing="compact">
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>
|
---|
| 74 | Required patch:
|
---|
| 75 | <ulink url="&patch-root;/gdm-&gdm-version;-security_fix-1.patch"/>
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
[d3207212] | 79 | -->
|
---|
[2e704d1b] | 80 | <bridgehead renderas="sect3">GDM Dependencies</bridgehead>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 83 | <para role="required">
|
---|
| 84 | <xref linkend="accountsservice"/>,
|
---|
| 85 | <xref linkend="gtk3"/>,
|
---|
| 86 | <xref linkend="iso-codes"/>,
|
---|
| 87 | <xref linkend="itstool"/>,
|
---|
[8558044] | 88 | <xref linkend="libcanberra"/>,
|
---|
[0129a2f5] | 89 | <xref linkend="libdaemon"/>, and
|
---|
[2e704d1b] | 90 | <xref linkend="linux-pam"/>
|
---|
| 91 | </para>
|
---|
| 92 |
|
---|
[e87734c] | 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 94 | <para role="optional">
|
---|
[fe4f5dc] | 95 | <xref linkend="keyutils"/>
|
---|
[e87734c] | 96 | </para>
|
---|
| 97 |
|
---|
[2e704d1b] | 98 | <bridgehead renderas="sect4">Runtime Dependencies</bridgehead>
|
---|
| 99 | <para role="required">
|
---|
[9b1042fd] | 100 | <xref role="runtime" linkend="gnome-session"/>,
|
---|
| 101 | <xref role="runtime" linkend="gnome-shell"/>, and
|
---|
[51dfb3e] | 102 | <phrase revision="sysv"><xref role="runtime" linkend="elogind"/></phrase>
|
---|
| 103 | <phrase revision="systemd"><xref role="runtime" linkend="systemd"/></phrase>
|
---|
[2e704d1b] | 104 | </para>
|
---|
| 105 |
|
---|
| 106 | <para condition="html" role="usernotes">User Notes:
|
---|
| 107 | <ulink url="&blfs-wiki;/gdm"/>
|
---|
| 108 | </para>
|
---|
| 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2 role="installation">
|
---|
| 112 | <title>Installation of GDM</title>
|
---|
| 113 |
|
---|
| 114 | <para>
|
---|
| 115 | It is recommended to have a dedicated user and group to take
|
---|
| 116 | control of the <command>gdm</command> daemon after it is
|
---|
| 117 | started. Issue the following commands as the
|
---|
| 118 | <systemitem class="username">root</systemitem> user:
|
---|
| 119 | </para>
|
---|
| 120 |
|
---|
| 121 | <screen role="root"><userinput>groupadd -g 21 gdm &&
|
---|
| 122 | useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
|
---|
[a2858f9] | 123 | -g gdm -s /bin/false gdm &&
|
---|
| 124 | passwd -ql gdm</userinput></screen>
|
---|
[2e704d1b] | 125 |
|
---|
[c339779] | 126 | <para revision="sysv">
|
---|
| 127 | First, adapt GDM to build without systemd present:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <screen revision="sysv"><userinput remap="pre">sed -i -r '/(^| )systemd_dep/d' meson.build</userinput></screen>
|
---|
| 131 |
|
---|
[2e704d1b] | 132 | <para>
|
---|
| 133 | Install <application>GDM</application> by running the following
|
---|
| 134 | commands:
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
[6c6b4190] | 137 | <screen revision="sysv"><userinput>sed -e 's@systemd@elogind@' \
|
---|
| 138 | -e '/elogind/isession required pam_loginuid.so' \
|
---|
| 139 | -i data/pam-lfs/gdm-launch-environment.pam &&
|
---|
[51dfb3e] | 140 |
|
---|
[c339779] | 141 | mkdir build &&
|
---|
| 142 | cd build &&
|
---|
| 143 |
|
---|
| 144 | meson --prefix=/usr \
|
---|
[adf17153] | 145 | --buildtype=release \
|
---|
[c339779] | 146 | -Dgdm-xsession=true \
|
---|
| 147 | -Dsystemd-journal=false \
|
---|
| 148 | -Dsystemdsystemunitdir=/tmp \
|
---|
| 149 | -Dsystemduserunitdir=/tmp .. &&
|
---|
| 150 | ninja</userinput></screen>
|
---|
| 151 |
|
---|
[16a72f7] | 152 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
[c339779] | 153 | cd build &&
|
---|
| 154 |
|
---|
| 155 | meson --prefix=/usr \
|
---|
[adf17153] | 156 | --buildtype=release \
|
---|
[d47699d] | 157 | -Dgdm-xsession=true .. &&
|
---|
[c339779] | 158 | ninja</userinput></screen>
|
---|
[2e704d1b] | 159 |
|
---|
[0b5169af] | 160 | <para>
|
---|
| 161 | This package does not come with a usable test suite.
|
---|
| 162 | </para>
|
---|
[2e704d1b] | 163 |
|
---|
| 164 | <para>
|
---|
| 165 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
[c339779] | 168 | <screen role="root" revision="sysv"><userinput>ninja install &&
|
---|
| 169 | rm -rv /tmp/*.{service,target.d}</userinput></screen>
|
---|
[51dfb3e] | 170 |
|
---|
[c339779] | 171 | <screen role="root" revision="systemd"><userinput>ninja install</userinput></screen>
|
---|
[2e704d1b] | 172 |
|
---|
| 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | <sect2 role="commands">
|
---|
| 176 | <title>Command Explanations</title>
|
---|
| 177 |
|
---|
[adf17153] | 178 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 179 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 180 |
|
---|
[2e704d1b] | 181 | <para>
|
---|
[c339779] | 182 | <option>-Dinitial-vt=7</option>: Use this switch
|
---|
[2e704d1b] | 183 | to make <application>GDM</application> start on VT7
|
---|
| 184 | instead of the first free VT.
|
---|
| 185 | </para>
|
---|
| 186 |
|
---|
| 187 | <para>
|
---|
[c339779] | 188 | <option>-Ddefault-pam-config=lfs</option>: Use this
|
---|
[2e704d1b] | 189 | switch if you did not create the
|
---|
| 190 | <filename>/etc/lfs-release</filename> file or distribution
|
---|
| 191 | auto detection will fail and you will be unable to use
|
---|
| 192 | <application>GDM</application>.
|
---|
| 193 | </para>
|
---|
| 194 |
|
---|
[0129a2f5] | 195 | <para>
|
---|
[c339779] | 196 | <parameter>-Dgdm-xsession=true</parameter>: This enables the
|
---|
[0129a2f5] | 197 | installation of the <application>GDM</application> Xsession file.
|
---|
| 198 | </para>
|
---|
| 199 |
|
---|
[2e704d1b] | 200 | </sect2>
|
---|
| 201 |
|
---|
| 202 | <sect2 role="configuration">
|
---|
| 203 | <title>Configuring GDM</title>
|
---|
| 204 |
|
---|
| 205 | <sect3 id="gdm-config">
|
---|
| 206 | <title>Config Files</title>
|
---|
| 207 |
|
---|
| 208 | <para>
|
---|
| 209 | <filename>/etc/gdm/custom.conf</filename>
|
---|
| 210 | </para>
|
---|
| 211 |
|
---|
| 212 | <indexterm zone="gdm gdm-config">
|
---|
| 213 | <primary sortas="e-etc-gdm-custom.conf">/etc/gdm/custom.conf</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 |
|
---|
| 216 | </sect3>
|
---|
| 217 |
|
---|
| 218 | <sect3>
|
---|
| 219 | <title>Configuration Information</title>
|
---|
| 220 |
|
---|
| 221 | <para>
|
---|
| 222 | The GDM daemon is configured using the
|
---|
| 223 | <filename>/etc/gdm/custom.conf</filename> file. Default values
|
---|
| 224 | are stored in GSettings in the <filename>gdm.schemas</filename>
|
---|
| 225 | file. It is recommended that end-users modify the
|
---|
| 226 | <filename>/etc/gdm/custom.conf</filename> file because the schemas
|
---|
| 227 | file may be overwritten when the user updates their system to have
|
---|
| 228 | a newer version of <application>GDM</application>.
|
---|
| 229 | </para>
|
---|
| 230 |
|
---|
| 231 | </sect3>
|
---|
| 232 |
|
---|
| 233 | <sect3 id="gdm-init">
|
---|
[51dfb3e] | 234 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 235 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
| 236 |
|
---|
[fccfaa4] | 237 | <indexterm zone="gdm gdm-init">
|
---|
| 238 | <primary sortas="f-gdm">gdm</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 |
|
---|
[51dfb3e] | 241 | <para revision="sysv">
|
---|
[52250565] | 242 | To start <command>gdm</command> automatically when the system is
|
---|
| 243 | switched to runlevel 5, install the
|
---|
| 244 | <filename>/etc/rc.d/init.d/xdm</filename> script and the
|
---|
| 245 | <filename>/etc/sysconfig/xdm</filename> configuration file
|
---|
| 246 | included in the <xref linkend="bootscripts"/> package
|
---|
| 247 | and adjust <filename>/etc/inittab</filename> by running
|
---|
[2e704d1b] | 248 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 249 | </para>
|
---|
| 250 |
|
---|
[fccfaa4] | 251 | <screen role="root" revision="sysv"><userinput>make install-gdm</userinput></screen>
|
---|
[2e704d1b] | 252 |
|
---|
[51dfb3e] | 253 | <para revision="sysv">
|
---|
[fccfaa4] | 254 | In order to permanently set the default runlevel to 5, starting the
|
---|
[51dfb3e] | 255 | <command>gdm</command> greeter screen automatically, you can modify
|
---|
| 256 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
| 257 | class="username">root</systemitem> user:
|
---|
| 258 | </para>
|
---|
| 259 |
|
---|
[fccfaa4] | 260 | <screen role="root" revision="sysv"><userinput>sed /initdefault/s/3/5/ -i /etc/inittab</userinput></screen>
|
---|
[51dfb3e] | 261 |
|
---|
[52250565] | 262 | <para revision="systemd">
|
---|
| 263 | To start the <command>gdm</command> daemon at boot, enable
|
---|
| 264 | the previously installed systemd unit by running the following command
|
---|
| 265 | as the <systemitem class="username">root</systemitem> user:
|
---|
| 266 | </para>
|
---|
| 267 |
|
---|
| 268 | <screen role="root" revision="systemd"><userinput>systemctl enable gdm</userinput></screen>
|
---|
| 269 |
|
---|
| 270 | <!-- [pierre October 2020] I don't understand why this is here: power
|
---|
| 271 | management works perfectly well
|
---|
[51dfb3e] | 272 | <para revision="sysv">
|
---|
| 273 | You should also disable default elogind power management:
|
---|
| 274 | </para>
|
---|
| 275 |
|
---|
| 276 | <screen role="root" revision="sysv"><userinput>cat >> /etc/elogind/logind.conf << "EOF"
|
---|
| 277 | <literal>AllowSuspend=no
|
---|
| 278 | AllowHibernation=no</literal>
|
---|
| 279 | EOF</userinput></screen>
|
---|
[52250565] | 280 | -->
|
---|
[2e704d1b] | 281 |
|
---|
| 282 | </sect3>
|
---|
| 283 |
|
---|
| 284 | </sect2>
|
---|
| 285 |
|
---|
[b4cefdb6] | 286 | <sect2 role="starting">
|
---|
| 287 | <title>Starting GNOME</title>
|
---|
| 288 |
|
---|
| 289 | <para>
|
---|
| 290 | It is possible to start <application>GNOME</application> from the command
|
---|
| 291 | line, rather than using GDM. However, you must still have GDM installed
|
---|
| 292 | for some portions of the desktop to work. One reason to start from the
|
---|
| 293 | command line is if you want Wayland support on a system that has the
|
---|
| 294 | proprietary NVIDIA driver installed, since GDM will not show the Wayland
|
---|
| 295 | session type on such a system.
|
---|
| 296 | </para>
|
---|
| 297 |
|
---|
| 298 | <para>
|
---|
| 299 | To start <application>GNOME</application> using
|
---|
| 300 | <xref role="nodep" linkend="xinit"/>, run the following commands:
|
---|
| 301 | </para>
|
---|
| 302 |
|
---|
| 303 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
| 304 | <literal>dbus-run-session gnome-session</literal>
|
---|
| 305 | EOF
|
---|
| 306 |
|
---|
| 307 | startx</userinput></screen>
|
---|
| 308 |
|
---|
| 309 | <para>
|
---|
| 310 | Alternatively, to start <application>GNOME</application> with Wayland
|
---|
| 311 | support, run the following command:
|
---|
| 312 | </para>
|
---|
| 313 |
|
---|
| 314 | <screen role="nodump"><userinput>dbus-run-session -- gnome-shell --display-server --wayland</userinput></screen>
|
---|
| 315 |
|
---|
| 316 | </sect2>
|
---|
| 317 |
|
---|
[2e704d1b] | 318 | <sect2 role="content">
|
---|
| 319 | <title>Contents</title>
|
---|
| 320 |
|
---|
| 321 | <segmentedlist>
|
---|
| 322 | <segtitle>Installed Programs</segtitle>
|
---|
| 323 | <segtitle>Installed Libraries</segtitle>
|
---|
| 324 | <segtitle>Installed Directories</segtitle>
|
---|
| 325 |
|
---|
| 326 | <seglistitem>
|
---|
| 327 | <seg>
|
---|
| 328 | gdm, gdmflexiserver, and gdm-screenshot
|
---|
| 329 | </seg>
|
---|
| 330 | <seg>
|
---|
[0129a2f5] | 331 | libgdm.so and pam_gdm.so (PAM Module)
|
---|
[2e704d1b] | 332 | </seg>
|
---|
| 333 | <seg>
|
---|
| 334 | /etc/gdm,
|
---|
| 335 | /usr/include/gdm,
|
---|
[0650fd6] | 336 | /usr/share/gdm, and
|
---|
| 337 | /usr/share/help/*/gdm
|
---|
| 338 | <!-- seems those diretories are not created at install, but at
|
---|
| 339 | runtime
|
---|
[2e704d1b] | 340 | /var/cache/gdm,
|
---|
| 341 | /var/lib/gdm,
|
---|
| 342 | /var/log/gdm, and
|
---|
[0650fd6] | 343 | /var/run/gdm-->
|
---|
[2e704d1b] | 344 | </seg>
|
---|
| 345 | </seglistitem>
|
---|
| 346 | </segmentedlist>
|
---|
| 347 |
|
---|
| 348 | <variablelist>
|
---|
| 349 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 350 | <?dbfo list-presentation="list"?>
|
---|
| 351 | <?dbhtml list-presentation="table"?>
|
---|
| 352 |
|
---|
| 353 | <varlistentry id="gdm-prog">
|
---|
| 354 | <term><command>gdm</command></term>
|
---|
| 355 | <listitem>
|
---|
| 356 | <para>
|
---|
[4c24eb0a] | 357 | is a login prompt for <application>GNOME</application>
|
---|
[2e704d1b] | 358 | </para>
|
---|
| 359 | <indexterm zone="gdm gdm-prog">
|
---|
| 360 | <primary sortas="b-gdm">gdm</primary>
|
---|
| 361 | </indexterm>
|
---|
| 362 | </listitem>
|
---|
| 363 | </varlistentry>
|
---|
| 364 |
|
---|
| 365 | <varlistentry id="gdm-screenshot">
|
---|
| 366 | <term><command>gdm-screenshot</command></term>
|
---|
| 367 | <listitem>
|
---|
| 368 | <para>
|
---|
[4c24eb0a] | 369 | is a screenshot tool for <application>GDM</application>
|
---|
[2e704d1b] | 370 | </para>
|
---|
| 371 | <indexterm zone="gdm gdm-screenshot">
|
---|
| 372 | <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
|
---|
| 373 | </indexterm>
|
---|
| 374 | </listitem>
|
---|
| 375 | </varlistentry>
|
---|
| 376 |
|
---|
| 377 | </variablelist>
|
---|
| 378 |
|
---|
| 379 | </sect2>
|
---|
| 380 |
|
---|
| 381 | </sect1>
|
---|