- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- Printing with Linux
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-23-2007 01:15 AM
08-23-2007 01:15 AM
Printing with Linux
Thanks,
John Sherman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-23-2007 01:42 AM
08-23-2007 01:42 AM
Re: Printing with Linux
How is the printer connected? If it uses a parallel or USB connection, you can use basic commands like "cat" to bypass the print spooler and send files directly to the printer:
cat filename > /dev/lp0
cat filename > /dev/usb/lp0
If you're using a JetDirect connection, you might use the "rlpr" command or dump the data to printer's network port (TCP/9100) using netcat (nc) or even "telnet printername 9100 < filename".
Bypassing the print spooler on a parallel- or USB-connected printer usually requires more permissions than the normal user has. It's also not recommended when multiple users may be trying to print simultaneously.
Regardless of which print spooling engine you're using, the normal printing command is generally either "lp" or "lpr". CUPS uses "lp" natively, but it can provide the "lpr" command too if you have something that requires BSD-style printing commands.
Both styles of commands can have various options to bypass automatic format detection and send the file to the printer explicitly as-is. Usually the options are "lp -o raw" or "lpr -l".
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-23-2007 01:59 AM
08-23-2007 01:59 AM
Re: Printing with Linux
Version of Linux... I'm really not a Linux expert. What command will give me that (we're not using the GUI). I just tried using lp to print the raw file, but it didn't work (the bar code didn't print).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-24-2007 12:27 AM
08-24-2007 12:27 AM
Re: Printing with Linux
If it's one of the RedHat's free Fedora distributions, then examine /etc/fedora-release.
If the lp command caused at least *something* to print, the output of "lpstat -v" might tell us more about how your printer is connected. "lpstat -l -p" and "lpoptions" output listings might also help.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-23-2007 11:53 AM
10-23-2007 11:53 AM
Re: Printing with Linux
# whereis printconf-tui
printconf-tui: /usr/sbin/printconf-tui
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP