LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2011, 01:37 PM   #1
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Rep: Reputation: 0
printing with lp, what package to install?


Specifically, I need the functionality provided by lpforms to handle various types of paper like letterhead, etc. I have been able to find tons of information on using lp as a print service, but I cannot find what package I need to install to use it.

Can anyone tell me what package this stuff is in and where I can find it? This would be for Redhat.

Alternatively, can anyone tell me if CUP has an lpforms equivalent?
 
Old 07-27-2011, 03:39 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Redhat EL 5 ?

The which command : 'which lp' : The reply is /usr/bin/lp

'rpm -qf /usr/bin/lp' : cups-1.3.7......
 
Old 07-27-2011, 03:48 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I don't know why you are focussing on lpforms. My distro (ubuntu 10.04.LTS) does not even list it as available.

Perhaps the Redhat you are using is out of date. You do not state the version number.

Most linux printers are handled with the GUI to the CUPS interface at http://localhost:631 but YMMV.

Maybe if you told us your linux version number and what you are trying to accomplish, we'd be able to help you better.
 
Old 07-27-2011, 04:40 PM   #4
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Red Hat Enterprise Linux Server release 5.6 (Tikanga)

We are transitioning our Oracle server from VMS to Linux. On VMS we used 'forms' to manage printing on... well, forms. It sets certain margins and vertical spacing for printing on letterheads or bills, that sort of thing. Basically sets unprintable areas so the text goes where you want it to.

From my research, the Linux equivalent is lpforms, which according to the man pages is pretty much the same thing. Trouble is, lpforms does not exist on our server.

Last edited by frumpus; 07-27-2011 at 05:20 PM.
 
Old 07-27-2011, 04:42 PM   #5
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Redhat EL 5 ?

The which command : 'which lp' : The reply is /usr/bin/lp

'rpm -qf /usr/bin/lp' : cups-1.3.7......
I get the same output, but cups does not seem to contain lpforms specifically.
 
Old 07-27-2011, 04:52 PM   #6
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Original Poster
Rep: Reputation: 0
In short, when I type 'man lpforms' I should be getting this http://www.unix.com/man-page/OpenSolaris/1m/lpforms/

Instead I get this:


$ man lpforms
No manual entry for lpforms


Any attempt to use the lpforms command gets me this.


$ lpforms -all
-ksh: lpforms: not found [No such file or directory]

I do have just lp, as well as lpmove, lpoptions and lpstat. Just no forms functionality. I'm certainly open to alternative solutions.
 
Old 07-27-2011, 06:50 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
have you contacted your paid for red hat support
a license is required for 5.6
http://www.redhat.com/support/
 
Old 07-27-2011, 06:52 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
This thread peaked my curiosity. A quick qoogle did not find an equivalent linux utility nor anything similar.
 
Old 07-28-2011, 09:34 AM   #9
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
have you contacted your paid for red hat support
a license is required for 5.6
http://www.redhat.com/support/
I'll have to get the admins on that. I really expected this to be a simple resolution :-/

Our linux support contract is with Dell so... you know.

Last edited by frumpus; 07-28-2011 at 09:38 AM.
 
Old 07-28-2011, 10:57 AM   #10
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Original Poster
Rep: Reputation: 0
It's looking like what I want just doesn't exist any more. cups replaced lp with a superset of lp commands that does not include lpforms. The closest thing I can find is partial functionality provided by lpoptions.

Quote:
The "good old" UNIX SYSV printing system knows about forms in a manner quite similar
to what good old line printer spooling systems on mainframes support.
In essence, a SYSV forms definition contains things like

Page length: scaled-decimal-number1
Page width: scaled-decimal-number2
Number of pages: integer
Line pitch: scaled-decimal-number3
Character pitch: scaled-decimal-number4
Character set choice: character-set/print-wheel [mandatory]
Ribbon color: ribbon-color
Comment:
comment
Alignment pattern: [content-type]
content

(copied from the lpforms man page of Solaris 9). As you see, the attributes
only apply to plain text printing.

AFAIK, CUPS has no equivalent to this, but you could emulate most of this by using
the lpoptions command and setting up printer instances. But assigning a specific form
to a printer in such a way that only jobs using the specified form are printed (and all others
suspended) cannot easily emulated using CUPS (except perhaps by "mis"using the classes concept).
 
Old 07-28-2011, 01:56 PM   #11
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Original Poster
Rep: Reputation: 0
So now the only remaining problem is that lpoptions does not allow for font selection, which I need. Every thing else we need it can handle.
 
Old 07-28-2011, 04:06 PM   #12
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Originally Posted by frumpus View Post
Red Hat Enterprise Linux Server release 5.6 (Tikanga)

We are transitioning our Oracle server from VMS to Linux.
I know nothing about VMS, but I suspect that it is very different from linux. Your previous tools with VMS may not apply.

Linux generally has all the tools to do whatever you'd like to do, but you need to discover them and then learn about how to use them.

When I last used Oracle (20+y ago), Oracle could/would format the reports as I wished (that was with SCO unix) and I suspect that things will have improved a lot since then. I suggest that you read the more recent Oracle documentation, because there'll probably be an answer to your problems.

Best wishes.
 
Old 07-28-2011, 04:28 PM   #13
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by tredegar View Post
I know nothing about VMS, but I suspect that it is very different from linux. Your previous tools with VMS may not apply.

Linux generally has all the tools to do whatever you'd like to do, but you need to discover them and then learn about how to use them.

When I last used Oracle (20+y ago), Oracle could/would format the reports as I wished (that was with SCO unix) and I suspect that things will have improved a lot since then. I suggest that you read the more recent Oracle documentation, because there'll probably be an answer to your problems.

Best wishes.
Unfortunately, the print jobs are coming out of SCT Banner, not Oracle.
 
Old 07-28-2011, 05:24 PM   #14
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I am sorry that I cannot help you further.

Best wishes, and hope you get your problem solved.
 
Old 07-29-2011, 04:49 PM   #15
frumpus
Member
 
Registered: Feb 2010
Posts: 38

Original Poster
Rep: Reputation: 0
In the end, the answer to all of my problems is enscript. It's even already installed. "man enscript" for details.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] won't let me install a package or remove a package archie101 Linux - Newbie 5 05-09-2011 04:52 PM
What are the steps to build and install a Slackware package from a RPM package? sudeepkulkarni Slackware 6 04-25-2011 12:51 PM
PSF package for Redhat 10 - specifically for printing atpbrownie Linux - Newbie 5 03-23-2009 03:45 PM
Mozilla slackware package (+Xft - Freetype) and printing imitheos Slackware 0 07-25-2005 06:10 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration