install airprint/cloud print on my pogo E02

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

install airprint/cloud print on my pogo E02

Postby momentum » Thu Aug 22, 2013 9:06 pm

I have a printer connected to my dd-wrt router and serve as network printer in my place. Work fine when print from windows. Now I want to add airprint/cloud print functionality following instructions in the other thread. However I don't want to connect the printer to my pogo. Is it possible to configure cups in pogo and point it to the printer on the router? It seems that I added the network printer successfully but it failed to print test page. I'll post more info when I get home. Just want to check the possibility first. Thanks.
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: install airprint/cloud print on my pogo E02

Postby grayman4hire » Thu Aug 22, 2013 9:45 pm

Yes.

When setting up CUPS, set the Connection address to "socket://192.168.1.1:9100".

What type of printer? What driver are you using? Try a different driver. Not all printers will work.
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: install airprint/cloud print on my pogo E02

Postby momentum » Sat Aug 24, 2013 3:41 am

my printer is HP Officejet Pro 8000 Wireless. In CUPS, I select HP, HP Officejet Pro 8000 a809 hpcups 3.13.8 (en,en). (also tried HP Officejet Pro 8000 a809 hpcups 3.13.8 (en) but seems they are the same, except that one is for single-side and the other is for double-side printing)

Always got stopped -"Filter failed" message when printing test page.
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: install airprint/cloud print on my pogo E02

Postby grayman4hire » Sat Aug 24, 2013 2:56 pm

$this->bbcode_second_pass_quote('momentum', 'm')y printer is HP Officejet Pro 8000 Wireless. In CUPS, I select HP, HP Officejet Pro 8000 a809 hpcups 3.13.8 (en,en). (also tried HP Officejet Pro 8000 a809 hpcups 3.13.8 (en) but seems they are the same, except that one is for single-side and the other is for double-side printing)

Always got stopped -"Filter failed" message when printing test page.


Try setting the default to single side. I know people had issues with double side.
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA

Re: install airprint/cloud print on my pogo E02

Postby momentum » Sun Aug 25, 2013 3:53 am

Never change default (which always disable double side printing).

Here is my error log from cups:

$this->bbcode_second_pass_code('', '
E [24/Aug/2013:21:57:02 -0400] [Job 7] Job stopped due to filter errors; please consult the error_log file for details.
D [24/Aug/2013:21:57:02 -0400] [Job 7] The following messages were recorded from 09:56:57 PM to 09:57:02 PM
D [24/Aug/2013:21:57:02 -0400] [Job 7] Adding start banner page "none".
D [24/Aug/2013:21:57:02 -0400] [Job 7] Adding end banner page "none".
D [24/Aug/2013:21:57:02 -0400] [Job 7] File of type application/vnd.cups-pdf-banner queued by "root".
D [24/Aug/2013:21:57:02 -0400] [Job 7] hold_until=0
D [24/Aug/2013:21:57:02 -0400] [Job 7] Queued on "HPOfficeJetPro8000Wireless" by "root".
D [24/Aug/2013:21:57:02 -0400] [Job 7] time-at-processing=1377395817
D [24/Aug/2013:21:57:02 -0400] [Job 7] 4 filters for job:
D [24/Aug/2013:21:57:02 -0400] [Job 7] bannertopdf (application/vnd.cups-pdf-banner to application/pdf, cost 33)
D [24/Aug/2013:21:57:02 -0400] [Job 7] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [24/Aug/2013:21:57:02 -0400] [Job 7] gstoraster (application/vnd.cups-pdf to application/vnd.cups-raster, cost 66)
D [24/Aug/2013:21:57:02 -0400] [Job 7] hpcups (application/vnd.cups-raster to printer/HPOfficeJetPro8000Wireless, cost 0)
D [24/Aug/2013:21:57:02 -0400] [Job 7] job-sheets=none,none
D [24/Aug/2013:21:57:02 -0400] [Job 7] argv[0]="HPOfficeJetPro8000Wireless"
D [24/Aug/2013:21:57:02 -0400] [Job 7] argv[1]="7"
D [24/Aug/2013:21:57:02 -0400] [Job 7] argv[2]="root"
D [24/Aug/2013:21:57:02 -0400] [Job 7] argv[3]="Test Page"
D [24/Aug/2013:21:57:02 -0400] [Job 7] argv[4]="1"
D [24/Aug/2013:21:57:02 -0400] [Job 7] argv[5]="job-uuid=urn:uuid:41868266-392f-38e3-6cab-d5b8e79574d2 job-originating-host-name=localhost time-at-creation=1377395817 time-at-processing=1377395817"
D [24/Aug/2013:21:57:02 -0400] [Job 7] argv[6]="/var/spool/cups/d00007-001"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[7]="CUPS_STATEDIR=/run/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[8]="HOME=/var/spool/cups/tmp"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[10]="SERVER_ADMIN=root@pogo_e02_a"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[11]="SOFTWARE=CUPS/1.6.3"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[13]="USER=root"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[14]="CUPS_MAX_MESSAGE=2047"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[17]="IPP_PORT=631"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[18]="CHARSET=utf-8"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[19]="LANG=en_US.UTF-8"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[20]="PPD=/etc/cups/ppd/HPOfficeJetPro8000Wireless.ppd"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[21]="RIP_MAX_CACHE=128m"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[22]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[23]="DEVICE_URI=socket://192.168.1.1:9100"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[24]="PRINTER_INFO="
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[25]="PRINTER_LOCATION=Basement"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[26]="PRINTER=HPOfficeJetPro8000Wireless"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[27]="PRINTER_STATE_REASONS=none"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[28]="CUPS_FILETYPE=document"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[30]="AUTH_I****"
D [24/Aug/2013:21:57:02 -0400] [Job 7] Started filter /usr/lib/cups/filter/bannertopdf (PID 7774)
D [24/Aug/2013:21:57:02 -0400] [Job 7] Started filter /usr/lib/cups/filter/pdftopdf (PID 7775)
D [24/Aug/2013:21:57:02 -0400] [Job 7] Started filter /usr/lib/cups/filter/gstoraster (PID 7776)
D [24/Aug/2013:21:57:02 -0400] [Job 7] Started filter /usr/lib/cups/filter/hpcups (PID 7777)
D [24/Aug/2013:21:57:02 -0400] [Job 7] Started backend /usr/lib/cups/backend/socket (PID 7778)
D [24/Aug/2013:21:57:02 -0400] [Job 7] STATE: +connecting-to-device
D [24/Aug/2013:21:57:02 -0400] [Job 7] Looking up "192.168.1.1"...
D [24/Aug/2013:21:57:02 -0400] [Job 7] PID 7774 (/usr/lib/cups/filter/bannertopdf) exited with no errors.
D [24/Aug/2013:21:57:02 -0400] [Job 7] WARN: not compiled with DBus support
D [24/Aug/2013:21:57:02 -0400] [Job 7] PPD uses qualifier 'RGB.Plain.'
D [24/Aug/2013:21:57:02 -0400] [Job 7] WARN: not compiled with DBus support
D [24/Aug/2013:21:57:02 -0400] [Job 7] no profiles specified in PPD
D [24/Aug/2013:21:57:02 -0400] [Job 7] Set job-printer-state-message to "no profiles specified in PPD", current level=INFO
D [24/Aug/2013:21:57:02 -0400] [Job 7] Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=17 -dcupsInteger0=2 -scupsPageSizeName=Letter -I/usr/share/cups/fonts -c -f -_
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[7]="CUPS_STATEDIR=/run/cups"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[8]="HOME=/var/spool/cups/tmp"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/bin:/bin:/usr/bin"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[10]="SERVER_ADMIN=root@pogo_e02_a"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[11]="SOFTWARE=CUPS/1.6.3"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[13]="USER=root"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[14]="CUPS_MAX_MESSAGE=2047"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[17]="IPP_PORT=631"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[18]="CHARSET=utf-8"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[19]="LANG=en_US.UTF-8"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[20]="PPD=/etc/cups/ppd/HPOfficeJetPro8000Wireless.ppd"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[21]="RIP_MAX_CACHE=128m"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[22]="CONTENT_TYPE=application/vnd.cups-pdf-banner"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[23]="DEVICE_URI=socket://192.168.1.1:9100"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[24]="PRINTER_INFO="
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[25]="PRINTER_LOCATION=Basement"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[26]="PRINTER=HPOfficeJetPro8000Wireless"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[27]="PRINTER_STATE_REASONS=none"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[28]="CUPS_FILETYPE=document"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
D [24/Aug/2013:21:57:02 -0400] [Job 7] envp[30]="AUTH_INFO_REQUIRED=none"
D [24/Aug/2013:21:57:02 -0400] [Job 7] PID 7775 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [24/Aug/2013:21:57:02 -0400] [Job 7] Start rendering...
D [24/Aug/2013:21:57:02 -0400] [Job 7] Set job-printer-state-message to "Start rendering...", current level=INFO
D [24/Aug/2013:21:57:02 -0400] [Job 7] Processing page 1...
D [24/Aug/2013:21:57:02 -0400] [Job 7] Set job-printer-state-message to "Processing page 1...", current level=INFO
D [24/Aug/2013:21:57:02 -0400] [Job 7] hrDeviceDesc="Unknown"
D [24/Aug/2013:21:57:02 -0400] [Job 7] prtGeneralCurrentLocalization type is 0, expected 2!
D [24/Aug/2013:21:57:02 -0400] [Job 7] backendWaitLoop(snmp_fd=5, addr=0xb6f4196c, side_cb=0xb6f1f75c)
D [24/Aug/2013:21:57:02 -0400] [Job 7] Error: /undefined in --setpagedevice--
D [24/Aug/2013:21:57:02 -0400] [Job 7] Operand stack:
D [24/Aug/2013:21:57:02 -0400] [Job 7] (/var/spool/cups/tmp/gs_5ubL5D) --nostringval-- --dict:10/10(L)-- --dict:6/6(L)-- --nostringval-- --nostringval-- --dict:3/3(L)-- --dict:6/6(L)-- --dict:153/153(ro)(L)-- --dict:21/159(L)-- --dict:1/10(L)-- --dict:3/3(L)-- PageSpotColors 1 --dict:3/3(ro)(G)-- 0
D [24/Aug/2013:21:57:02 -0400] [Job 7] Execution stack:
D [24/Aug/2013:21:57:02 -0400] [Job 7] %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1904 1 3 %oparray_pop 1903 1 3 %oparray_pop 1887 1 3 %oparray_pop --nostringval-- --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- 1866 4 7 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --dict:1/10(L)-- --nostringval-- 9 %dict_continue --nostringval--
D [24/Aug/2013:21:57:02 -0400] [Job 7] Dictionary stack:
D [24/Aug/2013:21:57:02 -0400] [Job 7] --dict:1178/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:109/127(ro)(G)-- --dict:292/300(ro)(G)-- --dict:25/32(L)--
D [24/Aug/2013:21:57:02 -0400] [Job 7] Current allocation mode is local
D [24/Aug/2013:21:57:02 -0400] [Job 7] Last OS error: No such file or directory
D [24/Aug/2013:21:57:02 -0400] [Job 7] GPL Ghostscript 9.07: Unrecoverable error, exit code 1
D [24/Aug/2013:21:57:02 -0400] [Job 7] Rendering completed
D [24/Aug/2013:21:57:02 -0400] [Job 7] Set job-printer-state-message to "Rendering completed", current level=INFO
D [24/Aug/2013:21:57:02 -0400] [Job 7] prnt/hpcups/HPCupsFilter.cpp 548: cupsRasterOpen failed, fd = 0
D [24/Aug/2013:21:57:02 -0400] [Job 7] PID 7776 (/usr/lib/cups/filter/gstoraster) exited with no errors.
D [24/Aug/2013:21:57:02 -0400] [Job 7] PID 7777 (/usr/lib/cups/filter/hpcups) stopped with status 1.
D [24/Aug/2013:21:57:02 -0400] [Job 7] Hint: Try setting the LogLevel to "debug" to find out more.
D [24/Aug/2013:21:57:02 -0400] [Job 7] PID 7778 (/usr/lib/cups/backend/socket) exited with no errors.
D [24/Aug/2013:21:57:02 -0400] [Job 7] End of messages
D [24/Aug/2013:21:57:02 -0400] [Job 7] printer-state=3(idle)
D [24/Aug/2013:21:57:02 -0400] [Job 7] printer-state-message="Filter failed"
D [24/Aug/2013:21:57:02 -0400] [Job 7] printer-state-reasons=none
E [24/Aug/2013:22:02:03 -0400] [Job 7] Stopping unresponsive job.
')
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: install airprint/cloud print on my pogo E02

Postby WarheadsSE » Sun Aug 25, 2013 12:54 pm

Have you installed extra/hplip?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: install airprint/cloud print on my pogo E02

Postby momentum » Mon Aug 26, 2013 2:42 am

I follow Qui's instruction on E02 on this:

http://blog.qnology.com/2013/03/tutoria ... linux.html

So yes, I did this

$this->bbcode_second_pass_code('', 'pacman -S hplip')
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: install airprint/cloud print on my pogo E02

Postby moonman » Mon Aug 26, 2013 5:08 am

dd-wrt is already running cups. Maybe this is what you need? https://wiki.archlinux.org/index.php/CU ... er_sharing
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: install airprint/cloud print on my pogo E02

Postby momentum » Tue Aug 27, 2013 3:32 am

It seems dd-wrt use p910nd printer daemon, instead of CUPS

$this->bbcode_second_pass_code('', 'http://www.dd-wrt.com/wiki/index.php/Printer_Sharing')

So on the server side (DD-WRT), there is nothing to configure based on the link. On pogo client side, I add $this->bbcode_second_pass_code('', 'ServerName my-router-ip') to /etc/cups/client.conf, then restart cups. still not working with the same information.

The reason I don't connect my printer to pogo is that all usb ports on my pogo are used. I want to leverage my ASUS NT-R16 router, where there are 2 empty UPB ports. Only after my pogo can communicate with the printer on router, I can continue the rest of steps to set up Airprint on pogo.
momentum
 
Posts: 22
Joined: Mon Jan 09, 2012 2:09 am

Re: install airprint/cloud print on my pogo E02

Postby moonman » Tue Aug 27, 2013 10:04 am

Try doing what it tell you. Set loglevel to debug. Also last os message file cant be found doesn't look good
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 6 guests