Penguin

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

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

Newer page: version 32 Last edited on Saturday, March 18, 2006 7:40:56 pm by CraigBox Revert
Older page: version 31 Last edited on Monday, February 27, 2006 12:59:22 pm by JohnMcPherson Revert
@@ -1,5 +1,26 @@
-!!!Printing to PDF 
+!!Simple CUPS setup  
+  
+I plugged a Epson Color Stylus 760 into the [USB] port of a Debian Sarge machine, and this is how I made it go:  
+  
+* Install CUPS: <tt>apt-get install cupsys cupsys-driver-gimpprint gs-esp</tt>  
+* Edit <tt>/etc/cups/cupsd.conf</tt> and add Apache-like <i>Allow</i> stanzas at the <Location> sections at the bottom: I wanted all of my local network to be able to administer or use the printer, so I added <tt>Allow From 10.1.30./24</tt>.  
+* You need to have your USB drivers loaded: in my case, they were a <tt>modprobe ehci-hcd; modprobe uhci-hcd; modprobe usblp</tt> away. I put the module names in /etc/modules so they would be loaded at boot. If you want, you can use hotplug to manage USB: see HotPlugNotes. Ubuntu does this all automatically for you.  
+* Navigate to http://server:631/ and log in. Use credentials of someone in the 'lpadmin' group: either add yourself, or use root.  
+* Click "printers" on the top bar; click "Add a printer". Follow your nose through here. Print a test page at the end to make sure its going.  
+  
+<i>Hint</i>: If it doesn't go, set '~LogLevel debug' in /etc/cups/cupsd.conf, restart cups, and look at /var/log/cups/error_log.  
+  
+Congratulations, you now have a printer at ipp://<i>server</i>/printers/<i>printername</i>.  
+  
+From an Ubuntu Dapper client, click System, Administration, Printing. Double click "New printer", set the type to CUPS printer (IPP), and add the URL above.  
+  
+Follow your nose again through the rest, and then you should have a working printer.  
+  
+If you want to share the printer with Windows clients, see SambaPrinting.  
+  
+  
+ !!Printing to PDF 
  
 If you have an application that can't output natively to PDF, you can create yourself a PDF printer. 
  
 # Get the backend for it - look for PDF Distiller Script from http://printing.kde.org/downloads/ 
@@ -21,22 +42,22 @@
  
 There is also a [cups-pdf|http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/] virtual backend which can be used to print to pdf from cups. Your distribution should distribute this - for example, Debian (Sarge or Sid) users can "apt-get install cups-pdf". 
  
 ---- 
-! !! Cups and SAMBA 
+!! Cups and SAMBA 
  
 See the SambaPrinting page for more information 
  
 ---- 
-! !! Auto-discovery of printers 
+!! Auto-discovery of printers 
 [CUPS] can do broadcasts over a network to both advertise the availability of local printers as well as to find and "proxy" for remote printers. On a [LAN] this is probably what you want, but if you are on the MetaNet this may result in other people seeing your printers, and you seeing theirs. This can have unpleasant side-effects: for example, my cups found remote printers that were later firewalled/disconnected or removed. Later that day when starting a [GNOME] application, it would hang on start-up as the gnome printing backend tried contacting the remote printers which were now un-contactable. 
  
 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. 
+Or set the network/address mask for the ~BrowseAllow/~BrowseDeny variables (for incoming broadcasts) and ~BrowseAddress (for outgoing broadcasts). Debian [Sarge ] defaults to browsing on, accepting incoming information from anywhere and not sending out any information. 
  
 ---- 
-! !! Using Netatalk2 with cups 
+!! 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 <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. 
@@ -104,9 +125,9 @@
 opt= optional. space constraints. 
 </verbatim> 
  
 ---- 
-! !! Setting up a USB printer 
+!! Setting up a USB printer by the command line  
  
 These are just some observations of what I did to set up a Brother HL 1440 laser printer (using the [USB] port) on a machine that already had [CUPS] installed, and had an HP Deskjet installed. This was done on debian woody (or close enough to woody) remotely via an ssh connection. These instructions also worked perfectly for a Brother HL 1430 on a Redhat 9 system running XimianDesktop although I didn't use any of the graphic configuration tools. Hopefully these instructions are generic enough to work with any USB printer supported by cups. 
  
 ! Preparation 
@@ -158,10 +179,10 @@
 The only solution seems to upgrade the kernel or to use a different printer.c that comes from hpoj.sourceforge.net, but I still have not tested it... 
  
 HP Office Jets need extra configuration files, which don't come with CUPS by default. Install the "hpoj" package (or the newer "hplip" package). 
 ---- 
-! !!Printer-specific bugs/workarounds  
-! !Brother HL-1440 
+!!Printer-specific bugs/workarounds  
+!Brother HL-1440 
 CUPS will recommend and use the hl1250 PPD driver for this printer. Unfortunately, it doesn't handle the page margins quite right. Since no package seems to have a PPD file specifically for this printer, you'll have to work around it. Try one of the following methods: 
  
 __1.__ Set some default options for this printer: 
 <pre>