Monday, December 13, 2010

Unjumble Letters In Fre

AirPrint for iDevices under Ubuntu

Hi,
Today I want to show you how to use the new iOS feature AirPrint "without AirPrint enabled printer under Ubuntu. Just add a little avahi service file is created and made some changes to cups. Just follow my little guide and you can print with AirPrint: First you create
  1. the avahi service file using
     sudo gedit / etc / avahi / services / printer.service 
  2. added in that file you now the following:
     \u0026lt;? xml version = "1.0" standalone = 'no'?>\u0026lt;!--*- nxml-*--> 
    DOCTYPE service-group SYSTEM "avahi-service.dtd>
    \u0026lt;service-group>
    \u0026lt;name> My Printer \u0026lt;/ name>
    \u0026lt;service>
    \u0026lt;type> _ipp._tcp \u0026lt;/ type>
    \u0026lt;SubType> ; _universal._sub._ipp._tcp \u0026lt;/ subtype>
    \u0026lt;port> 631 \u0026lt;/ port>
    \u0026lt;txt-record> txtver = 1 \u0026lt;/ txt-record>
    \u0026lt;txt-record> qtotal = 1 \u0026lt;/ txt-record>
    \u0026lt;txt-record> rp = printers / My-Printer CUPS-name \u0026lt;/ txt-record>
    \u0026lt;txt-record> ty = My Printer \u0026lt;/ txt-record>
    \u0026lt;txt-record> adminurl = http://198.168.1.4:631/printers/My-Printer-CUPS-Name \u0026lt;/ txt-record> ;
    \u0026lt;txt-record> note = My Printer \u0026lt;/ txt-record>
    \u0026lt;txt-record> priority = 0 \u0026lt;/ txt-record>
    \u0026lt;txt-record> product = virtual printer \u0026lt;/ txt-record> ;
    \u0026lt;txt-record> printer-state = 3 \u0026lt;/ txt-record>
    \u0026lt;txt-record> printer-type = 0x801046 \u0026lt;/ txt-record>
    \u0026lt;txt-record> Transparent = T \u0026lt;/ txt-record>
    \u0026lt;txt-record> Binary = T \u0026lt;/ txt-record>
    \u0026lt;txt-record> Fax = F \u0026lt;/ txt-record>
    \u0026lt; ; txt-record> Color = T \u0026lt;/ txt-record>
    \u0026lt;txt-record> Duplex = T \u0026lt;/ txt-record>
    \u0026lt;txt-record> Staple = F \u0026lt;/ txt-record>
    \u0026lt;txt -record> Copies = T \u0026lt;/ txt-record>
    \u0026lt;txt-record> Collate = F \u0026lt;/ txt-record>
    \u0026lt;txt-record> Punch = F \u0026lt;/ txt-record>
    \u0026lt;txt-record> Bind = F \u0026lt;/ txt-record>
    \u0026lt;txt-record> Sort = F \u0026lt;/ txt-record>
    \u0026lt; ; txt-record> Scan = F \u0026lt;/ txt-record>
    \u0026lt;txt-record> PDL = application / octet-stream, application / pdf, application / postscript, image / jpeg, image / png, image / custom \u0026lt;/ txt-record>
    \u0026lt;txt-record> urf = W8, SRGB24, CP1, RS600 \u0026lt;/ txt-record>
    \u0026lt;/ service>
    \u0026lt;/ service-group>
    Replaced "My Printer" with the name of your printer, for example, "AirPrinter. his "My-Printer CUPS-name" must be the name of the CUPS printer as the printer is on Ubuntu. Usually this is the printer model. My example is the EPSON_Stylus_S20. There you are also free to adjust the other values. This you can look up to in
     
    cups.
  3. now makes sure that in your cupsd.conf
     sudo gedit / etc / cups / cupsd.conf 
    is the following entry:
     ServerAlias * 

    Port 631 Listen / var / run / cups / cups.sock
    Solte this is not the case, it adds to the beginning of the file.
  4. Now go to your Ubuntu machine to http://localhost:631 . Here is your CUPS printer system. There, she selects the top tab "administration" and there marked the box "Share printers that are connected to this system." Then click "change settings" on her and give the root password (username: your user name, password: root password). Then start cups.
  5. Once CUPS is restarted, you can with AirPrint print:)