Hot answers tagged

25

Commenting out the printers section actually does nothing, add this to your smb.conf: load printers = no printing = bsd printcap name = /dev/null disable spoolss = yes (spoolss is not a typo)


15

lpadmin helps you to manage cups' printers Try man lpadmin I believe what you need is lpadmin -x


6

Per comment below: Install cups-bsd instead of lpr. Cups-bsd contains its own lpr binaries. This package provides the BSD commands for interacting with CUPS: /usr/bin/lpqa /usr/bin/lpr /usr/bin/lprm /usr/sbin/lpc


5

Have you tried converting the gif to a postscript file? If you have imagemagick you can use: convert 1ZY437560399620027.gif 1ZY437560399620027.ps and print that? You can also use print to file in gimp or others. I'm assuming the issue is that lpr is going through a helper application that is creating the margins you have a problem with.


5

An alternative approach is using lpadmin to add the printer to CUPS, in case it's missing from printers.conf. For example: exec { "/usr/sbin/lpadmin -p Lexmark-E450 -E -v usb://Lexmark/E450 -P /path/to/Lexmark_E450.ppd": unless => "/bin/grep Lexmark-E450 /etc/cups/printers.conf 2>/dev/null", require => ...


5

The 'native' way is to have a CUPS server (they don't need printers, just the CUPS software) on each subnet, and configure those servers to act as a Browse Relay server. The configuration would be BrowsePoll a.b.c.7 BrowseRelay CUPS That CUPS-running server will then respond to subnet-local browse requests with the remote server. There is also a way to ...


5

"any existing printer" changes every day, as does the driver set (the same printer can ship with different firmware levels, and these may require different/updated drivers). If you make such a commitment you are setting yourself up for a horrible series of failures. I strongly suggest you avoid supporting such a claim if at all possible. Assuming you still ...


5

There's a Feature Request that was Closed with Resolution to CUPS 1.3 for exactly this behavior. Link to the CUPS bug tracker: http://www.cups.org/str.php?L1871 I found no documentation to support this behavior in CUPS online documentation, but the documentation in the CUPS 1.5.2 source tarball I downloaded indicates that a global 'ErrorPolicy' declaration ...


4

From this page: smb This backend sends print files to printers shared by a Windows host. Examples of CUPS device-URIs that may be used includes: smb://workgroup/server/printersharename smb://server/printersharename smb://username:password@workgroup/server/printersharename smb://username:password@server/printersharename The smb:// backend ...


4

For Ubuntu 14.04 users (and maybe others) you cannot add the foomatic-filters as suggested above, as they conflict with the CUPS project's version (cups-filters). The hint may be in /var/log/cups/error_log. In my case, the output looks like this [17/Aug/2014:12:47:31 +1000] [Job 83] JCL: 12345X@PJL [17/Aug/2014:12:47:31 +1000] [Job 83] <job data> ...


4

Here's the Xerox RPM installer package for the Phaser 3010 printer. Follow the manufacturer's instructions to complete the installation. You can extract the PPD file from the RPM. See what's in the RPM: # rpm -qlp Xerox-Phaser-3010_3040-1.0-28.i586.rpm /usr/lib/cups/filter /usr/lib/cups/filter/xrhr1ap /usr/lib/cups/filter/xrhr2ap /usr/lib/xrhr1acl.so ...


3

You can tell it to send RAW using the following command: lp -d printer_name -o raw filename -o lets you specify an option. In this case, it specifies no PPD to be used.


3

Since cupsd insists to modify printers.conf you can't replace the whole file, instead you need to modify it on a line by line basis. Check out http://projects.puppetlabs.com/projects/puppet/wiki/Simple_Text_Patterns it'll show you how to replace parts of a file.


3

This should be fixed by changing the ErrorPolicy in cupsd.conf or printers.conf: CUPS 1.3/Mac OS X 10.5ErrorPolicy Examples ErrorPolicy abort-job ErrorPolicy retry-job ErrorPolicy stop-printer Description The ErrorPolicy directive defines the default policy that is used when a backend is unable to send a print job to the ...


3

From the command line you can see the installed printers with this command: lpinfo -v You can change the configuration like this: lpadmin -p <printer name> <options> You are probably interested in changing the device uri. This should contain the IP address. Change it like this: lpadmin -p <printer name> -v <new uri> Printer ...


3

There's probably an easier method, but what I did in a similar situation was to rename the printer, create a printer class with the same name and put inside the printer class the printer where you want the jobs redirected.


3

My suggestion is to use tea4cups. tea4cups serves as a generic wrapper around any standard CUPS backend. It allows you to configure any command to run before and after sending the job off via the real backend. tea4cups specifically allows (any number of) commands to be run before the job is sent off: prehooks. A prehook command which exits -1 can cancel ...


3

For Linux systems try incron (part of the inotify family). It can watch directories and take action on file changes. There's a (rather old) example on howtoforge. Just create an incrontab line like /pdf_folder/ IN_MODIFY lp -d PDF_PRINTER $@/$#


3

You can obtain this information with lpstat -l -p printername. [root@Valley ~]# lpstat -l -p zebra2 printer zebra2 is idle. enabled since Tue Jun 8 15:50:35 2010 Form mounted: Content types: any Printer types: unknown Description: Zebra 105SL in shipping Alerts: none Location: Shipping Connection: ...


3

I haven't had any problems with large production printing environments with 100+ printers (running CUPS or LPRng). Is there a reason you're using cups-lpd instead of just using lp/lpr through CUPS? There are a few CUPS tweaks you can make to ease troubles, though. Depending on your Linux distribution, you will want to change some of the defaults in the ...


3

I'm in the same situation. Not sure why it's taking so long to restore services. I did find a copy of the binaries at https://bitbucket.org/oherrala/puppet/src/933249d58d25/cups/files/drivers/x64 But I'm not entirely sure if those are the newest versions. YMMV.


2

Any recent version of Windows will let you use the Internet Printing Protocol. You just need to open a hole in the firewall for the port. After that it is pretty easy to send print jobs through the internet.


2

You can do it another way too. Just put "none" in the end of the AuthInfoRequired. It expects something like that: AuthInfoRequired none


2

I'm a bit late to the party, I know. This may be solved by setting waiteof=false socket://uri:port?waiteof=false http://www.cups.org/documentation.php/doc-1.4/network.html#SOCKET CUPS by default waits for the printer to be ready before sending new print jobs as a safety net. This causes it to be slow as it waits for what is being printed to finish. Also ...


2

According to the CUPS release notes, support for specifying a different username was added in CUPS 1.6b1: CUPS now supports a User directive in client.conf and the CUPS_USER environment variable for overriding the default username (STR #3114) The Ubuntu bug report below (I can't make it a link due to ServerFault limits) is another place to look for ...


2

You might find the answer in the logs sudo tail -f /var/log/cups/{access,error}_log


2

You could copy the file to another name, and have an exec to only copy if printers.conf doesn't contain a line you require. Eg. file { "/etc/cups/printers.conf.puppet": source => "puppet:///modules/desktop/cups/printers.conf", mode => 0600, owner => root, group => lp; ...


2

Is this network printer or is it shared from a particular machine? In the past I've done this by having a machine act as the print server (which may even be the teacher's workstation), then set CUPS to hold jobs indefinitely so that they can be manually released. I've done this on Linux rather than OS X, but there, I just added Option job-hold-until ...


2

That depends on the scanning device in question. CUPS won't be able to handle it. One method, that we're looking to use campus wide, is to specify a drop-zone for these MFPs to drop scans. This is a Samba share with a unique folder for each MFP. It does depend on if the MFP can drop files on a SMB share, which not all do. Many can send emails, so you might ...



Only top voted, non community-wiki answers of a minimum length are eligible