- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Printing with Linux
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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
- 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
- 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
- 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
- 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