mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 23:07:23 +08:00
• Several fixes for the files in the Chapter "Display Managers";
patch sent by Bruce Dubbs. Thanks! Fix 3 for #6639. • Added instruction to install the sddm bootscript. Fix 2 for #6639. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16313 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
7b88d5aada
commit
1def00fbdc
@ -43,10 +43,22 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>August 1st, 2015</para>
|
<para>August 1st, 2015</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
<para>[fernando] - Several fixes for the files in the Chapter
|
||||||
|
"Display Managers"; patch sent by Bruce Dubbs. Thanks!
|
||||||
|
Fix 3 for
|
||||||
|
<ulink url="&blfs-ticket-root;6639">#6639</ulink>.</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>[fernando] - Added instruction to install the sddm bootscript.
|
||||||
|
Fix 2 for
|
||||||
|
<ulink url="&blfs-ticket-root;6639">#6639</ulink>.</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
<para>[fernando] - cups-filters-1.0.71 does not build with
|
<para>[fernando] - cups-filters-1.0.71 does not build with
|
||||||
poppler-3.4. Fixes
|
poppler-3.4. Fixes
|
||||||
<ulink url="&blfs-ticket-root;6777">#6777</ulink>.</para>
|
<ulink url="&blfs-ticket-root;6777">#6777</ulink>.</para>
|
||||||
|
16
x/dm/dm.xml
16
x/dm/dm.xml
@ -22,15 +22,15 @@
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
Display Managers are graphical programs used for starting the graphical
|
Display Managers are graphical programs used for starting the graphical
|
||||||
display (currently, the X server) and loging in a Windows Manager or
|
display (currently, the X server) and providing a login capability for
|
||||||
Desktop Environment.
|
a Window Manager or Desktop Environment.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
There are many Display Managers available. Some of the more well
|
There are many Display Managers available. Some of the more well
|
||||||
known include
|
known include:
|
||||||
<application>GDM</application>,
|
<application>GDM</application>,
|
||||||
<application>KDM</application>,
|
<application>KDM</application> (deprecated),
|
||||||
<application>LightDM</application>,
|
<application>LightDM</application>,
|
||||||
<application>LXDM</application>,
|
<application>LXDM</application>,
|
||||||
<application>Slim</application>, and
|
<application>Slim</application>, and
|
||||||
@ -38,7 +38,7 @@
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Between the Desktop Environments available for Linux you find
|
Among the Desktop Environments available for Linux you find:
|
||||||
<application>Enlightenment</application>,
|
<application>Enlightenment</application>,
|
||||||
<application>GNOME</application>,
|
<application>GNOME</application>,
|
||||||
<application>KDE</application>,
|
<application>KDE</application>,
|
||||||
@ -48,15 +48,15 @@
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Choosing a Display Manager or Display Environment is highly subjective.
|
Choosing a Display Manager or Desktop Environment is highly subjective.
|
||||||
The choice depends on the look and feel of the packages, the resources
|
The choice depends on the look and feel of the packages, the resources
|
||||||
(RAM, disk space) required, and the utilities included.
|
(memory and disk space) required, and the utilities included.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In this chapter, the installation instructions of some Display Managers
|
In this chapter, the installation instructions of some Display Managers
|
||||||
are presented. Later in the book, you will find other ones, which are
|
are presented. Later in the book, you will find other ones, which are
|
||||||
provided as part of some Desktop Envireonments.
|
provided as part of some Desktop Environments.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
the <application>LXDE</application> desktop. It can also be used as an
|
the <application>LXDE</application> desktop. It can also be used as an
|
||||||
alternative to other Display Managers such as
|
alternative to other Display Managers such as
|
||||||
<application>GNOME's</application> <application>GDM</application> or
|
<application>GNOME's</application> <application>GDM</application> or
|
||||||
<application>KDE's</application> <application>KDM</application>.
|
<application>LightDM</application>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
&lfs77_checked;
|
&lfs77_checked;
|
||||||
@ -82,7 +82,7 @@
|
|||||||
<bridgehead renderas="sect4">Required</bridgehead>
|
<bridgehead renderas="sect4">Required</bridgehead>
|
||||||
<para role="required">
|
<para role="required">
|
||||||
<xref linkend="gtk2"/>,
|
<xref linkend="gtk2"/>,
|
||||||
<xref linkend="iso-codes"/> and
|
<xref linkend="iso-codes"/>, and
|
||||||
<xref linkend="librsvg"/> (runtime, for default theme background)
|
<xref linkend="librsvg"/> (runtime, for default theme background)
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@ -227,9 +227,10 @@ make</userinput></screen>
|
|||||||
<title>Configuration Information</title>
|
<title>Configuration Information</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The LXDM daemon configuration <filename>/etc/lxdm/lxdm.conf</filename>
|
The LXDM daemon configuration file
|
||||||
file options includes numlock on/off, backgraound image (bg), session,
|
(<filename>/etc/lxdm/lxdm.conf</filename>) specifies options that
|
||||||
etc. You can set a default session by uncommenting the line:
|
include numlock on/off, backgraound image (bg), session, etc. You can
|
||||||
|
set a default session by uncommenting the line:
|
||||||
session=/usr/bin/startlxde and replacing <command>startlxde</command>
|
session=/usr/bin/startlxde and replacing <command>startlxde</command>
|
||||||
with your session of choice. For <application>GNOME</application>
|
with your session of choice. For <application>GNOME</application>
|
||||||
session=/usr/bin/gnome-session. For <application>OPENBOX</application>
|
session=/usr/bin/gnome-session. For <application>OPENBOX</application>
|
||||||
@ -245,9 +246,9 @@ make</userinput></screen>
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
You can replace the default dummy face in the greeting screen by other
|
You can replace the default dummy face in the greeting screen by another
|
||||||
image representing your user. For that, copy or symlink the desired
|
image representing your user. For that, copy or symlink the desired
|
||||||
image to your home directory, with the name <filename>.face</filename>.
|
image to your home directory with the name <filename>.face</filename>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
@ -264,32 +265,33 @@ make</userinput></screen>
|
|||||||
<screen role="root"><userinput>/etc/rc.d/init.d/lxdm start</userinput></screen>
|
<screen role="root"><userinput>/etc/rc.d/init.d/lxdm start</userinput></screen>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
By definition, X should be executed at runlevel 5, consequently, the
|
By convention, X should be executed at runlevel 5, consequently, the
|
||||||
same is true for <application>lxdm</application>. However, BLFS default
|
same is true for <application>lxdm</application>. However, the LFS default
|
||||||
runlevel is 3. Changing to runlevel 5, from the terminal, as
|
runlevel is 3. Changing to runlevel 5, from the console (as
|
||||||
<systemitem class="username">root</systemitem> user, makes the
|
<systemitem class="username">root</systemitem> user) starts the
|
||||||
<command>lxdm</command> bootscript to be executed, obtaining the
|
<command>lxdm</command> bootscript and presents the
|
||||||
greeter screen:
|
greeter screen:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>init 5</userinput></screen>
|
<screen role="root"><userinput>init 5</userinput></screen>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In order to permanently set the default to 5, obtaining the
|
In order to permanently set the default to 5, starting the
|
||||||
<command>lxdm</command> greeter screen automatically, you can modify
|
<command>lxdm</command> greeter screen automatically, you can modify
|
||||||
<filename>/etc/inittab</filename>, as <systemitem
|
<filename>/etc/inittab</filename>. As the <systemitem
|
||||||
class="username">root</systemitem> user (the instructions below also
|
class="username">root</systemitem> user:
|
||||||
make a backup, so you can easily revert the modification):
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
||||||
sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
||||||
|
|
||||||
|
<note>
|
||||||
<para>
|
<para>
|
||||||
One important script, executed after login, is
|
One important script, executed after login is
|
||||||
<filename>/etc/lxdm/Xsession</filename>, which we have fixed to fit
|
<filename>/etc/lxdm/Xsession</filename> which we have fixed to fit
|
||||||
BLFS specifications.
|
BLFS specifications.
|
||||||
</para>
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
The <application>SDDM</application> package contains a lightweight
|
The <application>SDDM</application> package contains a lightweight
|
||||||
display manager written in <application>Qt</application> and QML.
|
display manager based upon <application>Qt</application> and QML.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
&lfs77_checked; &gcc5_checked;
|
&lfs77_checked; &gcc5_checked;
|
||||||
@ -106,15 +106,14 @@
|
|||||||
<title>Installation of SDDM</title>
|
<title>Installation of SDDM</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
It is recommended to have a dedicated user and group to take
|
First, create a dedicated user and group to take
|
||||||
control of the <command>sddm</command> daemon after it is
|
control of the <command>sddm</command> daemon after it is
|
||||||
started. Issue the following commands as the
|
started. Issue the following commands as the
|
||||||
<systemitem class="username">root</systemitem> user:
|
<systemitem class="username">root</systemitem> user:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>groupadd -g 64 sddm &&
|
<screen role="root"><userinput>groupadd -g 64 sddm &&
|
||||||
useradd -c "SDDM Daemon Owner" -d /var/lib/sddm -u 64 \
|
useradd -c "SDDM Daemon" -d /var/lib/sddm -u 64 -g sddm -s /bin/false sddm</userinput></screen>
|
||||||
-g sddm -s /bin/false sddm</userinput></screen>
|
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Install <application>SDDM</application> by running the following
|
Install <application>SDDM</application> by running the following
|
||||||
@ -149,7 +148,7 @@ install -v -dm755 -o sddm -g sddm /var/lib/sddm</userinput></screen>
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
<parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
<parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
||||||
apply higher level of the compiler optimizations.
|
apply additional compiler optimizations.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -162,6 +161,22 @@ install -v -dm755 -o sddm -g sddm /var/lib/sddm</userinput></screen>
|
|||||||
<sect2 role="configuration">
|
<sect2 role="configuration">
|
||||||
<title>Configuring SDDM</title>
|
<title>Configuring SDDM</title>
|
||||||
|
|
||||||
|
<sect3 id="sddm-bootscript">
|
||||||
|
<title>Boot Script</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Install the <filename>/etc/rc.d/init.d/sddm</filename> init script from
|
||||||
|
the <xref linkend="bootscripts"/> package.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<indexterm zone="sddm sddm-bootscript">
|
||||||
|
<primary sortas="f-sddm">sddm</primary>
|
||||||
|
</indexterm>
|
||||||
|
|
||||||
|
<screen role="root"><userinput>make install-sddm</userinput></screen>
|
||||||
|
|
||||||
|
</sect3>
|
||||||
|
|
||||||
<sect3>
|
<sect3>
|
||||||
<title>Linux PAM Configuration</title>
|
<title>Linux PAM Configuration</title>
|
||||||
|
|
||||||
@ -190,6 +205,7 @@ session include system-session
|
|||||||
|
|
||||||
# End /etc/pam.d/sddm</literal>
|
# End /etc/pam.d/sddm</literal>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /etc/pam.d/sddm-autologin << "EOF" &&
|
cat > /etc/pam.d/sddm-autologin << "EOF" &&
|
||||||
<literal># Begin /etc/pam.d/sddm-autologin
|
<literal># Begin /etc/pam.d/sddm-autologin
|
||||||
|
|
||||||
@ -208,6 +224,7 @@ session include system-session
|
|||||||
|
|
||||||
# End /etc/pam.d/sddm-autologin</literal>
|
# End /etc/pam.d/sddm-autologin</literal>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /etc/pam.d/sddm-greeter << "EOF"
|
cat > /etc/pam.d/sddm-greeter << "EOF"
|
||||||
<literal># Begin /etc/pam.d/sddm-greeter
|
<literal># Begin /etc/pam.d/sddm-greeter
|
||||||
|
|
||||||
@ -228,30 +245,27 @@ EOF</userinput></screen>
|
|||||||
<title>Starting sddm</title>
|
<title>Starting sddm</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
You can manually start <command>sddm</command>, e.g, if the bootscript
|
If the sddm bootscript has been installed, start it by running, as
|
||||||
has been installed, by running, as <systemitem
|
<systemitem class="username">root</systemitem> user:
|
||||||
class="username">root</systemitem> user:
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
|
<screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
By definition, X should be executed at runlevel 5, consequently, the
|
By convertion, X should be executed at runlevel 5, consequently, the
|
||||||
same is true for <application>sddm</application>. However, BLFS default
|
same is true for <application>sddm</application>. However, LFS default
|
||||||
runlevel is 3. Changing to runlevel 5, from the terminal, as
|
runlevel is 3. Changing to runlevel 5, from a console terminal, as
|
||||||
<systemitem class="username">root</systemitem> user, makes the
|
<systemitem class="username">root</systemitem> user, starts the
|
||||||
<command>sddm</command> bootscript to be executed, obtaining the
|
<command>sddm</command> bootscript, bringing up the greeter screen:
|
||||||
greeter screen:
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>init 5</userinput></screen>
|
<screen role="root"><userinput>init 5</userinput></screen>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In order to permanently set the default to 5, obtaining the
|
In order to permanently set the default to 5, starting the
|
||||||
<command>sddm</command> greeter screen automatically, you can modify
|
<command>sddm</command> greeter screen automatically, modify
|
||||||
<filename>/etc/inittab</filename>, as <systemitem
|
<filename>/etc/inittab</filename>. As the <systemitem
|
||||||
class="username">root</systemitem> user (the instructions below also
|
class="username">root</systemitem> user:
|
||||||
make a backup, so you can easily revert the modification):
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
||||||
@ -278,7 +292,7 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
|||||||
</seg>
|
</seg>
|
||||||
<seg>
|
<seg>
|
||||||
$QT5DIR/qml/SddmComponents,
|
$QT5DIR/qml/SddmComponents,
|
||||||
/usr/share/sddm and
|
/usr/share/sddm, and
|
||||||
/var/lib/sddm
|
/var/lib/sddm
|
||||||
</seg>
|
</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
@ -294,7 +308,7 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
is a display and login manager based on
|
is a display and login manager based on
|
||||||
<application>Qt</application> technologies.
|
<application>Qt</application> libraries.
|
||||||
</para>
|
</para>
|
||||||
<indexterm zone="sddm sddm-prog">
|
<indexterm zone="sddm sddm-prog">
|
||||||
<primary sortas="b-sddm">sddm</primary>
|
<primary sortas="b-sddm">sddm</primary>
|
||||||
@ -307,8 +321,9 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
is an auxiliary process that displays the greeter,
|
is an auxiliary process that displays the greeter,
|
||||||
a graphical user interface to perform the
|
a graphical user interface that performs user
|
||||||
authentication and select the session to run.
|
authentication and initiates the selected window manager
|
||||||
|
or display environment.
|
||||||
</para>
|
</para>
|
||||||
<indexterm zone="sddm sddm-greeter">
|
<indexterm zone="sddm sddm-greeter">
|
||||||
<primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
<primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
||||||
|
Loading…
Reference in New Issue
Block a user