Hello people,
ok just a small problem I have with my samba settings.
I have a RH 6.0 file/printer server that is connected to some Windoze 98
machines and a couple of Macs. The linux machine also has one printer on its
local port lpt1. Ok...I have set up everything and currently I can print
from the Windozes and the Mac to the printer that is localy connected on the
Linux server.
What I want to do is print from the Linux server to a printer that is localy
connected to one Windoze 98 client.
I have setup an entry to the /etc/printcap like this:
epson:\
:cm=Epson color printer on Prodigal via smbprint
:lp=/dev/null:\
:sd=/var/spool/lpd/epson:\
:af=/var/spool/lpd/epson/acct:\
:mx#0:\
:if=/usr/local/samba/bin/smbprint:
and also setup a .conifg file in the spool directory and setup the smbprint
file with my correct settings for my smbclient file and pretty much
everything I can imagine (passwords, access rights) you name it I have done
it.
Ok...now for the problems.... when I try to print something from the linux
machine.....via lpr it spools but it gives me a message:
warning no deamon present. I can see that lpd is running but I dont
understand.
I can manually print a file from the linux to the windoze by typing
smbclient \\\\blahblah\\epson -P and issuing the command print <filename>
and everything is ok.
What am I missing to do this automaticaly? I mean smbclient isnt that pretty
much what the smbprint script does??
Can anyone help?
Vasileios
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
On Aug 17 2000, Vasileios Zografos wrote:> epson:\ > :cm=Epson color printer on Prodigal via smbprint > :lp=/dev/null:\ > :sd=/var/spool/lpd/epson:\ > :af=/var/spool/lpd/epson/acct:\ > :mx#0:\ > :if=/usr/local/samba/bin/smbprint:Is that your exact printcap? If so, then you might like to end the "cm" line with ":\".> Ok...now for the problems.... when I try to print something from the > linux machine.....via lpr it spools but it gives me a message: > warning no deamon present. I can see that lpd is running but I dont > understand.Well, lpd is actually a bitch to get running sometimes. I'd recommend that you log everything from lpd (tune your syslog.conf file for this -- sometimes, lpd is complaining about something). To see the problem manifest itself, run "lpc" and, while in interactive mode, type: > stop all > start all And see if there are messages about lpc being unable to restart the printer daemon. I sincerely don't know how to fix this situation, and would really appreciate a documentation of lpd's parsing abilities. Anyway, one more thing you could try is to put each printer definition in printcap in a line by itself. Sometimes this works. []s, Roger... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Rogerio Brito - rbrito@iname.com - http://www.ime.usp.br/~rbrito/ Nectar homepage: http://www.linux.ime.usp.br/~rbrito/nectar/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=