OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: Pete on January 19, 2015, 03:24:50 am

Title: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on January 19, 2015, 03:24:50 am
Hi All

Having stated in an OpenOffice4.1.1 discussion that I would "cobble together" a cups 2.0 "how To" I did not realise what a long job it would be. I have finally completed the job - I hope.

I have to apologise that this document has been created from memory - which can be inaccurate at times - and from postings I made about the software in the ecups newsgroup so may be slightly incorrect in software versions used or an incomplete list. It is based mainly on my experience of getting cups 2.0 working with

   1] Epson RX585 USB attached to a wireless connected DLink DP-G310 Print Server
   2] Canon PIXMA MG7550 wireless connected - no MG7550 driver but the earlier MG7150 seems to work OK

So, no experience of setting up a USB printer - but it should not be too difficult...

I did make notes when installing cups 2.0 and supporting software but lost my notes when my hard drive crashed just over a week before Christmas...
To make matters much worse: With my new hard drive installed, LVM'd and volumes formatted I plugged in my USB backup drive to xcopy all the backups made the previous week expecting to be back to a fully working setup after a short period of time spent xcopying. As I turned the usb drive on it made a few beeps followed by "Fizzzllle - BANG!
No, the data is not recoverable from that drive either.
So, it is down to my memory and ecups newsgroups postings...

Luckily my own reinstall of cups 2.0 and supporting software was very easy - as the main cups software is in the root of the same drive and is pretty much "self contained" it was a simple copy down the network from another pc.



1] Getting the software and where to unzip packages to
======================================================


Name and url of software - Unzip to or Copy to or other Instructions


a] The main cups packages
-------------------------


cups 2.0: https://dl.dropboxusercontent.com/u/76425158/cups-2.0.0-os2-20141019.zip - Unzip honouring the zipped directory structure to root of a drive [?]: and copy [?]:\cups\lib\cups20.dll to either [BootDrive]:\ecs\dll or [BootDrive]:\os2\dll - alternatively add [?]:\cups\lib to the config.sys libpath and reboot *before* trying to start the eCUPS Daemon (cupsd.exe) later.


cups filters: http://smedley.id.au/tmp/cups-filters-1.0.61-os2-20141011.zip - Unzip honouring the zipped directory structure to root of same drive as cups2.0

 
ghostscript 9.15: https://dl.dropboxusercontent.com/u/76425158/ghostscript-9.15-os2-20141011.zip - Unzip honouring the zipped directory structure to the directory [same drive as cups2.0]:\gs  resulting in \gs\gs9.15 directory structure


gutenprint 5.2.10: https://dl.dropboxusercontent.com/u/76425158/gutenprint-5.2.10-os2-20141019.zip - Unzip honouring the zipped directory structure to root of same drive as cups2.0



b] Supporting software required
------------------------------------------


GCC491.DLL  http://smedley.id.au/gcc491.zip - Unzip gcc491.dll to either [BootDrive]:\ecs\dll or [BootDrive]:\os2\dll


https://dl.dropboxusercontent.com/u/76425158/coreutils-8.8-os2-20101223.zip - Unzip only these files to \cups\bin:-

    cat.exe
    rm.exe
    printf.exe
    mktemp.exe


http://rpm.netlabs.org/release/00/zip/grep-2_10-2_oc00.zip - Unzip only these files to \cups\bin:-

    grep.exe
    egrep.exe
    fgrep.exe


http://hobbes.ecomstation.co.kr/mirror/os2/hobbes.nmsu.edu/pub/incoming/wget-1.14-1-os2.zip - Unzip *only* this file to
either [BootDrive]:\ecs\dll or [BootDrive]:\os2\dll

    PCRE8.DLL


sed.exe is required.
eCS 2.1/2.2 users will find a copy in [BootDrive]:\ecs\bin which should be copied to /cups/bin/sed.exe
I have not had to find this file online but this build may work http://rpm.netlabs.org/release/00/zip/sed-4_2_1-2_oc00.zip
NOTE: The only file required from this package is sed.exe which should be unzipped to /cups/bin


cupsash.exe is required.
I am using a copy from cups 1.4.8; latest build is https://dl.dropbox.com/u/76425158/cups-1.4.8-os2-20121221.zip
Unzip *only* cupsash.exe to /cups/sbin

sh.exe is required.
I copied /cups/sbin/cupsash.exe to /cups/sbin/sh.exe - seems to work fine



c] Optional supporting packages
-------------------------------

Other software may be required depending on the printer make/model and connection method. This software is usually available from the ecups website http://trac.netlabs.org/ecups/

If you have a USB attached printer then you probably need the libusb package either:-
 ftp://ftp.netlabs.org/pub/ecups/install/libusbdll10.wpi or http://www.altsan.org/os2/printing/ecups/libusbdll10.wpi

If you have a Canon printer that uses the CNBJNP (Canon BJ Network Port?) printer port in Windows you will need the cups-bjnp package not yet listed on the ecups website - I believe it is required for recent/current usb as well as network printers:-

Release build: http://smedley.id.au/tmp/tmp%5Ccups-bjnp-1.2.2-os2-20140526.zip
Beta Build: http://smedley.id.au/tmp/tmp%5Ccups-bjnp-1.9.2-os2-20140526.zip

Unzip bjnp.exe from either of the above honouring the zipped directory structure to the root of the drive with cups 2.0 installed - the file should end up in \cups\lib\cups\backend
I suspect the difference between the 2 builds is how up to date the supported printers list is  - having a current Canon (PIXMA MG7550) I used the 1.9.2 package which is working fine.
When setting up your printer in cups 2.0 you will use bjnp as part of the Device uri. A network printer needs an ip address and port number eg:- bjnp://192.168.7.342:8611; Sorry, I have not attached the printer using usb so do not know what that Device uri would look like.

The cups-bjnp packages require cups17.dll - http://www.os2site.com/sw/drivers/printer/cups/cups-1.7.2-os2-20140517.zip
Unzip *only* cups17.dll honouring the zipped directory structure to the root of the drive with cups 2.0 installed - the file should end up in \cups\lib - not sure whether there should also be a copy in [BootDrive]:\ecs\dll or [BootDrive]:\os2\dll; I seem to recall that cups17.dll is also used by some qt apps so this may be a good move.




The OS/2 printing bits
----------------------


a] The cups port driver - required for printing with cups from OS/2 apps
 
http://www.altsan.org/os2/printing/ecups/cupspdr_103.zip - Unzip *only* ecups.pdr to [BootDrive]:\os2\dll
For the port driver to work you also need to copy \cups\bin\lpr.exe to [BootDrive]:\tcpip\bin\cupslpr.exe
IMPORTANT: Do *NOT* use the cupslpr.exe included in the cupspdr_103.zip file as it will not work with cups 2.0


b] The OS/2 printer driver - required for printing with cups from OS/2 apps

http://www.altsan.org/os2/printing/index.html#psprint - I suggest reading this page before downloading the PSPRINT driver package. When downloaded Unzip to [BootDrive]:\os2\dll\PSPRINT

For the OS/2 postscript printer setup I recommend using the PSPRINT package rather than the usual eCUPS package.
The reason is that the PSPRINT driver produces output from OpenOffice 4.1.1 RC3 and GA whereas using the ECUPS driver always resulted in a failure to print.
The cups error log showed something like "not defined in /mdef" at the point that printing failed.
Using the PSPRINT driver resolves that problem but if using a printer which uses the PostScript ColorModel scheme the printer output is greyscale when colour ouput is selected.
Luckily selecting greyscale output in the Print Job Properties results in colour printing.





2] Making it all work
=====================


a] Configuring the CUPS Printer
-------------------------------


Make sure your printer is powered on and ready to print.

Having unpackaged all required software into the correct locations the next step is to create the eCUPS Daemon in the Startup folder.

Open the Startup folder, RMB (Right Mouse Button) click on the folder to display the popup menu, Select Create New, Program Object and name it eCUPS Daemon.

Open the Properties for the eCUPS Daemon and enter these details:-

   Path and filename:  cmd.exe
   Parameters:  /c detach ?:\CUPS\SBIN\CUPSD.EXE
   Working directory: ?:\CUPS\SBIN

Obviously you need to change the above "?" to the drive letter that cups is installed on.

Having created the eCUPS Daemon double click to start it then open a browser window at http://localhost:631/admin

Click the Add Printer button. If cups reports your printer click Continue and work through the setup pages until you have selected printer Make and Model - The "Simplified" version of the driver is recommended - and clicked the Add Printer button.

If CUPS does not see your printer then you need to use the Command line to create a basic printer that can be modified using the browser interface.

   Open a command line window in \cups\sbin and enter the following command for a network printer:-

   lpadmin -p YourPrinterName -E -v PrinterIP/Port or Queue Name     
          eg:-
      lpadmin -p RX585 -E -v socket://192.168.1.251/IP_192.168.1.251
                 or
      lpadmin -p RX585 -E -v lpd://192.168.1.251/lpt1

   (Sorry, no idea what to do with USB printers here but would expect those to be found by cups)
   
   "Kill" the eCUPS Daemon cupsd.exe, it will take 4 "kills" before it no longer appears in the Process List,
        then (Re)Start the eCUPS Daemon to load the new printer info.

There should now be a \cups\etc\cups\printers.conf file with the basic printer details. This can be Modified using the browser interface. Load http://localhost:631/printers/ then click on your printer under Queue Name. On the next page click the Modify Printer option in the Administration dropdown list and work through the setup pages. When selecting the PPD file make sure to use the "Simplified" version.



If I remember correctly the eCUPS Daemon (cupsd.exe) is stopped and restarted to load the new printer configuration - and the browser may fail to load the printers page due to an incorrect url so point the browser at http://localhost:631/printers/ then click on your printer under Queue Name. Come to think of it you will probably find a few broken urls resulting in pages displaying "Internal Server Error" when using the cups browser interface but the "broken" url is usually easily corrected.

You can then check that Default print options are correct and then print a Test Page from the Maintenance dropdown list.



!Configuration tip!

Edit the PSTOPDF Filter to avoid unnecessary error messages in the cups error log file

Open the file \cups\lib\cups\filter\pstopdf and change the line

                -dPDFSETTINGS=/printer -dUseCIEColor \
to
                -dPDFSETTINGS=/printer \

Save the file and exit the editor.

Reason: The option -dUseCIEColor is no longer supported and simply adds to confusion if you need to debug the cups error log.




b] Configuring the OS/2 Printer
-------------------------------


OK, We have done the easy bits and finally arrived at the fiddly bit.

Before proceeding further read the [BootDrive]:\OS2\DLL\PSPRINT\readme file paying specific attention to adding a PPD file to PSPRINT.DRV

Open a Command Line Window in [BootDrive]:\OS2\DLL\PSPRINT and run these commands:-

   [[BootDrive]:\OS2\DLL\PSPRINT]copy [?]:\cups\etc\cups\ppd\[your CUPS printer name].ppd to [newname].ppd
     eg:-  copy J:\cups\etc\cups\ppd\MG7550.ppd newMG7500.ppd

   [[BootDrive]:\OS2\DLL\PSPRINT]cleanppd [newname].ppd
     eg:-  cleanppd newMG7500.ppd

   [[BootDrive]:\OS2\DLL\PSPRINT]ppdenc [newname].ppd [your CUPS printer name].ppd
     eg:-  ppdenc newMG7500.ppd MG7550.ppd

   [[BootDrive]:\OS2\DLL\PSPRINT]del [newname].ppd
Note: This leaves only [your CUPS printer name].ppd (eg MG7550.ppd) to be added to the driver in the next step - otherwise both PPD files would get added which could cause problems.

   [[BootDrive]:\OS2\DLL\PSPRINT]pin ppd [BootDrive]:\OS2\DLL\PSPRINT [BootDrive]:\OS2\DLL\PSPRINT\PSPRINT.DRV
     eg:-  pin ppd H:\OS2\DLL\PSPRINT H:\OS2\DLL\PSPRINT\PSPRINT.DRV



As long as all the above steps were successful you can Close the Command Line Window.

The next step is to Create an OS/2 Printer.

There seems to be various ways of achieving this depending on which OS/2 and what printer install routines are available so a general guide:-

Start the OS/2 or eCS Create Printer routine and select Local Printer

Name the Printer and then click Install new printer driver

Enter the location of PSPRINT.DRV - [BootDrive]:\OS2\DLL\PSPRINT  - and click Refresh

Select your printer and click Install.

The Create Printer dialog closes and you should have your new printer in the Printers folder.

Open the Properties for the new printer and select the Output Port tab. If you do not have a CUPS port displayed click Install new port and select the CUPS port if available. If it is not available select New port drivers, enter the Directory [BootDrive]:\OS2\DLL and click Refresh. The CUPS port should now be available for selection. The CUPS port will need configuring so double click on it to open the settings.

The CUPS Server is localhost; the CUPS Printer name is [your CUPS printer name] - the same name used in cups.

You may want to have a look through the Job Properties on the Printer Driver tab to make sure all looks about right before closing the Properties.

You should now have a working OS/2 printer that will pass postscript files to the cups printer for printing so, fire up an app and try to print something.



Hopefully the above will be of help in getting cups 2.0 plus necessary supporting software working for you.


Now, back to getting the scanner side of the MG7550 working perfectly with a wireless connection ...


Regards

Pete






 
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Greggory Shaw on January 19, 2015, 03:57:52 am
Great job and thanks Pete !

Can I post this on my site ?


Greggory
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on January 19, 2015, 03:55:49 pm
Hi Greggory

Yes, you certainly can post the "How To" on your website  :-)


Regards

Pete
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: ivan on January 21, 2015, 12:03:49 am
Thanks for that Pete.

Now a question.  How do you correct the "Internal Server Error"?  I am getting it just about every other mouse click.

Cups on OS/2 still doesn't want to talk to my HP color laserjet 3500 attached to the print server of my DNS-323 NAS yet using a live linux DVD does it without problems - go figure.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on January 21, 2015, 02:22:05 am
Hi ivan

I do not correct the "Internal Server Error" - I figure that is either the cups developers or porters job  ;-)

Usually the error is caused by a failed url redirect so I look at the url and strip out the unwanted bit(s) and press Enter.
I guess an example...

I have just worked through Modify Printer and the browser tried to reload the page specific to the modified printer but used this url

                       http://localhost:631/admin/?OP=redirect&URL=/printers/MG7550

Which resulted in the "Internal Server Error" page loading.

Modifying the url to

                     http://localhost:631/printers/MG7550

works fine. So the usual trick is to remove /admin/?OP=redirect&URL= from the failed url.

Why cups does not work with your HP color laserjet 3500 could be explained by the use of the print server.

So far cups - any build - has *always* failed to "see" my network printers regardless of whether they are usb or lpt attached to a print server or use wireless networking. Of course, if cups cannot "see" the printer it becomes difficult to get past the Connection page of cups configuration.

If this is the case you can try manually creating a printers.conf file, see the section "Configuring the CUPS Printer" in the "How To" for a brief guide.

If it is a different problem then maybe a lot more detail will be of help in trying to figure out the problem.

As to why linux does not have the same problem I do not know...


Regards

Pete
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on January 21, 2015, 02:55:43 am
Hi Ivan,

Thanks for that Pete.

Now a question.  How do you correct the "Internal Server Error"?  I am getting it just about every other mouse click.

Cups on OS/2 still doesn't want to talk to my HP color laserjet 3500 attached to the print server of my DNS-323 NAS yet using a live linux DVD does it without problems - go figure.

A log file with debug logging enabled might help. I've had reports of the error, but can't reproduce it locally. If I can't reproduce it, it can be very difficult to identify the problem. CUPS makes extensive use of sockets and piping output between executables - binary/text output modes on OS/2 make things interesting in this regard....

<sarcasm on>Must be because I run eCS virtualised and don't test on SMP....<sarcasm off>
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on January 21, 2015, 02:57:57 am
Hey Pete,

I do not correct the "Internal Server Error" - I figure that is either the cups developers or porters job  ;-)

Usually the error is caused by a failed url redirect so I look at the url and strip out the unwanted bit(s) and press Enter.
I guess an example...

I have just worked through Modify Printer and the browser tried to reload the page specific to the modified printer but used this url

                       http://localhost:631/admin/?OP=redirect&URL=/printers/MG7550

Which resulted in the "Internal Server Error" page loading.

Modifying the url to

                     http://localhost:631/printers/MG7550

works fine. So the usual trick is to remove /admin/?OP=redirect&URL= from the failed url.

Why cups does not work with your HP color laserjet 3500 could be explained by the use of the print server.

So far cups - any build - has *always* failed to "see" my network printers regardless of whether they are usb or lpt attached to a print server or use wireless networking. Of course, if cups cannot "see" the printer it becomes difficult to get past the Connection page of cups configuration.

If this is the case you can try manually creating a printers.conf file, see the section "Configuring the CUPS Printer" in the "How To" for a brief guide.

If it is a different problem then maybe a lot more detail will be of help in trying to figure out the problem.

As to why linux does not have the same problem I do not know...

I'm guessing you mean that CUPS on OS/2 can't autodetect your network printer? Here it's inconsistent - sometimes it works, sometimes it doesn't. One day I'll get around to trying to track that down. In relation to the Internal Server Error - if you have consistent steps to reproduce, I'm interested, as I get them randomly but not consistently.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Alex Taylor on January 21, 2015, 03:48:18 am
Quote
http://www.altsan.org/os2/printing/ecups/cupspdr_103.zip

This version is long obsolete.  Please point to version 1.04 instead: http://www.altsan.org/os2/printing/ecups/cupspdr_104.zip
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on January 21, 2015, 05:41:50 am
Hi Paul

The example shown is consistent here ie the close of Modify Printer always results in the Internal Server Error.

The problem with the cups failure to detect a printer is that it is not too obvious how to proceed to get around that - hence the mention in the how to. Sometimes it is useful to know the "Command Line Cowboy" way of doing things  :-)

Regards

Pete
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on January 21, 2015, 06:06:36 am
Hi Alex

The "how to" is based on my experience of installing/configuring cups 2.0 plus the software I used.

I'll certainly give cupspdr_104 a go though - can always modify the "how to" after a successful trial  :-)

Having now unzipped cupspdr_104 I think the cupslpr.exe included will probably need to be replaced by the cups 2.0 version to avoid potential "could not connect to cups server" print fail messages.

Maybe you would be better off not including cupslpr.exe in the cupspdr package and explain in the readme that it is necessary to copy the cups\bin\lpr.exe file to tcpip\bin\cupslpr.exe


Regards

Pete
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: ivan on January 21, 2015, 11:52:13 am
Attached is the error log for those interested in such things.  It was produced when I tried to get it to print a test page.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on January 22, 2015, 01:48:17 am
Hi ivan

A quick look shows this problem occurs several times:-

D [20/Jan/2015:23:20:04 -0100] [Job ???] Auto-typing file...
I [20/Jan/2015:23:20:04 -0100] [Job ???] Request file type is application/vnd.cups-banner.
D [20/Jan/2015:23:20:04 -0100] Print-Job client-error-document-format-not-supported: Unsupported format "application/vnd.cups-banner".
E [20/Jan/2015:23:20:04 -0100] [Client 37] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/lp) from localhost

a little further down I see:-

D [20/Jan/2015:23:20:05 -0100] [CGI] cgiSetVariable: CUPS_VERSION="CUPS v2.0.0"
D [20/Jan/2015:23:20:05 -0100] [CGI] cgiSetArray: document_format[0]="application/vnd.cups-banner"
D [20/Jan/2015:23:20:05 -0100] [CGI] cgiSetVariable: TITLE="Print Test Page"
D [20/Jan/2015:23:20:05 -0100] [CGI] cgiSetVariable: SERVER_NAME="localhost"
D [20/Jan/2015:23:20:05 -0100] [CGI] cgiSetVariable: CUPS_VERSION="CUPS v2.0.0"
D [20/Jan/2015:23:20:05 -0100] [Client 36] CGI data ready to be sent.
D [20/Jan/2015:23:20:05 -0100] [CGI] cgiSetVariable: MESSAGE="Unable to print test page"
D [20/Jan/2015:23:20:05 -0100] [CGI] cgiSetVariable: ERROR="Unsupported format "application/vnd.cups-banner"."


I would expect cups to be able to print it's own test page but obiously something is wrong. May be there is a missing filter in your cups setup?

Does the printer use the cups hplip package?


Regards

Pete
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on January 22, 2015, 09:23:14 am
I [20/Jan/2015:23:20:04 -0100] [Job ???] Request file type is application/vnd.cups-banner.
D [20/Jan/2015:23:20:04 -0100] Print-Job client-error-document-format-not-supported: Unsupported format "application/vnd.cups-banner".
E [20/Jan/2015:23:20:04 -0100] [Client 37] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/lp) from localhost

This one rings a bell. grep'ing the /cups directory for vnd.cups-banner might refresh my memory. IIRC it's a sign of old test files from cups pre-2.0. How was CUPS installed? re-unzipping cups-filters and overwriting the old test files might help
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on January 23, 2015, 02:47:51 am
Hi ivan

Having just done a clean install of cups 2.0 on a laptop I printed a test page and then checked the error log.

Your error log snippet posted above shows

  Request file type is application/vnd.cups-banner.

That is wrong; it should show

  Request file type is application/vnd.cups-pdf-banner.


This suggests that you may have installed over an existing cups setup or that some files remained from the existing setup.

I suspect a clean install will resolve the problem - or give us something else to try to resolve  :-)


Regards

Pete
 

Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: ivan on January 23, 2015, 11:02:40 am
Thanks Pete, hopefully I will have time at the weekend - we got a callout and I'm surrounded by cold white stuff at the moment, needed chains on all 4 wheels to get here.

Am I correct in assuming I need the hplip backend because this is an HP printer?
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on January 24, 2015, 02:43:06 am
Hi ivan

Sorry, hope a HP user jumps in here because I have no idea...

Just for fun I had a quick look here http://hplipopensource.com/hplip-web/models/color_laserjet/hp_color_laserjet_3500.html

I suspect you need hplip.


Regards

Pete
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Doug Bissett on January 24, 2015, 07:51:05 am
Quote
Am I correct in assuming I need the hplip backend because this is an HP printer?

AFAIK, all modern HP printers need HPLIP for CUPS. The question is, which one? I have hplip-3.14.3-os2-20140427.zip and hplip-3_12_10a.wpi. The first is newer, but it installs in a completely different way than the second, older, version. If you have both of them, both will show as an option. The second one works with CUPS 1.4.8.

I have been through the CUPS 2.0.0 setup about 3 times now (using each version of HPLIP), and I cannot get CUPS to print to either my HP D110a (WiFi connected), or my HP C4180 (USB connected).

I think that I have all of the parts mentioned by Pete, plus HPLIP. installed. I did remove all traces of CUPS, HPLIP, and Ghostscript, before re-installing. That made no difference.  I also tried psprint-30_905.zip, which seems to partly break CUPS 1.4.8 (could be the old Lotus SmartSuite bug, which I haven't seen for years), but it made no difference with CUPS 2.0.0.

At the moment, I need to remove it all, again, and start over. Then, I need to extract a usable log file.

I will note here, that I do not even attempt to get scanning working with these printers. The D110a (WiFi connected) has a built in web page, where you can scan, and then simply download the "picture" using the browser. This is far easier, and far more effective, than messing around with HPAIO, and TAME. I think that all recent, network connected, HP printers have that feature.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Andi B. on January 24, 2015, 11:31:59 am
Quote
AFAIK, all modern HP printers need HPLIP for CUPS
SOHO devices like the HP Officejet Pro X476dw still support PCL5c, PCL6, PDF and Postscript Level 3 emulation. Sounds like they should work with standard psdriver and laserjet drivers. Someone tested such device?
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 24, 2015, 03:41:39 pm

c] Optional supporting packages
-------------------------------

Release build: http://smedley.id.au/tmp/tmp%5Ccups-bjnp-1.2.2-os2-20140526.zip
Beta Build: http://smedley.id.au/tmp/tmp%5Ccups-bjnp-1.9.2-os2-20140526.zip

!Configuration tip!

Edit the PSTOPDF Filter to avoid unnecessary error messages in the cups error log file

Open the file \cups\lib\cups\filter\pstopdf and change the line

                -dPDFSETTINGS=/printer -dUseCIEColor \
to
                -dPDFSETTINGS=/printer \


The links to these Canon packages are dead.

Shouldn't these lines in cups\lib\cups\filter\pstopdf be modified to point to GS9.15?:

PS2PS=/gs/gs8.71/lib/ps2ps
GS=/gs/gs8.71/bin/gsos2.exe

Although my Canon MP540 works with cups 1.4.8 without the cups-bjnp-1.2.2-os2-20140526.zip package which I can't find  it won't work with 2.0
Getting this error: "Waiting for printer to become available."

I have set the error log to debug level and attached the log. Maybe someone van see what is going wrong.

Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Doug Bissett on January 24, 2015, 09:55:16 pm
Quote
Then, I need to extract a usable log file.

Okay, two log files (I have no idea if they are usable, they don't tell me anything, or I missed it).

CUPS_HP_C4180.zip contains logs when trying to print to my HP C4180 USB connected printer. That just sits there doing nothing.

CUPS_HP_D110a.zip contains logs when trying to print to my HP D110a WiFi connected printer. That stops with a complaint that the file is not a PDF file.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on January 25, 2015, 08:02:30 am
Although my Canon MP540 works with cups 1.4.8 without the cups-bjnp-1.2.2-os2-20140526.zip package which I can't find  it won't work with 2.0
Getting this error: "Waiting for printer to become available."

Which backend? IIRC there are some issues with some of the backends in newer CUPS that I haven't been able to root cause. try copying over the corresponding backend executable (ie socket.exe for socket printing) to the new install
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 25, 2015, 03:44:45 pm
Although my Canon MP540 works with cups 1.4.8 without the cups-bjnp-1.2.2-os2-20140526.zip package which I can't find  it won't work with 2.0
Getting this error: "Waiting for printer to become available."

Which backend? IIRC there are some issues with some of the backends in newer CUPS that I haven't been able to root cause. try copying over the corresponding backend executable (ie socket.exe for socket printing) to the new install

Thanks Paul,

USB.exe. Changed it for the version from cups 1.4.8, the error went away. Printing stops after about 33%. In the logs I see:
 D [25/Jan/2015:15:39:20 -0100] [Job 6] PID 211 (/cups/lib/cups/filter/gstoraster.exe) exited with no errors.
D [25/Jan/2015:15:39:20 -0100] [Job 6] PID 212 (/cups/lib/cups/filter/rastertogutenprint.5.2.exe) exited with no errors.
D [25/Jan/2015:15:39:20 -0100] Discarding unused job-state-changed event...
E [25/Jan/2015:15:39:20 -0100] [Job 6] Job stopped due to filter errors; please consult the error_log file for details.

And a little bit further in the log:
D [25/Jan/2015:15:39:23 -0100] [Client 49] HTTP_STATE_WAITING Closing for error
32 (Broken pipe)

Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on January 25, 2015, 05:11:29 pm
 guzzi,

 The attached usb.exe from CUPS 1.6.2 is the newest one that works here - might be worth a try. I hope Paul doesn't mind me posting it....

  I see the HTTP_STATE_WAITING error in my logs even when printing works. Probably harmless... maybe related to the 'Internal Server Error' issue?
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on January 25, 2015, 06:00:47 pm
Quote
Then, I need to extract a usable log file.

Okay, two log files (I have no idea if they are usable, they don't tell me anything, or I missed it).

CUPS_HP_C4180.zip contains logs when trying to print to my HP C4180 USB connected printer. That just sits there doing nothing.

CUPS_HP_D110a.zip contains logs when trying to print to my HP D110a WiFi connected printer. That stops with a complaint that the file is not a PDF file.

  I have found that using the SED.exe from the Netlabs RPM gives the 'not a PDF' error when printing to a socket:// connection. The one that comes with eCS 2.1 and 2.2 works fine. Which SED are you using?

  Try the USB.EXE I just posted. The one with CUPS 2.0 does the same thing here - nothing happens (although I get a message 'waiting for printer to become available' - or something like that).
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 25, 2015, 06:49:05 pm
guzzi,

 The attached usb.exe from CUPS 1.6.2 is the newest one that works here - might be worth a try. I hope Paul doesn't mind me posting it....

  I see the HTTP_STATE_WAITING error in my logs even when printing works. Probably harmless... maybe related to the 'Internal Server Error' issue?

With that backend the test page prints. Still no luck printing from applications.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 25, 2015, 06:51:15 pm
Quote
Then, I need to extract a usable log file.

Okay, two log files (I have no idea if they are usable, they don't tell me anything, or I missed it).

CUPS_HP_C4180.zip contains logs when trying to print to my HP C4180 USB connected printer. That just sits there doing nothing.

CUPS_HP_D110a.zip contains logs when trying to print to my HP D110a WiFi connected printer. That stops with a complaint that the file is not a PDF file.

  I have found that using the SED.exe from the Netlabs RPM gives the 'not a PDF' error when printing to a socket:// connection. The one that comes with eCS 2.1 and 2.2 works fine. Which SED are you using?

  Try the USB.EXE I just posted. The one with CUPS 2.0 does the same thing here - nothing happens (although I get a message 'waiting for printer to become available' - or something like that).

Not a PDF is the error I see when printing from AOO, from MR/2 I get 'filter error'. The SED.exe I use is the one that came with eCS 2.2
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on January 25, 2015, 07:06:30 pm
guzzi,

  What printer driver are you using? Make sure you copy the CUPS 2.0 lpr.exe to C:\TCPIP\BIN\cupslpr.exe and add C:\cups\lib to your LIBPATH if you are using the cups.lpr output port.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 25, 2015, 07:14:01 pm
guzzi,

  What printer driver and what output port are you using?
[/quote

PSPRINT,  cups localhost:mp540
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on January 25, 2015, 07:25:53 pm
guzzi,

  Not sure if it makes any difference, but instead of 'localhost' I always use '127.0.0.1' in my output port settings. Might be worth a try...
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Doug Bissett on January 25, 2015, 09:39:12 pm
Quote
  I have found that using the SED.exe from the Netlabs RPM gives the 'not a PDF' error when printing to a socket:// connection. The one that comes with eCS 2.1 and 2.2 works fine. Which SED are you using?

That is a good question. I am testing CUPS 2.0.0 on the same machine where I am testing the new Package Manager that Arca Noae is working on (that seems to be working well, when YUM cooperates - about 80% of the time). That means that I need RPM/YUM installed. The way that works, probably means that I am using whatever they install (the user has little control over that mess). Putting the programs in the \cups\bin directory probably doesn't override that, but I can't tell. I will see if I can sort it out. I note that sed.exe in \ecs\bin is older.

Okay, I replaced the sed.exe that YUM supplied, with the one from eCS 2.2 b2, and tried a test page. Now, it says "Filter failed". Hmmm. SOMETIMES it says that. More often. it just sits there doing nothing.

Quote
Try the USB.EXE I just posted. The one with CUPS 2.0 does the same thing here - nothing happens (although I get a message 'waiting for printer to become available' - or something like that).

I have seen the waiting thing, a few times, while messing around with this, but that doesn't seem to be what is happening now.
I replaced usb.exe with an older one (I am not sure what version it is, since it doesn't have information for BLDLEVEL). It still sits there, doing nothing.

I will tack down what you posted, but I am not optimistic.

UPDATE: No, it made no difference.

It looks like both HP printers are suffering from the same problem (whatever that is). Changing sed.exe seems to have got past the "not a PDF file" problem, on the D110a (uses sockets backend), but neither one seems to get to the point where they should print.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 25, 2015, 09:57:32 pm
guzzi,

  Not sure if it makes any difference, but instead of 'localhost' I always use '127.0.0.1' in my output port settings. Might be worth a try...

That doesn't and shouldn't make any difference. I still get errors and data doesn't get sent. "not a PDF" and "filter error". After clicking reprint job I get "loadFile failed: temp file: not a PDF file" after a while.

I see this in the error.log.0
D [25/Jan/2015:21:38:08 -0100] [Client 4] cupsdWriteClient error=0, used=0, stat
e=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, re
sponse=0(), pipe_pid=110, file=12


Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on January 25, 2015, 10:20:36 pm
guzzi,

  Yes, I thought so myself - but something is different between your system and mine. Here CUPS 2 works fine with everything I've tried (don't have SmartSuite though), both socket:// and usb:// connections (using the usb.exe I posted) along with Alex's latest PSPRINT driver.

  One other thing I wonder about... I use YUM extensively, and have UNIXROOT=C: in my CONFIG.SYS. I also installed CUPS on C:. Do you have a UNIXROOT set? If so is it set to the same drive that CUPS is on? Not sure how it would work if not installed on the UNIXROOT drive... or if it matters.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 25, 2015, 10:27:14 pm
guzzi,

  Yes, I thought so myself - but something is different between your system and mine. Here CUPS 2 works fine with everything I've tried (don't have SmartSuite though), both socket:// and usb:// connections (using the usb.exe I posted) along with Alex's latest PSPRINT driver.

  One other thing I wonder about... I use YUM extensively, and have UNIXROOT=C: in my CONFIG.SYS. I also installed CUPS on C:. Do you have a UNIXROOT set? If so is it set to the same drive that CUPS is on? Not sure how it would work if not installed on the UNIXROOT drive... or if it matters.

Unixroot is set to F: and cups is installed on F: too.

Could you zip up your cups directory and ftp it to me so I can compare files?
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on January 25, 2015, 10:31:38 pm
guzzi,

  Sure.... what ftp address?
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Doug Bissett on January 26, 2015, 01:37:09 am
guzzi,

  Not sure if it makes any difference, but instead of 'localhost' I always use '127.0.0.1' in my output port settings. Might be worth a try...

The only reason why that would make a difference, is if the HOSTS file doesn't have the "127.0.0.1 localhost" line in it.

Quote
  One other thing I wonder about... I use YUM extensively, and have UNIXROOT=C: in my CONFIG.SYS. I also installed CUPS on C:. Do you have a UNIXROOT set? If so is it set to the same drive that CUPS is on? Not sure how it would work if not installed on the UNIXROOT drive... or if it matters.

I do NOT put things like YUM or CUPS on a boot drive. That should make no difference, but I wouldn't bet on that. CUPS and YUM are on the same drive, if I have YUM installed. I haven't tried CUPS 2.0.0 on a drive without YUM, recently. It didn't work last time, but Pete has suggested a few more things to try.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 26, 2015, 09:19:59 pm
guzzi,

  Sure.... what ftp address?

Compared and found a few differences. I has a number of exe files in cups\sbin that were only 14 bytes. I simply replaced  my cups with your working setup, minus configuration files. No luck, still doesn't print. In fact everything seems to be working, but nothing comes out of the printer. Have tried several versions of the usb stack, made no difference. I'm fairly sure now it's a backend problem.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on January 26, 2015, 11:47:10 pm
 One thing to be careful about.... there is the file \cups\bin\gs.exe that is a symlink to gsos2.exe. Unless your ghostscript is setup exactly like mine, this file is almost certainly wrong for you. You will need to recreate it (first delete the old one) from the command prompt like:

ln -s /gs/gs9.15/bin/gsos2.exe /cups/bin/gs.exe

  Point to the ghostscript you want to use (hopefully it is on the same drive as CUPS).

  Once you can print the test page, you have CUPS working. Next is to get the CUPS ppd file into PSPRINT.

Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on January 27, 2015, 02:05:31 am
One thing to be careful about.... there is the file \cups\bin\gs.exe that is a symlink to gsos2.exe. Unless your ghostscript is setup exactly like mine, this file is almost certainly wrong for you. You will need to recreate it (first delete the old one) from the command prompt like:

ln -s /gs/gs9.15/bin/gsos2.exe /cups/bin/gs.exe

  Point to the ghostscript you want to use (hopefully it is on the same drive as CUPS).

  Once you can print the test page, you have CUPS working. Next is to get the CUPS ppd file into PSPRINT.

Interestingly enough, the gs.exe in your zipped version of cups is not a symlink but a copy of gsos2.exe. I replaced it by a symlink and can now print the test page again. Still no luck printing from os/2, "filter failed"
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on January 27, 2015, 04:19:22 am

Interestingly enough, the gs.exe in your zipped version of cups is not a symlink but a copy of gsos2.exe. I replaced it by a symlink and can now print the test page again. Still no luck printing from os/2, "filter failed"

  Strange.... gs.exe somehow got replaced in the zip process. If the test page prints, but apps don't, than the issue must be in the printer driver. I assume jobs show up in the CUPS queue. It might be interesting to try using the 'Generic Postscript Printer (Enhanced)' in Alex's PSPrint package and see if you get anything from that. If you do, then I would suspect the PPD file imported into PSPrint has directives not supported by PSPrint. Finding those directives is tricky, but can be done.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: guzzi on February 01, 2015, 01:41:47 am
After a lot of effort I still couldn't get cups 2.0 to work. So I went back to 1.4.8. Did that by deleting cups and gutenprint directory and copying the old ones back. Also replaced te stuff in the bootdrive. Rebooted, deleted printers, first with printman, then with prndrv.exe to be sure all old stuff was gone, rebooted again. Then tried to create a new printer with printman. This led to traps in os2krnl. Not a clue why or how. In the end, I restored C: and F: partitions from backup. I didn't have time to fiddle around with it more because I needed to print something.  Next time I'm going to try cups 2.0 and possibly revert to 1.4.8 I'll document the traps. It could just be that they are also related to cups 2.0 not working because of some kind of rermnants of the old printer drivers. The restore I did replaced popuplog.os2, but I did notice quite a few exceptions in libc066 with usb.exe before it got overwritten.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Dave Yeo on February 01, 2015, 02:41:02 am
Quote
The restore I did replaced popuplog.os2, but I did notice quite a few exceptions in libc066 with usb.exe before it got overwritten.

Perhaps whoever is building this stuff should add exceptq support?
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on July 25, 2015, 12:13:14 pm
A couple of updates:

CUPS v2.03 - http://smedley.id.au/tmp/cups-2.0.3-os2-20150724.zip
CUPS Filters v1.0.71 - http://smedley.id.au/tmp/cups-filters-1.0.71-os2-20150725.zip
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on July 26, 2015, 02:15:10 am
Hi All

Anyone else having problems printing the cups 2.0.3 test page?

The cups interface reports:-

     Unsupported format "application/vnd.cups-banner".

The log shows:-

D [25/Jul/2015:18:51:38 +0000] [Job ???] Auto-typing file...
I [25/Jul/2015:18:51:38 +0000] [Job ???] Request file type is application/vnd.cups-banner.
D [25/Jul/2015:18:51:38 +0000] Print-Job client-error-document-format-not-supported: Unsupported format "application/vnd.cups-banner".
E [25/Jul/2015:18:51:38 +0000] [Client 8] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/MG7550) from localhost

A few lines further down I see:-

D [25/Jul/2015:18:51:38 +0000] [CGI] cgiSetVariable: MESSAGE="Unable to print test page"
D [25/Jul/2015:18:51:38 +0000] [CGI] cgiSetVariable: ERROR="Unsupported format "application/vnd.cups-banner"."


Is the problem an incorrect cups v2.0.3 testprint file or something missing/not-quite-right in cups/cups-filters?

If I replace the cups 2.0.3 testprint file with the cups 2.0.0 version the test page prints fine.


Regards

Pete




Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on July 26, 2015, 03:07:39 am
 Pete,

  It works fine here.... maybe the archive got corrupted during download? Testprint is a text file... what does the contents of your 2.0.3 version look like? Mine says this:

#PDF-BANNER
Template default-testpage.pdf
Show printer-name printer-info printer-location printer-make-and-model printer-driver-name printer-driver-version paper-size imageable-area job-id options time-at-creation time-at-processing

  It also has 351 bytes of EA's. Maybe yours were lost during unzip?
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Neil Waldhauer on July 26, 2015, 03:52:03 pm
Looking at the CUPS howto, I see a pretty good description of how to download and install CUPS. (Thanks, Pete!)

A couple of things are lacking. First, about shopping for a printer. The method today is to buy a printer based on what the vendor would most like to sell, then try it on Cups, and if that doesn't work, then abandon eCS and use some operating system that supports printers.

A better solution would be to collect the list of printers that Cups supports, and present it pretty clearly so you can see the supported printers. To test the list, take a Sunday newspaper, and check Cups support for each printer that you find.

Second, about apps support. Show configuring and using Cups support for Open Office, Firefox and PMView (feel free to substitute apps that you use). Especially show printing on an envelope or other non-standard form. I'm finding that printer support is actually better than back in the IBM supported days, but you have to do a lot of tinkering, research and waste a bit of paper to get there.

A Warpstock attendee asked me if we could have a presentation about hand editing PPD files. If that's what it takes, I'd like to see that described. My printer works because I edited the PPD file to take out unsupported characters / languages.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on July 26, 2015, 04:36:17 pm
Hi David

The testprint file that you posted is the file from cups v2.0.0; the version from 2.0.3 looks like this

#CUPS-BANNER
Show printer-name printer-info printer-location printer-make-and-model printer-driver-name printer-driver-version paper-size imageable-area
Header Printer Test Page
Footer Printer Test Page
Notice CUPS 2.0.3.
Image images/cups.png
Image images/color-wheel.png


The #CUPS-BANNER header seems to be the problem: either the testprint file is wrong or something is not quite right with cups as it cannot work with this file.

Something I noticed during updating to 2.0.3 is the amount of cups files marked as ReadOnly - I think that may include testprint. You may also want to check other files were updated rather than silently failing due to ReadOnly file attributes.



Regards

Pete

Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on July 26, 2015, 04:49:43 pm
Pete,

  I checked my install and it is definitely all updated (I always delete the old before installing the new CUPS). It turns out I lucked out in how I installed. I first unzipped CUPS 2.0.3, them unzipped Cups-filters-1.0.71. CUPS has the testprint you show, but CUPS-filters has the one I show. Since I installed CUPS-filters second, I ended up with the one that works. No idea why they both have a testprint and they are different...

  Edit: The CUPS 2.0.0 and CUPS-filters 1.0.61 packages both have different 'testprint' files as well (the same 2). I wonder how many people tried out CUPS 2 and failed to get a test print because of the order they unzipped the files....
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on July 27, 2015, 01:00:29 am
Hi David

Yes, found the cockup at my end and testprint (from cups-filters) prints fine.

Regards

Pete

Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on July 27, 2015, 11:34:19 am
A couple of things are lacking. First, about shopping for a printer. The method today is to buy a printer based on what the vendor would most like to sell, then try it on Cups, and if that doesn't work, then abandon eCS and use some operating system that supports printers.

A better solution would be to collect the list of printers that Cups supports, and present it pretty clearly so you can see the supported printers. To test the list, take a Sunday newspaper, and check Cups support for each printer that you find.

I intend to cover some of the above in my Warpstock presentation in order to try and guide people in the right direction towards purchasing a printer that has a good probability of working.

Unfortunately, Gutenprint, which at one time kept Canon/Epson printers pretty up to date doesn't seem to be updated as frequently anymore with current printers - so HPLIP for HP printers is the best option currently.
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on July 27, 2015, 11:37:33 am
Hey Dave,

  Edit: The CUPS 2.0.0 and CUPS-filters 1.0.61 packages both have different 'testprint' files as well (the same 2). I wonder how many people tried out CUPS 2 and failed to get a test print because of the order they unzipped the files....

I'll try and fix the install script for CUPS to not install this in future to avoid the issue.

Cheers.

Paul
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on July 27, 2015, 11:50:53 am
  Edit: The CUPS 2.0.0 and CUPS-filters 1.0.61 packages both have different 'testprint' files as well (the same 2). I wonder how many people tried out CUPS 2 and failed to get a test print because of the order they unzipped the files....

I'll try and fix the install script for CUPS to not install this in future to avoid the issue.

http://smedley.id.au/tmp/cups-2.0.3-os2-20150727.zip doesn't include testprint or the banner files which are duplicated in cups-filters. It also doesn't set the file mode to 755 which should avoid the 'read only' issues that Pete mentioned.

Cheers,

Paul
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: David McKenna on July 27, 2015, 11:39:36 pm
Paul,

  Thanks for the update - it works fine here. Hopefully more people will be successful with CUPS 2 using this version. One minor thing... when I unzip here every file is marked read-only....
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on July 28, 2015, 04:50:02 am
Hi Paul

Just to confirm no testprint problem with cups-2.0.3-os2-20150727.zip and also to confirm Daves finding that a lot of files - around 70% -  are marked ReadOnly.


Regards

Pete

Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on July 28, 2015, 10:53:45 am
Hi Dave & Pete,

Just to confirm no testprint problem with cups-2.0.3-os2-20150727.zip and also to confirm Daves finding that a lot of files - around 70% -  are marked ReadOnly.

OK, http://smedley.id.au/tmp/cups-2.0.3-os2-20150728.zip should *hopefully* have no more read-only files. I looked through all the makefiles for any cases of a file mode being specified and removed those calls :)

Cheers,

Paul
Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Pete on July 28, 2015, 04:48:10 pm
Hi Paul

Not sure what is going wrong but unzipping cups-2.0.3-os2-20150728.zip to a temp directory and then running a couple of dir commands provides some figures

[G:\OS2\TEMP\CUPS]dir * /s > dir.txt

gives a files total of 863

[G:\OS2\TEMP\CUPS]DIR * /A:R /S > attrib.txt

Counts files with ReadOnly set and gives a files total of 634 files


Can I suggest that just prior to zipping you run the following from the root directory of the package - in this case \cups

ATTRIB -R * /S

That should get rid of all ReadOnly attributes - here the attrib command seems to need uppercase (as above - not sure if that is just this system) as using lowercase failed.


Regards

Pete


Title: Re: A cups 2.0 "How To": Installing and configuring cups 2.0 and supporting software
Post by: Paul Smedley on July 29, 2015, 11:34:58 am
Hey Pete,

Not sure what is going wrong but unzipping cups-2.0.3-os2-20150728.zip to a temp directory and then running a couple of dir commands provides some figures

[G:\OS2\TEMP\CUPS]dir * /s > dir.txt

gives a files total of 863

[G:\OS2\TEMP\CUPS]DIR * /A:R /S > attrib.txt

Counts files with ReadOnly set and gives a files total of 634 files

Thanks for the command line, helped me find the issue and some more cases of mode setting in the makefiles. 'make install' now generates no read-only files, which is much better than me having to remember to manually run attrib each time I refresh CUPS :)

Cheers,

Paul