Mailinglist Archive: opensuse (3261 mails)

< Previous Next >
Re: [SLE] Samba printers under 7.1
  • From: "Purple Shirt" <purpleshirt@xxxxxxxxxxx>
  • Date: Wed, 11 Apr 2001 14:56:56
  • Message-id: <F79aZbLAX3cf3ednHM300001339@xxxxxxxxxxx>
Hi Mark,

I was wondering about you. It saddens me to see you have such problems. Mostly because from time to time the same hits me and I see no way out. Last weekend was such an event with the ftp install limitation set at 72 MB. Nothing would work right for me the last few days....I know the feeling and it is terrible.

Here are some more thoughts of mine.

I'd love to hear from Lenz or Michael if there are printing issues and if so with which kernel and what rpm via Samba.

Fact is that I did have a problem using 2.4.2 kernel with lprng.rpm. I could print fine from Linux server but the Windows clients broke off printing always and I got TIMEOUT errors. I solved this by pulling down the latest LPRng source from astart.com and compiling it myself without gdbm.h support. I haven't had a problem since or at least my Windows users haven't complained. I am no heavy printer user myself so I can't say if apsfilter, which I don't even use, is broken. I got an HP printer so I use ifhp and enscript if necessary.

Now I realize that I set things up by hand and you mentioned before that you use yast and yast2. I never used them for printers. It really helps if you understand the underlying functionality of /etc/printcap and have a old backup of the file from when you had a working printer setup. The same holds true for /etc/smb.conf

I do not believe Samba is the problem. But I could be wrong. The rpm works for me. Simply the fact that file shares always worked without problem makes me believe so. I (stupid as my guess is) consider a printer share as nothing else but a file send over the line as in a drive share situation. The only difference is that in the end a printer share executes a command on the Linux server to send it to the print stream.



If I was you I would uninstall all remnants of lpr and its siblings. I would uninstall Samba as well. I would pull down lprng from astart.com and compile it _without_ gdbm.h support. I don't have a good feeling about gdbm. I would work on my /etc/printcap file first and use my old backup if I had one. If you are unsure the list probably can help you set up the printcap file without using yast. You use checkpc -f to make sure all permissions are correct.

Once you have printing working correctly from Linux you can focus on the rest. You reinstall Samba via rpm. You then work on generating a correct /etc/smb.conf file or use your old backup. You make sure you use the correct file paths. You make sure your /var/spool/samba has right permissions and owners. You try and see if it works.

I know these are general tips but maybe they assist you on getting a focused organized view on your problem. Keep a log of what exact tasks you are doing; a timeline. Write it down and if you run into a problem then send an email detailing your actions and we might be able to help. This log can be also very helpful if you solve your problems because it can assist others to do the same. And in the end it gives you a reference to fall back on in the future. I sometimes post my stuff on the list just so I make sure if I lose my personal copy I can find it in the archive if I am in desparate need. =) (Makes you wonder if I am trying to help you or just selfishly answer your qestions so it gets archived for my own personal use later on =)

And make sure you downloaded all the latest updates from the ftp site before you get down to testing anything.

Don't hesitate to send more questions. Hate to see you stuck without printing.

I checked the German list archive and there was no significant thread about samba printing problems related to samba.

mk


From: Mark Daglish <Mark.Daglish@xxxxxxxxxxxxx>
To: Purple Shirt <purpleshirt@xxxxxxxxxxx>, suse-linux-e <suse-linux-e@xxxxxxxx>
Subject: Re: [SLE] Samba printers under 7.1
Date: Wed, 11 Apr 2001 14:15:51 +0100

MK (Purple Shirt) and others (I don't want to pick on anyone and treat
them like a local IT support)

I tried doing all the suggestions listed below, with no success. So I
went for broke. I did a completely fresh install of SuSE 7.1 on my test
box (A). Instead of using LPRold or LPRNG I installed CUPS. It took me
a while to set up, but I got there. Now here's the weird part. I get
EXACTLY the same problems with the printers on the network as I got with
LPRold and LPRng. On an Epson colour inkjet (on a windows 95 box) I get
the test page coming through with about 1cm of the picture on each sheet
of paper. On a HP laserjet 4l (on a SuSE 7.1 linux box (B) running samba
2.0.7) I get the test page with a few lines of non-alphanumerics and
garbage at odd intervals. Also the Linux box (B) that has the printer
attached can print to it, as can windows machines on the network, but
this linux box (B) also gives the same problems printing to the colour
printer.

I am guessing that if the same errors happen in all these circumstances
then the problem lies outwith the LPRold / LPRng / CUPS system. I am
also guessing that the problem is on the way out of the linux boxes to
the network, not at the receiving end. Unfortunately I am too much of a
newbie to know what these methods have in common (other than it's all
going over samba) that might be the cause of the problems.

Any help would be greatly appreciated as I have spent days trying to get
this setup so I can get on with what I'm really supposed to be doing.

Thanks again to MK for the all help already,

Mark

>
> First of all I don't use yast(2) to configure printers. I never got
them to
> work and do it by hand. So I can't help you there.
>
> Yast complaining that you don't have lpr installed may depend on the
fact
> that the binaries now are in /usr/local/(s)bin and not /usr/(s)bin. You
said
> you set links to them. Maybe yast is really choosy about having the
rpms
> installed. You could install the rpm. Then install your own compiled
version
> and delete the binaries installed by the rpm and link to the own
compiled
> ones and fooling yast into thinking the rpm is installed even though
you
> deleted the files and created links.
>
> That is the flaw about yast(2). It is is nice tool when it works but
once it
> doesn't work it leaves you little room to maneuver.
>
> Overall I prefer to do /etc/printcap by hand because I don't trust some
tool
> to do it unless I am forced to.
>
> checkpc -f should never give any warnings. It should resolve them all
and
> exit without output. Otherwise you have a problem.
>
> I suggest you stick with the own compile. Find an old /etc/printcap
file
> which worked for you in the past. Work from there. Start the deamon
> /etc/init.d/lprng and see if it works.
>
> mk
>
> >From: Mark Daglish <Mark.Daglish@xxxxxxxxxxxxx>
> >To: Purple Shirt <purpleshirt@xxxxxxxxxxx>
> >CC: SuSE Linux English <suse-linux-e@xxxxxxxx>
> >Subject: Re: [SLE] Samba printers under 7.1
> >Date: Mon, 9 Apr 2001 12:17:18 +0100
> >
> >"Purple Shirt" on 4th April wrote:
> >
> >Thank you for the detailed instructions you sent, which I have
included
> >most of below. Unfortunately I am no further forward. I installed
the
> >LPRng from sources from ftp.lprng.com as suggested. I got it to
compile
> >without the "gdbm.h not found" error by installing the gdbm-devel.rpm
> >from the SuSE 7.1 CD2 (under group 'd' in YAST).
> >
> >I have set up the symbolic links to /etc/init.d/lprng,
> >/usr/local/etc/printcap, usr/local/bin/lpr and /usr/local/sbin/lpd but
if
> >I try to install a printer using YAST2 I get an error of "FATAL: YAST2
is
> >unable to restart the lpd daemon! you don't have lpd installed (LPRold
or
> >LPRng installed)". YAST1 will let me install a samba printer but then
> >lpq says that lp is not on the local host and if I look in the
printcap
> >file then the line :lp=/dev/null:\ suggests to me that something ain't
> >right. I did run checkpc -f but checkpc just reports warnings about
> >ff_separators and nothing else. Also changing the :lp line to
> >:lp=printerserver.my.domain%9100:\ had no effect.
> >
> >I wonder if there is a problem because this machine has no local
printer
> >attached to it.
> >
> >Any further help from yourself, or anybody greatly appreciated.
> >
> >Regards,
> >
> >Mark
> >
> > > Ok,
> > >
> > > I don't know the old BSD printing stuff but LPRng always worked for
me.
> >If I
> > > have trouble with SuSE rpms I wouldn't trust the SuSE source to fix
my
> > > problems. I went for the original source by the author.
> > >
> > > I did uninstall lprng.rpm
> > >
> > > I pulled down the latest source:
> > >
> > > ftp://ftp.astart.com/pub/LPRng/LPRng/LPRng-3.7.4.tgz
> > >
> > > ungzip and untar.
> > >
> > > Then I did a
> > >
> > >
> > >
> > > ./configure
> > >
> > >
> > > It wouldn't configure because it complained it couldn't find gdbm.h
> >file.
> > >
> > > So I did a
> > >
> > >
> > >
> > > rm config.cache
> > >
> > >
> > > and did
> > >
> > >
> > >
> > > ./configure --disable-gdbm
> > > make
> > > make install
> > >
> > >
> > > Note that this installs the binaries not in the usual SuSE
locations.
> >They
> > > are in /usr/local/bin and /usr/local/sbin and /usr/local/etc
> > >
> > > hence I did
> > >
> > >
> > >
> > > ln -s /etc/printcap /usr/local/etc/printcap
> > >
> > >
> > > I left the binaries in their location and adjusted the paths in
> > > /etc/smb.conf
> > >
> > > It also puts a script into /etc/init.d/lprng
> > >
> > > You need to put links to the run time versions in the sub rc{x}.d
> > > directories as it advises you to.
> > >
> > > I have symbolic links:
> > >
> > > /etc/init.d/rc0.d/K60lprng
> > > /etc/init.d/rc2.d/S60lprng
> > > /etc/init.d/rc4.d/S60lprng
> > > /etc/init.d/rc6.d/K60lprng
> > > /etc/init.d/rc1.d/K60lprng
> > > /etc/init.d/rc3.d/S60lprng
> > > /etc/init.d/rc5.d/S60lprng
> > >
> > > which all point to /etc/init.d/lprng
> > >
> > > I am not sure if they work as I have not rebooted since
installation.
> > >
> > > After installation make sure you run
> > >
> > >
> > >
> > > checkpc
> > >
> > >
> > > This program checks your printer setup. It will most likely
complain
> >about
> > > permissions/ownership settings in /var/spool/lpd/*
> > >
> > > It also fixes the problems it reports by running
> > >
> > >
> > >
> > > checkpc -f
> > >
> > >
> > > My permissions had to be reset which surprised me:
> > >
> > > /var/spool:
> > > drwxr-xr-x 3 lp lp 56 Mar 31 14:00 lpd
> > > drwxrwxrwt 2 root root 35 Apr 3 17:35 samba
> > >
> > > /var/spool/lpd:
> > > drwx------ 2 daemon daemon 273 Apr 3 17:35 smurf
> > >
> > > /var/spool/smurf:
> > > -rw------- 1 daemon daemon 48561 Apr 3 17:35 acct
> > > -rw------- 1 daemon daemon 0 Mar 31 14:06
control.smurf
> > > -rw------- 1 daemon daemon 200 Apr 2 17:32 log
> > > -rw------- 1 daemon daemon 68 Apr 3 17:35 lpq
> > > -rw------- 1 daemon daemon 9090 Apr 3 17:35 lpq.0
> > > -rw------- 1 daemon daemon 0 Apr 3 17:35 smurf
> > > -rw------- 1 daemon daemon 3120 Apr 3 17:35 status
> > > -rw------- 1 daemon daemon 7635 Apr 3 17:35
status.smurf
> > > -rw------- 1 daemon daemon 0 Apr 1 20:46
temp00oImtTV
> > > -rw------- 1 daemon daemon 6 Apr 3 17:35
unspooler.smurf
> > >
> > >
> > > There is a detailed how to on LPRng at:
> > >
> > > http://www.astart.com/LPRng/LPRng.html
> > >
> > > mk
> > >
> > > PS: my /etc/smb.conf printer section and /etc/printcap file:
> > >
> > > #
> > > smurf:cm=Network Printer smurf:\
> > > :lp=smurf.mydomain.com%9100:\
> > > :sd=/var/spool/lpd/%P:\
> > > :ifhp=model=hp2100,status@:\
> > > :sh:\
> > > :filter=/usr/local/libexec/filters/ifhp:\
> > > :mx#0
> > >
> > >
> > > #
> > > <cut>
> > > [printers]
> > > path = /var/spool/samba
> > > print ok = yes
> > > printing = lprng
> > > printable = yes
> > > ; linked to /etc/printcap
> > > printcap name = /usr/local/etc/printcap
> > > guest ok = yes
> > > public = yes
> > >
> > > [smurf]
> > > path = /var/spool/samba
> > > print ok = yes
> > > printing = lprng
> > > printable = yes
> > > guest ok = yes
> > > public = yes
> > > print command = /usr/local/bin/lpr -P%p -r %s
> > > lpq command = /usr/local/bin/lpq -P%p
> > > lprm command = /usr/local/bin/lprm -P%p %j
> > > lppause command = /usr/local/sbin/lpc hold %p %j
> > > lpresume command = /usr/local/sbin/lpc release %p %j
> > > queuepause command = /usr/local/sbin/lpc -P%p stop
> > > queueresume command = /usr/local/sbin/lpc -P%p start
> > >
> > >
> > > >From: Mark Daglish <Mark.Daglish@xxxxxxxxxxxxx>
> > > >To: Purple Shirt <purpleshirt@xxxxxxxxxxx>, suse-linux-e
> > > ><suse-linux-e@xxxxxxxx>
> > > >Subject: Re: [SLE] Samba printers under 7.1
> > > >Date: Wed, 4 Apr 2001 16:14:46 +0100
> > > >
> > > >Hi MK,
> > > >
> > > > >
> > > > > I discovered this problem the last weekend. The SuSE lprng.rpm
is
> >not
> > > > > working(at least under 2.4.2-4GB) for sharing samba printers
with
> > > >Windows
> > > > > clients.
> > > > >
> > > > > You must uninstall lprng.rpm and compile your own. See this
thread:
> > > > >
> > > > > http://lists.suse.com/archives/suse-linux-e/2001-Apr/0139.html
> > > > >
> > > > > You do not need to change the Samba rpms. They are working
fine.
> > > > >
> > > > > mk
> > > > >
> > > > > >
> > > > > >I recently upgraded (well fresh install) from SuSE 7.0 to 7.1.
> >Ever
> > > > > >since then I can't get the network printers on the windows
> >machines in
> > > > > >the office to work. They used to work fine under 7.0. I am
> > > >installing
> > > > > >them with Yast2. I am not using CUPS. I can send the test
pages
> >to
> > > >the
> > > > > >printers but they come out very wrong. The most important one
to
> >get
> > > > > >working is an Epson Stylus Colour 600 on a Win95 box. It
prints
> >about
> > > > > >6cms of green gecko with white horizontal stripes then moves
on to
> >the
> > > > > >next page and prints a vague outline of the next bit of the
test
> >page
> > > > > >then next page. That's as far as I let it go before deleting
the
> >job.
> > > > > >
> > > > > >What changed from 7.0 to 7.1 (apart from kernel 2.4.2 that I'm
> >using)
> > > > > >that might account for this?
> > > > > >
> > > > > >Any suggestions gratefully received,
> > > > > >
> > > > > >Thanks,
> > > >I tried to do what you suggested - using the source rpm from the
SuSE
> >7.1
> > > >CD7. However, I got myself in a hugh mess with the install from
the
> > > >sources. I was getting errors like lpd [30575]:
Getprintcap_pathlist:
> > > >entry not filter or absolute pathname 'etc/printcap' among others.
I
> > > >could also no longer print to the local printer either. However,
in
> >the
> > > >course of all this I also noticed that I hadn't been using LPRng
> >anyway,
> > > >I had got LPRold installed.
> > > >
> > > >Your email from the archives seemed to suggest that installing the
> > > >sources was everso straightforward. Unfortunately it appears to
be
> > > >beyond my meagre IQ.
> > > >
> > > >Any further hints most welcome.
> > > >
> > > >regards,
> > > >
> > > >Mark
> > > >
> > >
> > > _________________________________________________________________
> > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > >
> > >
> > > --
> > > To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
> > > For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> > > Also check the FAQ at http://www.suse.com/support/faq
> > >
> > >
> >
> >
> >--
> >To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
> >For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> >Also check the FAQ at http://www.suse.com/support/faq
> >
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> --
> To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
> For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> Also check the FAQ at http://www.suse.com/support/faq
>
>


--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/support/faq and the
archives at http://lists.suse.com


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


< Previous Next >
Follow Ups