Clanup sddm

This commit is contained in:
Bruce Dubbs 2023-07-14 20:01:02 -05:00
parent ad65d19678
commit f2cb575d78
2 changed files with 46 additions and 54 deletions

View File

@ -8,14 +8,13 @@
<!ENTITY sddm-download-ftp " "> <!ENTITY sddm-download-ftp " ">
<!ENTITY sddm-md5sum "7af67d5fb767639861d35c80eb4e1191"> <!ENTITY sddm-md5sum "7af67d5fb767639861d35c80eb4e1191">
<!ENTITY sddm-size "3.4 MB"> <!ENTITY sddm-size "3.4 MB">
<!ENTITY sddm-buildsize "20 MB"> <!ENTITY sddm-buildsize "22 MB">
<!ENTITY sddm-time "0.6 SBU "> <!ENTITY sddm-time "0.3 SBU (Using parallelism=4">
]> ]>
<sect1 id="sddm" xreflabel="sddm-&sddm-version;"> <sect1 id="sddm" xreflabel="sddm-&sddm-version;">
<?dbhtml filename="sddm.html"?> <?dbhtml filename="sddm.html"?>
<title>sddm-&sddm-version;</title> <title>sddm-&sddm-version;</title>
<indexterm zone="sddm"> <indexterm zone="sddm">
@ -144,9 +143,9 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_JOURNALD=OFF \ -DENABLE_JOURNALD=OFF \
-DNO_SYSTEMD=ON \ -DNO_SYSTEMD=ON \
-DRUNTIME_DIR=/run/sddm \ -DRUNTIME_DIR=/run/sddm \
-DDATA_INSTALL_DIR=/usr/share/sddm \
-DUSE_ELOGIND=ON \ -DUSE_ELOGIND=ON \
-DBUILD_MAN_PAGES=ON \ -DBUILD_MAN_PAGES=ON \
-DDATA_INSTALL_DIR=/usr/share/sddm \
-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \ -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
.. &amp;&amp; .. &amp;&amp;
make</userinput></screen> make</userinput></screen>
@ -208,41 +207,22 @@ install -v -dm755 -o sddm -g sddm /var/lib/sddm
<title>Config Files</title> <title>Config Files</title>
<para> <para>
/usr/lib/sddm/sddm.conf.d/*, /etc/sddm.conf.d/*, and /etc/sddm.conf /etc/sddm.config
</para> </para>
<indexterm zone="sddm sddm-config">
<primary sortas="e-usr-lib-sddm.conf.d">/usr/lib/sddm/sddm.conf.d</primary>
</indexterm>
<indexterm zone="sddm sddm-config">
<primary sortas="e-sddm.conf.d">/etc/sddm.conf.d</primary>
</indexterm>
<indexterm zone="sddm sddm-config"> <indexterm zone="sddm sddm-config">
<primary sortas="e-sddm.conf">/etc/sddm.conf</primary> <primary sortas="e-sddm.conf">/etc/sddm.conf</primary>
</indexterm> </indexterm>
<para>
Only <filename>/etc/sddm.conf</filename> is installed, but the
configuration files are read in the following order: all files in
<filename class="directory">/usr/lib/sddm/sddm.conf.d</filename> in
alphabetical order, then all files in <filename class="directory">
/etc/sddm.conf.d</filename> in alphabetical order, and finally
<filename>/etc/sddm.conf</filename>.
</para>
<para> <para>
Normally, you want to edit this file. For example, if Xorg is installed Normally, you want to edit this file. For example, if Xorg is installed
in /opt, use your preferred editor as the <systemitem in /opt, use your preferred editor as the root; user to replace the
class="username">root</systemitem> user to replace the default default <emphasis>XauthPath</emphasis> value by
<emphasis>XauthPath</emphasis> value by <emphasis>/opt/xorg/bin/xauth</emphasis>. Or, as the &root; user,
<emphasis>/opt/xorg/bin/xauth</emphasis>. Or, as the <systemitem issue:
class="username">root</systemitem> user, issue:
</para> </para>
<screen role="root"><userinput>sed -e '/ServerPath/ s|usr|opt/xorg|' \ <screen role="root"><userinput>sed -i.orig '/ServerPath/ s|usr|opt/xorg|' /etc/sddm.conf</userinput></screen>
-i.orig /etc/sddm.conf</userinput></screen>
<para> <para>
This command will do the substitution and create a copy of the original This command will do the substitution and create a copy of the original
@ -251,31 +231,28 @@ install -v -dm755 -o sddm -g sddm /var/lib/sddm
<para> <para>
From now on, we will describe how to modify configurations using sed. From now on, we will describe how to modify configurations using sed.
Of course, you may instead use your preferred editor as the <systemitem Of course, you may instead use your preferred editor as the &root;
class="username">root</systemitem> user. user.
</para> </para>
<para> <para>
For security reasons, you normally want the default For security reasons, you normally want the default
<emphasis>ServerArguments=-nolisten tcp</emphasis>, unless a remote <emphasis>ServerArguments=-nolisten tcp</emphasis>, unless a remote
machine needs access to the local X server. In that case, as the machine needs access to the local X server. In that case, as the
<systemitem class="username">root</systemitem> user, issue: &root; user, issue:
</para> </para>
<screen role="root"><userinput>sed -e 's/-nolisten tcp//'\ <screen role="root"><userinput>sed -i 's/-nolisten tcp//' /etc/sddm.conf</userinput></screen>
-i /etc/sddm.conf</userinput></screen>
<para> <para>
Desktop (Notebook) users, normally wish the Num Lock key on (off). For Desktop (Notebook) users, normally wish the Num Lock key on (off). For
that, as the <systemitem that, as the &root;, issue:
class="username">root</systemitem> user, issue:
</para> </para>
<screen role="root"><userinput>sed -e 's/\"none\"/\"on\"/' \ <screen role="root"><userinput>sed -i 's/none/on/' /etc/sddm.conf</userinput></screen>
-i /etc/sddm.conf</userinput></screen>
<para> <para>
for Desktop users. For Notebook users, replace \"on\" by \"off\", for Desktop users. For Notebook users, replace /on/ by /off/
in the command above. in the command above.
</para> </para>
@ -285,7 +262,7 @@ install -v -dm755 -o sddm -g sddm /var/lib/sddm
<title>Boot Script</title> <title>Boot Script</title>
<para> <para>
Install the <filename revision="sysv">/etc/rc.d/init.d/sddm</filename> Install the <filename revision="sysv">/etc/rc.d/init.d/xdm</filename>
init script from the <xref linkend="bootscripts" revision="sysv"/> init script from the <xref linkend="bootscripts" revision="sysv"/>
<xref linkend="systemd-units" revision="systemd"/> package. <xref linkend="systemd-units" revision="systemd"/> package.
</para> </para>
@ -303,6 +280,13 @@ install -v -dm755 -o sddm -g sddm /var/lib/sddm
<sect3> <sect3>
<title>Linux PAM Configuration</title> <title>Linux PAM Configuration</title>
<note>
<para>
The install procedure above installed a set of PAM configuration
files. These procedures overwrite them.
</para>
</note>
<para> <para>
If you have built <application>sddm</application> If you have built <application>sddm</application>
with <application>Linux PAM</application> support, with <application>Linux PAM</application> support,
@ -419,10 +403,10 @@ EOF</userinput></screen>
<para> <para>
If the sddm bootscript has been installed, start sddm by running, as the If the sddm bootscript has been installed, start sddm by running, as the
<systemitem class="username">root</systemitem> user: &root; 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/xdn start</userinput></screen>
<para> <para>
By convention, X should be executed at runlevel 5, consequently, the By convention, X should be executed at runlevel 5, consequently, the
@ -450,13 +434,15 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
<title>Available Sessions</title> <title>Available Sessions</title>
<para> <para>
The greeter offers a list of available sessions,
depending on the Window Managers and Desktop Environments installed. The The greeter offers a list of available sessions, depending on the
list includes sessions which have a corresponding Window Managers and Desktop Environments installed. The list includes
<filename>.desktop</filename> file installed under sessions which have a corresponding <filename>.desktop</filename> file
<filename class="directory">/usr/share/xsessions</filename>. Most of the installed under
Window Managers and Desktop Environments automatically provide those <filename class="directory">/usr/share/xsessions</filename>. Most of
files, but if necessary, you may include a custom one. the Window Managers and Desktop Environments automatically provide
those files, but if necessary, you may include a custom one.
</para> </para>
</sect3> </sect3>
@ -485,7 +471,7 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
<screen><userinput>sddm-greeter --test-mode --theme <replaceable>&lt;theme path&gt;</replaceable></userinput></screen> <screen><userinput>sddm-greeter --test-mode --theme <replaceable>&lt;theme path&gt;</replaceable></userinput></screen>
</sect3> </sect3>
<!--
<sect3 id="sddm-Issues"> <sect3 id="sddm-Issues">
<title>Known Issues</title> <title>Known Issues</title>
@ -543,7 +529,7 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
</para> </para>
</sect3> </sect3>
-->
</sect2> </sect2>
<sect2 role="content"> <sect2 role="content">
@ -556,7 +542,8 @@ sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
<seglistitem> <seglistitem>
<seg> <seg>
sddm and sddm-greeter sddm and
sddm-greeter
</seg> </seg>
<seg> <seg>
None None

View File

@ -104,8 +104,13 @@
<para> <para>
There are a few extra components needed for different packages in BLFS. There are a few extra components needed for different packages in BLFS.
These are qtimageformats, qtlocation, qtwebchannel, qtdoc, and These are
qtmultimedia. Only those components specified for a specific <emphasis role="bold">qtimageformats</emphasis>,
<emphasis role="bold">qtlocation</emphasis>,
<emphasis role="bold">qtwebchannel</emphasis>,
<emphasis role="bold">qtdoc</emphasis>, and
<emphasis role="bold">qtmultimedia</emphasis>.
Only those components specified for a specific
package are needed. You only need to build the relevant component(s). package are needed. You only need to build the relevant component(s).
</para> </para>