Penguin

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

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

Newer page: version 28 Last edited on Friday, July 15, 2005 1:23:05 pm by BrentAddis Revert
Older page: version 27 Last edited on Thursday, April 14, 2005 10:25:08 am by JohnMcPherson Revert
@@ -32,8 +32,74 @@
  
 Anyway, the lesson is to edit cupsd.conf to disable this. (This is in the /etc/cups/ directory in [Debian] and RedHat.) Either disable browsing completely by adding the line: 
  Browsing off 
 Or set the network/address mask for the ~BrowseAllow/~BrowseDeny variables (for incoming broadcasts) and ~BrowseAddress (for outgoing broadcasts). Debian [Woody] defaults to browsing on, accepting incoming information from anywhere and not sending out any information. 
+  
+----  
+!!! 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.  
+  
+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:  
+  
+#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  
+  
+Make sure you have:  
+BrowseOrder allow,deny  
+  
+Set as well.  
+  
+Once this is done, edit /etc/netatalk/papd.conf, and add:  
+  
+cupsautoadd@yourzonehere:op=root:  
+  
+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.  
+  
+The logs should show something like:  
+  
+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  
+Jul 15 12:13:36 host papd[16668]: Authentication disabled: hplj4-letterhead  
+Jul 15 12:13:36 host papd[16668]: register hplj4-letterhead:LaserWriter@zone1  
+Jul 15 12:13:42 host papd[16668]: Authentication disabled: hplj4  
+Jul 15 12:13:42 host papd[16668]: register hplj4:LaserWriter@zone1  
+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  
+  
+The only error I have so far encountered, is this:  
+  
+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)  
+  
+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:  
+  
+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.  
+  
  
 ---- 
 !!! Setting up a USB printer