Printing from Windoze...
Anthony Ewell
aewell at gbis.com
Thu Sep 21 00:11:27 GMT 2000
Hi Brad,
Some things to try:
First give your printer an alias name with capital letters.
My print cap looks like this:
##PRINTTOOL3## REMOTE ljet4 600x600 letter {} LaserJet4 Default 1
HP5SI|lp|lp1:\
:sd=/var/spool/lpd/lp1:\
:mx#0:\
:sh:\
:rm=192.168.255.8:\
:rp=raw1:\
:if=/var/spool/lpd/lp1/filter:
Note that I refer to lp as "lp", "lp1" and "HP5SI". Samba broadcasts the
HP5SI.
Second: I looked at some of my log files and found the following:
[2000/09/19 19:12:28, 1] smbd/service.c:make_connection(521)
dlc-inet (192.168.255.41) connect to service HP5SI as
user pcguest (uid=505, gid=100) (pid 1457)
So try creating both a UNIX and SMB user account of "pcguest" with
no password. (Remember to correct your security after the test.)
You must put
guest account = pcguest
in your smb.conf global section for this to work
While you are at it, try putting
log file = /var/log/samba-log.%m
max log size = 50 ; size in Kb
in your global section as well. The log file will show
what your win98 client is trying to do
Good luck,
--Tony
Brad wrote:
> Hi Tony.
>
> No luck I'm afraid: Can't see the printer from Windoze and can't manually
> map a printer to the share (lp). I can print an ascii test page from
> printtool in X on /dev/lp0 OK, and I can print out man pages from the text
> interface to lpr OK . I have set out the smb.conf and printcap files below.
> If you have any other ideas, please let me know.
>
> Regards,
> Brad
>
> smb.conf:
>
> # Global parameters
> [global]
> server string = Samba Server
> log file = /var/log/samba/log.%m
> max log size = 50
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> dns proxy = No
> printing = bsd
> printcap name = /etc/printcap
> load printers = Yes
>
> [homes]
> comment = Home Directories
> read only = No
> browseable = No
>
> [printers]
> comment = All Printers
> path = /var/spool/samba
> browseable = No
> public = Yes
> guest ok = No
> writable = No
> printable = Yes
>
> [root]
> comment = Root share - handle with care!
> path = /
> read only = No
>
> There was also another section that I have tried both with & without:
>
> [lp]
> comment = Local Printer
> path = /var/spool/samba
> read only = No
> guest ok = Yes
> print ok = Yes
> printer name = lp
> oplocks = No
> share modes = No
>
> printcap file:
>
> # /etc/printcap
> #
> # Please don't edit this file directly unless you know what you are doing!
> # Be warned that the control-panel printtool requires a very strict format!
> # Look at the printcap(5) man page for more info.
> #
> # This file can be edited with the printtool in the control-panel.
>
> ##PRINTTOOL3## LOCAL laserjet 300x300 a4 {} LaserJet Default 1
> lp:\
> :sd=/var/spool/lpd/lp:\
> :mx#0:\
> :sh:\
> :lp=/dev/lp0:\
> :if=/var/spool/lpd/lp/filter:
>
> ----- Original Message -----
> From: "Anthony Ewell" <aewell at gbis.com>
> To: "Brad" <samba at capstone.net.au>
> Cc: "Samba Listserver" <samba at us4.samba.org>
> Sent: Thursday, September 21, 2000 7:49 AM
> Subject: Re: Printing from Windoze...
>
> > Hi Brad,
> >
> > It is pretty simple: First, make sure you can print in Linux.
> > Them, add the following to your smb.conf and restart samba.
> >
> > --Tony
> > aewell at gbis.com
> >
> > [global]
> > ; Tony note: remember to use CAPS in the princap for the smb share name
> > printcap name = /etc/printcap
> > load printers = yes
> > printing = BSD
> >
> > [printers]
> > comment = All Printers
> > path = /var/spool/samba
> > browseable = no
> > public = yes
> > guest ok = no
> > writeable = no
> > printable = yes
> >
> >
> >
> >
> > Brad wrote:
> >
> > > I am trying to print fron Win98 via Samba onto a parallel printer
> attatched
> > > to a RedHat Linux box. Can anyone point me to a Howto that will explain
> how
> > > to set this up? I have been unsuccessful in finding one so far.
> > >
> > > Regards,
> > > Brad
> >
More information about the samba
mailing list