Solved

Printing form linux --> Win95 with samba

Posted on 1997-03-03
1
295 Views
Last Modified: 2010-03-18
Hello,
I have one computer (thor.duijnhoven) with linux and I want to print on a
W95 computer (wodan.duijnhoven).
So I used samba.
I can ping this computer, and I can even print when I use
smbclient on the command line.
But when I use lp and I look use lpc to see what the status
is it says. Waiting for wodan.duijnhoven to come up.
My printcap file:
epson|peter|netwerk|Epson Stylus:\
:lp=:rm=WODAN.DUIJNHOVEN:\
      :rp=EPSON PEER:\
      :sd=/usr/spool/lpd/epsonstylus:\
      :lf=/usr/spool/lpd/epsonstylus/errs:\
      :if=/usr/local/samba/bin/smbprint:\
        :df=/var/spool/lp1/filter.ps:\
        :tf=/var/spool/lp1/filter.ps:\
        :af=/var/spool/lp1/lp-acct:\

0
Comment
Question by:marcd022697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
dux earned 50 total points
ID: 1584000
Put the following line in /etc/printcap:

lp:lp=/dev/null:sd=/usr/spool/lp1:sh:if=/usr/local/samba/smbprint

smbprint is a script used for printing with samba:


#!/bin/sh -x

# ...

eval acct_file=\$$#
spool_dir=`dirname $acct_file`
# Should read the following variables set in the config file:
#   server
#   service
#   password
eval `cat $config_file`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/local/samba/bin/smbclient "\\\\dana\\ibm" -N -P >> $logfile



config_file=$spool_dir/.config


0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question