Loading ...
Sorry, an error occurred while loading the content.
 

Re: How to print from unslung? Jobs get stuck in queue and never print!

Expand Messages
  • d0nv
    See comments in-line below. ... http://www.nslu2-linux.org/wiki/HowTo/AddPrinter to add ... determined ... GNU/Linux ... The easiest way I know of is to load
    Message 1 of 2 , Feb 27, 2007
      See comments in-line below.

      --- In nslu2-general@yahoogroups.com, "siegfried" <siegfried@...> wrote:
      >
      > I'm trying to follow
      http://www.nslu2-linux.org/wiki/HowTo/AddPrinter to add
      > an officejet g85 printer.
      >
      >
      >
      > How do I determine what version of unslung I am using? Can it be
      determined
      > from uname?
      >
      >
      >
      > # uname -a
      >
      > Linux LKGD7F73A 2.4.22-xfs #1 Mon Apr 10 18:17:11 PDT 2006 armv5b
      GNU/Linux
      >
      >

      The easiest way I know of is to load up the slug's main web page in a
      browser -- http://IP_address_of_slug . Version information is
      displayed on that page.

      >
      > I did:
      >
      > # ipkg install cups
      >
      > Upgrading cups on root from 1.1.23-6 to 1.2.7-3...
      >
      > Downloading
      > http://ipkg.nslu2-linux.org/feeds/unslung/cross/cups_1.2.7-3_armeb.iPk
      >
      >
      >
      >
      >
      > Now what do I do? I tried ssh root@<ip address>
      >
      >
      >
      > lpr test
      >
      > lpq test
      >
      >
      >
      > And it just sits there indefinitely in the queue. As per the
      instructions, I
      > did not try printing a test page. (See below, I could not get to the
      cups
      > web page anyway).
      >
      >

      Did you install the correct printer driver? It is unlikely you did as
      these are not readily available yet for the slug, most just use the
      raw device printing from other clients. Without the correct driver,
      you can't print natively on the slug. The wiki page has info on this
      and how to test your printer support by creating a print file on
      another machine, transferring the file to the slug and then using cat
      filename > /dev/lp0 to send the file to print on the slug.

      >
      > So I
      >
      >
      >
      > cp /dev/lp0 /dev/usb/lp0
      >
      > chmod 777 /dev/usb/lp0
      >
      >
      >
      > This did not help. So then I
      >
      >
      >
      > /opt/lib/cups/backend/usb
      >
      >
      >
      > But it produces no output! So now what do I do?
      >
      >
      >
      > Should I be able to print a simple test page with the "lpr" command
      from the
      > ssh connection at this point?
      >
      >

      See driver comment above.

      >
      > However, apparently it is seeing the USB devices including my
      printer (see
      > below).
      >
      >
      >
      > I had a lot of trouble making my printer work on ubuntu. I finally
      resolved
      > the problem with
      > http://ubuntuforums.org/showthread.php?p=2215688#post2215688. When
      I was
      > using the printer test pages last fall (I think I was using http://<ip
      > address>:631), I was getting the same symptoms as I was recently
      > experiencing on ubuntu: the test page would appear in the queue and then
      > disappear from the queue with nothing appearing on the printer. Is there
      > something weird about the officejet G85 printers?
      >
      >
      >
      > Now should I be able to view http://<ip address>:631 in my browser? It
      > prompts for a username and password (which I provide) but it says I
      don't
      > have the permission. I tried both root and admin as the usernames.
      Should
      > this still work?
      >
      >

      The URL for the admin interface is https://ip_address:631 (note the httpS)

      >
      > Thanks,
      >
      > Siegfried
      >
      >
      >
      > # cat /proc/bus/usb/devices
      >
      > T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
      >
      > B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
      >
      > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
      >
      > P: Vendor=0000 ProdID=0000 Rev= 0.00
      >
      > S: Product=USB OHCI Root Hub
      >
      > S: SerialNumber=c3880000
      >
      > C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
      >
      > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
      >
      > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
      >
      > T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 3
      >
      > B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
      >
      > D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
      >
      > P: Vendor=0000 ProdID=0000 Rev= 0.00
      >
      > S: Product=USB OHCI Root Hub
      >
      > S: SerialNumber=c387a000
      >
      > C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
      >
      > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
      >
      > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
      >
      > T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
      >
      > D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
      >
      > P: Vendor=03f0 ProdID=0311 Rev= 1.00
      >
      > S: Manufacturer=Hewlett-Packard
      >
      > S: Product=OfficeJet G85xi
      >
      > S: SerialNumber=SGF0CEG217VL
      >
      > C:* #Ifs= 1 Cfg#= 1 Atr=00 MxPwr= 2mA
      >
      > I: If#= 0 Alt= 0 #EPs= 3 Cls=07(print) Sub=01 Prot=03 Driver=usblp
      >
      > E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
      >
      > E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
      >
      > E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
      >
      > T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 5
      >
      > B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
      >
      > D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
      >
      > P: Vendor=0000 ProdID=0000 Rev= 2.04
      >
      > S: Manufacturer=Linux 2.4.22-xfs ehci_hcd
      >
      > S: Product=NEC Corporation USB 2.0
      >
      > S: SerialNumber=00:01.2
      >
      > C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
      >
      > I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
      >
      > E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
      >
      > T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
      >
      > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
      >
      > P: Vendor=0bc2 ProdID=0502 Rev= 2.00
      >
      > S: Manufacturer=Seagate
      >
      > S: Product=ST94811U2-RK
      >
      > S: SerialNumber=344E463143575645
      >
      > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 4mA
      >
      > I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
      Driver=usb-storage
      >
      > E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      >
      > E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.