2015-02-16T09:07:47Labels 2.0 recipe
        Here are my notes from setting-up labels with barcodes for our warehousing.
         
            Ingrediences
            
            
                  - 
                        Hardware:
                        
                  
 
                  - 
                        Software:
                        
                  
 
                  - 
                        Skills / Knowledge of:
                        
                              - Linux as user
 
                              - basic HTML+JavaScript to tweak jQuery Mobile examples
 
                              - any server-side programming that can do system() calls
 
                              - any automated way to generate custom PDFs or pictures
 
                        
                   
            
            Directions
            
            
                  - have your Debian Linux ready
 
                  - install pbm2lwxl
                      
                          - cd /tmp
 
                          - git clone https://github.com/jfuchs/receipt-printy.git
 
                          - cd receipt-printy
 
                          - gcc -o pbm2lwxl pbm2lwxl.c
 
                          - sudo cp pbm2lwxl /usr/bin
 
                      
                   
                  - configure printer to connect to your WiFi network
 
                  - assign printer some static IP (ex. here: 192.168.0.150)
 
                  - via localhost:631 add new printer
 
                  - as connection select "ipp://192.168.0.150/" and upload this PPD
 
                  - now you can do "Print Test Page" and Linux print test page should come out of the printer on the sticker
 
                  - with your favorite program create some pdf that has 76x36mm dimensions
 
                  - from command line by `
lp -d PRINTER_NAME label-location-X-5-01-2.pdf` you are now able to print your own labels 
                  - with jQuery Mobile create a form that would be handled by your favourite server side programming language generating PDFs and feeding those to `
lp` command.
                      
                   
                  - do BlueTooth pairing of barcode scanner with your phone
 
                  - launch any browser on your phone and scan barcodes right into your jQuery Mobile forms
 
                  - in case you would like to have barcode-scanning-printing mobile app look and feel:
                      
                          - build you jQuery Mobile page with just one location → index
 
                          - set all the required <head>ers:
                          
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content=""/>
<meta name="author" content="meon"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="application-name" content="Eusahub" />
<meta name="apple-mobile-web-app-title" content="Eusahub"/>
<link rel="icon" sizes="192x192" href="/static/img/htouch-icon-192x192.png"/>
<link rel="apple-touch-startup-image" href="/static/img/htouch-startup-320x460.png"/>
<link rel="apple-touch-icon" href="/static/img/htouch-icon-60x60.png"/>
<link rel="apple-touch-icon" sizes="76x76" href="/static/img/htouch-icon-76x76.png"/>
<link rel="apple-touch-icon" sizes="120x120" href="/static/img/htouch-icon-120x120.png"/>
<link rel="apple-touch-icon" sizes="152x152" href="/static/img/htouch-icon-152x152.png"/>
                          
                           
                          - afterwards just add that location to home screen
 
                      
                   
                  - enjoy your own custom labels!
 
            
            
            Update: Leitz released Linux drivers for Icon
            Update: see also Brother QL-1060N for network label printing from Linux