CUPS Print Server - RPM driver file
Forum » Forum / Modifying the MyBook World » CUPS Print Server - RPM driver file
started by: washbowlwashbowl
on: 1210688162|%e %b %Y, %H:%M %Z|agohover
number of posts: 5
rss icon RSS: new posts
summary:
CUPS. Almost there.
CUPS Print Server - RPM driver file
washbowlwashbowl 1210688162|%e %b %Y, %H:%M %Z|agohover

I am a N0ob of Linux. But after two days trail and error, I finally managed to get CUPS working on mybook.
I added my Canon MF4140 from the CUPS webpage, shared it on local network. I also installed the PPD file from Canon.
I was almost there. Now the issue is that the printing job never got passed to the printer. They are always in pending status,
no matter I tried to print a test page from CUPS or print a real doc from connected windows client.

I am thinking this might be a driver issue. So I decided to install the offical driver from Canon. However the driver is packaged by
rpm. When I tried to launch rpm, I realized it's not in the system. My question is how can I install rpm itself on Mybook, therefore
I can install the .rpm Canon driver.

Many Thanks

last edited on 1210688279|%e %b %Y, %H:%M %Z|agohover by washbowl + show more
unfold CUPS Print Server - RPM driver file by washbowlwashbowl, 1210688162|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Print Server - RPM driver file
washbowlwashbowl 1210689136|%e %b %Y, %H:%M %Z|agohover

Just let you know, I FINALLY GOT IT.
Didn't install Canon Driver, just setup MF4140 as a raw queue in CUPS, and install the normal driver on windows client.

unfold Re: CUPS Print Server - RPM driver file by washbowlwashbowl, 1210689136|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Print Server - RPM driver file
fraterfrater 1213843877|%e %b %Y, %H:%M %Z|agohover

I'm thinking of installing cups on the WDWB. But isn't it a resource hog? I rarely print a page, so I want to stop the service when the printer is off and start it when it's on….

On my DD-WRT (linux router) I can do an if [ -e /dev/usb/lp0 ]; then in a script, but that's because the device appears/disappears when the printer is powered on/off.

Can I have this behaviour on my WDWB or is there another way of finding out if my printer is powered on?

I don't even want to install cups if I don't know in advance if I can stop/start it automatically. I really hardly ever ever print a page.

last edited on 1213856351|%e %b %Y, %H:%M %Z|agohover by frater + show more
unfold Re: CUPS Print Server - RPM driver file by fraterfrater, 1213843877|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Print Server - RPM driver file
fraterfrater 1213857373|%e %b %Y, %H:%M %Z|agohover

That part wasn't too difficult to find out…

#!/bin/sh

cups_running=`ps x | grep -v grep | grep -ic cups`
printer_on=`lsusb | grep -ic printer`

if [ $cups_running == 0 ]; then
  if [ $printer_on == 0 ]; then
    /opt/doc/cups/S88cups
  fi
else
  if [ ! $printer_on == 0 ]; then
    killall cupsd
  fi
fi

But Cups is not working… I'm getting this error: cupsd: can't resolve symbol '__guard'
I even downloaded and compiled 1.3.7 stable and get the same error….
After I compiled the 1.3.7 I didn't yet run make configure. I just started the binary…..

unfold Re: CUPS Print Server - RPM driver file by fraterfrater, 1213857373|%e %b %Y, %H:%M %Z|agohover
Re: CUPS Print Server - RPM driver file
washbowlwashbowl 1213946377|%e %b %Y, %H:%M %Z|agohover

hi, why bother to stop cups? if you read through the threads here, you'll find that WDMB contains adequate memory to handle extra applications running on it. I leave cups running all the time since I made it work, and I never notice any negative impact on its performance.

unfold Re: CUPS Print Server - RPM driver file by washbowlwashbowl, 1213946377|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License