View previous topic :: View next topic |
Author |
Message |
lxnay Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 09 Apr 2004 Posts: 661 Location: Italy
|
Posted: Mon Apr 12, 2004 5:11 pm Post subject: Printer via SAMBA doesn't work properly |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Will Scarlet Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Mar 2004 Posts: 239
|
Posted: Mon Apr 12, 2004 6:56 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
pjp Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1154772887439692d88303b.jpg)
Joined: 16 Apr 2002 Posts: 20589
|
Posted: Mon Apr 12, 2004 8:28 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lxnay Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 09 Apr 2004 Posts: 661 Location: Italy
|
Posted: Mon Apr 12, 2004 10:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lxnay Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 09 Apr 2004 Posts: 661 Location: Italy
|
Posted: Tue Apr 13, 2004 9:07 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fleed l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1800640613415a758ba4ac3.png)
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Tue Apr 13, 2004 11:51 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lxnay Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 09 Apr 2004 Posts: 661 Location: Italy
|
Posted: Tue Apr 13, 2004 12:40 pm Post subject: |
|
|
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
I've learnt a lot of useful things _________________ http://www.sabayon.org |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|