?
Solved

Printing form linux --> Win95 with samba

Posted on 1997-03-03
1
Medium Priority
?
297 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 100 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses
Course of the Month15 days, 9 hours left to enroll

741 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