Author: bdubbs
Date: Thu Aug 1 12:17:08 2019
New Revision: 21892
Log:
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.
Modified:
trunk/BOOK/general.ent
trunk/BOOK/introduction/welcome/changelog.xml
trunk/BOOK/x/installing/xinit.xml
trunk/BOOK/x/installing/xorg-server.xml
Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent Wed Jul 31 13:25:47 2019 (r21891)
+++ trunk/BOOK/general.ent Thu Aug 1 12:17:08 2019 (r21892)
@@ -1,12 +1,12 @@
<!-- $LastChangedBy$ $Date$ -->
-<!ENTITY day "31"> <!-- Always 2 digits -->
-<!ENTITY month "07"> <!-- Always 2 digits -->
+<!ENTITY day "01"> <!-- Always 2 digits -->
+<!ENTITY month "08"> <!-- Always 2 digits -->
<!ENTITY year "2019">
<!ENTITY copyrightdate "2001-&year;">
<!ENTITY copyholder "The BLFS Development Team">
<!ENTITY version "&year;-&month;-&day;">
-<!ENTITY releasedate "July 31st, &year;">
+<!ENTITY releasedate "August 1st, &year;">
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
<!ENTITY lfs-version "development"> <!-- x.y|development -->
Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml Wed Jul 31 13:25:47
2019 (r21891)
+++ trunk/BOOK/introduction/welcome/changelog.xml Thu Aug 1 12:17:08
2019 (r21892)
@@ -43,7 +43,19 @@
-->
<listitem>
- <para>July 30th, 2019</para>
+ <para>August 1st, 2019</para>
+ <itemizedlist>
+ <listitem>
+ <para>[bdubbs] - 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.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
+ <para>July 31st, 2019</para>
<itemizedlist>
<listitem>
<para>[ken] - Mention Source Code Pro in the TTF/OTF fonts.</para>
Modified: trunk/BOOK/x/installing/xinit.xml
==============================================================================
--- trunk/BOOK/x/installing/xinit.xml Wed Jul 31 13:25:47 2019 (r21891)
+++ trunk/BOOK/x/installing/xinit.xml Thu Aug 1 12:17:08 2019 (r21892)
@@ -81,25 +81,6 @@
<sect2 role="installation">
<title>Installation of xinit</title>
- <para revision='sysv'>First, modify <command>startx</command>, hence the X
- session starts on the first unused virtual terminal, which normally is
- vt7:</para>
- <!--Apparently, this should not be done for systemd systems-->
-
-<screen revision='sysv'><userinput>sed -e '/$serverargs $vtarg/ s/serverargs/:
#&/' \
- -i startx.cpp</userinput></screen>
-
- <note revision='sysv'>
- <para>
- If you have already installed this package without the sed above, there
- is no need to reinstall. Just modify the installed
- <command>startx</command>, issuing, as the <systemitem
- class="username">root</systemitem> user:
- <command>sed -i '/$serverargs $vtarg/ s/serverargs/: #&/'
- $XORG_PREFIX/bin/startx</command>
- </para>
- </note>
-
<para>Install <application>xinit</application> by running the
following commands:</para>
@@ -114,6 +95,34 @@
<screen role="root"><userinput>make install &&
ldconfig</userinput></screen>
+ <note revision='sysv'>
+
+ <para>If starting Xorg from the command line, the default instructions
+ above starts Xorg on the current virtual terminal. It may be convenient
+ to see Xorg and associated application messages on the current virtual
+ terminal, normally tty1, and start the graphical environment on the first
+ available unused virtual terminal, normally tty7. To do this, set the
suid bit
+ on the Xorg application as the <systemitem
+ class="username">root</systemitem> user:</para>
+
+<screen><userinput>chmod u+s $XORG_PREFIX/libexec/Xorg</userinput></screen>
+
+ <para>At this point you can start Xorg on virtual terminal 7 with
+ <command>startx <client arguments> -- vt7</command>. Now
+ you can toggle between tty1 and tty7 with the Ctrl-Alt-F1 and
+ Ctrl-Alt-F7 key combinations.</para>
+
+ <para>To automatically start Xorg on the first available virtual
terminal,
+ modify the <command>startx</command> script as the <systemitem
+ class="username">root</systemitem> user with:</para>
+
+<screen><userinput>sed -e '/$serverargs $vtarg/ s/serverargs/: #&/'
$XORG_PREFIX/bin/startx</userinput></screen>
+
+ <para>After this change, the virtual terminal does not need to be
+ specified on the startx command line.</para>
+
+ </note>
+
</sect2>
<sect2 role="content">
Modified: trunk/BOOK/x/installing/xorg-server.xml
==============================================================================
--- trunk/BOOK/x/installing/xorg-server.xml Wed Jul 31 13:25:47 2019
(r21891)
+++ trunk/BOOK/x/installing/xorg-server.xml Thu Aug 1 12:17:08 2019
(r21892)
@@ -181,16 +181,22 @@
<parameter>--enable-suid-wrapper</parameter>: Build suid-root wrapper for
legacy driver support on rootless xserver systems.
</para>
-<!--
+
<para>
- <option>- -disable-systemd-logind - -enable-install-setuid</option>:
- These switches disable <phrase revision="systemd">systemd-logind</phrase>
- <phrase revision="sysv">elogind</phrase> integration and restore the
- setuid bit to the Xorg executable, allowing Xorg Server to work
- without having the <phrase revision="systemd">systemd</phrase>
+ <option>--disable-systemd-logind</option>:
+ This switch disables <phrase revision="systemd">systemd-logind</phrase>
+ <phrase revision="sysv">elogind</phrase> integration allowing Xorg Server
+ to work without having the <phrase revision="systemd">systemd</phrase>
<phrase revision="elogind">elogind</phrase> PAM module configured.
</para>
--->
+
+ <para>
+ <option>--enable-install-setuid</option>:
+ This switch restores the setuid bit to the Xorg executable allowing Xorg
+ Server to work with a virtual terminal designated on the
+ <command>startx</command> command line.
+ </para>
+
<para revision="sysv">
<command>cat >> /etc/sysconfig/createfiles...</command>: This
command creates the <filename class="directory">/tmp/.ICE-unix</filename>
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page