Tag Info

Hot answers tagged

13

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)


9

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


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

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

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 ...


4

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 => ...


4

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 ...


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

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

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

You'll need to configure SANE to work over the network.


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

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

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


2

CUPS does not require the SSL certificate. You can disable the https by adding DefaultEncryption Never to the config file and restarting the daemon. In recent versions of CentOS (you didn't specify the version you're running), there's an "Allow remote administration" checkbox in the web interface that will provide remote CUPS admin page access on port 631. ...


2

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 $@/$#


2

I don't know of a way to get the Mac to behave/respond differently natively, but you may have better luck writing a printer setup script that uses lpadmin where you can specify the printer/printer path as well as credentials. You could attempt to authenticate with lpadmin (and -o auth-info-required=username,password); not sure if there's any feedback to ...


2

Looks like the problem goes away using a simple ProxyPass and ProxyPassReverse but only when proxying "/". I guess proxying CUPS to any other path does not work.


2

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.


2

Your application seems to be confused about whose responsibility it is to determine the rendering of the document. That it precedes the document with an SI character suggests that it is trying to control the rendering itself - [SI] selects condensed mode printing on an IBM DMP (required for 132 column printing in portrait layout). Assuming that your printer ...


2

try checking your printers.conf file and comment out the line: AuthInfoRequired negotiate it's a default setting in ubuntu


2

Using CUPS you should be able to directly use the servers printers, you just need to tell the cups client to use a specific server instead of the local spooler. You can do that by modifying /etc/cups/client.conf and adding or modifying the line containing ServerName to ServerName cups.example.com[:port] You should be able to see and use all printers on ...


2

For both 2008 and 2008 R2 it's the same process: on the start menu and type "Add a Printer" then click on the link that's displayed, the Add Printer wizard will open. In the wizard choose add a network printer, then click "the printer I want isn't listed". The next page should allow you to add an http:// or share address for the printer, the UI has changed ...


2

You should use "lp" instead of "lpr". "lp" will return a JOB ID after job submission. lp -d printername instead of lpr -P printername [root@server ~]# lp -d office /etc/ntp.conf request id is office-5330836 (1 file(s))


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

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


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 ...



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