10.0
10.1
11.0
11.1
11.2
11.3
12.0
12.1
12.2
6.0
6.1
6.2
6.2.0
6.2.0-rc1
6.2.0-rc2
6.3
6.3-rc1
6.3-rc2
6.3-rc3
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
gimp3
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
v5_0
v5_0-pre1
v5_1
v5_1-pre1
xry111/for-12.3
xry111/intltool
xry111/llvm18
xry111/soup3
xry111/spidermonkey128
xry111/test-20220226
xry111/xf86-video-removal
Last change
on this file since 5ff3721 was d306467, checked in by Larry Lawrence <larry@…>, 21 years ago |
multimedia editing
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@830 af4574ff-66df-0310-9fd7-8a98e5e911e0
|
-
Property mode
set to
100644
|
File size:
1.7 KB
|
Line | |
---|
1 | <sect2>
|
---|
2 | <title>CUPS Configuration</title>
|
---|
3 |
|
---|
4 | <para>Configuration of CUPS is dependent on the type of printer and can be complex.
|
---|
5 | Generally, postscript printers are easier. For detailed instructions on
|
---|
6 | configuration and use of CUPS, see <ulink url="http://www.cups.org/documentation.php"/>.
|
---|
7 | The Software Administrators Manual and Software Users Manual are particularly
|
---|
8 | useful.</para>
|
---|
9 |
|
---|
10 | <para>During the install, cups created the startup file
|
---|
11 | <filename>/etc/rc.d/init.d/cups</filename>.
|
---|
12 | The file works, but you may want to change it to a more
|
---|
13 | conventional LFS startup file:</para>
|
---|
14 |
|
---|
15 | <para><screen><userinput>cat > /etc/rc.d/init.d/cups << "EOF"
|
---|
16 |
|
---|
17 | #!/bin/sh
|
---|
18 | # Begin $rc_base/init.d/cups
|
---|
19 |
|
---|
20 | # Start or stop the CUPS server based upon the first argument to the script.
|
---|
21 |
|
---|
22 | source /etc/sysconfig/rc
|
---|
23 | source $rc_functions
|
---|
24 |
|
---|
25 | case $1 in
|
---|
26 | start)
|
---|
27 | echo "Starting CUPS Printserver..."
|
---|
28 | loadproc /usr/sbin/cupsd
|
---|
29 | ;;
|
---|
30 | stop)
|
---|
31 | echo "Stopping CUPS Printserver..."
|
---|
32 | killproc cupsd
|
---|
33 | ;;
|
---|
34 |
|
---|
35 | reload)
|
---|
36 | echo "Reloading CUPS Printserver..."
|
---|
37 | reloadproc /usr/sbin/cupsd
|
---|
38 | ;;
|
---|
39 |
|
---|
40 | restart)
|
---|
41 | $0 stop
|
---|
42 | sleep 1
|
---|
43 | $0 start
|
---|
44 | ;;
|
---|
45 |
|
---|
46 | status)
|
---|
47 | statusproc cupsd
|
---|
48 | ;;
|
---|
49 |
|
---|
50 | *)
|
---|
51 | echo "Usage: $0 {start|stop|reload|restart|status}"
|
---|
52 | exit 1
|
---|
53 | ;;
|
---|
54 | esac
|
---|
55 |
|
---|
56 | # End $rc_base/init.d/cups startup script.
|
---|
57 | EOF</userinput></screen></para>
|
---|
58 |
|
---|
59 | <para>The CUPS install also copies the initialization script to the
|
---|
60 | <filename>/etc/rc.d/rc{0,2,3,5}</filename> directories. You may want
|
---|
61 | to delete those files and add symbolic links to
|
---|
62 | <filename>/etc/rc.d/init.d/cups</filename>.</para>
|
---|
63 |
|
---|
64 |
|
---|
65 |
|
---|
66 | </sect2>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.