Cups et imprimante USB

Cups et imprimante USB - Linux et OS Alternatifs

Marsh Posté le 06-03-2002 à 12:10:05    

J'avais déjà installé Cups et j'aivais pas eux de problème
mais là je n'ai pas le port USB!
il y a :
AppSocket/HP JetDirect,
Internet Printing Protocol (http),
Internet Printing Protocol (ipp),
LPD/LPT Host or Printer,
Serial Port #1,
Serial Port #2,
Serial Port #3,
Serial Port #4
 
c'est une HP deskjet 920c, j'ai aussi install les drivers Cups

Reply

Marsh Posté le 06-03-2002 à 12:10:05   

Reply

Marsh Posté le 06-03-2002 à 12:11:52    

tu as le module printer ?


---------------
brisez les rêves des gens, il en restera toujours quelque chose...  -- laissez moi troller sur discu !
Reply

Marsh Posté le 06-03-2002 à 12:14:04    

Il est dans le kernel

Reply

Marsh Posté le 06-03-2002 à 13:04:09    

mknod /dev/usb/lp0 c 180 0
changes eventuellement les droits à coup de chown/chmod et relance cups


---------------
Two thousand years of misery, of torture in my name, hypocrisy made paramount, paranoia the law, my name is called religion, sadistic, sacred whore.
Reply

Marsh Posté le 06-03-2002 à 13:04:41    

You need to set up a device node entry for the printer. Use the following command: mknod /dev/usb/lp0 c 180 0  
 
 
Different printer tools are installed with various different rights, and this may affect the access priviledges that you need with the device entry. It is normally correct to make /dev/usb/lp0 rights the same as /dev/lp0, using the chmod, chown and chgrp commands.
 
You should now be able to use this device in a normal /etc/printcap entry. I recommend use of automated tools to generate such files, such as RedHat's control panel print-tool.I find this driver to be pretty good, although perhaps a bit slow.
 
If this does not appear to work, check that you have actually loaded the module, and double-check the /etc/printcap entry - especially that the device file matches the one you just created. Also note that some printers require special control characters to be sent to the printer to get the USB interface to be made operational. This is printer specific.


---------------
Two thousand years of misery, of torture in my name, hypocrisy made paramount, paranoia the law, my name is called religion, sadistic, sacred whore.
Reply

Marsh Posté le 06-03-2002 à 13:28:03    

ll /dev/lp*
crw-rw----    1 root     lp         6,   0 Jan 24 17:26 /dev/lp0
crw-rw----    1 root     lp         6,   1 Jan 24 17:26 /dev/lp1
crw-rw----    1 root     lp         6,   2 Jan 24 17:26 /dev/lp2
 
Donc dans ton cas, tu fais  
 
chown root:lp /dev/usb/lp0
chmod 660 /dev/usb/lp0
tu bascules ton user dans le groupe lp
 
et voili


---------------
Two thousand years of misery, of torture in my name, hypocrisy made paramount, paranoia the law, my name is called religion, sadistic, sacred whore.
Reply

Marsh Posté le 06-03-2002 à 17:10:35    

Merci the_fireball!
j'ai créé un repertoire /dev/usb et ca a marché avec mknod /dev/usb/lp0 c 180 0
sinon je n'avais pas de /dev/usb/lp0 mais /devices/usb/lp0 tu sais pourquoi?

Reply

Marsh Posté le 06-03-2002 à 17:34:34    

nop je sais pas ça. Perso j'ai du modifier une ligne dans mon fstab pour que le usbfs soit monté au boot, puis j'ai fait le mknod et chown/chmod et ça roule


---------------
Two thousand years of misery, of torture in my name, hypocrisy made paramount, paranoia the law, my name is called religion, sadistic, sacred whore.
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed