Author Topic: Installing CUPS on MCP  (Read 11652 times)

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1122
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Installing CUPS on MCP
« on: December 25, 2024, 05:55:22 pm »
Well, the short answer is to install rpm/yum on MCP, then cups.

But I like the interfaces for Printman and Cupswiz. It makes configuring printers so much easier. I can download these from Alex Taylor's website, and, after installing the prerequisites, I can get Printman to start. Cupswiz initially starts with an error in DosLoadModule, but can be corrected by fiddling with UCONV.DLL and friends.

But, after that, Cupswiz comes up empty. I have both cups and hplip installed, but where did the printer models go? (see attached screenshot)

Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5255
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Installing CUPS on MCP
« Reply #1 on: December 26, 2024, 12:18:04 am »
Hello Neil

I experienced a similar thing on ArcaOS 5.1, it used to said "Bad", but it got fixed with magic, I don't know how.

Here it is the thread, sorry it does not help: https://www.os2world.com/forum/index.php/topic,3434.15.html

Maybe it is that cups daemon is not starting.

Regards
« Last Edit: December 26, 2024, 12:20:13 am by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Pete

  • Hero Member
  • *****
  • Posts: 1404
  • Karma: +13/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #2 on: December 26, 2024, 05:40:40 am »
Hi Neil

Looks like the cups daemon - aka %UNIXROOT%:\usr\sbin\cupsd.exe - is not running.

Do you have the cups daemon in the Startup folder?


Regards

Pete

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1122
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #3 on: December 26, 2024, 04:01:50 pm »
The cups daemon wasn't running. If I start it, and then run cupswiz, I still don't see any printers.

Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Alex Taylor

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +6/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #4 on: December 27, 2024, 02:46:09 pm »
Click on the logo icon on the left of the cupswiz window to bring up the product information. Is the path to CUPS correct?

What does
Code: [Select]
<cupspath>\sbin\lpinfo.exe -m produce?

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1122
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #5 on: December 27, 2024, 04:20:31 pm »
Well, that helps!

Version 1.18

System boot volume: C:
Local CUPS directory: C:\CUPS
Local driver repository: D:\OS2IMAGE

which lpinfo
c:\usr\sbin\lpinfo.exe

lpinfo -m
lpinfo: bad file number

which cupsd
c:\usr\sbin\cupsd.exe

set unixroot
UNIXROOT=C:




Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Pete

  • Hero Member
  • *****
  • Posts: 1404
  • Karma: +13/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #6 on: December 27, 2024, 07:03:48 pm »
Hi Neil


lpinfo -m
lpinfo: bad file number



Are you sure cupsd.exe is running? - the above result suggests it is not or possibly lpinfo cannot find a support file.
If you have PMdll installed it might be worth dropping lpinfo.exe onto the PMdll object to see if there are other problems.


Regards

Pete






Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1122
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #7 on: December 27, 2024, 07:46:25 pm »
Thanks, Pete. While running cupsd made no difference to cupswiz, it made a difference for lpinfo.

The output from lpinfo is attached.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1122
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #8 on: December 29, 2024, 03:52:12 am »
I created an icon in the startup folder to start the CUPS daemon. I gave cupswiz.exe a command line containing the parent cups directory, C:\usr in my case. Now I get a list of printers.

I can select my printer, scan the local network and discover the printer, but when I go to create the printer object, Cupswiz displays an error (see attached). No printer is created.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 398
  • Karma: +30/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: Installing CUPS on MCP
« Reply #9 on: December 29, 2024, 06:47:53 am »
Do you have the 'PSPRINT' driver installed? I believe it provides the list of printers. You can find it on any AOS install DVD at 'x:\CID\SERVER\PRINTPAK\PSPRINT.ZIP'

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1122
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #10 on: December 30, 2024, 01:14:33 am »
I think I have PSPRINT installed. The installation routine does not actually notify you of success or failure. Cups Wiz does select PSPRINT in the screen before the Error.

Here is a fragment of error_log from my attempt to create a printer

Quote
E [29/Dec/2024:16:02:29 +0800] Unable to get hostname: Function not implemented
E [29/Dec/2024:16:06:01 +0800] [CGI] Unable to execute ippfind utility: No such file or directory
E [29/Dec/2024:16:06:27 +0800] [CGI] Unable to execute ippfind utility: No such file or directory
W [29/Dec/2024:16:06:31 +0800] cupsdDoSelect: select() returned 4 (Interrupted system call)... pause and retry select()

Also, CUPSWIZ thinks my local driver repository is D:\OS2IMAGE, while I think it should be C:\OS2\DLL\PSPRINT or maybe C:\OS2\DLL. I don't know how to tell Cups Wiz otherwise.
« Last Edit: December 30, 2024, 01:32:46 am by Neil Waldhauer »
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1122
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #11 on: January 03, 2025, 04:55:10 pm »
I found Cups Wiz is getting the driver location from OS2.INI

PM_INSTALL
PDR_DIR

Unfortunately, I cannot set a value that evades the syntax error message from VX-REXX. Probably I should look at the source code for Cups Wiz on Net labs.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1122
  • Karma: +30/-0
    • View Profile
    • Blonde Guy
Re: Installing CUPS on MCP
« Reply #12 on: January 06, 2025, 03:37:18 pm »
The source code led me to my installation of PSPRINT.DRV. I think I installed it correctly, but when I try to create a printer, PSPRINT adds this to POPUPLOG.OS2

Code: [Select]
01-06-2025  06:28:59  SYS3175  PID 0022  TID 0002  Slot 0042
C:\OS2\PMSPOOL.EXE
c0000005
1ef407c7
P1=00000001  P2=00000007  P3=XXXXXXXX  P4=XXXXXXXX 
EAX=00000000  EBX=00535d6c  ECX=1cb80c80  EDX=00000007
ESI=1a34a7f0  EDI=00535ed4 
DS=0053  DSACC=d0f3  DSLIM=7fffffff 
ES=0053  ESACC=d0f3  ESLIM=7fffffff 
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1ef407c7  CSACC=d0df  CSLIM=7fffffff
SS:ESP=0053:00535978  SSACC=d0f3  SSLIM=7fffffff
EBP=00535c00  FLG=00012202

PSPRINT.DRV 0002:000107c7
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Alex Taylor

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +6/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #13 on: January 15, 2025, 03:52:27 am »
You may need to add the path to the correct CUPS install as a parameter to cupswiz.exe.

Regarding the trap, the only thing I can think of is the PSPRINT install is broken somehow. 

If you go into PrintMan and choose File -> Manage presentation drivers, what does the entry for PSPRINT report? In particular the Version and Status columns.  Next, if you double-click on the PSPRINT entry, does it pop up its list of supported printers?

Roderick Klein

  • Hero Member
  • *****
  • Posts: 727
  • Karma: +14/-0
    • View Profile
Re: Installing CUPS on MCP
« Reply #14 on: January 16, 2025, 02:05:03 pm »
You may need to add the path to the correct CUPS install as a parameter to cupswiz.exe.

Regarding the trap, the only thing I can think of is the PSPRINT install is broken somehow. 

If you go into PrintMan and choose File -> Manage presentation drivers, what does the entry for PSPRINT report? In particular the Version and Status columns.  Next, if you double-click on the PSPRINT entry, does it pop up its list of supported printers?

Alex is installing CUPS in MCP or ECS even worth the trouble ? As I seem to recall the that the postscript driver in ArcaOS has had extensive updates, this also includes PIN.EXE.
A lot of the postscript PPD files with PIN.EXE would just crash because of bad coding.
Is that correct Alex ?

Roderick