OpenWrt Forum Archive

Topic: Anyone used CUPS successfully?

The content of this topic has been archived on 11 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I was wondering if anyone was able to print anything through cups that can be installed with OpenWRT?

So far I was only able to print via (another) CUPS server, but I'm unable to print directly to a printer (client-error-not-found).

Any ideas?

Yes, I used CUPS once for testing but it's to big for a router. Currently I'm using p910nd (backported from development branch).

Naah, it's not too big smile
At least in terms of memory, it takes 900 kB, so it's OK on a 32 MB router.


Did you configure the printer in some special way to make it work with cups?

I tried to copy PPD file and a printers.conf file from another cups server, but somehow, it doesn't work, and I don't know how to bite it.

mangoo wrote:

Did you configure the printer in some special way to make it work with cups?

Can't remember. I did it some time ago.

- make sure you have a root password set (do I really need to tell anyone how to do this? go try a different firmware)
- edit mime.convs and mime.types in /etc/cups, uncomment the lines starting with "application/octet-stream" to allow raw printing
- restart cupsd if needed
- Log into cups from a browser http://router:631 (user: root)
- Add the printer (it's probably already there)

From a windows machine
- control panel -> printers -> add new printer
- network printer
- URL: http://router:631/printers/USB (or whatever url shows up from the browser earlier)
- Enter in the root usrename and password
- Select the printer type

All processing will be done on the client computer and the raw printer commands will be sent to cups. It's possible to configure cups for the printer type and just tell the applications it's a postscript printer but that's trickier to setup; you'll have to figure that out on your own.

Dosnt CUPS need a lot of space on the router to spool the print jobs? Or is spooling not done when in RAW mode ?

mbm wrote:

- make sure you have a root password set (do I really need to tell anyone how to do this? go try a different firmware)
- edit mime.convs and mime.types in /etc/cups, uncomment the lines starting with "application/octet-stream" to allow raw printing
- restart cupsd if needed
- Log into cups from a browser http://router:631 (user: root)
- Add the printer (it's probably already there)

Setting the root password was the most problematic smile

I'll try to limit to printing from cups interface (print test page).

cups adds printers configured on other cups servers in the network automatically, and can print through them just fine (like a KYOCEFS1018M@192.168.111.170).

However, when I configure a printer locally (basically, to move (network) printers from one cups server to another it is enought to copy /etc/cups/printers.conf and /etc/cups/ppd/*) - it doesn't work - "client-error-not-found".

I didn't figure out anything by setting LogLevel to debug2 sad

I compiled Cups myself, now it gave me some hints:

E [14/Feb/2006:11:59:32 +0000] Unable to convert file 0 to printable format for job 4!
I [14/Feb/2006:11:59:32 +0000] Hint: Do you have ESP Ghostscript installed?

hello i have a problem with cups web interface : http://xxxx/admin report error 404 and in usr/share/doc/cups the admin folder is missed .

is it a bug ?

i correct the web problem with ln -s smile

but now my canon is not show in cups or with lpinfo -v
why ? (she is plug on a usb swith)

all is ok now , problem with kmod-usb-printer smile

The discussion might have continued from here.