JetDirects have builtin queue names of "raw" and "text". For the three-port models, the queue names are raw1, raw2, raw3, and text1, text2, and text3. I'm not sure which queue (raw or text) is right for you. Text adds line terminators, and raw doesn't.
Assuming netq3 and netq0 are the hostnames of your JetDirects, try using the builtin queue names like this:
#Printcap Information
tq1|unix1
:if=/usr/share/printconf/util/mf_wrapper
:mx#0
:rm=netq3.dt.uh.edu
:rp=text
^^^^
:sd=/var/spool/lpd/tq1
:sh
tq2|unix2
:if=/usr/share/printconf/util/mf_wrapper
:mx#0
:rm=netq0.dt.uh.edu
:rp=raw
^^^
:sd=/var/spool/lpd/tq2
:sh
Phillip Griffith (803) 952-8776
Information Technology Department
Westinghouse Savannah River Company
| "Wilson, Chad"
<[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 03/31/2004 03:42 PM
|
|
Greetings,
I am forced to move to RedHat ES 3.x becasue RH no longer supports our
current 7.3 server.
The old 7.3 server was running LPRng like a champ. ES however ships with
CUPS as the official print server.
CUPS failed to work with our old Lexmark 2491 line printers. After a week or
more of trying to make the printer work, I decided to roll back to LRPng.
Uninstalling CUPS was not very pretty. It had many packages that depended on
it. These are the steps I went through...accordning to my bash history.
# rpm -e cups
# rpm -e desktop-printing
# rpm -e redhat-config-printer-gui
# rpm -e redhat-config-printer
# rpm -e cups
# rpm -qi redhat-lsb
# rpm -e --force cups
# rpm -ivh /usr/src/redhat/RPMS/i686/LPRng-3.8.26-1.i686.rpm
# rpm -qi setup-2.5.27-1
# rpm -ivh --force /usr/src/redhat/RPMS/i686/LPRng-3.8.26-1.i686.rpm
RH complained about the first three packages. I did not remove redhat-lsb
even tho it said that it required CUPS.
Odd as it seemed to me, I just forced the removal of CUPS.
Similarly, I had to force the install of LPRng because of some files like
printcap were still registered to CUPS.
After installing LPRng, I used Webmin to configure the printcap file. This
was the results:
tq1|unix1:mx#0:rm=netq3.dt.uh.edu:sh:sd=/var/spool/lpd/tq1:rp=tq1:if=/usr/sh
are/printconf/util/mf_wrapper:
tq2|unix2:mx#0:rm=netq0.dt.uh.edu:sh:sd=/var/spool/lpd/tq2:rp=tq2:if=/usr/sh
are/printconf/util/mf_wrapper:
The old 7.3 server used mf_wrapper, which was part of printconf package that
I had to install.
It depended on something called libglade that I had to install first.
# ls -l /usr/share/printconf/util/mf_wrapper
# rpm -qi printconf
# rpmbuild --rebuild --target i686 printconf-0.3.61-4.1.src.rpm
# rpm -Uvh libglade-devel-0.16-4.i386.rpm
# ls -l /usr/share/printconf/util/mf_wrapper
Finally I sent it an ascii test page from Webmin. The results was no output
from the printers.
The printers are attached to HP Jet Directs.
After trying to send a non ascii test page and canceling the job, one of the
print servers locked up.
This was typical of what was happening with CUPS.
lpq retuened the following:
Printer: [EMAIL PROTECTED] 'unix1' (dest [EMAIL PROTECTED])
Queue: no printable jobs in queue
Server: no server active
Status: job '[EMAIL PROTECTED]' saved at 15:07:07.475
Rank Owner/ID Pr/Class Job Files Size Time
error [EMAIL PROTECTED] A 128 ERROR: Mystery error from
Send_job
Printer '[EMAIL PROTECTED]' - cannot open connection - Connection refused
Oh boy, a MYSTERY error. Great, very imformative. To verify the settings, I
ran:
# ls -l /var/spool/lpd/
drwx------ 2 lp lp 4096 Mar 31 13:56 tq1
drwx------ 2 lp lp 4096 Mar 31 10:46 tq2
# checkpc -f -V
LPRng-3.8.26, Kerberos5, Copyright 1988-2003 Patrick Powell,
<[EMAIL PROTECTED]>
Checking for configuration files '/etc/lpd/lpd.conf'
found '/etc/lpd/lpd.conf', mod 0100644
Checking for printcap files '/etc/printcap'
Checking for lpd only printcap files '/etc/lpd/lpd_printcap'
DaemonUID 4, DaemonGID 7
Using Config file '/etc/lpd/lpd.conf'
LPD lockfile '/var/run/lpd.515'
.names
:tq1=tq1
:tq2=tq2
:unix1=tq1
:unix2=tq2
.all
:tq1
:tq2
#Printcap Information
tq1|unix1
:if=/usr/share/printconf/util/mf_wrapper
:mx#0
:rm=netq3.dt.uh.edu
:rp=tq1
:sd=/var/spool/lpd/tq1
:sh
tq2|unix2
:if=/usr/share/printconf/util/mf_wrapper
:mx#0
:rm=netq0.dt.uh.edu
:rp=tq2
:sd=/var/spool/lpd/tq2
:sh
Checking printcap info
Checking printer 'tq1'
Checking directory: '/var/spool/lpd/tq1'
directory '/'
directory '//var'
directory '//var/spool'
directory '//var/spool/lpd'
directory '//var/spool/lpd/tq1'
checking 'control.pr' file
checking 'status.pr' file
checking 'status' file
checking 'log' file
checking 'acct' file
'if' filter '/usr/share/printconf/util/mf_wrapper'
executable '/usr/share/printconf/util/mf_wrapper'
Checking printer 'tq2'
Checking directory: '/var/spool/lpd/tq2'
directory '/'
directory '//var'
directory '//var/spool'
directory '//var/spool/lpd'
directory '//var/spool/lpd/tq2'
checking 'control.pr' file
checking 'status.pr' file
checking 'status' file
checking 'log' file
checking 'acct' file
'if' filter '/usr/share/printconf/util/mf_wrapper'
executable '/usr/share/printconf/util/mf_wrapper'
Webmin had failed to simplify my setup, so I turned to LPRng-Tool:
> tried to install LRPng Tool, but it needed ifhp
# rpm -ivh LPRngTool-1.3.2-1.i386.rpm
error: Failed dependencies:
ifhp >= 3.4 is needed by LPRngTool-1.3.2-1
> tried to install the binary rpm of ifhp, but it needed Net::SNMP
# rpm -ivh ifhp-3.5.17-1.i386.rpm
error: Failed dependencies:
perl(Net::SNMP) is needed by ifhp-3.5.17-1
> tried to install the perl module Net:SNMP using CPAN. It claimed to run
successfully.
# perl -MCPAN -e 'install "Net::SNMP"
// this installed several other moduled and then ran a 'make install' on
net-snmp successfully and exited //
> tried again to install the ifhp binary since the perl module claimed to
install.
# rpm -ivh ifhp-3.5.17-1.i386.rpm
error: Failed dependencies:
perl(Net::SNMP) is needed by ifhp-3.5.17-1
> tried to install ifhp using the source rpm. thinking maybe the binary was
build wrong.
# rpmbuild --rebuild --target i686 ifhp-3.5.17-1.src.rpm
# rpm -Uvh /usr/src/redhat/RPMS/i686/ifhp-3.5.17-1.i686.rpm
error: Failed dependencies:
perl(Net::SNMP) is needed by ifhp-3.5.17-1
> tried to install net-snmp from a rpm. it failed on even more dependecies.
# rpm -ivh net-snmp-5.1.1-1.rh9.i686.rpm
error: Failed dependencies:
perl(Term::ReadKey) is needed by net-snmp-5.1.1-1
perl(Tk) is needed by net-snmp-5.1.1-1
> tried to install the dependecies via CPAN. Tk failed with some reference
to X includes.
# perl -MCPAN -e 'install "Term::ReadKey"'
// returned OK //
# perl -MCPAN -e 'install "Tk"
...
CPAN.pm: Going to build N/NI/NI-S/Tk-804.026.tar.gz
RedHat perl in UTF-8 locale may not build Tk
/usr/bin/perl is installed in /usr/lib/perl5/5.8.0/i386-linux-thread-multi
okay
PPM for perl5.008
Test Compiling config/signedchar.c
Test Compiling config/Ksprintf.c
Test Compiling config/tod.c
Test Compiling -DTIMEOFDAY_TZ config/tod.c
TZ gettimeofday()
Using -L/usr/X11R6/lib to find /usr/X11R6/lib/libX11.so.6.2
Cannot find X include files via /usr/X11R6/include
Cannot find X include files anywhere at ./myConfig line 332.
Compilation failed in require at Makefile.PL line 36.
BEGIN failed--compilation aborted at Makefile.PL line 38.
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
> tried to install net snmp via a tarball. it ran successfully, but still
was not detected by ifhp.
# tar -xzvf Net-SNMP-4.1.2.tar.gz
# perl Makefile.PL
# make
# make test
# make install
# make install-headers
# rpm -Uvh /usr/src/redhat/RPMS/i686/ifhp-3.5.17-1.i686.rpm
error: Failed dependencies:
perl(Net::SNMP) is needed by ifhp-3.5.17-1
# cp -R lib/Net/ /usr/lib/perl5/5.8.0/
Chad Wilson
Web & UNIX Administrator
Information Technology Division
University of Houston-Downtown
713/221-8693
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------
