Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Printer via SAMBA doesn't work properly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lxnay
Retired Dev
Retired Dev


Joined: 09 Apr 2004
Posts: 661
Location: Italy

PostPosted: Mon Apr 12, 2004 5:11 pm    Post subject: Printer via SAMBA doesn't work properly Reply with quote

hello everyone,

I've always read your posts without beeing registered but now, after reading a lot of how-to to try to solve my problem, I've to write to you.

I'm migrating from Fedora to Gentoo for my home lan server, everything works fine and i'm very happy about it but, there is a problem that i can't solve without your help.

I've a Brother HL-5040 printer installed with foomatic that works perfectly in its computer but refuses to work from other computers via samba and lprng.

Watching smbd log, it tells me something:

Code:
 
Waiting 10 seconds before retry
sending job 'phobos@mars+81' to Brother@localhost
 connecting to 'localhost', attempt 1
 connected to 'localhost'
 requesting printer Brother@localhost
 job 'phobos@mars+81' transfer to Brother@localhost failed
  error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
  sending str '^BBrother' to Brother@localhost
 error msg: 'spool queue for 'brother' does not exist on server mars'
 error msg: 'check for correct printer name or you may need to run'
 error msg: ''checkpc -f' to create queue'


Can you help me please?

that's my smb.conf config:

Code:

[global]
        socket options = TCP_NODELAY
        server string = Gentoo Mars Linux Server
        domain master = Yes
        workgroup = workgroup
        directory mask = 0777
        null passwords = yes
        #encrypt passwords = yes
        printing = cups
        printcap name = cups
        load printers = yes
        os level = 20
        client ntlmv2 auth = Yes
        hide unreadable = Yes
        time server = Yes
        netbios aliases = mars
        #client plaintext auth = No
        map system = Yes
        security = user
        force create mode = 0770
        wins support = true
        create mask = 0777

[Brother]
        path = /var/spool/samba
        read only = No
        guest ok = Yes
        printable = Yes
        printer name = Brother
        map system = No

_________________
http://www.sabayon.org
Back to top
View user's profile Send private message
Will Scarlet
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 239

PostPosted: Mon Apr 12, 2004 6:56 pm    Post subject: Reply with quote

If you are using lprng then the following lines in smb.conf is incorrect:

Code:
printing = cups
printcap name = cups


Printing should be lprng and the printcap name, I believe, should point to /etc/printcap.

But, personally, I would change the print system over to cups. To me, it is much simpler in both configuration and use.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20589

PostPosted: Mon Apr 12, 2004 8:28 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
lxnay
Retired Dev
Retired Dev


Joined: 09 Apr 2004
Posts: 661
Location: Italy

PostPosted: Mon Apr 12, 2004 10:53 pm    Post subject: Reply with quote

sorry... same error here:

Code:

[2004/04/13 00:50:13, 0] smbd/server.c:main(781)
  standard input is not a socket, assuming -D option
Status Information, attempt 1 of 3:
sending job 'phobos@mars+556' to Brother@localhost
 connecting to 'localhost', attempt 1
 connected to 'localhost'
 requesting printer Brother@localhost
 job 'phobos@mars+556' transfer to Brother@localhost failed
  error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
  sending str '^BBrother' to Brother@localhost
 error msg: 'spool queue for 'brother' does not exist on server mars'
 error msg: 'check for correct printer name or you may need to run'
 error msg: ''checkpc -f' to create queue'
Waiting 10 seconds before retry
Status Information, attempt 2 of 3:
sending job 'phobos@mars+556' to Brother@localhost
 connecting to 'localhost', attempt 1
 connected to 'localhost'
 requesting printer Brother@localhost
 job 'phobos@mars+556' transfer to Brother@localhost failed
  error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
  sending str '^BBrother' to Brother@localhost
 error msg: 'spool queue for 'brother' does not exist on server mars'
 error msg: 'check for correct printer name or you may need to run'
 error msg: ''checkpc -f' to create queue'
Waiting 10 seconds before retry
sending job 'phobos@mars+556' to Brother@localhost
 connecting to 'localhost', attempt 1
 connected to 'localhost'
 requesting printer Brother@localhost
 job 'phobos@mars+556' transfer to Brother@localhost failed
  error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
  sending str '^BBrother' to Brother@localhost
 error msg: 'spool queue for 'brother' does not exist on server mars'
 error msg: 'check for correct printer name or you may need to run'
 error msg: ''checkpc -f' to create queue'


pleeease help me!
_________________
http://www.sabayon.org
Back to top
View user's profile Send private message
lxnay
Retired Dev
Retired Dev


Joined: 09 Apr 2004
Posts: 661
Location: Italy

PostPosted: Tue Apr 13, 2004 9:07 am    Post subject: Reply with quote

I don't know how to create a queue called "brother" or, like Will Scarlet suggests, change print sharing mode, from lprng to cups.

I've a Windows network based on this SAMBA server, everything works quite well even if this mad printer doesn't want to do its job...
_________________
http://www.sabayon.org
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Tue Apr 13, 2004 11:51 am    Post subject: Reply with quote

Maybe you could try setting your clients to print directly to cups. If they're using reasonably recent versions of windows then they should be able to do that easily, just specify http://server:631/printers/Brother as the port address.
Back to top
View user's profile Send private message
lxnay
Retired Dev
Retired Dev


Joined: 09 Apr 2004
Posts: 661
Location: Italy

PostPosted: Tue Apr 13, 2004 12:40 pm    Post subject: Reply with quote

Well, I've solved everything by following your suggestion. I've configured cups print "exports" with the help of Cups+Samba Printing How-to.

Thank you very much, I love gentoo :oops: :P

I've learnt a lot of useful things
_________________
http://www.sabayon.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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