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>
|
||||
<para>August 1st, 2015</para>
|
||||
<itemizedlist>
|
||||
<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
|
||||
poppler-3.4. Fixes
|
||||
<ulink url="&blfs-ticket-root;6777">#6777</ulink>.</para>
|
||||
|
16
x/dm/dm.xml
16
x/dm/dm.xml
@ -22,15 +22,15 @@
|
||||
|
||||
<para>
|
||||
Display Managers are graphical programs used for starting the graphical
|
||||
display (currently, the X server) and loging in a Windows Manager or
|
||||
Desktop Environment.
|
||||
display (currently, the X server) and providing a login capability for
|
||||
a Window Manager or Desktop Environment.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
There are many Display Managers available. Some of the more well
|
||||
known include
|
||||
known include:
|
||||
<application>GDM</application>,
|
||||
<application>KDM</application>,
|
||||
<application>KDM</application> (deprecated),
|
||||
<application>LightDM</application>,
|
||||
<application>LXDM</application>,
|
||||
<application>Slim</application>, and
|
||||
@ -38,7 +38,7 @@
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Between the Desktop Environments available for Linux you find
|
||||
Among the Desktop Environments available for Linux you find:
|
||||
<application>Enlightenment</application>,
|
||||
<application>GNOME</application>,
|
||||
<application>KDE</application>,
|
||||
@ -48,15 +48,15 @@
|
||||
</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
|
||||
(RAM, disk space) required, and the utilities included.
|
||||
(memory and disk space) required, and the utilities included.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
In this chapter, the installation instructions of some Display Managers
|
||||
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>
|
||||
|
||||
</sect1>
|
||||
|
@ -38,7 +38,7 @@
|
||||
the <application>LXDE</application> desktop. It can also be used as an
|
||||
alternative to other Display Managers such as
|
||||
<application>GNOME's</application> <application>GDM</application> or
|
||||
<application>KDE's</application> <application>KDM</application>.
|
||||
<application>LightDM</application>.
|
||||
</para>
|
||||
|
||||
&lfs77_checked;
|
||||
@ -82,7 +82,7 @@
|
||||
<bridgehead renderas="sect4">Required</bridgehead>
|
||||
<para role="required">
|
||||
<xref linkend="gtk2"/>,
|
||||
<xref linkend="iso-codes"/> and
|
||||
<xref linkend="iso-codes"/>, and
|
||||
<xref linkend="librsvg"/> (runtime, for default theme background)
|
||||
</para>
|
||||
|
||||
@ -227,9 +227,10 @@ make</userinput></screen>
|
||||
<title>Configuration Information</title>
|
||||
|
||||
<para>
|
||||
The LXDM daemon configuration <filename>/etc/lxdm/lxdm.conf</filename>
|
||||
file options includes numlock on/off, backgraound image (bg), session,
|
||||
etc. You can set a default session by uncommenting the line:
|
||||
The LXDM daemon configuration file
|
||||
(<filename>/etc/lxdm/lxdm.conf</filename>) specifies options that
|
||||
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>
|
||||
with your session of choice. For <application>GNOME</application>
|
||||
session=/usr/bin/gnome-session. For <application>OPENBOX</application>
|
||||
@ -245,9 +246,9 @@ make</userinput></screen>
|
||||
</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 to your home directory, with the name <filename>.face</filename>.
|
||||
image to your home directory with the name <filename>.face</filename>.
|
||||
</para>
|
||||
|
||||
</sect3>
|
||||
@ -264,32 +265,33 @@ make</userinput></screen>
|
||||
<screen role="root"><userinput>/etc/rc.d/init.d/lxdm start</userinput></screen>
|
||||
|
||||
<para>
|
||||
By definition, X should be executed at runlevel 5, consequently, the
|
||||
same is true for <application>lxdm</application>. However, BLFS default
|
||||
runlevel is 3. Changing to runlevel 5, from the terminal, as
|
||||
<systemitem class="username">root</systemitem> user, makes the
|
||||
<command>lxdm</command> bootscript to be executed, obtaining the
|
||||
By convention, X should be executed at runlevel 5, consequently, the
|
||||
same is true for <application>lxdm</application>. However, the LFS default
|
||||
runlevel is 3. Changing to runlevel 5, from the console (as
|
||||
<systemitem class="username">root</systemitem> user) starts the
|
||||
<command>lxdm</command> bootscript and presents the
|
||||
greeter screen:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>init 5</userinput></screen>
|
||||
|
||||
<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
|
||||
<filename>/etc/inittab</filename>, as <systemitem
|
||||
class="username">root</systemitem> user (the instructions below also
|
||||
make a backup, so you can easily revert the modification):
|
||||
<filename>/etc/inittab</filename>. As the <systemitem
|
||||
class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
||||
sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
One important script, executed after login, is
|
||||
<filename>/etc/lxdm/Xsession</filename>, which we have fixed to fit
|
||||
One important script, executed after login is
|
||||
<filename>/etc/lxdm/Xsession</filename> which we have fixed to fit
|
||||
BLFS specifications.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
</sect3>
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
<para>
|
||||
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>
|
||||
|
||||
&lfs77_checked; &gcc5_checked;
|
||||
@ -106,15 +106,14 @@
|
||||
<title>Installation of SDDM</title>
|
||||
|
||||
<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
|
||||
started. Issue the following commands as the
|
||||
<systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>groupadd -g 64 sddm &&
|
||||
useradd -c "SDDM Daemon Owner" -d /var/lib/sddm -u 64 \
|
||||
-g sddm -s /bin/false sddm</userinput></screen>
|
||||
useradd -c "SDDM Daemon" -d /var/lib/sddm -u 64 -g sddm -s /bin/false sddm</userinput></screen>
|
||||
|
||||
<para>
|
||||
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>
|
||||
<parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
||||
apply higher level of the compiler optimizations.
|
||||
apply additional compiler optimizations.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -162,6 +161,22 @@ install -v -dm755 -o sddm -g sddm /var/lib/sddm</userinput></screen>
|
||||
<sect2 role="configuration">
|
||||
<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>
|
||||
<title>Linux PAM Configuration</title>
|
||||
|
||||
@ -190,6 +205,7 @@ session include system-session
|
||||
|
||||
# End /etc/pam.d/sddm</literal>
|
||||
EOF
|
||||
|
||||
cat > /etc/pam.d/sddm-autologin << "EOF" &&
|
||||
<literal># Begin /etc/pam.d/sddm-autologin
|
||||
|
||||
@ -208,6 +224,7 @@ session include system-session
|
||||
|
||||
# End /etc/pam.d/sddm-autologin</literal>
|
||||
EOF
|
||||
|
||||
cat > /etc/pam.d/sddm-greeter << "EOF"
|
||||
<literal># Begin /etc/pam.d/sddm-greeter
|
||||
|
||||
@ -228,30 +245,27 @@ EOF</userinput></screen>
|
||||
<title>Starting sddm</title>
|
||||
|
||||
<para>
|
||||
You can manually start <command>sddm</command>, e.g, if the bootscript
|
||||
has been installed, by running, as <systemitem
|
||||
class="username">root</systemitem> user:
|
||||
If the sddm bootscript has been installed, start it by running, as
|
||||
<systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
|
||||
|
||||
<para>
|
||||
By definition, X should be executed at runlevel 5, consequently, the
|
||||
same is true for <application>sddm</application>. However, BLFS default
|
||||
runlevel is 3. Changing to runlevel 5, from the terminal, as
|
||||
<systemitem class="username">root</systemitem> user, makes the
|
||||
<command>sddm</command> bootscript to be executed, obtaining the
|
||||
greeter screen:
|
||||
By convertion, X should be executed at runlevel 5, consequently, the
|
||||
same is true for <application>sddm</application>. However, LFS default
|
||||
runlevel is 3. Changing to runlevel 5, from a console terminal, as
|
||||
<systemitem class="username">root</systemitem> user, starts the
|
||||
<command>sddm</command> bootscript, bringing up the greeter screen:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>init 5</userinput></screen>
|
||||
|
||||
<para>
|
||||
In order to permanently set the default to 5, obtaining the
|
||||
<command>sddm</command> greeter screen automatically, you can modify
|
||||
<filename>/etc/inittab</filename>, as <systemitem
|
||||
class="username">root</systemitem> user (the instructions below also
|
||||
make a backup, so you can easily revert the modification):
|
||||
In order to permanently set the default to 5, starting the
|
||||
<command>sddm</command> greeter screen automatically, modify
|
||||
<filename>/etc/inittab</filename>. As the <systemitem
|
||||
class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<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>
|
||||
$QT5DIR/qml/SddmComponents,
|
||||
/usr/share/sddm and
|
||||
/usr/share/sddm, and
|
||||
/var/lib/sddm
|
||||
</seg>
|
||||
</seglistitem>
|
||||
@ -294,7 +308,7 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
||||
<listitem>
|
||||
<para>
|
||||
is a display and login manager based on
|
||||
<application>Qt</application> technologies.
|
||||
<application>Qt</application> libraries.
|
||||
</para>
|
||||
<indexterm zone="sddm sddm-prog">
|
||||
<primary sortas="b-sddm">sddm</primary>
|
||||
@ -307,8 +321,9 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
||||
<listitem>
|
||||
<para>
|
||||
is an auxiliary process that displays the greeter,
|
||||
a graphical user interface to perform the
|
||||
authentication and select the session to run.
|
||||
a graphical user interface that performs user
|
||||
authentication and initiates the selected window manager
|
||||
or display environment.
|
||||
</para>
|
||||
<indexterm zone="sddm sddm-greeter">
|
||||
<primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
||||
|
Loading…
Reference in New Issue
Block a user