Re: NEW Samba + Printer woes

1999-05-09 Thread Michael Steiner
Wayne Topa wrote:
 
 Subject: NEW Samba + Printer woes
 Date: Sat, May 08, 1999 at 05:13:32PM +
 
 In reply to:Jose L Gomez Dans
 
 Quoting Jose L Gomez Dans([EMAIL PROTECTED]):
  Hi!
I've finally installed samba + lprng on an ageing i386. I have two
  parallel ports, and a printer attached to each. I'm using debian hamm.
  This is /etc/printcap:
  #
  # Copyright (c) 1983 Regents of the University of California.
  # All rights reserved.
  #
  # Redistribution and use in source and binary forms are permitted
  # provided that this notice is preserved and that due credit is given
  # to the University of California at Berkeley. The name of the University
  # may not be used to endorse or promote products derived from this
  # software without specific prior written permission. This software
  # is provided ``as is'' without express or implied warranty.
  #
  # @(#)etc.printcap5.2 (Berkeley) 5/5/88
  #
  # This file was generated by /usr/sbin/magicfilterconfig.
  #
  lp|hplj4l|HP Laserjet 4L:\
:sd=/var/spool/lpd/lj4:\
:rm=143.167.116.166:\
:rp=raw:\
:lp=/dev/null:\  ??
:sh:
:sh:pw#80:pl#72:px#1440:mx#0:\
:if=/etc/magicfilter/ljet4l-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
 
 
 Just a thought, there is no printer assigned in the above printcap,
 you have lp=/dev/null??  And this works using smbclient?  Am I missing
 something here??
 
 lp|lj|lp|Brother HL-10V:\
 :lp=/dev/lp0:sd=/var/spool/lpd/lp:\
 :sh:pw#80:pl#60:px#1440:mx#0:\
 :if=/etc/magicfilter/ljet2p-filter:\
 :af=/var/log/lp-acct:lf=/var/log/lp-errs:
 
 Note the :lp=/dev/lp0 if for 2.2.x kernels. If you are using 2.0.x it
 would be :lp=/dev/lp1
 
 HTH
 
Then, samba is set up so that anyone in our domain may print to this
  server, without needing passwords or stuff like that. /etc/smb.conf looks
  like this:
 
  [global]
workgroup=radarcommunications
server string=Radar  Communications Printer Server
hosts allow=143.167. 127.
load printers=yes
printcap name=/etc/printcap
printing=bsd
log file = /var/log/samba/log/%m
max log size = 20
security=share
socket options=TCP_NODELAY
guest account=pcguest
dns proxy=no
  [printers]
comment=Printers at skint
path=/var/spool/lpd/lp
browseable=no
guest ok = yes
writable=no
printable=yes
  [ljet]
printer=ljet
public=yes
writable=no
printable=yes
path=/var/spool/lpd/ljet
 
 
The other printer is not set up, as lprng does not want to print to
  it at all. cat filename  /dev/lp2 works fine, though.
 
I've checked the spool directories, and all have the right
  permissions. Curiously enough, if I use smbclient from another linux box, I
  can print without problems. However, things coming from Win95/WfWg boxes are
  sent to /var/spool/lpd/ljet, and stored there. It seems that lpd doesn't
  want to print them. A couple of days ago, with only one parallel port,
  everything worked fine. lptune says that both lp1 and lp2 use polling. I
  don't know what else to do.
 
Any words of wisdom on that one?
 
Cheers,
Jose
  --
  Jose L Gomez Dans PhD student
Radar  Communications Group
Department of Electronic Engineering
University of Sheffield UK
 
 
  --
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 
 --
 A language that doesn't affect the way you think about programming is
 not worth knowing.
 ___
 Wayne T. Topa [EMAIL PROTECTED]
 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

The printcap is designed to work with a remote printer, e.g. I use such
an entry for a hplj with a build-in ethernet interface.
If you like to use local printers (direct conected to your machine) then
you have to define them in the 'lp' line without 'rm' and 'rp' line.

After this step you can make it usable to others on the network via
samba.

Michael
-- 
Michael Steiner, Minorgasse 35, A-1140 Wien, Austria


Re: NEW Samba + Printer woes

1999-05-09 Thread Wayne Topa

Subject: Re: NEW Samba + Printer woes
Date: Sun, May 09, 1999 at 02:36:22PM +0200

In reply to:Michael Steiner

Quoting Michael Steiner([EMAIL PROTECTED]):
 The printcap is designed to work with a remote printer, e.g. I use such
 an entry for a hplj with a build-in ethernet interface.
 If you like to use local printers (direct conected to your machine) then
 you have to define them in the 'lp' line without 'rm' and 'rp' line.
 
 After this step you can make it usable to others on the network via
 samba.

I have my Linux printer available to my network also but don't use
either 'rm' or 'rp' entries.  Must be another way to skin a cat.

Thanks for the info!  I will add that to my samba notes.

regards
Wayne

-- 
Real Time, adj.:
  Here and now, as opposed to fake time, which only occurs there and then.
___
Wayne T. Topa [EMAIL PROTECTED]


NEW Samba + Printer woes

1999-05-08 Thread Jose L Gomez Dans
Hi!
I've finally installed samba + lprng on an ageing i386. I have two
parallel ports, and a printer attached to each. I'm using debian hamm.
This is /etc/printcap:
#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
#   @(#)etc.printcap5.2 (Berkeley) 5/5/88
#
# This file was generated by /usr/sbin/magicfilterconfig.
#
lp|hplj4l|HP Laserjet 4L:\
:sd=/var/spool/lpd/lj4:\
:rm=143.167.116.166:\
:rp=raw:\
:lp=/dev/null:\
:sh:
:sh:pw#80:pl#72:px#1440:mx#0:\
:if=/etc/magicfilter/ljet4l-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

Then, samba is set up so that anyone in our domain may print to this
server, without needing passwords or stuff like that. /etc/smb.conf looks
like this:

[global]
workgroup=radarcommunications
server string=Radar  Communications Printer Server
hosts allow=143.167. 127.
load printers=yes
printcap name=/etc/printcap
printing=bsd
log file = /var/log/samba/log/%m
max log size = 20
security=share
socket options=TCP_NODELAY
guest account=pcguest
dns proxy=no
[printers]
comment=Printers at skint
path=/var/spool/lpd/lp
browseable=no
guest ok = yes
writable=no
printable=yes
[ljet]
printer=ljet
public=yes
writable=no
printable=yes
path=/var/spool/lpd/ljet


The other printer is not set up, as lprng does not want to print to
it at all. cat filename  /dev/lp2 works fine, though.

I've checked the spool directories, and all have the right
permissions. Curiously enough, if I use smbclient from another linux box, I
can print without problems. However, things coming from Win95/WfWg boxes are
sent to /var/spool/lpd/ljet, and stored there. It seems that lpd doesn't
want to print them. A couple of days ago, with only one parallel port,
everything worked fine. lptune says that both lp1 and lp2 use polling. I
don't know what else to do.

Any words of wisdom on that one?

Cheers,
Jose
-- 
Jose L Gomez Dans   PhD student
Radar  Communications Group
Department of Electronic Engineering
University of Sheffield UK


[ERROR!] NEW Samba + Printer woes

1999-05-08 Thread Jose L Gomez Dans
In my previous message, I actually sent the wrong printcap. Sorry for the
large overhead :-///
The printcap I am using is:
#
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
#   @(#)etc.printcap5.2 (Berkeley) 5/5/88
#
#  This file was generated by /usr/sbin/magicfilterconfig. 
#
lp|ljet|ljet|HP Laserjet 4L:\
:lp=/dev/lp1:sd=/var/spool/lpd/ljet:\
:sh:pw#80:pl#72:px#1440:mx#0:\
:if=/etc/magicfilter/laserjet-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
djet|djet|HP Deskjet 890C:\
:lp=/dev/lp2:sd=/var/spool/lpd/djet:\
:sh:pw#80:pl#72:px#1440:mx#0:\
:if=/etc/magicfilter/dj550c-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

Again, sorry for the annoyance!
Jose
-- 
Jose L Gomez Dans   PhD student
Radar  Communications Group
Department of Electronic Engineering
University of Sheffield UK


Re: NEW Samba + Printer woes

1999-05-08 Thread Wayne Topa

Subject: NEW Samba + Printer woes
Date: Sat, May 08, 1999 at 05:13:32PM +

In reply to:Jose L Gomez Dans

Quoting Jose L Gomez Dans([EMAIL PROTECTED]):
 Hi!
   I've finally installed samba + lprng on an ageing i386. I have two
 parallel ports, and a printer attached to each. I'm using debian hamm.
 This is /etc/printcap:
 #
 # Copyright (c) 1983 Regents of the University of California.
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms are permitted
 # provided that this notice is preserved and that due credit is given
 # to the University of California at Berkeley. The name of the University
 # may not be used to endorse or promote products derived from this
 # software without specific prior written permission. This software
 # is provided ``as is'' without express or implied warranty.
 #
 # @(#)etc.printcap5.2 (Berkeley) 5/5/88
 #
 # This file was generated by /usr/sbin/magicfilterconfig.
 #
 lp|hplj4l|HP Laserjet 4L:\
   :sd=/var/spool/lpd/lj4:\
   :rm=143.167.116.166:\
   :rp=raw:\
   :lp=/dev/null:\  ??
   :sh:
   :sh:pw#80:pl#72:px#1440:mx#0:\
   :if=/etc/magicfilter/ljet4l-filter:\
   :af=/var/log/lp-acct:lf=/var/log/lp-errs:
 

Just a thought, there is no printer assigned in the above printcap,
you have lp=/dev/null??  And this works using smbclient?  Am I missing
something here??

lp|lj|lp|Brother HL-10V:\
:lp=/dev/lp0:sd=/var/spool/lpd/lp:\
:sh:pw#80:pl#60:px#1440:mx#0:\
:if=/etc/magicfilter/ljet2p-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

Note the :lp=/dev/lp0 if for 2.2.x kernels. If you are using 2.0.x it
would be :lp=/dev/lp1


HTH

   Then, samba is set up so that anyone in our domain may print to this
 server, without needing passwords or stuff like that. /etc/smb.conf looks
 like this:
 
 [global]
   workgroup=radarcommunications
   server string=Radar  Communications Printer Server
   hosts allow=143.167. 127.
   load printers=yes
   printcap name=/etc/printcap
   printing=bsd
   log file = /var/log/samba/log/%m
   max log size = 20
   security=share
   socket options=TCP_NODELAY
   guest account=pcguest
   dns proxy=no
 [printers]
   comment=Printers at skint
   path=/var/spool/lpd/lp
   browseable=no
   guest ok = yes
   writable=no
   printable=yes
 [ljet]
   printer=ljet
   public=yes
   writable=no
   printable=yes
   path=/var/spool/lpd/ljet
 
 
   The other printer is not set up, as lprng does not want to print to
 it at all. cat filename  /dev/lp2 works fine, though.
 
   I've checked the spool directories, and all have the right
 permissions. Curiously enough, if I use smbclient from another linux box, I
 can print without problems. However, things coming from Win95/WfWg boxes are
 sent to /var/spool/lpd/ljet, and stored there. It seems that lpd doesn't
 want to print them. A couple of days ago, with only one parallel port,
 everything worked fine. lptune says that both lp1 and lp2 use polling. I
 don't know what else to do.
 
   Any words of wisdom on that one?
   
   Cheers,
   Jose
 -- 
 Jose L Gomez Dans PhD student
   Radar  Communications Group
   Department of Electronic Engineering
   University of Sheffield UK
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

-- 
A language that doesn't affect the way you think about programming is
not worth knowing.
___
Wayne T. Topa [EMAIL PROTECTED]