printing
Rick Stevens
rstevens at vitalstream.com
Fri Feb 4 18:37:49 UTC 2005
roland brouwers wrote:
>>roland brouwers wrote:
>>
>>
>>>-----Original Message-----
>>>From: redhat-install-list-bounces at redhat.com
>>>[mailto:redhat-install-list-bounces at redhat.com] On Behalf Of Rick
>>>Stevens
>>>Sent: donderdag 20 januari 2005 18:59
>>>To: Getting started with Red Hat Linux
>>>Subject: Re: printing
>>>
>>>roland brouwers wrote:
>>>
>>>
>>>
>>>>Hello,
>>>>
>>>>
>>>>
>>>>I have a printing problem.
>>>>
>>>>The application I wrote uses the Unix printing system or jetdirect
>
> and
>
>>>a
>>>
>>>
>>>
>>>>generic interface, raw text.
>>>>
>>>>When I start a long printjob, something like 30 invoices, the
>
> spooljob
>
>>>
>>>>is never removed. In other words, when finished, the spooler launches
>
>
>>>>his job again and again and again. He doesn't do this with a job, not
>
>
>>>>longer than something like 10 pages.
>>>>
>>>>Could this be a problem of RedHat9?
>>>
>>>
>>>I've never heard of that specific problem, but RH9 did have some known
>>>printing issues. BTW, you didn't say if you were using CUPS or LPRng.
>>>
>>>
>>>
>>>
>>>>I heard that for the RH enterprise, there was a patch for this
>>>
>>>problem.
>>>
>>>Entirely possible, although RHEL is based on RH7.2. Have you checked
>>>the update base at Fedora Legacy for CUPS and/or LPRng updates
>>>(depending on which you're using)?
>>>
>>>
>>>
>>>
>>>>I have this problem with all my RH9 installations.
>>>
>>>
>>>That wouldn't surprise me.
>>>
>>>I would highly recommend you go to http://www.fedoralegacy.org and do
>>>a couple of things. First, install yum or apt-get from that site on
>>>your RH9 machines, then update your systems:
>>>
>>> # yum update cups* or # yum update lprng*
>>>-or-
>>> # apt-get -u update cups or # apt-get -u update lprng
>>>
>>>Remember that RH9 is dead (as of April of last year) and the only
>>>updates you can get will be from the Fedora Legacy group. You should
>>>also think about updating to Fedora Core 2 or 3 at some point. I
>>
>>don't
>>
>>
>>>know how long Fedora Legacy will continue to support RH9
>>>----------------------------------------------------------------------
>>>- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
>>>
>>
>>
> -----------------------------------------------------------------------
>
>>>RH9 installs by standard the CUPS printing system.
>>>But when I run the lp -d command it puts the spoolfiles in
>>>/var/spool/cups.
>>>
>>>What do I have to do, to disable the Cups printing system and start
>>
>>lpr
>>
>>
>>>or lpd?
>>>
>>>>From what i read about lpr from the manual, it uses cups, so what is
>>
>>the
>>
>>
>>>use?
>>
>>
>>There are two competing printing mechanisms under Linux...CUPS and
>>LPRng. LPRng is the more, uh, "classic" Unix printing system. CUPS
>>("C Unified Printing System") is a greatly improved printing
>
> mechanism.
>
>>Both use the same commands (lpr, lprm, lpq, etc.), however the
>
> commands
>
>>have actually been renamed "lpr.cups" and "lpr.lprng", etc.) and
>>symbolic links point to the actual commands. The links are changed as
>>you select either CUPS or LPRng as your printing system. Which one
>
> are
>
>>you using? Do "ls -l /etc/alternatives/print" and it'll show you what
>>the symbolic link points at. Odds are it'll be "lpr.cups", meaning
>>you're using CUPS.
>>
>>So, make sure you update your CUPS software. If you installed yum or
>>apt-get as I recommended, just use: "yum -y update cups*" or
>>"apt-get -u update cups*" to update to the latest release from the
>>Fedora Legacy gang (remember, Red Hat doesn't support RH9 anymore).
>>
>>I downloaded LPRng-3.8.28-1.i386.rpm
>>
>>sh-2.05b# rpm -ivh LPRng-3.8.28-1.i386.rpm
>>
>>Preparing...
>
> ###########################################
>
>>[100%]
>> file /etc/printcap from install of LPRng-3.8.28-1 conflicts
>
> with
>
>>file from package setup-2.5.25-1
>>
>>sh-2.05b#
>>
>>I did an update from fedora with : yum -y update LPRng*
>>
>>
>>Gathering header information file(s) from server(s)
>>Server: Red Hat Linux 9 -- Fedora US mirror
>>Server: Red Hat Linux 9 updates -- Fedora US mirror
>>Server: K12TLSP
>>Server: Macromedia Flash Player for Red Hat Linux 9 -- US mirror
>>Finding updated packages
>>Downloading needed headers
>>Cannot find any package matching LPRng available to be updated.
>>sh-2.05b#
>>
>>What am I missing here?
>
>
> If you don't have LPRng installed, you can't update it. "yum update"
> only updates things that are already installed.
>
>
>>Is every update coming from Fedora with yum, after the update active,
>
> or
>
>>do I have to restart something?
>
>
> All updates for Red Hat Linux 9 come from Fedora Legacy. You can get
> them by using yum or apt-get.
>
>
>>If I can get LPRng installed, how do I activate it?
>
>
> Just install it (you can use "yum install LPRng"), then use the Printing
> applet in System Tools to switch to it.
>
> There really isn't any good reason to switch to LPRng from CUPS. Your
> problem should possibly be squawked to the CUPS people. However, since
> you run an obsolete version of Linux, you may not get a lot of help. I
> really, REALLY suggest you go to Fedora Core 2 or 3 ASAP.
>
> I installed LPRng with Yum
> I checked /etc/printcap
> It was empty, so I filled with the parameters of the printers
> I typed the instruction: lpd
> And received the following
> Fatal error - Cannot bind to lpd port '515'
Probably because cups was still running.
> Next day I checked /etc/printcap again and it was empty
> But the printer works and stops his job normally
> How can I remove cups and install lpd in the proper way.
If it's working properly now, why worry?
> Till now I have not decided to install Fedora, because of a lack of time
> and the risk of reinstalling this server.
Both valid reasons, but you really, really need to consider it. I don't
know how much longer RH9 will be supported by Fedora Legacy.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- Never try to outstubborn a cat. -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list