234 | | [=#local_usb]Local printer (USB):: |
235 | | |
236 | | At the moment, the only local connections that are supported directly are USB. There is a workaround which can be used to enable printing via parallel port, but it requires some special setup; [#local_lpt see below]. |
237 | | |
238 | | It has been reported that some older versions of the operating systems USB support files can cause problems, so please ensure you have the latest versions of the OS/2 USB stack as well as [a href="http://en.ecomstation.ru/projects/usbtools/download/usbcalls-20060807.zip USBCALLS] before you attempt this configuration. |
239 | | |
240 | | If your USB printer is connected and powered on, it should show up as an option on this page. This assumes, of course, that everything is working as it should. Refer to the box below if you are having trouble getting your USB printer recognized by CUPS. |
241 | | {{{ |
242 | | #!div style=" border: 1px solid black; background: #f0f0f0; font-size: smaller; padding: 0 0.5em 0 0.5em;" |
243 | | If your CUPS version is older than 1.3.11, you may need to download the USB backend separately from http://download.smedley.info/cups-usb-backend-20090309.zip and install it by unzipping into the `>\cups\lib\cups\backend` directory. However, all recent releases of CUPS include this file already. |
244 | | |
245 | | To verify that the USB support is working, open a command prompt and go to the `\cups\lib\cups\backend` directory. Make sure your printer is turned on and run `usb.exe` with no parameters. You should get a display like this: |
246 | | |
247 | | `DEBUG: list_devices`\\ |
248 | | `DEBUG: usb_find_busses=1`\\ |
249 | | `DEBUG: usb_find_devices=2`\\ |
250 | | `direct usb://EPSON/PX-101 "EPSON PX-101" "EPSON PX-101" "MFG:EPSON;CMD:ESCPL2,BDC,D4,D4PX;MDL:PX-101;CLS:PRINTER;DES:EPSON PX-101;" ""` |
251 | | |
252 | | If you don't get such a display, check that your USB support is working correctly and that you have connected the printer with a known good cable to a known good port. |
253 | | }}} |
254 | | |
255 | | [=#local_lpt]Parallel port connection:: |
256 | | The OS/2 port of CUPS does not currently support printing directly to parallel printers but there is a workaround. |
257 | | |
258 | | 1. Create an OS/2 printer object using the IBMNULL printer driver. Select LPT''n'' as the Output Port in the printer object properties, where LPT''n'' is the name of the parallel port to which the printer is connected. |
259 | | 2. Start the OS/2 LPD service (`lpd.exe`). To prevent LPD from printing the control file page (an almost-blank page with few lines of information good only for debugging purposes), specify the "-c" parameter. You can use the OS/2 TCP/IP Configuration notebook to configure LPD. |
260 | | |
261 | | When creating the CUPS printer, select ''LPD/LPR Host or Printer'' and enter "`lpd://localhost/`''printer_name''" as the Device URI, where ''printer_name'' is the physical name (as shown on the Properties ''View' page) of the OS/2 printer object just created. |
262 | | |
263 | | For example: If you created a desktop printer with the object name "Canon iP4000", open the Properties for that printer and check the name displayed on the ''View'' page. If the ''Physical name'' shows "CanoniP4", the device URI in CUPS should be "`lpd://localhost/CanoniP4`". |
264 | | |
265 | | ||= Field =||= Description =||= Example =|| |
266 | | || ''Device URI:''|| Address of locally-shared LPD printer || `lpd://localhost/CanoniP4` || |
267 | | |
268 | | Thanks to Rodney and others who supplied the above information regarding using locally attached printers with CUPS. |
269 | | |
270 | | {{{ |
271 | | #!div style=" border: 1px solid black; background: #f0f0f0; font-size: smaller; padding: 0 0.5em 0 0.5em;" |
272 | | In fact, the current CUPS port does include a parallel port backend (driver), but it is completely untested due to the fact that none of developers/testers actually has a parallel-port printer. So the above workaround may or may not still be necessary. |
273 | | }}} |
274 | | |
275 | | [=#tcpip]Network printer:: |
276 | | These options allow you to connect to a network printer using various supported protocols. If the printer was not automatically detected, the following screen will prompt you to enter the necessary connection information in the form of a ''URI'' (a string specifying the connection protocol and address in a URL-like syntax). |
277 | | |
278 | | [[Image(cupsweb03a.png, right, border=1, margin-left=5, margin-bottom=10, width=35%)]] |
279 | | The format of the URI indicates which network protocol to use, and specifies the necessary options. You have a choice of several different protocols; obviously, use whichever one your network printer or print server supports. |
280 | | |
281 | | * Internet Printing Protocol (IPP) is the newest and most advanced; the URI format is "`ipp://`''server[''`:`''port]''`/`''printer[''`?`''option''`=`''value[''`&`''option''`=`''value]]''" |
282 | | * LPD (or LPR) is the oldest and most widely-supported; use the URI format "`lpd://`''[userid''`@`'']server[''`:`''port]''`/`''printer''" |
283 | | * !AppSocket (also called !JetDirect) is also widely used; use the URI format |
284 | | "`socket://`''server[''`:`''port]''" |
285 | | * Samba is for printers which are being shared out via Windows networking, IBM LAN Server, Peer for OS/2, or a Samba server. Use the URI format "`smb://`''[userid[''`:`''password]''`@`'']server''`/`''printer''" |
286 | | |
287 | | Most TCP/IP network printers use either LPD or !AppSocket (just try one or the other if you're not sure). For shared printers on a Windows server, use Samba. |
288 | | |
289 | | {{{ |
290 | | #!div style="border: 1px solid black; background: #f0f0f0; font-size: smaller; padding: 0 0.5em 0 0.5em;" |
291 | | If you installed CUPS from ZIP files, be aware that support for Samba is not included by default. If you want to use Samba, you need to first obtain the Samba Client Utilities package from [http://svn.netlabs.org/samba]. Extract the file `smbspool.exe`, rename it to `smb.exe` and place it into the `\cups\lib\cups\backend` directory. You should then be able to use the CUPS Samba support. |
292 | | |
293 | | The above is not necessary with the latest CUPS WarpIN packages, which include `smb.exe out of the box. |
294 | | }}} |
295 | | |
296 | | ||= Field =||= Description =||= Example =|| |
297 | | || ''Device URI:'' || Address of network printer || `lpd://192.168.2.1/lpt1` || |
298 | | |
299 | | |
| 234 | [=#local_usb]__Local printer (USB)__ |
| 235 | {{{ |
| 236 | #!div margin-left="3em" |
| 237 | At the moment, the only local connections that are supported directly are USB. There is a workaround which can be used to enable printing via parallel port, but it requires some special setup; [#local_lpt see below]. |
| 238 | |
| 239 | It has been reported that some older versions of the operating systems USB support files can cause problems, so please ensure you have the latest versions of the OS/2 USB stack as well as [http://en.ecomstation.ru/projects/usbtools/download/usbcalls-20060807.zip USBCALLS] before you attempt this configuration. |
| 240 | |
| 241 | If your USB printer is connected and powered on, it should show up as an option on this page. This assumes, of course, that everything is working as it should. Refer to the box below if you are having trouble getting your USB printer recognized by CUPS. |
| 242 | {{{ |
| 243 | #!div style=" border: 1px solid black; background: #f0f0f0; font-size: smaller; padding: 0 0.5em 0 0.5em;" |
| 244 | If your CUPS version is older than 1.3.11, you may need to download the USB backend separately from http://download.smedley.info/cups-usb-backend-20090309.zip and install it by unzipping into the `>\cups\lib\cups\backend` directory. However, all recent releases of CUPS include this file already. |
| 245 | |
| 246 | To verify that the USB support is working, open a command prompt and go to the `\cups\lib\cups\backend` directory. Make sure your printer is turned on and run `usb.exe` with no parameters. You should get a display like this: |
| 247 | |
| 248 | `DEBUG: list_devices`\\ |
| 249 | `DEBUG: usb_find_busses=1`\\ |
| 250 | `DEBUG: usb_find_devices=2`\\ |
| 251 | `direct usb://EPSON/PX-101 "EPSON PX-101" "EPSON PX-101" "MFG:EPSON;CMD:ESCPL2,BDC,D4,D4PX;MDL:PX-101;CLS:PRINTER;DES:EPSON PX-101;" ""` |
| 252 | |
| 253 | If you don't get such a display, check that your USB support is working correctly and that you have connected the printer with a known good cable to a known good port. |
| 254 | }}} |
| 255 | }}} |
| 256 | |
| 257 | [=#local_lpt]__Parallel port connection__ |
| 258 | {{{ |
| 259 | #!div margin-left="3em" |
| 260 | The OS/2 port of CUPS does not currently support printing directly to parallel printers but there is a workaround. |
| 261 | 1. Create an OS/2 printer object using the IBMNULL printer driver. Select LPT''n'' as the Output Port in the printer object properties, where LPT''n'' is the name of the parallel port to which the printer is connected. |
| 262 | 2. Start the OS/2 LPD service (`lpd.exe`). To prevent LPD from printing the control file page (an almost-blank page with few lines of information good only for debugging purposes), specify the "-c" parameter. You can use the OS/2 TCP/IP Configuration notebook to configure LPD. |
| 263 | |
| 264 | When creating the CUPS printer, select ''LPD/LPR Host or Printer'' and enter "`lpd://localhost/`''printer_name''" as the Device URI, where ''printer_name'' is the physical name (as shown on the Properties ''View' page) of the OS/2 printer object just created. |
| 265 | |
| 266 | For example: If you created a desktop printer with the object name "Canon iP4000", open the Properties for that printer and check the name displayed on the ''View'' page. If the ''Physical name'' shows "CanoniP4", the device URI in CUPS should be "`lpd://localhost/CanoniP4`". |
| 267 | |
| 268 | ||= Field =||= Description =||= Example =|| |
| 269 | || ''Device URI:''|| Address of locally-shared LPD printer || `lpd://localhost/CanoniP4` || |
| 270 | |
| 271 | Thanks to Rodney and others who supplied the above information regarding using locally attached printers with CUPS. |
| 272 | {{{ |
| 273 | #!div style=" border: 1px solid black; background: #f0f0f0; font-size: smaller; padding: 0 0.5em 0 0.5em;" |
| 274 | In fact, the current CUPS port does include a parallel port backend (driver), but it is completely untested due to the fact that none of developers/testers actually has a parallel-port printer. So the above workaround may or may not still be necessary. |
| 275 | }}} |
| 276 | }}} |
| 277 | |
| 278 | [=#network]__Network printer__ |
| 279 | {{{ |
| 280 | #!div margin-left="3em" |
| 281 | These options allow you to connect to a network printer using various supported protocols. If the printer was not automatically detected, the following screen will prompt you to enter the necessary connection information in the form of a ''URI'' (a string specifying the connection protocol and address in a URL-like syntax). |
| 282 | |
| 283 | [[Image(cupsweb03a.png, right, border=1, margin-left=5, margin-bottom=10, width=35%)]] |
| 284 | The format of the URI indicates which network protocol to use, and specifies the necessary options. You have a choice of several different protocols; obviously, use whichever one your network printer or print server supports. |
| 285 | * Internet Printing Protocol (IPP) is the newest and most advanced; the URI format is "`ipp://`''server[''`:`''port]''`/`''printer[''`?`''option''`=`''value[''`&`''option''`=`''value]]''" |
| 286 | * LPD (or LPR) is the oldest and most widely-supported; use the URI format "`lpd://`''[userid''`@`'']server[''`:`''port]''`/`''printer''" |
| 287 | * !AppSocket (also called !JetDirect) is also widely used; use the URI format "`socket://`''server[''`:`''port]''" |
| 288 | * Samba is for printers which are being shared out via Windows networking, IBM LAN Server, Peer for OS/2, or a Samba server. Use the URI format "`smb://`''[userid[''`:`''password]''`@`'']server''`/`''printer''" |
| 289 | |
| 290 | Most TCP/IP network printers use either LPD or !AppSocket (just try one or the other if you're not sure). For shared printers on a Windows server, use Samba. |
| 291 | {{{ |
| 292 | #!div style="border: 1px solid black; background: #f0f0f0; font-size: smaller; padding: 0 0.5em 0 0.5em;" |
| 293 | If you installed CUPS from ZIP files, be aware that support for Samba is not included by default. If you want to use Samba, you need to first obtain the Samba Client Utilities package from [http://svn.netlabs.org/samba]. Extract the file `smbspool.exe`, rename it to `smb.exe` and place it into the `\cups\lib\cups\backend` directory. You should then be able to use the CUPS Samba support. |
| 294 | |
| 295 | The above is not necessary with the latest CUPS WarpIN packages, which include `smb.exe` out of the box. |
| 296 | }}} |
| 297 | \\ |
| 298 | ||= Field =||= Description =||= Example =|| |
| 299 | || ''Device URI:'' || Address of network printer || `lpd://192.168.2.1/lpt1` || |
| 300 | }}} |
| 301 | |
| 302 | \\ |