Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 17 Dec 2018, 13:04
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
Printing from WinXP -> Puppy - Strange Problem [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 12397
Location: Stratford, Ontario

PostPosted: Thu 19 Jul 2018, 08:11    Post subject:  

Nice work.

Regarding the Raspberry Pi: What OS is it running?

In mainstream Linux, the old methods of CUPS printer sharing as used by Puppy don't work any more. You need additional infrastructure.

This is discussed in How to Install your Printer in Puppy. The recommendation is to share a printer via the p910nd server instead of CUPS.

Unfortunately, that won't help you. With p910nd, the client still has to supply the driver, which the SP1 box cannot do.

In any case, using CUPS to share a printer that is already shareable by virtue of being a standalone networked printer is a rather convoluted process!
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11210

PostPosted: Thu 19 Jul 2018, 08:21    Post subject:  

Glad you have a solution... 'tricking it' seems the way with printers and windows sometimes and your fix sounds all too familiar.
I once had to get a driver from xerox's japanese site as all english versions had been removed....microsoft don't like supporting older systems lol..
(or HP)..but fortunately a foreign language protects us free spirits at times Smile

Sorry if my input was fragmented but I don't get notifications here and the weather was good for sneaking away on a boat.

mike
Back to top
View user's profile Send private message 
p310don

Joined: 19 May 2009
Posts: 1274
Location: Brisbane, Australia

PostPosted: Thu 19 Jul 2018, 08:30    Post subject:  

The PI is running Raspbian, I'm pretty sure from April this year.


Quote:
In mainstream Linux, the old methods of CUPS printer sharing as used by Puppy don't work any more. You need additional infrastructure.


I've come up against that, even in newer Pups with later / latest CUPS. I really like the setup that I have in that it "just works" - except when it doesn't as per this thread.

I've read the p910nd thread thinking it might have been my solution, but that windows driver thing is the stickler.

Quote:

In any case, using CUPS to share a printer that is already shareable by virtue of being a standalone networked printer is a rather convoluted process!


No doubt, but has the advantage of being able to use the driver that comes with Windows (HP Color Laserjet PS) so as to avoid bloat & resource overhead that some windows drivers have.
In that vein, there are two XP computers that commonly use this printer. They are identical hardware wise (P4, 2.8ghz, 512mb ram), one has SP3 and the other is SP1. The SP3 machine prints via the Windows driver. It loads a preview screen first, and then prints to the printer - a process that takes perhaps 30 seconds at best. The SP1 machine prints via CUPS (now) and takes maybe 10 seconds to do the job.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12397
Location: Stratford, Ontario

PostPosted: Thu 19 Jul 2018, 08:36    Post subject:  

I suspect that mikeb is correct about the SP1 box. Buried somewhere in its registry is information about the Samsung printer that ties it to the old IP, which it keeps wanting to use.

By using a different name for the Samsung printer, you were able to bypass this problem.

Last edited by rcrsn51 on Thu 19 Jul 2018, 09:50; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12397
Location: Stratford, Ontario

PostPosted: Thu 19 Jul 2018, 09:39    Post subject:  

I was curious about how your situation works with the newer CUPS.

I have a Stretch-live setup with CUPS 2.2.1. Its installed printer is a stand-alone HP Laserjet via the socket:// protocol over Ethernet.

I made this printer shareable with the usual two CUPS settings.

I then booted an old XP netbook. Using the printer wizard, I installed a networked printer like you did:
Code:
http://192.168.2.10:631/printers/HP_Laserjet_Pro..."

I selected "HP Color Laserjet PS" for the driver and printed a test page.

But it failed, and CUPS reported "can't detect file type".

So I tried a different driver in XP - "IBM Network printer 24 PS". This one worked!

So the system still works in new CUPS, but you need a more compatible Postscript driver in the XP box.
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 3186
Location: The Blue Marble

PostPosted: Thu 19 Jul 2018, 10:59    Post subject:  

rcrsn51 wrote:
I suspect that mikeb is correct about the SP1 box. Buried somewhere in its registry is information about the Samsung printer that ties it to the old IP, which it keeps wanting to use.

By using a different name for the Samsung printer, you were able to bypass this problem.


No that's not it. I run through the registry and remove anything that has a samsung name in it. And rebooted too to make sure. It didn't change anything. We tried connecting using hostname, IP address, etc. Nothing worked.

The machine that has SP1 also has Samsung driver installed there although it doesn't work. My thinking is, when WinXP tried to add the printer, it sent a query about the printer and found out that it was a Samsung, and thus attempted to pair it with the Samsung driver (which doesn't work). And then instead of saying bad driver or something, it produced a very helpful message of "cannot connect to printer".

The trick that p310don worked because when he first created BrotherSam share, it was a Brother printer (whose driver isn't installed in the machine), so Windows didn't attempt to pair it to an existing driver and displayed a "choose driver" dialog instead (and choose HP Color Laserjet PS). Which worked for the Brother printer.

Then from CUPS we "modify printer" and changed that share name to point to the Samsung printer (but keep the share name of "BrotherSam").

From Windows point of view, nothing changed; as far as it is concerned it thinks that it is still printing to the Brother printer using that HP Color Laserjet PS driver.

But of course now CUPS actually prints to Samsung. Which works.

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 3186
Location: The Blue Marble

PostPosted: Thu 19 Jul 2018, 11:07    Post subject:  

rcrsn51 wrote:
But it failed, and CUPS reported "can't detect file type".


That's exactly the error message that we saw.

If you see this: https://unix.stackexchange.com/questions/436253/cups-cant-detect-file-type-after-apt-dist-upgrade it said that CUPS worked before upgrade, and failed after that.

I think it's a bug somewhere in the CUPS printing chain. I didn't spend enough time on this to figure out what's wrong.

I'm inclined to this conclusion because there is similar bugs here: https://bugs.launchpad.net/ubuntu/+source/ubuntu-mate-artwork/+bug/1718394.

It said the filter failed. But the filter didn't fail using CUPS "print test page". So whatever doing Postscript rasterization isn't doing a good enough job.

Quote:
So I tried a different driver in XP - "IBM Network printer 24 PS". This one worked!

So the system still works in new CUPS, but you need a more compatible Postscript driver in the XP box.
Curious! Smile That adds weigh to the case of PS rasterisation bug.

As a side note: we're currently building a new Fatdog and the new CUPS have new elements in its rasterisation; mupdf. We haven't tested anything yet (we've got it to boot to desktop but many of the components aren't there yet), so it will be interesting to see what happens.

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12397
Location: Stratford, Ontario

PostPosted: Thu 19 Jul 2018, 16:21    Post subject:  

I notice that some of those examples refer to Gutenprint drivers.

I suspect that some drivers, like the HP Laserjet PS, have lost compatibility with how CUPS detects the format of the incoming job - PS, PDF, binary, etc.

But it's hard to know who's at fault.
Back to top
View user's profile Send private message 
p310don

Joined: 19 May 2009
Posts: 1274
Location: Brisbane, Australia

PostPosted: Thu 19 Jul 2018, 18:43    Post subject:  

Quote:
I selected "HP Color Laserjet PS" for the driver and printed a test page.

But it failed, and CUPS reported "can't detect file type".

So I tried a different driver in XP - "IBM Network printer 24 PS". This one worked!

So the system still works in new CUPS, but you need a more compatible Postscript driver in the XP box.


For interest's sake, I'll give this a go printing to the Pi's version of the printer and see what happens (it has a later CUPS). I have a couple of days off work, so won't have results for a little bit (unless curiosity gets the better of me and I go into work to check it out on my days off)
Back to top
View user's profile Send private message 
p310don

Joined: 19 May 2009
Posts: 1274
Location: Brisbane, Australia

PostPosted: Thu 19 Jul 2018, 21:57    Post subject:  

Great news. Someone was sick so I had to go to work. Not normally great news, but it gave me a chance to try to IBM Network printer driver to the PI's shared printer. Worked flawlessly first try.

So now the question is for rcrsn51, is it a good idea to change some of your how to's to use that driver rather than the HP Laserjet Color PS?
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12397
Location: Stratford, Ontario

PostPosted: Thu 19 Jul 2018, 22:10    Post subject:  

p310don wrote:
Great news. Someone was sick so I had to go to work. Not normally great news, but it gave me a chance to try to IBM Network printer driver to the PI's shared printer. Worked flawlessly first try.

Excellent.

Quote:
So now the question is for rcrsn51, is it a good idea to change some of your how to's to use that driver rather than the HP Laserjet Color PS?

Actually, I removed that info from How to Install your Printer in Puppy a while back.

I don't remember why - possibly because CUPS port 631 shared printing wasn't working the same way anymore and running a p910nd server seemed like a better choice.

Or maybe because the XP method no longer works in Win7. [Edit] I tried to make it work in Win7 and gave up.

But I will add a link to this thread.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [26 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0567s ][ Queries: 12 (0.0085s) ][ GZIP on ]