[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Printing form linux --> Win95 with samba

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

649 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