[NTLUG:Discuss] More Printing Problems
MadHat
madhat at unspecific.com
Wed Feb 16 07:48:09 CST 2000
Rusty Haddock wrote:
>
> Carter B. Bennett wrote:
> >Okay'
> >I have wasted a whole day so far. These are the facts so far:
>
> Sorry to hear that.
>
> >
> >1. I have a payroll server over in the corner running RH 5.1 with a Okidata
> > Laser printer attached, working great.
> >2. My desktop unit runs RH 6.0 and through the Control-Panel I setup the
> > Okidata as a SAMBA printer (lp0), and it works great.
> >3. On a third computer I have installed Corel Linux. I set up a SAMBA printer,
> > when I picked Windows/SAMBA style printer, a box opened showing all the
> > computers in the OTR workgroup. I go to the payroll server and double
> > click, down drop all the shared dirs and printers, I double click the lp0
> > (Okidata Printer) and the box files in //payroll/lp0. I'm thinkin hell ya,
> > now were talken.
> >4. But when I "lpr file" I get :
> > lpr: connect: Connection refused
> > jobs queued, but cannot start daemon.
>
> Did Corel Linux's SAMBA printer set up ask for a username and/or password
> or is it assuming that you don't need one or that the printer share is
> configured a specific way (to not need passwords)?
>
> > But if I do a "ps -aux |grep lpd" it shows to be running.
> > This is turning out to be a real butt scratcher.
>
> That's not a big deal since lpd doesn't do all that much. It's there
> to take requests, like your radio station, and to tell the DJ to play
> 'em. That doesn't mean the DJ will play them...
>
> >5. The printcap file is:
>
> There's not really all that much to be gleaned from the printcap file
> under these circumstances. One place to look, if you haven't, is to check
> the file in /var/spool/lpd/PR named ".config". You're trying to send to
> an SMB printer make sure the username, password, and all that good stuff
> in the .config file is valid! Under RH5.2, one of mine looks like this:
>
> share='\\rsn-nta1\vfone'
> hostip=www.xxx.yyy.zzz
> user=rhaddock
> password=NotMyRealPassword
>
> This file is used by the 'smbprint' script in /usr/lib/rhs/rhs-printers to
> make a connection, obviously, to the host with the printer. Dunno if this
> sort of thing has changed in newer releases. Unfortunately, the problem
> in dealing with SMB printers is that the password needs to be stuck into a
> file as clear-text.
>
> At least it's a place to look.
Now see... I don't have that file. All my info is stored in printcap
as far as the connection is concerned, but I am not using SMB to connect
to the printer.
You shouldn't need to SMB if both boxes are Unix (which is what I am
reading).
In printcap, you should be able to do something like
lp0:\
:sd=/var/spool/lpd/lp0:\
:mx#0:\
:sh:\
:rm=10.0.0.13:\
:rp=lp:
This is how I have always done it on Linux, FreeBSD and others... the
rm is remote machine and the sd is spool directory, mx is max file size
accepted, sh is wether or not to print a page "header" (IIRC), and rp is
the remote printer name (in this case the remote printer q is called lp
(the default) so when I send a request over it goes to the printer
called rp on the remote machine).
--
%_=split';','f; Perl ;h;st a;o;ker;@;not;.;hac;u;her;d;ju';
print map $_{$_}, split //,
'madhat at unspecific.com'
More information about the Discuss
mailing list