LAOS CUPS driver » History » Version 2
jaap, 2012-07-15 12:45
| 1 | 1 | jaap | h1. LAOS CUPS driver |
|---|---|---|---|
| 2 | |||
| 3 | This page describes the CUPS printer driver installation. |
||
| 4 | |||
| 5 | h2. How it works |
||
| 6 | |||
| 7 | 2 | jaap | The printer driver translates standard Postscript into LAOS codes. |
| 8 | 1 | jaap | This is done in the following steps |
| 9 | |||
| 10 | 2 | jaap | * Application generates a postscript file (by pressing print) |
| 11 | 1 | jaap | * The printer dialog shows the configuration dialog based on PPD. The user selects the appropriate settings |
| 12 | * Postscript printer data captured in file, along with the selected settings |
||
| 13 | 2 | jaap | * File is received by the LaOS cups printer driver. |
| 14 | * LaOS cups printer driver uses pstoedit to convert the file into LaOS [SimpleCode] |
||
| 15 | * LaOS cups printer driver transfers the file to the laser cutter using the TFTP protocol |
||
| 16 | 1 | jaap | |
| 17 | h2. OS Support |
||
| 18 | 2 | jaap | |
| 19 | 1 | jaap | The goal is to write platform-independent printer driver, based on CUPS. |
| 20 | |||
| 21 | 2 | jaap | Our test environment is Linux. However: it should be possible to compile the driver on Windows or Mac. Another option is to work from a Windows or MAC workstation and send the data to the CUPS printer on a Linux system. (the cups driver for windows could help: http://www.cups.org/articles.php?L376 ). The PPD file can be used on Windows and Mac. |
| 22 | 1 | jaap | |
| 23 | 2 | jaap | The backend conversion (pstoedit) is also usable as a stand-alone program, and sending the files to the actual printer can be done with a standard TFTP program. |
| 24 | 1 | jaap | |
| 25 | h2. Installation |
||
| 26 | 2 | jaap | |
| 27 | 1 | jaap | h3. Linux |
| 28 | 2 | jaap | |
| 29 | 1 | jaap | This is how you install the driver on Linux. |
| 30 | |||
| 31 | Tested on: |
||
| 32 | * Debian Squeeze |
||
| 33 | 2 | jaap | * Ubuntu 10.10, 11.04, 11.10, 12.04 LTS |
| 34 | 1 | jaap | Please add your distro or let us know problems you encounter! |
| 35 | |||
| 36 | *Downloading software* |
||
| 37 | Before installing the CUPS driver, install [[pstoedit with laos support]]. |
||
| 38 | |||
| 39 | From SVN download the cups-laos: |
||
| 40 | @svn co https://tuxic.nl/laos/cups-laos |
||
| 41 | 2 | jaap | Some svn programs will complain if they don't know the CA, (ssl error), in that case, add this line to the file ~/.subversion/servers: |
| 42 | 1 | jaap | @ssl-trust-default-ca = no@ |
| 43 | |||
| 44 | Installing the cups driver: |
||
| 45 | 2 | jaap | @cd <where-ever you installed> cups-laos/src |
| 46 | 1 | jaap | make |
| 47 | sudo make install@ |
||
| 48 | (if make fails, rename or copy one of the personal makefiles in that folder and call it 'Makefile') |
||
| 49 | |||
| 50 | Now it's time to install the laser cutter using your CUPS printer interface. |
||
| 51 | * On Debian, go to System -> Administration -> Printing |
||
| 52 | ** Choose: Add Printer (the arrow next to add) |
||
| 53 | ** Choose: Devices: Generic CUPS-LAOS Printer |
||
| 54 | ** Change the device URI to match your device IP and PORT, as configured in the firmware of the laser. For the SUDA laser, it's: |
||
| 55 | cups-laos://192.168.13.111:69/minimal |
||
| 56 | ** Choose a name for your laser and press apply |
||
| 57 | ** You might need to select the PPD (Postscript Printer Description). It's located in cups-laos/src-tftp/ |
||
| 58 | ** Do NOT print a test page!!! |
||
| 59 | ** Now you can right-click on the new printer and go to '''Printer Options''' to adapt the defaults for your laser. |
||
| 60 | |||
| 61 | h3. Windows |
||
| 62 | Installing the CUPS driver on Windows. |
||
| 63 | |||
| 64 | Tested on Windows 7 Ultimate 32-bit |
||
| 65 | |||
| 66 | *Downloading software* |
||
| 67 | |||
| 68 | Download the cups-windows files from SVN: |
||
| 69 | @https://tuxic.nl/laos/cups-windows/@ |
||
| 70 | |||
| 71 | *Installing the 'printer'* |
||
| 72 | * On Windows 7, go to 'Start' -> Control Panel -> Devices and Printers |
||
| 73 | ** Click Add Printer (or right click then Add Printer) |
||
| 74 | ** Add a local printer |
||
| 75 | ** Create a new port - Standard TC/IP Port |
||
| 76 | ** Stick in the IP address (and port - ie. 192.168.1.2:69) |
||
| 77 | ** Give the port a name (LAOS [ip address] or something maybe) |
||
| 78 | ** Untick 'Query the printer and automatically select the driver to use' |
||
| 79 | ** Click Next and wait for Windows to try and detect the device. |
||
| 80 | ** Select Generic Network Card and click Next |
||
| 81 | ** Select 'Have Disk' and browse to the .inf file from the files you just downloaded. |
||
| 82 | ** Click Next and ignore/accept any warnings. |
||
| 83 | ** Give your laser cutter (printer) a name. |
||
| 84 | ** Share the printer if you want to, set it as default if you want to but DO NOT print a test page. |
||
| 85 | ** Default preferences can be selected under Printer Preferences - Preferences - Advanced. |