Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[samba] error al compartir impresora hp (solucionado)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
jasbeem
n00b
n00b


Joined: 15 Nov 2003
Posts: 63

PostPosted: Sun Jul 18, 2004 11:59 am    Post subject: [samba] error al compartir impresora hp (solucionado) Reply with quote

Tengo un problema al compartir una impresora que esta en un equipo con gentoo. El archivo de samba smb.conf es:
Code:
#======================= Global Settings =====================================
[global]
        log file = /var/log/samba/log.%m
        dns proxy = no
        load printers = yes
        smb passwd file = /etc/samba/private/smbpasswd
        server string = Samba Server %v
        printing = cups
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        workgroup = sokajosa
        os level = 20
        encrypt passwords = yes
        printcap name = lpstat
        security = user
        max log size = 50

[Mldonkey]
        writeable = yes
        path = /mldonkey/incoming
        write list = jasbeem,@redlocal


[Exporta]
        writeable = yes
        path = /exporta
        write list = jasbeem


[Esbe]
        writeable = yes
        path = /exporta/personales/esbe
        write list = esbe,@redlocal


[printers]
        writeable = yes
        printable = yes
        user = jasbeem
        public = yes
        write list = jasbeem
        path = /var/spool/samba




[hp940c]
        printer = hp940c
        printable = yes
        writeable = yes
        path = /var/spool/samba
        write list = jasbeem,esbe,@users
        revalidate = yes
        valid users = jasbeem,esbe,@wheel,@users
        user = jasbeem,esbe,@users
        public = yes


¿¿Alguna sugerencia?? GRACIAS


Last edited by jasbeem on Sun Jul 18, 2004 3:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
kabutor
l33t
l33t


Joined: 12 Dec 2002
Posts: 821
Location: Benalmadena - Melrose Place

PostPosted: Sun Jul 18, 2004 2:50 pm    Post subject: Reply with quote

quizas te falte esto?

Quote:
print command = lpr -P %p -o raw %s -r # using client side printer drivers.


O mira los logs, o comenta que es lo que te pasa, si la ves, si no la ves, si imprime si no.. :)

EDIT: Revisa los Logs en caso de error, parece que no, pero los logs casi siempre dan la solucion :)
Back to top
View user's profile Send private message
jasbeem
n00b
n00b


Joined: 15 Nov 2003
Posts: 63

PostPosted: Sun Jul 18, 2004 3:49 pm    Post subject: Reply with quote

kabutor wrote:
quizas te falte esto?
print command = lpr -P %p -o raw %s -r # using client side printer drivers.

O mira los logs, o comenta que es lo que te pasa, si la ves, si no la ves, si imprime si no.. :)

EDIT: Revisa los Logs en caso de error, parece que no, pero los logs casi siempre dan la solucion :)


Code:

[2004/07/18 12:34:18, 0] printing/pcap.c:pcap_printer_fn(361)
  Unable to open printcap file lpstat for read!
[2004/07/18 12:41:32, 0] param/loadparm.c:map_parameter(2410)
  Unknown parameter encountered: "revalidate"
[2004/07/18 12:41:32, 0] param/loadparm.c:lp_do_parameter(3048)
  Ignoring unknown parameter "revalidate"
[2004/07/18 12:41:32, 0] printing/pcap.c:pcap_printer_fn(361)
  Unable to open printcap file lpstat for read!
[2004/07/18 12:54:39, 1] smbd/service.c:make_connection_snum(705)
  tauro (192.168.0.3) connect to service hp940c initially as user jasbeem (uid=1000, gid=100) (pid 14783)
lpr: unable to print file: client-error-document-format-not-supported
[2004/07/18 12:54:42, 1] smbd/service.c:close_cnum(887)
  tauro (192.168.0.3) closed connection to service hp940c
[2004/07/18 12:55:29, 1] smbd/service.c:close_cnum(887)
  tauro (192.168.0.101) closed connection to service Exporta
[2004/07/18 12:55:29, 1] smbd/service.c:close_cnum(887)
  tauro (192.168.0.101) closed connection to service Mldonkey
[2004/07/18 12:59:14, 1] smbd/service.c:make_connection_snum(705)
  tauro (192.168.0.3) connect to service hp940c initially as user jasbeem (uid=1000, gid=100) (pid 14942)
lpr: unable to print file: client-error-document-format-not-supported
[2004/07/18 12:59:20, 1] smbd/service.c:close_cnum(887)
  tauro (192.168.0.3) closed connection to service hp940c
[2004/07/18 13:03:44, 1] smbd/service.c:make_connection_snum(705)
  tauro (192.168.0.3) connect to service hp940c initially as user jasbeem (uid=1000, gid=100) (pid 14962)
lpr: unable to print file: client-error-document-format-not-supported
[2004/07/18 13:03:50, 1] smbd/service.c:close_cnum(887)
  tauro (192.168.0.3) closed connection to service hp940c


Gracias Kabutor, he añadido la linea que me dices y cambiado los privilegios del archivo printcap. Y Ya esta funcionando. Es verdad, No hay nada como un buen log. ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum