Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lprng not working!!!!!!

Status
Not open for further replies.

herzel

IS-IT--Management
Mar 5, 2003
73
IL
Hi
Just starting from begin we are trying to build environment to move from Solaris 8 to Linux.
I did open some threats in this forum regard this move and had very good reply from forum members.
This time I am trying to build printing environment.
I did download Lprng source and compiled it in our RHEL 5 box.
The configuration is as following:

[root@ulin02 etc]# checkpc -V -f
LPRng-3.8.A, Copyright 1988-2003 Patrick Powell, <papowell@lprng.com>
Checking for configuration files '/usr/local/etc/lpd/lpd.conf'
found '/usr/local/etc/lpd/lpd.conf', mod 0100644
Checking for printcap files '/usr/local/etc/printcap'
Checking for lpd only printcap files '/usr/local/etc/lpd/lpd_printcap'
DaemonUID 2, DaemonGID 2
Using Config file '/usr/local/etc/lpd/lpd.conf'
LPD lockfile '/var/run/lpd.515'

.names
:network=pr4
:pr4=pr4

.all
:pr4

#Printcap Information
pr4|network
:af=acct
:lf=log
:lp=pr4%9100
:ps=status
:rw
:sd=/usr/spool/lpd/pr4
:sh
Checking printcap info
Checking printer 'pr4'
Checking directory: '/usr/spool/lpd/pr4'
directory '/'
directory '//usr'
directory '//usr/spool'
directory '//usr/spool/lpd'
directory '//usr/spool/lpd/pr4'
checking 'control.pr' file
checking 'status.pr' file
checking 'status' file
checking 'log' file
checking 'acct' file





I did try every printcap config file I could find and tried also to search the web for filter file without any success. Can anyone help making some order in this mess?
Can anyone advice for printcap/lpd.conf/filter file combination that will work?


Any advice/help will greatly be appreciated.

B.R
 
Is there a reason why you can't use cups instead of lprng?
it is very flexable and there is alot more expertise around?
we still use our sysv style interface files with cups.
 
I am not sure I understand. Is your printer not connecting or is the print scrambled. Was the printer set up before LPRNG was installed or after? What kind of printer model do you have?
 


Hi
Thanks all for the replies.

Stanhubble, can you direct for how you do this kind of printing environment (sysv style interface with cups?)
As I checked cups different completely from the standard Sysv printing (like the one that in Solaris.)
Can you point to some howto? Some simple document to make printing possible in Linux as it is in Solaris?

Mrregan,
Thanks for your attention.
The thread is not some special printer error it is more generic one.
I do need to build for our move from Solaris to Linux some printing environment.
As I tried cups, looks like its different completely from standard Solaris Lpr.
I did install lprng ,looks like no matter what I did the printers refused to print normally .I tried to print "/etc/hosts", the result was that the printer printed empty paper, when it is successes printing it was without carriage return,

The printers I used were:
Hp DeskJet 970(with Ethernet box jetdirect (.
Kyocera Mita KM 3035

It will be nice if I could take over this problem with your help!

Regards
Herzel
 
What happens if you set the printer up as "raw" instead of a specific model?
 
Not at lot of changes.

we change:
/etc/cups/cupsd.conf
- to allow device uri's uncomment
FileDevice YES
/etc/cups/mime.types
- to prevent cups from mucking with pcl embeded code
comment out
#application/vmd.cups.raw (and its patterns)
- enable raw files, uncomment
application/octet-stream

(make sure you restart the cups daemon)


to add a printer:

lpadmin -p NEWPRINTERNAME -i /pathandname/to/interfacefile/filename -v <deviceURI>
/usr/bin/enable NEWPRINTERNAME
accept NEWPRINTERNAME

a copy of the interface file ends up in /etc/cups/interfaces
that you can then edit if needed.
 
You may also need to modify cupsd.conf to allow access to the documentation and/or administration pages from anywhere other than localhost. Look the Location / section and add an appropriate Allow From clause.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top