Changeset eca7a58 for x


Ignore:
Timestamp:
09/25/2015 01:11:15 AM (9 years ago)
Author:
Fernando de Oliveira <fernando@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
c81d34a
Parents:
1c2bec77
Message:
  • Fix starting X with startx (from xinit) and sddm (with consolekit2 and upowerd) and somwhat related fixes

◦ sddm-0.12.0: fixes for upauer, Consolekit2, DBUS_CONFIG_FILENAME,

example-config, nolisten tcp, numlock, and setxkbmap.

◦ sddm bootscript: remove upowerd parts.
◦ xinit-1.3.4: Fix startx to use the first available virtual terminal
◦ ConsoleKit2-1.0.0: Fix docdir and xinitrc.d script 90-consolekit.sh

name and place

◦ lxde-common-0.99.0: Fix lxde session start
◦ LXQt Desktop Final Instructions: Fix lxde session start
◦ xfce4-session-4.12.1: Fix lxde session start
◦ Starting KDE4: Fix lxde session start

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16461 af4574ff-66df-0310-9fd7-8a98e5e911e0

Location:
x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • x/dm/sddm.xml

    r1c2bec77 reca7a58  
    122122
    123123    <para>
     124      First, fix the application to start <command>upowerd</command>,
     125      if necessary, and after login, start the session with
     126      <command>ck-launch-session</command>:
     127    </para>
     128
     129<screen><userinput>sed -e '/UPOWER_SERVICE)/ s:^://:' \
     130    -i src/daemon/PowerManager.cpp &amp;&amp;
     131
     132sed -e 's/eval exec/&amp; ck-launch-session /' \
     133    -i data/scripts/Xsession</userinput></screen>
     134
     135    <para>
    124136      Install <application>SDDM</application> by running the following
    125137      commands:
     
    132144      -DCMAKE_BUILD_TYPE=Release  \
    133145      -DENABLE_JOURNALD=OFF       \
     146      -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
    134147      -Wno-dev .. &amp;&amp;
    135148make</userinput></screen>
     
    159172      <parameter>-DENABLE_JOURNALD=OFF</parameter>: This switch is used because
    160173      BLFS does not support <application>systemd</application>.
     174    </para>
     175
     176    <para>
     177      <parameter>-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf</parameter>:
     178      This switch is used for safety reason: other DMs already use
     179      <filename>org.freedesktop.DisplayManager.conf</filename>. Verify in your
     180      system taht this is not the case, if you wish to remove it.
    161181    </para>
    162182
     
    186206      <para>
    187207        This file is not installed with the build instructions, and
    188         default values are used by sddm. In order to generate the default
    189         <filename>/etc/sddm.conf</filename>, issue, as the <systemitem
    190         class="username">root</systemitem> user:
    191       </para>
    192 
    193 <screen role="root"><userinput>sddm --example-config > /etc/sddm.conf</userinput></screen>
    194 
    195       <para>
    196         You need to edit this file, if your system has any unconventional
    197         characteristics. For example, if Xorg is installed in /opt, use your
    198         preferred editor as the <systemitem class="username">root</systemitem>
    199         user to replace the <emphasis>ServerPath</emphasis> and
    200         <emphasis>XauthPath</emphasis> default paths by
    201         <emphasis>/opt/xorg/bin/</emphasis>. Or, as the <systemitem
     208        default values are used by sddm. In order to generate the example
     209        <filename>sddm.example.conf</filename>, issue:
     210      </para>
     211
     212<screen><userinput>sddm --example-config > sddm.example.conf</userinput></screen>
     213
     214      <para>
     215        We repeat, this command generates an example config file.  If there is
     216        an already previously installed <filename>/etc/sddm.conf</filename>, it
     217        will generate a replica. If there is no yet the
     218        <filename>/etc/sddm.conf</filename> file, as the
     219        <systemitem class="username">root</systemitem> user, copy the example
     220        file to <filename>/etc/sddm.conf</filename>:
     221      </para>
     222
     223<screen role="root"><userinput>cp -v sddm.example.conf /etc/sddm.conf</userinput></screen>
     224
     225      <para>
     226        Normally, you want to edit this file. For example, if Xorg is installed
     227        in /opt, use your preferred editor as the
     228        <systemitem class="username">root</systemitem>
     229        user to replace the <emphasis>XauthPath</emphasis> default path by
     230        <emphasis>/usr/bin/xauth</emphasis>. Or, as the <systemitem
    202231        class="username">root</systemitem> user, issue
    203232      </para>
    204233
    205234<screen role="root"><userinput>sed -e '/ServerPath/ s|usr|opt/xorg|' \
    206     -e '/XauthPath/  s|usr|opt/xorg|' \
    207235    -i.orig /etc/sddm.conf</userinput></screen>
    208236
     
    210238        This command will do the substitution and create a copy of the original
    211239        file with name <filename>/etc/sddm.conf.orig</filename>.
     240      </para>
     241
     242      <para>
     243        From now on, we will describe how to modify configurations using sed,
     244        but of course you may rather use your preferred editor as the
     245        <systemitem class="username">root</systemitem>, instead. You generally
     246        want the server option that comes in sddm.example.conf, for security
     247        reasons.  Unless you want a remote machine to use the local X server,
     248        in which case, as the <systemitem class="username">root</systemitem>
     249        user, issue:
     250      </para>
     251
     252<screen role="root"><userinput>sed -e 's/-nolisten tcp//'\
     253    -i /etc/sddm.conf</userinput></screen>
     254
     255      <para>
     256        Desktop (Notebook) users, normally wish the Num Lock key on (off).  For
     257        that, as the <systemitem
     258        class="username">root</systemitem> user, issue:
     259      </para>
     260
     261<screen role="root"><userinput>sed -e 's/\"none\"/\"on\"/' \
     262    -i /etc/sddm.conf</userinput></screen>
     263
     264      <para>
     265        That was for Desktop users. For Notebook users,
     266        replace \"on\" by \"off\", in the command above.
    212267      </para>
    213268
     
    378433      </para>
    379434
     435      <note>
     436        <para>
     437          In the next couple of paragraphs, due to a problem with sddm-greeter,
     438          we mention how to define the keyboard used there. Notice that this is
     439          also the keyboard that will be used in the X session, unless there is
     440          a configuration in the Desktop Environment or in the Window Manager
     441          overriding it, afterwards.
     442        </para>
     443      </note>
     444
    380445      <para>
    381446        Keyboard selection: the greeter shows a double question mark or the
     
    391456
    392457      <para>
    393         E.g. <command>echo 'setxkbmap "gb,br,us"' &gt;&gt;
    394         /usr/share/sddm/scripts/Xsetup</command>
     458        E.g. <command>echo 'setxkbmap "fr,gb,br,us"' &gt;&gt;
     459        /usr/share/sddm/scripts/Xsetup</command>. You can be accurate defining
     460        the keyboard(s), for example: <command>echo 'setxkbmap -model pc105
     461        -layout br,us -variant abnt2,dvorak -keycodes evdev' &gt;&gt;
     462        /usr/share/sddm/scripts/Xsetup</command>. See man setxkbmap.
    395463      </para>
    396464
  • x/installing/xinit.xml

    r1c2bec77 reca7a58  
    7373    <title>Installation of xinit</title>
    7474
     75    <para>First, modify <command>startx</command>, hence the X session starts on
     76    the first unused virtual terminal, which normally is vt7:</para>
     77    <!--Apparently, this should not be done for systemd systems-->
     78
     79<screen><userinput>sed -e '/$serverargs $vtarg/ s/serverargs/: #&amp;/' \
     80    -i startx.cpp</userinput></screen>
     81
    7582    <para>Install <application>xinit</application> by running the
    7683    following commands:</para>
Note: See TracChangeset for help on using the changeset viewer.