Printing with CUPS: Almost here ! (Finally HERE!)

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#201 Post by rarsa »

Now that I know what the problem is, I will.

Although I actually remembered that my printer driver does not need perl.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

User avatar
duke93535
Posts: 194
Joined: Thu 05 May 2005, 16:45
Location: California , High Desert

usb printer

#202 Post by duke93535 »

We have been using our usb printers right along. The usb modules don't load in Puppy2 without modprobing usblp. I just add these lines to /etc/rc.d/rc.local.

modprobe ohci-hcd #these are needed on HARDDRIVE install
#modprobe uhci-hcd #not used by my computer, some computers need this
#modprobe ehci-hcd #not used by my computer, some computers need this
# Start usb printer
modprobe usblp

You can remark out the other #modprobe printer put in by cups, because it is not used.
Reboot and check your USB Viewer, the printer should change from red to black. The problem seems not to be with cups. Gave it a try, it won't hurt. You can always remark out if it doesn't.
Good Luck, Duke

ps We might have given BarryK a headache on this.
Last edited by duke93535 on Wed 07 Jun 2006, 19:36, edited 1 time in total.

Taavi
Posts: 146
Joined: Fri 10 Mar 2006, 19:23
Location: Suomi, Finland

cups problems

#203 Post by Taavi »

Hi,
thanks for the advice, Duke. I did as you told here above and I got my printer working again (usb printer, yes).

Taavi

User avatar
duke93535
Posts: 194
Joined: Thu 05 May 2005, 16:45
Location: California , High Desert

#204 Post by duke93535 »

Your welcome

User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

Re: usb printer

#205 Post by dewdrop »

duke93535 wrote:We have been using our usb printers right along. The usb modules don't load in Puppy2 without modprobing usblp. I just add these lines to /etc/rc.d/rc.local.

modprobe ohci-hcd #these are needed on HARDDRIVE install
#modprobe uhci-hcd #not used by my computer, some computers need this
#modprobe ehci-hcd #not used by my computer, some computers need this
# Start usb printer
modprobe usblp

You can remark out the other #modprobe printer put in by cups, because it is not used.
Reboot and check your USB Viewer, the printer should change from red to black. The problem seems not to be with cups. Gave it a try, it won't hurt. You can always remark out if it doesn't.
Good Luck, Duke

ps We might have given BarryK a headache on this.

Hi Duke93535...and all the others that have been interested in getting their printers working again with Puppy2.

I just opened the console, typed in the modprobe uhci-hcd, modprobe ehci-hcd, and modprobe usblp, then went to the Turboprint file that I have and until now used in Costa Rica on my Canon printer there. Installed Turboprint, went thru the setup process and now have my HP6540 model printer working with Puppy2.

My thanks to Duke too!!!

Now I plan to do a pristine Puppy2 - from the USB drive where it resides on my system, and see if Duke's procedure will work with Rarsa's CUPS install, even though there is the perl file conflict still present between Puppy2 and the devx_200.sfs file.

I will try and be efficient and remember to do a step by step of my testing with the above idea, and place it here for others to use.

dewdrop

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

#206 Post by Kal »

We (Duke & Kal) posted this sometime back to your joking on Costa Rica, but the forum was messing up and must have dropped it. BarryK's info is what got it going. We are using MU's perl.pup with no problem. We been trying to help folks on the Harddrive issues and just looked down here.
Your Welcome and Good Luck, Kal & Duke

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

Re: DONE!

#207 Post by edoc »

rarsa wrote: Instructions:
1. Download the cups-install.tar.gz file
2. Open a console terminal and change folders to the folder where you downloaded the file.
3. Untar the cups-install.tar.gz with "tar -xvzf cups-install.tar.gz". This tar file includes the scripts to install cups. ESP Ghostscript and the hpijs driver.
4. From the console execute "sh cups-install.sh"
Just tried to install CUPS on my wife's desktop Puppy 2.

I ran "sh cups-install.sh" and after a bunch of dialog scrolled by there
was this ...

modprobe printer
FATAL: Module printer not found.
/etc/rc.d/rc.cups start# Load the module for usb printers
cups: started scheduler.


Help? Thanks! doc

*** EDIT ***

On a whim, and based on a couple of other experiences with the often
robust Puppy, I decided to ignore the macabre "FATAL" message and
press on through the rest of the steps.

VICTORY OVER DEATH ... or at least over the grossly overstated
"FATAL" massage.

My Samsung ML-2251NP laser printer, not listed as Puppy supported
does work! (I acquired the driver via the Samsung site, ran their installer,
and CUPS recognized it. Hooray!)

:-) doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

Samsung ML-2251NP laser printer - Success

#208 Post by dewdrop »

From edoc
Just tried to install CUPS on my wife's desktop Puppy 2.

I ran "sh cups-install.sh" and after a bunch of dialog scrolled by there
was this ...

modprobe printer
FATAL: Module printer not found.
/etc/rc.d/rc.cups start# Load the module for usb printers
cups: started scheduler.


Help? Thanks! doc

*** EDIT ***

On a whim, and based on a couple of other experiences with the often
robust Puppy, I decided to ignore the macabre "FATAL" message and
press on through the rest of the steps.

VICTORY OVER DEATH ... or at least over the grossly overstated
"FATAL" massage.

My Samsung ML-2251NP laser printer, not listed as Puppy supported
does work! (I acquired the driver via the Samsung site, ran their installer,
and CUPS recognized it. Hooray!)

:-) doc

Way to go Doc!!!!!

Notice I put your printer name in the Subject line. Hopefully that will give others with the same printer a small nudge to keep trying.

dewdrop

User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

Re: HP 6540 usb printer

#209 Post by dewdrop »

Hi Pups,

I downloaded John Murga's Mean Puppy (2.0), and forgot to eliminate the pup_save.sfs file, so my settings from Barry's Puppy2 came up in John's version....most of them anyway.

The step-by-step to get my captioned printer working is as follows:

1. I went thru Rarsa's steps to get the CUPS files installed. (Page 1 of this thread - Rarsa's September 3, 2005 entry)
2. Rebooted the computer.
3. Restarted CUPS with the command: sh /etc/rc.d/rc.cups restart
4. Then did Duke's modprobe instructions: see them earlier on this thread...on page 13 - his June 7th posting.
5. Went to the localhost:631 page, installed my HP6540 USB Printer
6. Requested a test page be printed, and the printer started and printed the test page.

I would expect that as long as I do not remove the pup_save.sfs file, that I can now go back to Barry's Puppy2 version and it will allow printing with CUPS as well, without having to redo the above steps.....I'm writing this from John Murga's Mean Puppy, so I'll now start up Barry's version and see if the printer will work.

dewdrop

//////EDIT

I just tried to used Barry's Puppy2 - final, and Puppy2 with Opera, and back again with John Murga's Mean Puppy2 - leaving the same pup_save.sfs file in place. The printer does not work in any of these versions now. I shall now try the above step-by-step for each version, and see what happens.
dewdrop

///////////EDIT #2

I went thru each of the 3 Puppy2 Versions - Barry's Puppy2-Final, Barry's Puppy2 w/Opera, and John Murga's Mean Puppy. Only John's Puppy printed using the above step by step. Conclusion - John's version has something that Barry's versions do not. I did not remove or change the pup_save.sfs file during this testing.

dewdrop

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

Works Great with HP PSC 1610!

#210 Post by disciple »

The instructions (with hpijs) work great for an HP PSC 1610 multifunction (in Puppy 1.09). Good Work!

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

modprobe usblp

#211 Post by Kal »

Some times the modprobe entry can be messed up in rc.local because of auto load entries to the same line by cups installer. Lookout for this.
Good Luck, Kal

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

Re: modprobe usblp

#212 Post by edoc »

Kal wrote:Some times the modprobe entry can be messed up in rc.local because of auto load entries to the same line by cups installer. Lookout for this. Good Luck, Kal
What can be done to eliminate such conflicts?

We keep losing cups recognition of the printer when my wife's pc is
rebooted.

Thanks! doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

usb printer

#213 Post by Kal »

Edoc
Should be just one time that this could happen. After you fix it up, it's all right, unless your reinstalling cups for some reason. below is my /etc/rc.d/rc.local:

# USB Print Module
modprobe usblp
# End of Module Install
# Start cups
/etc/rc.d/rc.cups start

Anything being added to the end of modprobe usblp, well stop it, like modprobe usblp#xxxxx.
I add "# End of Module Install" just for GP, and remove modprobe printer on Puppy2 for usb.
Good Luck, Kal

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

Re: usb printer

#214 Post by edoc »

Kal wrote:Edoc
Should be just one time that this could happen. After you fix it up, it's all right, unless your reinstalling cups for some reason. below is my /etc/rc.d/rc.local:

# USB Print Module
modprobe usblp
# End of Module Install
# Start cups
/etc/rc.d/rc.cups start

Anything being added to the end of modprobe usblp, well stop it, like modprobe usblp#xxxxx.
I add "# End of Module Install" just for GP, and remove modprobe printer on Puppy2 for usb.
Good Luck, Kal
This is what I had:
# Start usb for printer
modprobe usblp
# Start cups
/etc/rc.d/rc.cups start
# Load the module for usb printers
modprobe printer


EXCEPT that there was a typo that had two lines run together:
/etc/rc.d/rc.cups start# Load the module for usb printers

Is the modprobe printer unnecessary?

Thanks! doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

rc.local

#215 Post by Kal »

Edoc
Yes, on Puppy2 for usb printer. PupBeGone can do the same as Cups on the auto load to rc.local.
Good Luck, Kal

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

Re: rc.local

#216 Post by edoc »

Kal wrote:Yes, on Puppy2 for usb printer.
Short night sleep and the coffee is not working real well ...

Are you affirming that the "modprobe printer" is *not* needed?
Kal wrote:PupBeGone can do the same as Cups on the auto load to rc.local.
This really confuses me. I thought that PupBeGone was for removing
apps one has loaded.

Are you saying that PupBeGone may be used to modify rc.local or that
certain changes via PupBeGone may result in changes to rc.local?

Tnx! doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
dewdrop
Posts: 298
Joined: Tue 30 Aug 2005, 01:54
Location: Texas USA

How to Print with CUPS using Puppy2

#217 Post by dewdrop »

Hi Pups,

I am adding a link to a How To that I just completed for people to try with the various versions of Puppy2.

It can be found here:

http://www.murga.org/~puppy/viewtopic.php?t=8673

I know it is kind of long, but with all of the people arriving that are new not only to Puppy, but to Linux in general, it might be useful.

dewdrop

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

Re: How to Print with CUPS using Puppy2

#218 Post by edoc »

dewdrop wrote:Hi Pups,

I am adding a link to a How To that I just completed for people to try with the various versions of Puppy2.

It can be found here:

http://www.murga.org/~puppy/viewtopic.php?t=8673

I know it is kind of long, but with all of the people arriving that are new not only to Puppy, but to Linux in general, it might be useful.

dewdrop
WOOF! WOOF! WONDERFUL!

We need a whole lot more of this if Puppy is to break into common use.

I know the Wiki is intended for this purpose but it is often out of date
and is incomplete.

Between Wiki and Forum posts making vague references to fragmented
discussions scattered across posts and sometimes deleted or moved links
it is near impossible to solve problems without hours of wasted time and
frustration -- or raising the same questions over and over.

The other serious flaw in documentation is the tendency we all have to fail
to include the Puppy version and if we are running a HDD or other type of
install.

Perhaps categories within a Puppy Manual Wiki need to be assigned to
specific people with occasional automated tweaks to remind them to check
their wards for up-to-date information.

I think we also need to fix the Search feature of the Wiki which, like most
search engines, tends to bring up way too many irrelevant links.

IMHO, YMMV ... doc
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Kal
Posts: 626
Joined: Thu 05 May 2005, 16:59
Location: California, High Desert

Modprobe printer can be removed from rc.local

#219 Post by Kal »

Hi, Edoc
Any program that adds entries to rc.local as part of its install, in order to function seems to have had this problem, in the past. As you saw on your own computer the #information line was place right behind the good line, nullifying that entry and your computer would not start cups. The #information line should have started on the next line. There is something missing in the script, how to fix is over my head. If we can make our super good folks, who write these, just aware of the problem I am sure they will come up with the fix.
The yes was an answer to your question. Yes, "modprobe printer" can be removed, or remarked out, it's not used in Puppy2. That is why we are adding "modprobe usblp", which is the module used in Puppy2 on usb printers. I hope that clear this up (Sorry).
Good Luck, Kal

mrwolfe
Posts: 9
Joined: Wed 12 Jul 2006, 06:05

#220 Post by mrwolfe »

Hi guys.

I'm having some trouble getting my lbp3000 to print. I have puppy set up in a wafer 5820 SBC with a 300 Gig HD that I'm hoping to use as a mini F&P server. I've set up usb by adding the following to /etc/rc.d/rc.local:

modprobe ohci_hcd
modprobe uhci_hcd
modprobe usblp


Puppy sees USB devices OK (e.g memory sticks), and I can see /dev/usb/lp0 and /dev/usb/lp1. I have 2 usb ports, so this looks right.

I have installed PERL and CUPS from the tarballs, and the lbp3000 drivers from the RPM's on the canon website. CUPS can see the printer via the usb port because "usb printer #1 canon lbp3000" shows up in the devices list and everything looks good. When I try to print a test page, though, nothing happens. A spool file appears in /var/spool/cups but no output. I have tried sending the spool file directly to the printer port e.g cat c00001 > /dev/usb/lp0, nothing. I have also tried e.g echo -e "test\n" > /dev/usb/lp0 as well as cat sometextfile > /dev/usb/lp0, still nothing.

2 questions:

1. has anyone else managed to get this printer to work, and if so, how?
2. Do any of you guys who are intimately familiar with usb printers have any suggestions?

actually, 3 questions - any ideas on getting the full version of RPM? the busybox version doesn't do uninstalls.

Mr Wolfe

<cross-posted in http://www.murga.org/~puppy/viewtopic.php?t=8673>

Post Reply