Changeset e123f715


Ignore:
Timestamp:
01/23/2011 06:24:18 AM (13 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
804fd46
Parents:
d28b5ef
Message:

Added specific instructions for Xorg environmentsetup if using an alternate installation prefix.

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    rd28b5ef re123f715  
    8888          <para>[dj] - Removed old Xorg configuration and setup pages and added
    8989          an initial combined configuration page.</para>
     90        </listitem>
     91        <listitem>
     92          <para>[dj] - Added specific instructions for Xorg environmentsetup if
     93          using an alternate installation prefix.</para>
    9094        </listitem>
    9195      </itemizedlist>
  • x/installing/xorg7.xml

    rd28b5ef re123f715  
    144144    --mandir=$XORG_PREFIX/share/man --localstatedir=/var"</userinput></screen>
    145145
    146     <note>
    147       <para>Make sure that you use bash when setting these variables as the
    148       book commands assume the use of bash, and use bash specific syntax. Also
    149       be sure to add these variables to your personal or system-wide profile as
    150       they are used throughout this book. See
    151       <xref linkend="postlfs-config-profile"/> for more information.</para>
    152     </note>
    153 
    154     <para>If you've decided to use an alternate prefix, be sure to add
    155     <filename class="directory">
    156     $XORG_PREFIX/bin</filename> to your
     146    <para>Create an <filename>/etc/profile.d/xorg.sh</filename> configuration
     147    file containing these variables as the
     148    <systemitem class="username">root</systemitem> user:</para>
     149
     150<screen><userinput role="root">cat &gt; /etc/profile.d/xorg.sh &lt;&lt; "EOF" &amp;&amp;
     151XORG_PREFIX="<replaceable>&lt;PREFIX&gt;</replaceable>"
     152XORG_CONFIG="--prefix=$XORG_PREFIX \
     153             --sysconfdir=/etc \
     154             --mandir=$XORG_PREFIX/share/man \
     155             --localstatedir=/var"
     156export XORG_PREFIX XORG_CONFIG
     157EOF
     158chmod 644 /etc/profile.d/xorg.sh</userinput></screen>
     159
     160    <para>If you've decided to use the standard
     161    <filename class="directory">/usr</filename> prefix, you can omit the
     162    remainder of this page. Otherwise, be sure to add
     163    <filename class="directory">$XORG_PREFIX/bin</filename> to your
    157164    <envar>PATH</envar> environment variable, and <filename class="directory">
    158165    $XORG_PREFIX/lib/pkgconfig</filename> and <filename class="directory">
    159166    $XORG_PREFIX/share/pkgconfig</filename>
    160     to your <envar>PKG_CONFIG_PATH</envar> variable. For detailed instructions,
    161     see <xref linkend="postlfs-config-profile"/>. You should also add
    162     <filename class="directory">
    163     $XORG_PREFIX/lib</filename> to the
    164     <filename>/etc/ld.so.conf</filename> file. Finally, you should modify
     167    to your <envar>PKG_CONFIG_PATH</envar> variable. Issue the following
     168    commands as the <systemitem class="username">root</systemitem> user:</para>
     169
     170<screen><userinput role="root">cat &gt;&gt; /etc/profile.d/xorg.sh &lt;&lt; "EOF"
     171
     172pathappend $XORG_PREFIX/bin PATH
     173pathappend $XORG_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
     174pathappend $XORG_PREFIX/share/pkgconfig PKG_CONFIG_PATH
     175export PATH PKG_CONFIG_PATH</userinput></screen>
     176
     177    <para>You should also add
     178    <filename class="directory"> $XORG_PREFIX/lib</filename> to the
     179    <filename>/etc/ld.so.conf</filename> file. Again, as the
     180    <systemitem class="username">root</systemitem> user, issue the following
     181    command:</para>
     182
     183<screen><userinput role="root">echo "${XORG_PREFIX}/lib" >> /etc/ld.so.conf</userinput></screen>
     184
     185    <para>You should also modify
    165186    <filename>/etc/man_db.conf</filename>, adding appropriate
    166187    MANDATORY_MANPATH, MANPATH_MAP, and MANDB_MAP entries following the
    167     examples for <filename class="directory">/usr/X11R6</filename>.</para>
    168 
     188    examples for <filename class="directory">/usr/X11R6</filename>. Issue the
     189    following command as the <systemitem class="username">root</systemitem>
     190    user:</para>
     191
     192<screen><userinput role="root">sed 's@/usr/X11R6@<replaceable>&lt;PREFIX&gt;</replaceable>@g' -i /etc/man_db.conf</userinput></screen>
     193
     194    <para>Finally, if building on x86_64, you will need to create the
     195    <filename class="directory">$XORG_PREFIX/lib</filename> directory and the
     196    <filename>$XORG_PREFIX/lib64</filename> symlink. Again, as the
     197    <systemitem class="username">root</systemitem> user, issue the following
     198    commands:</para>
     199
     200<screen><userinput role="root">install -v -m755 -d $XORG_PREFIX &amp;&amp;
     201install -v -m755 -d $XORG_PREFIX/lib &amp;&amp;
     202ln -s lib $XORG_PREFIX/lib64</userinput></screen>
     203   
    169204  </sect2>
    170205
Note: See TracChangeset for help on using the changeset viewer.