OS2World OLD-STATIC-BACKUP Forum

OS/2 - Technical => Hardware => Topic started by: Pete on 2009.08.28, 15:42:12

Title: Anyone tried the CUPS Warpin Archive yet?
Post by: Pete on 2009.08.28, 15:42:12
Hi All

Just trying to publicise the release of this Warpin Archive and get some feedback as to how installation went, what could be improved etc.

This Warpin Archive will, hopefully, make it much easier for people to get their "1st time CUPS install" right on the 1st attempt.


As to why we need CUPS: Support for *recent/current* printers. However, people should check that their printer is on the supported printers list - see http://svn.netlabs.org/ecups/wiki/CupsPort - or be able to provide a PPD file for an unsupported printer.



Extracts from the readme:-


CUPS for eCS
============


This Warpin package includes all current software packages
required to achieve printing using CUPS for eCS.
.
.
.
Installation Instructions
=========================


Make sure printer is connected and Powered on.


Select the appropriate packages for installation:


   - both cups and ghostscript packages are required

   - gutenprint package is required to support most printers

   - Splix package is required to support some Samsung and Xerox printers

     NOTE: cups requires installation to the root of a drive and needs
     ghostscript and gutenprint installed to the root of the same drive
     If you already have ghostscript installed then set the cups install
     drive to the drive with ghostscript installed
     Splix installs into the cups directory tree


   - ecups-driver package is required in order to create an OS/2 Desktop
          Printer Object to work with CUPS

     NOTE: if you run OpenOffice for Windows 115 using ar5os2.exe select
          the gutenprt driver package instead of the ecups-driver package in
          order to print from OO115 in Colour.

     ecups-driver and gutenprt installs create their own directories under
     \os2\dll
 

   - cupsportdriver package is required to link the OS/2 Printer created with
          either ecups-driver or gutenprt to the CUPS printing system and installs
     the files \os2\dll\cups.pdr and \tcpip\bin\cupslpr.exe


   - libc-0.6.3-csd3 package contains the libc06?.dll support files; Install
          if your system does not have these. The files are installed to \ecs\dll


   - gcc342 package contains gcc342.dll, a support file required by Splix;
          Install only if installing Splix package.
     The files are installed to \ecs\dll


   - Documentation, a readme and How To. These files are installed to
     \ecs\book\eCUPS.INF and \ecs\DOC\CUPS\ecups_readme.txt (this file)



Install the packages.

A program object called CUPS Daemon ( \cups\sbin\cupsd.exe ) will be placed in the
Startup folder and started Detached - check Process List to ensure it is running.

The "How To" will be displayed in the Help Viewer

The CUPS web based administration interface will be started in a browser window

You then need to follow the instructions in the above "How To" carefully in order
to create and test a CUPS printer then create and test an OS/2 (CUPS) printer



For those people wanting to give this a try the archive is available from http://svn.netlabs.org/ecups/wiki/CupsPort

Regards

Pete
Regards

Pete
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.08.28, 18:46:52
No, but I will try that if/when they release 2.0 RC7 to Software Subscription holders :|

Thanks for the heads up. Manually installing eCUPS is what prevented me from even trying it. It was a pain and I was never sure I had done everything correctly.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Matthew Walsh on 2009.08.28, 19:07:40
I highly recommend the current CUPS system.  Using it I have been able to use a USB Canon iP4500 inkjet and my Konica Minolta 5430 DL laser with great results.  Neither had a specific OS/2 - eCS driver and neither used Post Script or HPL.  This is a great system for printers that need different drivers and we should all thank the guys and gals working on it.  And thanks to Pete Brown for the warpin archive install test.
Matt W.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Pete on 2009.08.29, 17:44:15
Hi Saijin_Naib

No, but I will try that if/when they release 2.0 RC7 to Software Subscription holders :|



Time to get downloading then  :-)

Regards

Pete
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.08.29, 18:10:56
Hah, that's new. I checked early yesterday. Thanks for the heads up again :)
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.03, 02:41:11
eCUPS Warp-in worked great. Threw an error about the LIBC dll, but otherwise seems to have installed just fine.

I can't however, get CUPS to see my USB attached HP PSC1210xi. The USB.EXE file is in the CUPS backend folder but I guess I'm doing something wrong again -_-

The Linuxprinting.org site only lists HPLIP as supporting the PSC 1210xi, but they at one point had a .PPD for this printer.

Oh well, at least I have CUPS running this time. That is surely a step in the right direction.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Paul Smedley on 2009.09.03, 05:24:37
eCUPS Warp-in worked great. Threw an error about the LIBC dll, but otherwise seems to have installed just fine.

I can't however, get CUPS to see my USB attached HP PSC1210xi. The USB.EXE file is in the CUPS backend folder but I guess I'm doing something wrong again -_-

The Linuxprinting.org site only lists HPLIP as supporting the PSC 1210xi, but they at one point had a .PPD for this printer.

Oh well, at least I have CUPS running this time. That is surely a step in the right direction.

Try running usb.exe from \cups\lib\cups\backend and check the output....

HPLIP isn't currently working - and looks like a nightmare to get working (heavy reliance on python scripts to do all sorts of things), but it's likely that one of the HP printers supported by Gutenprint would work with the 1210xi

Cheers,

Paul
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: warpcafe on 2009.09.03, 09:23:00
Sorry, this is OT, but given the occasion...

Hi Paul!
Finally got your ADSL hooked up in the new home? :)

Cheers,
Thomas
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.03, 21:24:11
Thanks Paul.

When I run the usb.exe in the CUPS backend directory it just returns null. Nothing happens. If I run it with -h it does output an example string so I know it at least is running properly.

I am going to re-install and install LIBC ahead of time to be sure that that error was not a show-stopper. Even so, I can't auto-discover using the CUPS web interface and USB is not an option when I try to add one manually.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.13, 20:11:34
Fresh install of eCS 2.0 RC7 and CUPs warp-in. This time it did not throw any errors and everything went along smoothly.

Attached my PSC and it was recognized by USBdock and the USB widget for eCenter.

Ran USB.exe and it still returns null?

Tried to discover attached printers and that failed. Adding one manually didn't have USB as an option.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Paul Smedley on 2009.09.14, 04:40:20
Sorry, this is OT, but given the occasion...

Finally got your ADSL hooked up in the new home? :)

Yes :) Nice 21mbit sync speed too :)
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Paul Smedley on 2009.09.14, 04:42:37
Hi,

Fresh install of eCS 2.0 RC7 and CUPs warp-in. This time it did not throw any errors and everything went along smoothly.

Attached my PSC and it was recognized by USBdock and the USB widget for eCenter.

Ran USB.exe and it still returns null?

Tried to discover attached printers and that failed. Adding one manually didn't have USB as an option.

Sounds like usb.exe doesn't think your printer is a printer :)

Does USB dock allow you to generate a report on the device showing all its details? Can you send me a copy of that report offline?

I'll also try and rebuild usb.exe using the latest CUPS 1.4.1 source code.  Perhaps there have been some issues fixed in the CUPS code.

IIRC there is also an option for verbose output - try running 'usb.exe -v'
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.14, 04:46:50
I guess because it is a Printer/Scanner/Copier combo it could be slightly different than a straight-up printer.

However, it does not have a card reader slot so I don't think its identifying as Mass Storage.

Anyway, I will try USB.exe with the -v switch and I will get you that device report.

Sorry to be such a pain >_<
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: RobertM on 2009.09.14, 06:01:06
It is possible that the card reader sans slots is in the machine. (ie: the circuitry but not the requisite hardware to actually stick a card in). I've seen some HP laptops where they've done exactly that.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Pete on 2009.09.15, 01:41:32
Hi Paul

I had an email from someone called Paavo about a couple of problems with this WPI package. He also claimed that there was a problem with the included usb.exe:-

"There seems to be problem with latest USB.EXE (4.7.2009 106252 bytes).
At least for me it did not work. Replaced it with an earlier one,
8.3.2009 91429 bytes, and my usb printer was correctly detected. "


Looks like there was some sort of regression vis usb.exe...


Regards

Pete
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Paul Smedley on 2009.09.15, 04:31:10
"There seems to be problem with latest USB.EXE (4.7.2009 106252 bytes).
At least for me it did not work. Replaced it with an earlier one,
8.3.2009 91429 bytes, and my usb printer was correctly detected. "
There was a problem in the first zip file of 1.3.10 where the non-USB enabled build of usb.exe was included by accident.  When I realised the problem, I updated the zip file with the correct build of usb.exe.

Cheers,

Paul.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Pete on 2009.09.16, 02:32:34
Hi Paul

I see that there is a later build of cups1311 than the build I included in eCUPS002.WPI...

Guess that is a prompt for an eCUPS003.WPI which will also have an updated install script that should resolve the few install problems brought to my attention.

A quick look on smedley.info reveals there is also a later ghostscript available. I guess if I include this update then I should modify the path entry in /cups/lib/cups/filter/pstoraster to point to this new version rather than just provide the user with instructions to do so.

I'll upload a copy of eCUPS003.WPI to netlabs sometime in the next day or 3.

Regards

Pete



Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.16, 02:35:32
Thanks Pete :) Sounds good.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Pete on 2009.09.19, 16:27:01
Hi

eCUPS003.WPI is currently at ftp.netlabs.org/incoming and will probably move to ftp.netlabs.org/pub/ecups at some point in the (near) future.

This archive requires Warpin 1.0.18 (or later)  ftp://ftp.netlabs.org/pub/warpin/warpin-1-0-18.exe

Regards

Pete
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.19, 19:45:27
Thanks Pete. This version actually recognizes my PSC1210 and can set it up. Unfortunately, now I have to do the driver dance to see if one of the other supported PSCs will print with this.

I can no longer find the PSC1210xi PPD that linuxprinting used to host.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: warpcafe on 2009.09.19, 23:43:51
Hey Saijin-Naib,

if one of your schoolmates has a MacOS X Tiger or newer, check it out... according to HP the appropriate driver(s) and file(s) are contained in MacOS since "way back"... which means that -as one could suspect from it- you won't get them at the HP website. :) If that fails, you can still go to http://hplipopensource.com/hplip-web/index.html and check out if there's a way of getting the PPD out of the pack.

Cheers,
Thomas
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: warpcafe on 2009.09.19, 23:52:43
Hi again!

If that fails, you can still (snip)

...use the attached one.  ;D
There's a PPD for "hpcups" and one for "hplip"... now, don't ask me WTF... I have no clue about that stuff, anyway, perhaps that helps? BTW: They were taken from the "hplipopensource" (as mentioned above) tar.

Cheers,
Thomas
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.20, 03:48:06
You guys are fantastic.
Thanks so much.
I'll give it a shot later tonight, I'm going bowling soon :D
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Paul Smedley on 2009.09.20, 08:08:07
Hi again!

If that fails, you can still (snip)

...use the attached one.  ;D
There's a PPD for "hpcups" and one for "hplip"... now, don't ask me WTF... I have no clue about that stuff, anyway, perhaps that helps? BTW: They were taken from the "hplipopensource" (as mentioned above) tar.

This won't work.... these ppd's will depend on the hp backend contained in the hplip archive.  Unfortunately, porting hplip is non-trivial....
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: warpcafe on 2009.09.20, 13:07:56
Darn!

I knew there must have been a hidden catch with it: It would have been too easy. :)
Thanks Paul for clarifying...

Cheers,
Thomas
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.20, 17:30:08
Awh poop. I tried it last night but chalked it up to me not doing it right. eCUPS suggested the PSC 350 driver when i Auto detected the printer. perhaps I'll try that again.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: melf on 2009.09.20, 20:33:39
I'm also trying the ecups-wpi archive. But there is one thing I need some advice on. My printer is connected to a printer server (an old laptop running eCS 1.2). Internal IP is 192.168.0.142  and printer is connected to LPT1. What do I write in the URI-field? I wrote lpd://192.168.0.142/lpt1 but that doesnt work. It says the printer is busy (which it isn't). Someone who has a similar setup and knows the right way to write it?
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.09.20, 20:51:00
Can eCups auto-detect it over the network? Try to do that instead.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: melf on 2009.09.20, 21:47:59
 No it can't. But I feel quite stupid here, regarding how ecups detect network printers.

Shall I log on to my network via the ordinary LAN Logon or should I use evfs Samba or does ecups detect printers in some other way through my router?? And if the later is the case I guess it just can see directly connected network printers and not those conntected through servers?
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: warpcafe on 2009.09.20, 22:22:42
Hi melf,

try "lp0" (l-p-zero) instead of "lpt1".
That's the way how my hardware "print server" calls it. I also think that's the unixish way of calling these /dev/... (? not sure...)
I can't tell how these things work if the server is an eCS machine... I guess my server has some kind of embedded Linux running in it.
If that still doesn't get you anywhere, I can provide some screenshots and info about how I set up the ports/drivers on my eCS machine.

BTW:
I bought that box some years ago to be able to access USB printers over the network and save me from fiddling with USB print support. Works great.
(If anyone is thinking about "why would someone use such a box for? :) )

Cheers, HTH,
Thomas
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Pete on 2009.09.21, 01:01:41
Hi Melf

For auto detection to work I think your (laptop) print server would need to have a bidirectional parallel port and the BIOS would probably need to be set to ECP/EPP (something like that - long time since I bothered with either serial or parallel ports on systems).

The auto detect fails with my printer which is connected to the print server built into my router so don't feel "put upon" about it  :-)

I am surprised that the obvious uri does not work... Are you sure there are not any jobs stuck in a print queue but not visible for whatever reason - check the directories under \var\SPOOL on an eCS system; cannot remember where os/2 has SPOOL... possibly \SPOOL. If any subdirectories contain files then that probably is the cause of the printer being "busy".

I also wonder if CaSe is relevant?... try /LPT1 instead of /lpt1. You could also try ipp:// instead of lpd://

You are using a tcpip connection so lan logon does not apply.

You will find that the \cups\etc\cups\cupsd.conf and \cups\etc\cups\printers.conf give you access to this printer:-

printers.conf has a line that is usually set to

"OpPolicy default"

and cupsd.conf has

"# Default authentication type, when authentication is required...
DefaultAuthType Basic"

If you change those then you need to set up cups users and passwords in the cups admin - Have fun :-)

Hope the above is of some help

Pete
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: melf on 2009.09.21, 08:00:49
Thomas and Pete, great thanks to both of you. I'll try your suggestions out during the day. I'll remember there is a parallell port setting in bios - I'll check it up.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Paul Smedley on 2009.09.21, 11:42:54
I'm also trying the ecups-wpi archive. But there is one thing I need some advice on. My printer is connected to a printer server (an old laptop running eCS 1.2). Internal IP is 192.168.0.142  and printer is connected to LPT1. What do I write in the URI-field? I wrote lpd://192.168.0.142/lpt1 but that doesnt work. It says the printer is busy (which it isn't). Someone who has a similar setup and knows the right way to write it?

What is the name of the 'Physical Name' of the printer object on the laptop running ecS 1.2?  ie RMB on the printer object and click properties.

lpd syntax will be: lpd://192.168.0.142/Physical_Name - where Physical_Name is the 8 character name of the printer
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: melf on 2009.09.21, 20:33:39
Hi all,
Now I've tried all your suggestions and none worked for me (thanks also to Paul!). I've tried numerous different variants of the suggestions from you and from the helpfiles. As my printerserver also works as a webserver I also deactivated the connection between my webserver and this IP-number and tried again.

Still I get a persistent "recoverable: Network host '192.168.0.142' is busy; will retry in 15 seconds..." message and so on. Printing with ordinary eCS printing system works well. Printer is a Kyocera FS-1000, so no problem with drivers. When trying Pauls suggestion (physical name is KyoceraF) I also thought about eventual case sensitivity.

There is no crisis for me, I can print the old way, but just want to try it out.

Regards
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: rudi on 2009.09.22, 07:52:48
Are you running a line printer daemon on your "printserver" ? I'd think you have to in order
to access it as lpd://....
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: melf on 2009.09.22, 13:22:00
Are you running a line printer daemon on your "printserver" ? I'd think you have to in order
to access it as lpd://....


Thanks a lot Rudi - that was the answer! I launched lpd.exe (in /TCPIP/BIN) in my printserver and used the line
lpd://192.168.0.142/KyoceraF in CUPS.

Thanks for help everyone!
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: djcaetano on 2009.10.08, 19:19:34
  The install is great, seamless. But... no luck with the printer we use
on my office (HP Photosmart C4480). I noticed Linux people can use
this using HPLIP driver (together with CUPS), and noticed HP has some
kind of agreement to provide code for supporting HP printers on non-Linux
solutions:

http://spp.austin.hp.com/SPP/SPPMigrated/apdk.aspx

   I think Serenity Systems should contact them. This HPLIP

http://hplipopensource.com/hplip-web/index.html

   Supports many HP printers not supported by other opensource
drivers. HPLIP site says:

"HPLIP is free, open source software, distributed under the following open source licenses:
GNU General Public License (GPL) v2
MIT license
BSD license"

  But... back to the topic, CUPS could not see printers on the network. Is
there any special configuration I need to edit? (Network printers are
shared using NetBIOS over TCP/IP, not LPD... it will work this way?)
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Saijin_Naib on 2009.10.08, 20:12:16
If I recall correctly from Paul Smedley, he has looked at HPLIP but it requires a ton of python and other code to work properly.

My printer/scanner/copier requires HPLIP to function as well.
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Pete on 2009.10.08, 20:54:16
Hi djcaetano

I think you may need to look into how samba and cups "hook up" together in order to use a shared printer with cups. I saw a post recently on the gmane.org.netlabs.ecups.devel newsgroup which is probably of interest to you:-

Hi All,

FWIW I just got CUPS to print to a printer that's shared off a Samba
server.

A fixed cupsd.exe is required - it will be available in the next
release.

I had to get this working as my new Qnap NAS only supports printer
sharing using smb - not lpd or ipp :)

If anyone is interested in testing, I can make the new executable
available.

--
Cheers,

Paul.



A later post gives this link  http://smedley.info/cupsd-2009-10-04.zip

Another post reveals this possibly useful nugget "URI syntax is smb://username:password@hostname/queue_name" - something to know when setting up the printer in cups  :-)

This is not something I've needed to try myself so have no words of advice to offer apart from the obvious you would need to install the samba server on the system with the printer attached and share the printer via samba.

I think the latest samba server is here ftp://ftp.netlabs.org/pub/samba/server/


Maybe 1 day someone will get around to porting the hplip software - Paul seems to be involved with so many ports already that he, probably, simply does not have time to port this package.


Hope the above is of some help.

Pete
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Pete on 2009.10.09, 03:32:18
Hi

Thought it might help if I add the url for the eCS samba website to my previous post http://svn.netlabs.org/samba

Regards

Pete
Title: Re: Anyone tried the CUPS Warpin Archive yet?
Post by: Paul Smedley on 2009.10.14, 04:20:30
Maybe 1 day someone will get around to porting the hplip software - Paul seems to be involved with so many ports already that he, probably, simply does not have time to port this package.

Actually, I can easily compile the hplip code - but it uses a bunch of python scripts which are highly tied to *nix that make it hard to configure on OS/2.  I haven't had enough free time to pursue things further - particularly since I moved house in August and seem to have almost zero free time as we're currently renovating.

Hopefully by Christmas things will have settled down a bit.

Cheers,

Paul