Windoze Printer and Linux Box Setup Woes

elik elik at grapevine2.com
Thu Jan 21 20:18:12 GMT 1999


Okay... seems I still cannot get anything working right with this as far
getting it to print.  Here is the three different files which I would like all
to look at and see what I have screwed up since it refuses to print.

Here is the setup of the network:
HP 5L connected to Win95 - 192.168.0.1
Linux - Zeus - 192.168.0.3

-----------SMB.CONF FILE------------
; /etc/smb.conf
[global]
   printing = bsd
   printcap name = /etc/printcap
   load printers = yes
   guest account = nobody
   invalid users = root
   announce as = Win95
   allow hosts = 192.168.0.3  192.168.0.4 192.168.0.1
   remote announce = 192.168.0.255/GV2
   remote browse sync = 192.168.0.255
   security = share
   workgroup = GV2
   server string = %h server (Samba %v)
   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
   encrypt passwords = yes
   wins support = no
   os level = 0
   domain master = no   
   local master = yes   
   preferred master = no
   name resolve order = bcast host wins
   dns proxy = no
   preserve case = yes
   short preserve case = yes
   unix password sync = false
   passwd program = /usr/bin/passwd %u
   passwd chat = *New\spassword:* %n\n *Re-enter\snew\spassword:* %n\n *Passwor
   max log size = 1000

[home]
   comment = Home Directories
   browseable = yes
   path=/
   writable=yes
   public=yes

   directory mask = 0775
[printers]
   comment = All Printers
   browseable = yes
   path = /tmp
   printable = yes
   public = yes  
   writable = yes
   create mode = 0775

; A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   writable = no
;   locking = no 
;   path = /cdrom
;   public = yes
;
[public]
    comment=Zeus
    path=/
    only guest=yes
    public=yes   
    writable=yes
    printable=no

------------PRINTCAP FILE-----------------
# Printcap Configuration File
lp|hplj5l|HP Laserjet 5L:\
        :sd=/var/spool/lpd/hplj5l:\
        :mx#0:\
        :af=/var/log/hpl5jl-acct:\
        :lf=/var/log/hplj5l-errs:\
        :if=/usr/bin/smbprint:\
        :sh:

------------SMBPRINT FILLE----------------
#!/bin/sh -x
(
        echo "print -"
        /etc/magicfilter/ljet4l-filter "$@"
) | /usr/bin/smbclient "\\\\GOD_SERVER\\HP5L" -I 192.168.0.1 -N -P
> /var/log/smbprint.log


So... here is the problem.  The linux cannot print out to the HP Printer 5L
that is connected to the Windoze.  And top of it off... The Win95 clients
cannot even browse or get inside the Linux directories at all.  Reason I have
the IP addresses in there is for secure method of allowing certain hosts to
have free access into the Linux to do the work even at the top.  But the good
news is... I can mount the 2 Windoze shares on the Linux using Smbmount and
edited the samba start-up/shutdown files to mount and unmount them on the fly
with no problem.  So... the printing and the Win95 access into the linux is
what I needed to make this work and I will be so happy that I can leave this
behind and start focusing on other tasks.  It would be nice if there is a way
to mount the printer to the port on Linux instead of this way as it is right
now.  So... anyone who can edit this configuration and make it work like I
wanted would be very much appreciated.  Thanks for your time.

----------------------------------
Date: 21-Jan-99          Time:15:18:12
Russell Rademacher
Grapevine2 Technical Support Specialist
Pager: 800-480-9498 #1041
Phone: 716-214-5644
Fax: 716-214-5642
TDD: 716-214-5643
ICQ: 10663810
AIM: ElikCyber
----------------------------------


More information about the samba mailing list