Penguin

Differences between version 30 and predecessor to the previous major change of CUPSNotes.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 30 Last edited on Friday, July 15, 2005 2:12:18 pm by PerryLorier Revert
Older page: version 28 Last edited on Friday, July 15, 2005 1:23:05 pm by BrentAddis Revert
@@ -38,38 +38,41 @@
 !!! Using Netatalk2 with cups 
  
 With the release of sarge, debian are now using automatic cups stuff, rather than the old lpr support. 
  
-This means you cannot just use the old papd.conf and hope it works. You'll get such wonderful things as it simply disapearing, and not removing the pid file, without any errors. Lovely thing that. 
+This means you cannot just use the old <tt> papd.conf</tt> and hope it works. You'll get such wonderful things as it simply disapearing, and not removing the pid file, without any errors. Lovely thing that. 
  
 So, you'll need to do a few things. 
  
 Cups broadcasting is great, however, it's not always as great as it would seem. It can (and will in our case) pick up other cups broadcasted printers. You need to disable the reception of these printers in your config otherwise pap can also die. 
  
 EG: 
  
-in /etc/cups/cupsd.conf find the browse section, and add in, something much like the following:  
- 
+in <tt> /etc/cups/cupsd.conf</tt> find the browse section, and add in, something much like the following:  
+<verbatim>  
 #Allows browsing from the local network 
 BrowseAllow 192.168.2.0/24 
 #Disables printer broadcast from backup server 
 BrowseDeny 192.168.6.10/255.255.255.255 
-  
+</verbatim>  
 Make sure you have: 
+<verbatim>  
 BrowseOrder allow,deny 
-  
+</verbatim>  
 Set as well. 
  
-Once this is done, edit /etc/netatalk/papd.conf, and add:  
- 
+Once this is done, edit <tt> /etc/netatalk/papd.conf<tt> , and add:  
+<verbatim>  
 cupsautoadd@yourzonehere:op=root: 
+</verbatim>  
  
 This will automatically get the cups printers, and use the ppd that cups uses. 
  
-if pap is not running, either restart netatalk iin hte normal way, just type papd, which starts it, uses the config, and inserts a pid file. 
+if pap is not running, either restart netatalk in the normal way, just type papd, which starts it, uses the config, and inserts a pid file. 
  
 The logs should show something like: 
  
+<verbatim>  
 Jul 15 12:13:23 host papd[16668]: restart (2.0.2) 
 Jul 15 12:13:23 host papd[16668]: CUPS support enabled (1.1) 
 Jul 15 12:13:30 host papd[16668]: Authentication disabled: SharpC150 
 Jul 15 12:13:30 host papd[16668]: register SharpC150:LaserWriter@zone1 
@@ -80,26 +83,27 @@
 Jul 15 12:13:48 host papd[16668]: Authentication disabled: hp8100 
 Jul 15 12:13:48 host papd[16668]: register hp8100:LaserWriter@zone1 
 Jul 15 12:13:54 host papd[16668]: Authentication disabled: hp5000 
 Jul 15 12:13:54 host papd[16668]: register hp5000:LaserWriter@zone1 
-  
+</verbatim>  
 The only error I have so far encountered, is this: 
-  
+<verbatim>  
 can't register SharpC150@greed:LaserWriter@zone1 
 Jul 15 11:24:08 host papd[7929]: Deleting CUPS temp PPD file for SharpC150_greed (/var/spool/cups/tmp/42d6f4186a35b) 
+</verbatim>  
  
-This was because it was a broadcast printer, and cups didn't have a local copy of its ppd. THis is why I recommend disabling cups broadcast receive (send is fine) using BrowseDeny. 
+This was because it was a broadcast printer, and cups didn't have a local copy of its ppd. THis is why I recommend disabling cups broadcast receive (send is fine) using ~ BrowseDeny. 
  
 It is also possible to setup netatalk to use the cups printers, but add your own settings. I won't go into much detail due to lack of time, however, 
  
-If for example, you wanted to add a cups printer, with a different zone, and maybe running as a different user, you would enter into papd.conf:  
- 
+If for example, you wanted to add a cups printer, with a different zone, and maybe running as a different user, you would enter into <tt> papd.conf</tt> :  
+<verbatim>  
 hp5000-test2@another zone:\ - This is the printername that will be broadcast 
  :pr=hp5000:\ - This is the cups printer that will be used (opt) 
  :pd=/usr/share/lib/ppd/anotherdriver.PPD: -The ppd you want to use (opt) 
  
 opt= optional. space constraints. 
-  
+</verbatim>  
  
 ---- 
 !!! Setting up a USB printer