Printing from Linux to a Win95 printer

Printing from Linux to a Win95 printer

Post by Robert H. Thompso » Fri, 22 Jan 1999 04:00:00



Hello all,

I am new to the list and new to linux (redhat 5.2) and I've just got a
two node network up and running. I was wondering if anyone has tried to
print from a linux machine to a win95 printer?

The linux box is the server. Win95 the client. Samba is configured and
the win95 can access the linux hard drive and it shows up in Network
nehigborhood. I ran across some docs about modifing the printcap file
and have done so. The lp shows up in Network neghiborhood also but I
can't print (lp) to the network printer.

Any assistance would be greatly appreciated.

Thanx in advance

Rob Thompson
DBA
Engineering Computing Center
Ford Motor Company


 
 
 

Printing from Linux to a Win95 printer

Post by Lew Pitch » Fri, 22 Jan 1999 04:00:00


On Thu, 21 Jan 1999 11:27:13 -0500, "Robert H. Thompson"


>Hello all,

>I am new to the list and new to linux (redhat 5.2) and I've just got a
>two node network up and running. I was wondering if anyone has tried to
>print from a linux machine to a win95 printer?

>The linux box is the server. Win95 the client. Samba is configured and
>the win95 can access the linux hard drive and it shows up in Network
>nehigborhood. I ran across some docs about modifing the printcap file
>and have done so. The lp shows up in Network neghiborhood also but I
>can't print (lp) to the network printer.

Here's how I do it...

/etc/printcap contains:
        # Remote Printer - Epson LQ-570 on Bitsie (SMB support)
        smb_epson:\
                :lp=/dev/null:\
                :sd=/usr/spool/bitsie.epson:\
                :if=/usr/local/sbin/smbprint:\
                :af=/usr/spool/bitsie.epson/acct:\
                :sh:                              

/usr/spool/bitsie.epson contains:
   1 -rw-r--r--   1 root     root           40 Oct 18 14:03 .config
   1 -rw-r----x   1 root     lp              4 Jan 20 22:06 .seq
   1 -rw-r-xr--   1 root     root            3 Jan 21 12:17 lock
   1 -rw-rw-r--   1 root     root           18 Jan 20 22:06 status

/usr/local/sbin/smbprint has the following permissions...
   3 -rwxr-xr-x   1 root     lp          usr/local/sbin/smbprint

/usr/local/sbin/smbprint contains:
        logfile=/tmp/smb-print.log
        eval acct_file=\$$#
        spool_dir=`dirname $acct_file`
        config_file=$spool_dir/.config
        eval `cat $config_file`
        echo "server $server, service $service" >> $logfile
        (
                echo "print -"
                cat
        # next line wraps on display, and shows as two lines
        ) | /usr/local/samba/bin/smbclient "\\\\$server\\$service"
        $password -U $server -N -P >> $logfile

/usr/spool/bitsie.epson/.config contains:
        server=Bitsie
        service=epson
        password=""

In the above .config file, Bitsie is the ComputerName of my Win95
system (set in Control Panel / Network / Identification), and epson is
the name of my shared printer. Since I've not password protected
the resource, the password is empty.

Both the Win95 system (Bitsie) and Linux system (Merlin) belong to the
same Samba workgroup. epson is (as the comments in /etc/printcap
suggest) an Epson LQ570 24-pin dot-matrix printer.

I hope this helps...

Lew Pitcher
System Consultant, Systems Research and Development
Toronto Dominion Bank

(Opinions expressed are my own, not my employers')

 
 
 

1. Print to linux printer from Win95, got text, but no graphics

Hi,   I am trying to set up  wlprspl 4.1 under win95 to print to a
dot-matrix printer on a linux box.    I got all the basic kinks worked
out  (/etc/host.lpr is ok) basic text printing jobs come out just fine.

When I try to get graphics output, all hell breaks loose.

My first thought was to use the normal win95 driver for the printer
in question (Panasonic kxp2124), set the win95 spool setting to RAW,
tell wlprspl to use RAW file type and then send to a print queue on
the linux box with *no* filter.   ie, let win95 do all the work of
sending the correct printing codes, and just use the network/linux
print queue as a fancy wire to get to the printer.

Depending on exact settings I have played with, I either get
a.) nothing at all   b.) crashed lpd   c.) binary garbage characters
on the printer.    I realize that c.) might be close to what I want,
but it's not really that close.

Anyone got this figured out?       Should I post somewhere else?
--

2. Conner 4G SCSI tape drive under Linux?

3. Linux printing to Win95 Printer

4. Hooks for random device entropy generation missing in cpqarray.c

5. Printing to Linux printer from Win95

6. SLS installation help!!!

7. printing from Win95 to linux printer

8. 3c507 eth0: stop... status 5220 a000 d220

9. Printing via Samba from Linux to Win95 non PostScript printer -problems

10. Printing from Win95/98 to Linux/SMB Printer

11. Can Win95 print to my Linux printer?

12. Win95 + Linux Print Server + GDI printer

13. Cann't get samba to print from win95 to linux printer!!!!!!