I have been trying, with no luck, to print to a printer shared from an NT box. I was wondering if someone could make some suggestions. The two machines involved, an NT (lager) box and a Debian Linux (stout) box, are located on my LAN at home. Lager can get to shares on the Stout via samba, with no problem. I can ping the Lager from Stout. The actual lpr command goes fine, but it just sits there. When I check the queue with lpq, it indicates lager is not up.
Can anyone help? -- output of lpq waiting for lager to come up Rank Owner Job Files Total Size 1st root 43 /etc//printcap 559 bytes -- printcap # /etc/printcap: printer capability database. See printcap(5). # You can use the filter entries df, tf, cf, gf etc. for # your own filters. See /etc/filter.ps, /etc/filter.pcl and # the printcap(5) manual page for further details. lp|epson|Epson Color Stylus 500:\ :sd=/var/spool/lpd/epson:\ :lf=/var/log/lp-errs:\ :af=/var/log/lp-acct:\ :if=/usr/local/etc/smbprint:\ :mx=0:\ :lp=/dev/lp1: #lp|epson|Epson Color Stylus 500:\ # :sd=/var/spool/lpd/epson:\ # :lf=/var/log/lp-errs:\ # :af=/var/log/lp-acct:\ # :rp=:lager:\ # :rm=:lager:\ # :sh:\ # :sf: -- /usr/local/etc/smbprint #!/bin/sh -x # This script is an input filter for printcap printing on a unix machine. It # uses the smbclient program to print the file to the specified smb-based # server and service. # For example you could have a printcap entry like this # # smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint # # which would create a unix printer called "smb" that will print via this # script. You will need to create the spool directory /usr/spool/smb with # appropriate permissions and ownerships for your system. # Set these to the server and service you wish to print to # In this example I have a WfWg PC called "lapland" that has a printer # exported called "printer" with no password. # # Script further altered by [EMAIL PROTECTED] (Michael Hamilton) # so that the server, service, and password can be read from # a /usr/var/spool/lpd/PRINTNAME/.config file. # # In order for this to work the /etc/printcap entry must include an # accounting file (af=...): # # cdcolour:\ # :cm=CD IBM Colorjet on 6th:\ # :sd=/var/spool/lpd/cdcolour:\ # :af=/var/spool/lpd/cdcolour/acct:\ # :if=/usr/local/etc/smbprint:\ # :mx=0:\ # :lp=/dev/null: # # The /usr/var/spool/lpd/PRINTNAME/.config file should contain: # server=PC_SERVER # service=PR_SHARENAME # password="password" # # E.g. # server=PAULS_PC # service=CJET_371 # password="" # # Debugging log file, change to /dev/null if you like. # #logfile=/tmp/smb-print.log logfile=/var/log/smb-print.log # logfile=/dev/null # # The last parameter to the filter is the accounting file name. # Extract the directory name from the file name. # Concat this with /.config to get the config file. # #eval acct_file=\$$# spool_dir=/var/spool/lpd/epson config_file=$spool_dir/.config # Should read the following variables set in the config file: # server # service # password eval `cat $config_file` # # Some debugging help, change the >> to > if you want to same space. # echo "server $server, service $service" >> $logfile ( # NOTE You may wish to add the line `echo translate' if you want automatic # CR/LF translation when printing. # echo translate echo "print -" cat ) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $user -N -P >> $logfile -- /var/spool/lpd/epson/.config server=lager service=printer password="***" user=wayne -------------------------------------------------------------------------- R. Wayne McCorkle <[EMAIL PROTECTED]> __ _ Debian GNU http://www.pcisys.net/~mccorkle / /(_)_ __ _ ___ __ / / | | '_ \| | | \ \/ / Proudly running Debian Linux! / /__| | | | | |_| |> < Linux vs. Windows is a no-Win situation... \____/_|_| |_|\__,_/_/\_\ -------------------------------------------------------------------------- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .