+ Responder ao Tópico



  1. #1
    falexreis
    Visitante

    Padrão Compartilhar Impressora

    Bom dia !!!
    Estou configurando pela primeira vez um servidor de Arquivos no Debian Sarge 3.10... instalei a impressora HP 692, localmente esta funcionando perfeitamente, ja compartilhei a impressora usando ... (http://localhost:631)... no smb.conf aparentemenet tambem está tudo correto, porem quando tento imprimir pela rede não dá certo, não funciona, simplesmente fica tudo parado... alguem tem alguma ideia... algum procedimento a ser seguido, alves tenha feito algo de errado.

    Agradeço

    Atenciosamente

    falexreis

  2. #2

    Padrão Re: Compartilhar Impressora

    Como tá o smb.conf? O que o log tá te falando?

  3. #3
    falexreis
    Visitante

    Padrão Re: Compartilhar Impressora

    Esse é o smb.conf

    [global]
    name resolve order = wins, bcast, host
    browse list = no
    hosts allow = 192.168.0. 127.
    dns proxy = no
    netbios name = servidor
    printing = cups
    local master = yes
    workgroup = life
    debug level = 1
    os level = 65
    printcap name = /etc/cups
    security = user
    domain admin group = root
    max log size = 50
    log file = /var/log/samba/log.%m
    printer = Servidor
    load printers = yes
    socket options = IPTOS_LOWDELAY TCP_NODELAY
    domain master = yes
    map to guest = never
    null passwords = yes
    dead time = 0
    password level = 8
    wins support = yes
    domain admin users = flavio, root
    server string = Samba Server
    unix password sync = no
    logon path = \\servidor\profiles\%U
    force create mode = 0777
    syslog = 1
    preferred master = yes
    domain logons = yes

    [Impressoras]
    comment = All Printers
    path = /tmp
    guest ok = Yes
    printable = Yes
    print command = lpr -r -P %p %s
    lpq command = lpq -P %p
    lprm command = lprm -P %p %j
    browseable = No
    create mode = 0777

    Agora quanto o log, qual log tenho que ver, onde ele está localizado... um amigo me disse pra ver o /var/log/cups/page_log porem nao existe esse arquivo lá...

    instalei o cups assim

    apt-get install cups

    o que pode estar errado ?

    atenciosamente

    falexreis

  4. #4

    Padrão Re: Compartilhar Impressora

    Cara, o seu compartilhamento de impressoras deve se chamar [printers].

    A partir do momento que tu usa CUPS, tu não pode inserir os comandos do LPR ali também. Fora isso, a opção printcap name deve estar setada como o seguinte:

    Código :
    printcap name = cups

    Nada de /etc/cups.

    Por enquanto foi o que eu vi. Tente mudar isso e manda o resultado.

    A propósito: Procure os logs dentro de /var/log/samba/log.smbd.


    Abraços.

  5. #5
    falexreis
    Visitante

    Padrão Re: Compartilhar Impressora

    Mudei o que vc disse lá

    ficou assim

    [global]
    name resolve order = wins, bcast, host
    browse list = no
    hosts allow = 192.168.0. 127.
    dns proxy = no
    netbios name = servidor
    printing = cups
    local master = yes
    workgroup = life
    debug level = 1
    os level = 65
    printcap name = cups
    security = user
    domain admin group = root
    max log size = 50
    log file = /var/log/samba/log.%m
    printer = Servidor
    load printers = yes
    socket options = IPTOS_LOWDELAY TCP_NODELAY
    domain master = yes
    map to guest = never
    null passwords = yes
    dead time = 0
    password level = 8
    wins support = yes
    domain admin users = flavio, root
    server string = Samba Server
    unix password sync = no
    logon path = \\servidor\profiles\%U
    force create mode = 0777
    syslog = 1
    preferred master = yes
    domain logons = yes


    [printerss]
    comment = Impressoras
    path = /var/spool/cups
    printable = Yes
    browseable = yes
    public = yes
    printing = cups

    Porem o problema ainda persiste, mandei imprimir uma pagina teste nao deu erro mas a impressora nao responde...

  6. #6

    Padrão Re: Compartilhar Impressora

    O nome do compartilhamento de impressoras é [printers] e dentro dele não tem que ter printing = cups. Fora isso, eu recomendo que você leia o Guia Focalinux Avançado sobre SAMBA, lá ensina a compartilhar uma impressora no CUPS.


    Um abraço!


  7. #7
    falexreis
    Visitante

    Padrão Re: Compartilhar Impressora

    Valeu obrigado....

  8. #8
    falexreis
    Visitante

    Padrão Re: Compartilhar Impressora

    Caro colega... jaolhei no guia foca e nao consegui pelo cups... pode me dar algum exemplodo samba ja configurado pra imprimir pela rede... alguma configuração do cups... não to conseguindo...

    abraços

    aguardo um retorno

  9. #9
    falexreis
    Visitante

    Padrão Re: Compartilhar Impressora

    Olhei o log e tá assim

    [2006/05/25 10:21:27, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:21:57, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:22:27, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:22:57, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:23:27, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:23:57, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:24:27, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:24:57, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:25:28, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:25:58, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:26:28, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found
    [2006/05/25 10:26:58, 0] printing/print_cups.c:cups_queue_get(790)
    Unable to get jobs for ipp://localhost/printers/Servidor - client-error-not-found

    pode me ajudar a interpretar