Mailinglist Archive: opensuse (3261 mails)

< Previous Next >
Re: [SLE] Samba printers under 7.1
  • From: Flavio Arthur Leal Ferreira <flavio-arthur@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 11 Apr 2001 11:01:03 -0300 (GMT-03:00)
  • Message-id: <8266899.986997663514.JavaMail.root@xxxxxxxxxxxxxxxxxxxxx>
Hi, I am failing to print to samba printer using 7.1 too.
I guess the problem is with apsfilter, not with printer daemons.
I get messages at /var/spool/lpd/ "printer" /log
telling "GNU Ghostscript: Unrecoverable error, exit code 1"
Anybody had success with 7.1 printing to samba printers?

-------- Mensagem Original -------------------
Data : Qua 11/04/2001 10:21
De : Mark Daglish <Mark.Daglish@xxxxxxxxxxxxx>
Para : Purple Shirt <purpleshirt@xxxxxxxxxxx>, suse-linux-e <suse-linux-e@xxxxxxxx>
Assunto: Re: [SLE] Samba printers under 7.1

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



 

< Previous Next >