1 | <sect2>
|
---|
2 | <title>Configuring <application><acronym>CUPS</acronym></application></title>
|
---|
3 |
|
---|
4 | <para>Configuration of <application><acronym>CUPS</acronym></application> is
|
---|
5 | dependent on the type of printer and can be complex. Generally, PostScript
|
---|
6 | printers are easier. For detailed instructions on configuration and use of
|
---|
7 | <application><acronym>CUPS</acronym></application>, see
|
---|
8 | <ulink url="http://www.cups.org/documentation.php"/>. The Software
|
---|
9 | Administrators Manual and Software Users Manual are particularly useful.</para>
|
---|
10 |
|
---|
11 | <para>For non-PostScript printers to print with CUPS you need to install
|
---|
12 | <xref linkend="espgs"/> to convert PostScript to raster images
|
---|
13 | and a driver (e.g. from <xref linkend="gimp-print"/>) to convert
|
---|
14 | the resulting raster images to a form that the printer understands.
|
---|
15 | <ulink url="http://www.linuxprinting.org/foomatic.html">Foomatic</ulink>
|
---|
16 | drivers use Ghostscript to convert PostScript to a printable form directly, but this
|
---|
17 | is considered to be a hack by <application><acronym>CUPS</acronym></application>
|
---|
18 | developers.</para>
|
---|
19 |
|
---|
20 | <para>During the install, <application><acronym>CUPS</acronym></application>
|
---|
21 | created the startup file <filename>/etc/rc.d/init.d/cups</filename>. The file
|
---|
22 | works, but you may want to change it to a more conventional <acronym>LFS
|
---|
23 | </acronym> startup file:</para>
|
---|
24 |
|
---|
25 | <screen><userinput><command>cat > /etc/rc.d/init.d/cups << "EOF"</command>
|
---|
26 | #!/bin/sh
|
---|
27 | # Begin $rc_base/init.d/cups
|
---|
28 |
|
---|
29 | # Start or stop the CUPS server based upon the first argument to the script.
|
---|
30 |
|
---|
31 | . /etc/sysconfig/rc
|
---|
32 | . $rc_functions
|
---|
33 |
|
---|
34 | case $1 in
|
---|
35 | start)
|
---|
36 | echo "Starting CUPS Printserver..."
|
---|
37 | loadproc /usr/sbin/cupsd
|
---|
38 | ;;
|
---|
39 | stop)
|
---|
40 | echo "Stopping CUPS Printserver..."
|
---|
41 | killproc cupsd
|
---|
42 | ;;
|
---|
43 |
|
---|
44 | reload)
|
---|
45 | echo "Reloading CUPS Printserver..."
|
---|
46 | reloadproc /usr/sbin/cupsd
|
---|
47 | ;;
|
---|
48 |
|
---|
49 | restart)
|
---|
50 | $0 stop
|
---|
51 | sleep 1
|
---|
52 | $0 start
|
---|
53 | ;;
|
---|
54 |
|
---|
55 | status)
|
---|
56 | statusproc cupsd
|
---|
57 | ;;
|
---|
58 |
|
---|
59 | *)
|
---|
60 | echo "Usage: $0 {start|stop|reload|restart|status}"
|
---|
61 | exit 1
|
---|
62 | ;;
|
---|
63 | esac
|
---|
64 |
|
---|
65 | # End $rc_base/init.d/cups startup script.
|
---|
66 | <command>EOF</command></userinput></screen>
|
---|
67 |
|
---|
68 | <para>Create the symbolic links to this file in the relevant
|
---|
69 | <filename class="directory">rc.d</filename> directory
|
---|
70 | with the following commands:</para>
|
---|
71 |
|
---|
72 | <screen><userinput><command>cd /etc/rc.d/init.d &&
|
---|
73 | ln -sf ../init.d/cups ../rc0.d/K00cups &&
|
---|
74 | ln -sf ../init.d/cups ../rc1.d/K00cups &&
|
---|
75 | ln -sf ../init.d/cups ../rc2.d/S99cups &&
|
---|
76 | ln -sf ../init.d/cups ../rc3.d/S99cups &&
|
---|
77 | ln -sf ../init.d/cups ../rc4.d/S99cups &&
|
---|
78 | ln -sf ../init.d/cups ../rc5.d/S99cups &&
|
---|
79 | ln -sf ../init.d/cups ../rc6.d/K00cups</command></userinput></screen>
|
---|
80 |
|
---|
81 | </sect2>
|
---|