| 1 | CUPSWIZ - CUPS printer-creation wizard | 
|---|
| 2 | Version 1.04 | 
|---|
| 3 |  | 
|---|
| 4 | This program is simple graphical front-end for creating CUPS-based printers | 
|---|
| 5 | under OS/2. | 
|---|
| 6 |  | 
|---|
| 7 | Without this program, creating a CUPS printer under OS/2 is something of a | 
|---|
| 8 | headache.  First, you need to go into the CUPS web GUI and go through its | 
|---|
| 9 | (often agonizingly slow) creation wizard.  Then you need to make sure support | 
|---|
| 10 | for your printer has been imported into the OS/2 CUPS printer driver (which | 
|---|
| 11 | may require you to manually prep and then import a PPD file yourself).  Then | 
|---|
| 12 | you have to create a new OS/2 CUPS port and point it to the CUPS queue you | 
|---|
| 13 | created earlier.  Finally, you have to create an actual OS/2 printer object | 
|---|
| 14 | for your applications to print to.  This may be fine for a few expert users, | 
|---|
| 15 | but the average person just wants to create a printer quickly and simply. | 
|---|
| 16 |  | 
|---|
| 17 | This program attempts to automate most of these steps.  The basic idea is | 
|---|
| 18 | that you select your printer make/model from the list of those supported | 
|---|
| 19 | (which will depend on your installed CUPS setup), or import a special CUPS | 
|---|
| 20 | PPD file which defines your printer, indicate how the printer is connected | 
|---|
| 21 | (whether via USB or one of a number of types of network connection), give | 
|---|
| 22 | it a name and description, and the program does the rest. | 
|---|
| 23 |  | 
|---|
| 24 | Some of the highlights: | 
|---|
| 25 | - When you create the printer, both the CUPS printer queue and a | 
|---|
| 26 | corresponding OS/2 printer object are created; the CUPS port linking | 
|---|
| 27 | the two is also created and configured automatically.  (You can also | 
|---|
| 28 | opt to only create the CUPS queue if you wish.) | 
|---|
| 29 | - You can also select an existing CUPS printer queue (locally or on a | 
|---|
| 30 | remote server), in which case a corresponding OS/2 printer object will | 
|---|
| 31 | be created for it. | 
|---|
| 32 | - The appropriate model in the OS/2 PM printer driver (ECUPS.DRV or | 
|---|
| 33 | ECUPS-HP.DRV) is automatically identified and installed in the new OS/2 | 
|---|
| 34 | printer object.  If an exact match is not found (and no PPD is available | 
|---|
| 35 | - see next point) you will offered a list of similar models, or allowed | 
|---|
| 36 | to select generic support. | 
|---|
| 37 | - When installing a printer which is not currently defined in the OS/2 | 
|---|
| 38 | printer driver, if a PPD exists for the new printer it will be imported | 
|---|
| 39 | automatically.  (If not, you will be prompted as above.) | 
|---|
| 40 |  | 
|---|
| 41 | As this program is still under development, it is not yet as smooth as it | 
|---|
| 42 | could be.  See the 'Limitations & Known Problems' section below for more. | 
|---|
| 43 |  | 
|---|
| 44 |  | 
|---|
| 45 | REQUIREMENTS | 
|---|
| 46 |  | 
|---|
| 47 | CUPS (that is, a full, functioning CUPS server) must be installed and | 
|---|
| 48 | running, either on the same computer or a remote server on your network. | 
|---|
| 49 |  | 
|---|
| 50 | At least one of the following CUPS-compatible OS/2 printer presentation | 
|---|
| 51 | ("PrinterPak") drivers must be installed: | 
|---|
| 52 | - ECUPS.DRV     (eCups driver for Gutenprint and other filter packages) | 
|---|
| 53 | - ECUPS-HP.DRV  (eCups driver for HPLIP) | 
|---|
| 54 | - PSPRINT.DRV   (Enhanced OS/2 Postscript driver replacement) | 
|---|
| 55 |  | 
|---|
| 56 | CUPS.PDR (the eCups port driver) must be installed.  In addition, it | 
|---|
| 57 | should have a bldlevel of 1.03 (February 2011) or later.  (With earlier | 
|---|
| 58 | versions, you will be required to restart the WPS after creating a | 
|---|
| 59 | printer.)  This also requires CUPSLPR.EXE to be installed on your PATH | 
|---|
| 60 | (preferably in the \TCPIP\BIN directory). | 
|---|
| 61 |  | 
|---|
| 62 | (If you installed CUPS on your system from WarpIN packages, all of the | 
|---|
| 63 | above requirements should be fulfilled.) | 
|---|
| 64 |  | 
|---|
| 65 | Other required files (all included out of the box with eComStation; | 
|---|
| 66 | other versions of OS/2 may or may not have them installed): | 
|---|
| 67 | - VROBJ.DLL (VX-REXX standard runtime; must be in the LIBPATH) | 
|---|
| 68 | - GZIP.EXE (GNU gzip; must be on the PATH) | 
|---|
| 69 |  | 
|---|
| 70 |  | 
|---|
| 71 | INSTALLATION | 
|---|
| 72 |  | 
|---|
| 73 | 1. Place CUPSWIZ.EXE into a suitable directory. | 
|---|
| 74 | 2. Place CUPSPORT.EXE and PRNTOBJ.EXE either in the same directory as | 
|---|
| 75 | CUPSWIZ.EXE, or else in a directory on the PATH. | 
|---|
| 76 |  | 
|---|
| 77 |  | 
|---|
| 78 | USAGE | 
|---|
| 79 |  | 
|---|
| 80 | cupswiz [ <path-to-cups> | /R ] | 
|---|
| 81 |  | 
|---|
| 82 | Where <path-to-cups> is the location of the top-level directory in which | 
|---|
| 83 | CUPS is installed on your system (if you are using a local CUPS server). | 
|---|
| 84 | This can be omitted if CUPSWIZ.EXE resides on the same drive as CUPS, or | 
|---|
| 85 | if OS2.INI defines the CUPS path in the key "eCups" -> "CUPS".  If CUPS | 
|---|
| 86 | cannot be located, a warning popup will be displayed and the program will | 
|---|
| 87 | proceed as though the /R option was used. | 
|---|
| 88 |  | 
|---|
| 89 | The /R option indicates that a WPS printer object is to be created for an | 
|---|
| 90 | already-existing printer queue on a remote CUPS server.  In this case, CUPS | 
|---|
| 91 | does not need to be installed locally, but you will need to provide a CUPS- | 
|---|
| 92 | specific PPD file for the printer in question. | 
|---|
| 93 |  | 
|---|
| 94 | Only one of the above parameters can be specified. | 
|---|
| 95 |  | 
|---|
| 96 | You may wish to create a program object which calls CUPSWIZ.EXE with the | 
|---|
| 97 | appropriate parameter. | 
|---|
| 98 |  | 
|---|
| 99 |  | 
|---|
| 100 | LIMITATIONS & KNOWN PROBLEMS | 
|---|
| 101 |  | 
|---|
| 102 | - There is no way to go 'back' in the wizard; if you need to go back and | 
|---|
| 103 | change a previous selection, you must cancel and start over. | 
|---|
| 104 | - The program has only been tested with Gutenprint, HPLIP, and native | 
|---|
| 105 | Postscript printers with imported PPDs.  Other drivers packages such as | 
|---|
| 106 | SpliX or foo2qpdl may work but this is not guaranteed. | 
|---|
| 107 | - If your %TMP% directory has spaces in the pathname, the program will almost | 
|---|
| 108 | certainly fail to work properly.  The same applies to your %LOGFILES% | 
|---|
| 109 | directory. | 
|---|
| 110 | - The CUPS printer is always created with default job options.  If you want | 
|---|
| 111 | to change them, you will have to do so from the CUPS administration GUI. | 
|---|
| 112 | - There is no help. | 
|---|
| 113 | - There may well be undiscovered bugs; please report any you find. | 
|---|
| 114 |  | 
|---|
| 115 | Contact: Alex Taylor (alex at altsan dot org) | 
|---|