Ignore:
Timestamp:
08/01/2019 07:17:08 PM (2 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 9.0, 9.1, ken/refactor-virt, lazarus, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
9fffa917
Parents:
d9951ba
Message:

Modify xorg-server and xinit instructions to
avoid using the suid bit on the Xorg application. Add a note
to xinit on why using Xorg with the suid bit set may be useful.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/installing/xinit.xml

    rd9951ba r27373006  
    8282    <title>Installation of xinit</title>
    8383
    84     <para revision='sysv'>First, modify <command>startx</command>, hence the X
    85     session starts on the first unused virtual terminal, which normally is
    86     vt7:</para>
    87     <!--Apparently, this should not be done for systemd systems-->
    88 
    89 <screen revision='sysv'><userinput>sed -e '/$serverargs $vtarg/ s/serverargs/: #&amp;/' \
    90     -i startx.cpp</userinput></screen>
    91 
    92     <note revision='sysv'>
    93       <para>
    94         If you have already installed this package without the sed above, there
    95         is no need to reinstall. Just modify the installed
    96         <command>startx</command>, issuing, as the <systemitem
    97         class="username">root</systemitem> user:
    98         <command>sed -i '/$serverargs $vtarg/ s/serverargs/: #&amp;/'
    99         $XORG_PREFIX/bin/startx</command>
    100       </para>
    101     </note>
    102 
    10384    <para>Install <application>xinit</application> by running the
    10485    following commands:</para>
     
    11495<screen role="root"><userinput>make install &amp;&amp;
    11596ldconfig</userinput></screen>
     97
     98    <note revision='sysv'>
     99
     100      <para>If starting Xorg from the command line, the default instructions
     101      above starts Xorg on the current virtual terminal.  It may be convenient
     102      to see Xorg and associated application messages on the current virtual
     103      terminal, normally tty1, and start the graphical environment on the first
     104      available unused virtual terminal, normally tty7.  To do this, set the suid bit
     105      on the Xorg application as the  <systemitem
     106      class="username">root</systemitem> user:</para>
     107     
     108<screen><userinput>chmod u+s $XORG_PREFIX/libexec/Xorg</userinput></screen>
     109
     110      <para>At this point you can start Xorg on virtual terminal 7 with
     111      <command>startx &lt;client arguments&gt; -- vt7</command>.  Now
     112      you can toggle between tty1 and tty7 with the Ctrl-Alt-F1 and
     113      Ctrl-Alt-F7 key combinations.</para>
     114     
     115      <para>To automatically start Xorg on the first available virtual terminal,
     116      modify the <command>startx</command> script as the  <systemitem
     117      class="username">root</systemitem> user with:</para>
     118     
     119<screen><userinput>sed -e '/$serverargs $vtarg/ s/serverargs/: #&amp;/' $XORG_PREFIX/bin/startx</userinput></screen>
     120
     121      <para>After this change, the virtual terminal does not need to be
     122      specified on the startx command line.</para>
     123
     124    </note>
    116125
    117126  </sect2>
Note: See TracChangeset for help on using the changeset viewer.