Linux/Jádro/Chyby/ehci hcd/diary/2006-10-07.Sat

< Linux‎ | Jádro‎ | Chyby‎ | ehci hcd‎ | diary

Datum: 2006-10-07.Sat

Připojení tiskárny přes CUPS a USB funguje, ale to jede přes uhci_hcd

@INA:

# aptitude upgrade
 x                                                                                                                                     x  
 x Warning: telnetd is installed --- probably not a good idea                                                                          x  
 x                                                                                                                                     x  
 x I'd advise you to either remove the telnetd package (if you don't actually need to offer telnet access) or install telnetd-ssl so   x  
 x that there is at least some chance that telnet sessions will not be sending unencrypted login/password and session information      x  
 x over the network.                                                                                                                   x  
 x                                                                        

# aptitude purge telnetd


Pripojeni HP LaserJet 1005:

Oct  7 20:23:31 ina kernel: usb 2-1: new full speed USB device using uhci_hcd and address 2
Oct  7 20:23:31 ina kernel: usb 2-1: configuration #1 chosen from 1 choice
Oct  7 20:23:31 ina kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x03F0 pid 0x1317
Oct  7 20:23:31 ina kernel: usbcore: registered new driver usblp
Oct  7 20:23:31 ina kernel: drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver

http://www.gentoo.org/doc/en/printing-howto.xml

CUPS (Common Unix Printing System).http://www.cups.org/

aptitude install:
cupsys
cupsys-bsd
cupsys-client
cupsys-common

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk     
    x Please specify the workgroup you want this server to appear to be in when queried by clients. Note that this parameter also   x     
    x controls the domain name used with the security=domain setting.                                                               x     
    x                                                                                                                               x     
    x Workgroup/Domain Name:                                                                                                        x     
    x                                                                                                                               x     
    x herman_______________________________________________________________________________________________________________________ x     
    x        

                                                                                                                                         
 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Samba Server tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk  
 x                                                                                                                                     x  
 x If your computer gets IP address information from a DHCP server on the network, the DHCP server may also provide information about  x  
 x WINS servers ("NetBIOS name servers") present on the network.  This requires a change to your smb.conf file so that DHCP-provided   x  
 x WINS settings will automatically be read from /etc/samba/dhcp.conf.                                                                 x  
 x                                                                                                                                     x  
 x The dhcp3-client package must be installed to take advantage of this feature.                                                       x  
 x                                                                                                                                     x  
 x Modify smb.conf to use WINS settings from DHCP?                                                                                     x  
 x                                                                                                                                     x  
 x                                        <Ano>                                         *  <Ne>                                        x  
 x                                                                                                                                     x  
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj  

                                                                                                                                         
                                                                                                                                          
 lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu Nastavuji cupsys-bsd tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk  
 x                                                                                                                                     x  
 x This package contains a server that can accept BSD-style print jobs and submit them to CUPS. It should only be set up if you have   x  
 x other computers that submit jobs over the network via "BSD" or "LPR" services, and these computers cannot be converted to use the   x  
 x IPP protocol that CUPS uses.                                                                                                        x  
 x                                                                                                                                     x  
 x Do you want to set up the BSD lpd compatibility server?                                                                             x  
 x                                                                                                                                     x  
 x                                        <Ano>                                         *  <Ne>                                        x  
 x                                                                                                                                     x  
 mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj  
                                                                                                                                          

---

http://www.gentoo.org/doc/en/printing-howto.xml

If you have no idea why your printer does not function, you might get a clue by looking at /var/log/cups/error_log. In the next example we find out that there is a permission error, probably due to a wrong Allow setting in /etc/cups/cupsd.conf.



http://www.linuxprinting.org/printer_list.cgi

HP LaserJet 1005
BW laser printer, max. 600x600 dpi, works Mostly 	
Recommended driver: foo2zjs (Home page, view PPD, download PPD)
Generic instructions for: CUPS, LPD, LPRng, PPR, PDQ, no spooler


Edited Notes

This printer is supported by the foo2zjs free software printer driver.
The printer is faster than the LaserJet 1000 and has both USB and parallel connections. It has only 1 MB of RAM and 32 kB of ROM.
The firmware of the printer must be uploaded after turning it on. You can use a hotplug/udev script which comes with foo2zjs, or do it manually: "cat /usr/share/foo2zjs/firmware/sihp1005.dl > /dev/usb/lp0".
User Notes

I use this with foo2zjs, and it works very well printing from
ghostview and Xpdf. It doesn't work from OpenOffice or Mozilla
directly, sometimes printing half a page and then giving
up in the middle of a complex table - I can supply an input file
if anyone wants to debug with this by return email: rich at copsewood dot
net . What I sometimes have to do as a workaround is use the
OpenOffice export as pdf option, and then it prints fine using
a PDF viewer.

Comment by tscha at web dot de:
I'm not sure, if the last paragraph of the notes is still up2date.
I _can_ do it simply by type in the command:

cat /usr/share/foo2zjs/firmware/sihp1005.dl > /dev/usb/lp0

as also mentioned at
http://foo2zjs.rkkda.com/INSTALL

I still dont know how to do this automaticly, 
so I have to type in the command by hand as normal user.
However, make sure that /dev/usb/lp0 is at least world-r/w-able.
Something like this: chmod 666 /dev/usb/lp0
--
tscha
----
Mar 10, 04
The printer works perfect from all Linux applications I tried, 
including OpenOffice, Mozilla, evolution, different pdf viewers etc.
But with my Mandrake distribution, it needs to be re-initialized 
every time I reboot, and uploading the firmware after powerinng it up 
is a pain in the ...
Felix
---
Aug 13, 2004
Working well connected to the parallel port, using Debian Sarge. Had to 
install cups and foo2zjs from Debian repository, find the firmware in the 
drivers, convert it with arm2hpdl and upload it. After that, I used the 
Add new printer wizard that comes with KDE control center and it worked 
flawlessly. The only drawback is having to upload the firmware every time 
the printer is powered, I wish it was a way to do it automatically.
Jesus
----
Aug 18, 2004
In Debian you also need package foomatic-filters.
Victor
---
Sep 16, 2004
You can upload the firmware automatically if you have usb using hotplug, 
just do a "make install-usb" after "make install".
genstef
---
Oct 07, 2004
"make install-usb" doesn't work, you have to use "make install-hotplug"
instead. It is also said in the file INSTALL in the installation files
directory. Use the help provided in the INSTALL file and you will not
miss anything.
PeTzZz
---
Well, I've uploaded the firmware (after running arm2hpdl), Debian sarge 
detects the printer on /dev/usb/lp0, everything looks completely fine,
but I still can't print from anyway. nada. nothing.

Any suggestions for things to try to diagnose the problem, most appreciated.
smagdali
---
Aug  07, 2005
I had the same problem - everything looked fine, but printer wasn't working.
After I installed foo2zjs (I followed steps in INSTALL step by step), all I
had to do to make it work was to follow steps on
http://www.linuxprinting.org/cups-doc.html
(I didn't have foomatic on my machine before). Hope this will help.
Matjaz
---

I got help here: http://wiki.clug.org.za/clugwiki/index.php/Adding_an_HP_LaserJet_1000_to_Linux

It works nicely!


---

I have Debian Sarge and I managet to get it working thru putting this command

cat /usr/share/foo2zjs/firmware/sihp1005.dl > /dev/usb/lp0

in cups script: /etc/init.d/cupsys

now, everytime the PC is started and everytime the cups is restarted it the printer is "fed" with firmware.
Also you can put a desktop shortcut to cupsys reload and click in case of paper jam or something else...

Janis
LV
www.console.lv

#############

24 April 2006

USB printer and udev under Debian Etch Linux.
An HP Laser Jet 1000 printer and driver were to be installed on an Intel PC running Debian Etch.
The appropriate packages were installed (ghost script, foo2zjs, cups, foomatic, some foo-ppd package etc.)  No samba was needed

----

http://www.linuxprinting.org/cups-doc.html

/usr/share/cups/model/HP-LaserJet_1005-foo2zjs.ppd

# /etc/init.d/cupsys restart
Restarting Common Unix Printing System: cupsd.

"/usr/lib/cups/filter/foomatic-rip failed"

/var/log/cups/error_log
E [07/Oct/2006:22:38:01 +0200] PID 21226 (/usr/lib/cups/filter/foomatic-rip) stopped with status 1!                                         
E [07/Oct/2006:22:38:22 +0200] PID 21237 (/usr/lib/cups/filter/foomatic-rip) stopped with status 1!                                         
E [07/Oct/2006:22:53:04 +0200] PID 21287 (/usr/lib/cups/filter/foomatic-rip) stopped with status 1!                                         

my $EXIT_PRNERR = 1;          # printer error occured

grep-status -P foomatic-filters
Package: foomatic-filters
Status: install ok installed


http://foo2zjs.rkkda.com/INSTALL

Udelat vse co se tam pise
 wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
 tar zxf foo2zjs.tar.gz
 cd foo2zjs
 su
 make
 ./getweb 1005
 make install
 make install-hotplug
 make cups

 cat /usr/share/foo2zjs/firmware/sihp1005.dl > /dev/usb/lp0

UPDATE
------
    Here are handy lines you can click on to get the latest version:

	http://foo2zjs.rkkda.com/
	wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz

    My advice: update early and often!!!!

************************
HURA, FUNGUJE!
**