LAOS CUPS driver » History » Version 7
  jaap, 2012-11-09 08:11 
  
| 1 | 1 | jaap | h1. LAOS CUPS driver | 
|---|---|---|---|
| 2 | |||
| 3 | 4 | Anonymous | {{>toc}} | 
| 4 | |||
| 5 | 1 | jaap | This page describes the CUPS printer driver installation. | 
| 6 | |||
| 7 | h2. How it works | ||
| 8 | |||
| 9 | 2 | jaap | The printer driver translates standard Postscript into LAOS codes. | 
| 10 | 1 | jaap | This is done in the following steps | 
| 11 | |||
| 12 | 2 | jaap | * Application generates a postscript file (by pressing print) | 
| 13 | 1 | jaap | * The printer dialog shows the configuration dialog based on PPD. The user selects the appropriate settings | 
| 14 | * Postscript printer data captured in file, along with the selected settings | ||
| 15 | 2 | jaap | * File is received by the LaOS cups printer driver. | 
| 16 | 6 | jaap | * LaOS cups printer driver uses pstoedit to convert the file into LaOS [[SimpleCode]] | 
| 17 | 2 | jaap | * LaOS cups printer driver transfers the file to the laser cutter using the TFTP protocol | 
| 18 | 1 | jaap | |
| 19 | h2. OS Support | ||
| 20 | 2 | jaap | |
| 21 | 1 | jaap | The goal is to write platform-independent printer driver, based on CUPS. | 
| 22 | |||
| 23 | 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. | 
| 24 | 1 | jaap | |
| 25 | 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. | 
| 26 | 1 | jaap | |
| 27 | h2. Installation | ||
| 28 | 2 | jaap | |
| 29 | 1 | jaap | h3. Linux | 
| 30 | 2 | jaap | |
| 31 | 1 | jaap | This is how you install the driver on Linux. | 
| 32 | |||
| 33 | Tested on: | ||
| 34 | * Debian Squeeze | ||
| 35 | 2 | jaap | * Ubuntu 10.10, 11.04, 11.10, 12.04 LTS | 
| 36 | 1 | jaap | Please add your distro or let us know problems you encounter! | 
| 37 | |||
| 38 | *Downloading software* | ||
| 39 | Before installing the CUPS driver, install [[pstoedit with laos support]]. | ||
| 40 | |||
| 41 | 3 | jaap | Get Debian/Ubuntu packages needed: | 
| 42 | 1 | jaap | |
| 43 | 5 | Anonymous | apt-get install bison flex tftp-hpa | 
| 44 | |||
| 45 | 7 | jaap | From GIT download the cups-laos: | 
| 46 | 5 | Anonymous | |
| 47 | 7 | jaap | git clone https://github.com/LaosLaser/Software | 
| 48 | 1 | jaap | |
| 49 | |||
| 50 | 5 | Anonymous | |
| 51 | 1 | jaap | Installing the cups driver: | 
| 52 | 5 | Anonymous | |
| 53 | 7 | jaap | cd (where-ever you installed)/Software/cups-laos/src | 
| 54 | 2 | jaap | make | 
| 55 | 5 | Anonymous | sudo make install | 
| 56 | |||
| 57 | 1 | jaap | (if make fails, rename or copy one of the personal makefiles in that folder and call it 'Makefile') | 
| 58 | |||
| 59 | Now it's time to install the laser cutter using your CUPS printer interface. | ||
| 60 | * On Debian, go to System -> Administration -> Printing | ||
| 61 | ** Choose: Add Printer (the arrow next to add) | ||
| 62 | ** Choose: Devices: Generic CUPS-LAOS Printer | ||
| 63 | ** 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: | ||
| 64 | cups-laos://192.168.13.111:69/minimal | ||
| 65 | ** Choose a name for your laser and press apply | ||
| 66 | ** You might need to select the PPD (Postscript Printer Description). It's located in cups-laos/src-tftp/ | ||
| 67 | ** Do NOT print a test page!!! | ||
| 68 | ** Now you can right-click on the new printer and go to '''Printer Options''' to adapt the defaults for your laser. | ||
| 69 | |||
| 70 | h3. Windows | ||
| 71 | 5 | Anonymous | |
| 72 | 1 | jaap | Installing the CUPS driver on Windows. | 
| 73 | |||
| 74 | Tested on Windows 7 Ultimate 32-bit | ||
| 75 | |||
| 76 | *Downloading software* | ||
| 77 | |||
| 78 | 7 | jaap | -Download the cups-windows files from SVN: https://tuxic.nl/laos/cups-windows/- | 
| 79 | (the cups-windows version is broken at the moment!) | ||
| 80 | 1 | jaap | |
| 81 | *Installing the 'printer'* | ||
| 82 | * On Windows 7, go to 'Start' -> Control Panel -> Devices and Printers | ||
| 83 | ** Click Add Printer (or right click then Add Printer) | ||
| 84 | ** Add a local printer | ||
| 85 | ** Create a new port - Standard TC/IP Port | ||
| 86 | ** Stick in the IP address (and port - ie. 192.168.1.2:69) | ||
| 87 | ** Give the port a name (LAOS [ip address] or something maybe) | ||
| 88 | ** Untick 'Query the printer and automatically select the driver to use' | ||
| 89 | ** Click Next and wait for Windows to try and detect the device. | ||
| 90 | ** Select Generic Network Card and click Next | ||
| 91 | ** Select 'Have Disk' and browse to the .inf file from the files you just downloaded. | ||
| 92 | ** Click Next and ignore/accept any warnings. | ||
| 93 | ** Give your laser cutter (printer) a name. | ||
| 94 | ** Share the printer if you want to, set it as default if you want to but DO NOT print a test page. | ||
| 95 | ** Default preferences can be selected under Printer Preferences - Preferences - Advanced. |