Changeset fde7a06


Ignore:
Timestamp:
10/29/2014 11:41:19 PM (9 years ago)
Author:
Krejzi <krejzi@…>
Branches:
krejzi/svn
Children:
533ebfd
Parents:
3f05421
Message:

Printing section.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/krejzi@14794 af4574ff-66df-0310-9fd7-8a98e5e911e0

Files:
3 edited
3 moved

Legend:

Unmodified
Added
Removed
  • introduction/welcome/changelog.xml

    r3f05421 rfde7a06  
    5151        </listitem>
    5252        <listitem>
     53          <para>[krejzi] - Changed CUPS, CUPS-Filters and Gutenprint instructions to work on systemd setups.</para>
     54        </listitem>
     55        <listitem>
    5356          <para>[krejzi] - Changed ALSA-Utils instructions to work on systemd setups.</para>
    5457        </listitem>
  • pst/printing/cups-filters-systemd.xml

    r3f05421 rfde7a06  
    66
    77  <!ENTITY cups-filters-download-http
    8   "http://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz">
     8           "http://www.openprinting.org/download/cups-filters/cups-filters-&cups-filters-version;.tar.xz">
    99  <!ENTITY cups-filters-download-ftp  " ">
    1010  <!ENTITY cups-filters-md5sum        "f16a422bf3135e90b83f969c13a259cf">
     
    114114  <sect2 role="installation">
    115115    <title>Installation of CUPS Filters</title>
     116
     117    <para>
     118      First, fix the systemd unit file to work with
     119      <application>CUPS</application> 2.0 and later:
     120    </para>
     121
     122<screen><userinput>sed -i "s:cups.service:org.cups.cupsd.service:g" utils/cups-browsed.service</userinput></screen>
    116123
    117124    <para>
     
    140147<screen role="root"><userinput>make install</userinput></screen>
    141148
     149    <para>
     150      Install the systemd unit by running the following command as the
     151      <systemitem class="username">root</systemitem> user:
     152    </para>
     153
     154<screen role="root"><userinput>install -v -m644 utils/cups-browsed.service /lib/systemd/system/cups-browsed.service</userinput></screen>
     155
    142156  </sect2>
    143157
     
    183197  </sect2>
    184198
    185 <!-- TODO: Write a bootscript for cups-browsed -->
     199  <sect2 role="configuration">
     200    <title>Configuring Cups Filters</title>
     201
     202    <sect3 id="cups-filters-init">
     203      <title>Systemd Units</title>
     204
     205      <para>
     206        To start the <command>cups-browsed</command> daemon at boot, enable
     207        the previously installed systemd unit by running the following command
     208        as the <systemitem class="username">root</systemitem> user:
     209      </para>
     210
     211      <indexterm zone="cups-filters cups-filters-init">
     212        <primary sortas="f-cups-browsed">cups-browsed</primary>
     213      </indexterm>
     214
     215<screen role="root"><userinput>systemctl enable cups-browsed</userinput></screen>
     216
     217    </sect3>
     218
     219  </sect2>
    186220
    187221  <sect2 role="content">
  • pst/printing/cups-systemd.xml

    r3f05421 rfde7a06  
    7878    <para role="recommended">
    7979      <xref linkend="colord"/>,
    80       <xref linkend="dbus"/>, and
     80      <xref linkend="dbus"/> and
    8181      <xref linkend="libusb"/>
    8282    </para>
     
    9191      <xref linkend="openjdk"/>,
    9292      <xref linkend="php"/>,
    93       <xref linkend="python2"/>, and
     93      <xref linkend="python2"/> and
    9494      <xref linkend="xdg-utils"/>
    95      
    96     </para>
    97 
    98     <bridgehead renderas="sect4">Required (Postinstall)</bridgehead>
    99     <para role="required runtime">
     95    </para>
     96
     97    <bridgehead renderas="sect4">Required (Runtime)</bridgehead>
     98    <para role="optional">
    10099      <xref linkend="cups-filters"/>
    101100    </para>
    102101
    103     <bridgehead renderas="sect4">Optional (Postinstall)</bridgehead>
    104     <para role="optional runtime">
     102    <bridgehead renderas="sect4">Optional (Runtime)</bridgehead>
     103    <para role="optional">
     104      <ulink url="https://www.openprinting.org/download/foomatic/">Foomatic</ulink>,
    105105      <xref linkend="gutenprint"/> and
    106       <ulink url="http://hplipopensource.com/hplip-web/index.html">hplip</ulink> (HP printers)
    107     </para>
    108      
     106      <ulink url="http://hplipopensource.com/hplip-web/index.html">HPLIP</ulink> (HP printers)
     107    </para>
     108
    109109    <para condition="html" role="usernotes">User Notes:
    110110      <ulink url="&blfs-wiki;/cups"/>
     
    211211    </para>
    212212
    213 <screen><userinput>sed -i 's:555:755:g;s:444:644:g' Makedefs.in           &amp;&amp;
    214 sed -i '/MAN.*.EXT/s:.gz::g' \
    215        configure config-scripts/cups-manpages.m4       &amp;&amp;
    216 sed -i '/LIBGCRYPTCONFIG/d' config-scripts/cups-ssl.m4 &amp;&amp;
     213<screen><userinput>sed -i "s:555:755:g;s:444:644:g" Makedefs.in                 &amp;&amp;
     214sed -i "/MAN.*.EXT/s:.gz::g" config-scripts/cups-manpages.m4 &amp;&amp;
     215sed -i "/LIBGCRYPTCONFIG/d" config-scripts/cups-ssl.m4       &amp;&amp;
    217216
    218217aclocal  -I config-scripts &amp;&amp;
     
    220219
    221220./configure --libdir=/usr/lib            \
    222             --disable-systemd            \
    223221            --with-rcdir=/tmp/cupsinit   \
    224222            --with-system-groups=lpadmin \
     
    240238<screen role="root"><userinput>make install &amp;&amp;
    241239rm -rf /tmp/cupsinit &amp;&amp;
    242 ln -svnf ../cups/doc-&cups-version; /usr/share/doc/cups-&cups-version;</userinput></screen>
     240ln -sfv ../cups/doc-&cups-version; /usr/share/doc/cups-&cups-version;</userinput></screen>
    243241
    244242    <para>
     
    262260      <para>
    263261        If you reinstall or update <application>Cups</application>, commands
    264         above break <xref linkend="cups-filters"/>, which needs, therefore,
    265         to be reinstalled.</para>
     262        above will break <xref linkend="cups-filters"/>, so it needs to be
     263        reinstalled.
     264      </para>
    266265    </note>
    267266
     
    275274
    276275    <para>
    277       <command>sed ... Makedefs.in</command>: Fix files and directories
    278       permissions.
    279     </para>
    280 
    281     <para>
    282       <command>sed ... cups-manpages.m4</command>: This sed prevents
    283       compression of the man pages by default.
    284     </para>
    285 
    286     <para>
    287       <command>sed ... cups-ssl.m4</command>: Prevent
    288       <command>configure</command> script from searching
     276      <command>sed -i ... Makedefs.in</command>: This sed fixes
     277      permissions of the installed files and directories.
     278    </para>
     279
     280    <para>
     281      <command>sed -i ... cups-manpages.m4</command>: This sed
     282      prevents compression of the man pages by default.
     283    </para>
     284
     285    <para>
     286      <command>sed -i ... cups-ssl.m4</command>: This sed prevents
     287      <command>configure</command> from searching for
    289288      <command>libgcrypt-config</command>, because
    290       <application>libgcrypt</application> is not used anywere else in the
     289      <application>libgcrypt</application> is not required by the
    291290      package.
    292     </para>
    293 
    294     <para>
    295       <parameter>--disable-systemd</parameter>: Systemd is not supported by
    296       BLFS.
    297291    </para>
    298292
     
    341335
    342336      <para>
    343         Normally, printers are set up via a web browser.  The
    344         <application>Cups</application> server will normally connect via
    345         the url http://localhost:631.  From there printers, print
    346         jobs, and the server configuration can be set up and managed.
    347         Remote system administration can also be set up.  Configuration
    348         can also be done from the command line via the
    349         <command>lpadmin</command>, <command>lpoptions</command>,
    350         and <command>lpstat</command> commands.
     337        The <application>Cups</application> web interface can be accessed
     338        via <ulink url="http://localhost:631"/>. From there, printers
     339        and print jobs can be managed, and the server configuration
     340        can be changed. Configuration can also be done from the command
     341        line using the  <command>lpadmin</command>,
     342        <command>lpoptions</command> and <command>lpstat</command>
     343        commands.
    351344      </para>
    352345
     
    402395
    403396    <sect3 id="cups-init">
    404       <title>Boot Script</title>
     397      <title>Systemd Units</title>
    405398
    406399      <para>
    407         If you want the <application>Cups</application> print service to start
    408         automatically when the system is booted, install the init
    409         script included in the <xref linkend="bootscripts"/>
    410         package:
     400        To start the <command>cupsd</command> daemon when something tries to
     401        access it, enable the previously installed systemd units by running
     402        the following command as the
     403        <systemitem class="username">root</systemitem> user:
    411404      </para>
    412405
     
    415408      </indexterm>
    416409
    417 <screen role="root"><userinput>make install-cups</userinput></screen>
     410<screen role="root"><userinput>systemctl enable org.cups.cupsd</userinput></screen>
    418411
    419412    </sect3>
     
    435428          cupstestppd, ippfind, ipptool, lp, lpadmin, lpc, lpinfo, lpmove,
    436429          lpoptions, lpq, lpr, lprm, lpstat, ppdc, ppdhtml, ppdi, ppdmerge,
    437           ppdpo, and reject
     430          ppdpo and reject
    438431        </seg>
    439432        <seg>
    440433          libcupscgi.so, libcupsimage.so, libcupsmime.so,
    441           libcupsppdc.so, and libcups.so
     434          libcupsppdc.so and libcups.so
    442435        </seg>
    443436        <seg>
     
    449442          /var/cache/cups,
    450443          /var/log/cups,
    451           /var/run/cups, and
     444          /var/run/cups and
    452445          /var/spool/cups
    453446        </seg>
  • pst/printing/gs.xml

    r3f05421 rfde7a06  
    7979      <title>Standard Fonts</title>
    8080      <listitem>
    81         <para>Download (HTTP): <ulink url="&gs-standard-fonts-download;"/></para>
     81        <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
    8282      </listitem>
    8383      <listitem>
     
    120120      suggested font),
    121121      <xref linkend="gtk2"/>,
     122      <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found),
    122123      <xref linkend="libidn"/>,
    123       <xref linkend="libpaper"/>,
    124       <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found), and
     124      <xref linkend="libpaper"/>, and
    125125      <xref linkend="x-window-system"/>
    126126    </para>
     
    156156      copies of <application>expat</application>,
    157157      <application>freetype</application>, <application>lcms2</application>,
    158       <application>libjpeg</application>, and <application>libpng</application>:
     158      <application>libjpeg</application>, <application>libpng</application>
     159      and <application>zlib</application>:
    159160    </para>
    160161
    161162<screen><userinput>sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' configure.ac configure &amp;&amp;
    162 rm -rf expat freetype lcms2 jpeg libpng</userinput></screen>
     163rm -rf expat freetype lcms2 jpeg libpng zlib</userinput></screen>
    163164<!--
    164165    <note>
     
    174175    <para>Compile <application>Ghostscript</application>:</para>
    175176
    176 <screen><userinput>rm -rf zlib &amp;&amp;
    177 ./configure --prefix=/usr --disable-compile-inits \
    178  --enable-dynamic --with-system-libtiff &amp;&amp;
     177<screen><userinput>./configure --prefix=/usr           \
     178            --disable-compile-inits \
     179            --enable-dynamic        \
     180            --with-system-libtiff &amp;&amp;
    179181make</userinput></screen>
    180182
     
    210212    <para>If you want the shared library too:</para>
    211213
    212 <screen role="root"><userinput>make soinstall &amp;&amp;
     214<screen role="root"><userinput>make soinstall<!-- &amp;&amp;
    213215install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
    214 ln -v -s ghostscript /usr/include/ps</userinput></screen>
     216ln -v -s ghostscript /usr/include/ps--></userinput></screen>
    215217
    216218    <para>Now make the documentation accessible from the normal place:</para>
     
    237239    <para>
    238240      <command>sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' ... </command>:
    239       Fix to build with system <application>zlib</application>.
    240     </para>
    241 
    242     <para>
     241      Fixes building with system <application>Zlib</application>.
     242    </para>
     243
     244    <!-- <para>
    243245      <command>rm -rf zlib</command>:
    244246      <application>zlib</application> was installed as part of LFS.
    245     </para>
     247    </para> -->
    246248
    247249    <para>
     
    255257    </para>
    256258
    257     <para>
     259    <!-- <para> Nothing needs these. The ones installed by soinstall are sufficient.
    258260      <command>install -v -m644 base/*.h... </command>: Some packages
    259261      (<application>ImageMagick</application> is one) need the
     
    262264    </para>
    263265
    264     <para>
     266    <para> Haven't found anything that needs this
    265267      <command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
    266268      expect to find the interface headers in an alternate location.
    267     </para>
     269    </para> -->
    268270
    269271    <para>
     
    277279      to the <xref linkend="cups"/> libraries if you have installed those.
    278280    </para>
     281
    279282  </sect2>
    280283
  • pst/printing/gutenprint-systemd.xml

    r3f05421 rfde7a06  
    173173      class="username">root</systemitem> user):</para>
    174174
    175 <screen role="root"><userinput>/etc/rc.d/init.d/cups restart</userinput></screen>
     175<screen role="root"><userinput>systemctl restart org.cups.cupsd</userinput></screen>
    176176
    177177      <!-- <para>This command may take a long time (up to 10 minutes)
  • pst/printing/printing.xml

    r3f05421 rfde7a06  
    2020  or paper.</para>
    2121
    22   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups.xml"/>
    23   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-filters.xml"/>
     22  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-systemd.xml"/>
     23  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="cups-filters-systemd.xml"/>
    2424  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gs.xml"/>
    25   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gutenprint.xml"/>
     25  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gutenprint-systemd.xml"/>
    2626
    2727</chapter>
Note: See TracChangeset for help on using the changeset viewer.