glfs/pst/printing/cups/cups-config.xml
Igor Živković e902a841ae added missing cups symlinks for runlevels 1, 4 and 6, reported by Nathan Coulson
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1779 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-02-08 02:21:55 +00:00

82 lines
2.7 KiB
XML

<sect2>
<title>Configuring <application><acronym>CUPS</acronym></application></title>
<para>Configuration of <application><acronym>CUPS</acronym></application> is
dependent on the type of printer and can be complex. Generally, PostScript
printers are easier. For detailed instructions on configuration and use of
<application><acronym>CUPS</acronym></application>, see
<ulink url="http://www.cups.org/documentation.php"/>. The Software
Administrators Manual and Software Users Manual are particularly useful.</para>
<para>For non-PostScript printers to print with CUPS you need to install
<xref linkend="espgs"/> to convert PostScript to raster images
and a driver (e.g. from <xref linkend="gimp-print"/>) to convert
the resulting raster images to a form that the printer understands.
<ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
drivers use Ghostscript to convert PostScript to a printable form directly, but this
is considered to be a hack by <application><acronym>CUPS</acronym></application>
developers.</para>
<para>During the install, <application><acronym>CUPS</acronym></application>
created the startup file <filename>/etc/rc.d/init.d/cups</filename>. The file
works, but you may want to change it to a more conventional <acronym>LFS
</acronym> startup file:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/cups &lt;&lt; "EOF"</command>
#!/bin/sh
# Begin $rc_base/init.d/cups
# Start or stop the CUPS server based upon the first argument to the script.
. /etc/sysconfig/rc
. $rc_functions
case $1 in
start)
echo "Starting CUPS Printserver..."
loadproc /usr/sbin/cupsd
;;
stop)
echo "Stopping CUPS Printserver..."
killproc cupsd
;;
reload)
echo "Reloading CUPS Printserver..."
reloadproc /usr/sbin/cupsd
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
statusproc cupsd
;;
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/cups startup script.
<command>EOF</command></userinput></screen>
<para>Create the symbolic links to this file in the relevant
<filename class="directory">rc.d</filename> directory
with the following commands:</para>
<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
ln -sf ../init.d/cups ../rc0.d/K00cups &amp;&amp;
ln -sf ../init.d/cups ../rc1.d/K00cups &amp;&amp;
ln -sf ../init.d/cups ../rc2.d/S99cups &amp;&amp;
ln -sf ../init.d/cups ../rc3.d/S99cups &amp;&amp;
ln -sf ../init.d/cups ../rc4.d/S99cups &amp;&amp;
ln -sf ../init.d/cups ../rc5.d/S99cups &amp;&amp;
ln -sf ../init.d/cups ../rc6.d/K00cups</command></userinput></screen>
</sect2>