LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-31-2008, 07:11 AM   #1
backroger
Member
 
Registered: Dec 2004
Posts: 81

Rep: Reputation: 15
Question How to lpd/lpr printing in Linux?


Hi Guys/Gals...

We just migrated from SCO to Linux (RHEL 5).

In the old system there is no printer connected to the SCO Server. We are used of doing lpd/lpr from SCO to our Windows98/ME/XP with the used of "NIPrint" installed on the Windows Machine with printers. Using putty to ssh, we able to command "lp -d [printername] filename.txt". All the printer connected to the Windows98/ME/XP Machine are dot matrix type e.g. Epson FX-2175.

Is there a way to duplicate this method in Linux?

I don't think that this is a cupsd since cupsd are all postscript????..

Last edited by backroger; 08-31-2008 at 09:17 AM.
 
Old 08-31-2008, 07:54 AM   #2
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 148

Rep: Reputation: 18
well, you ve several options

1. Configure smb/printer (all prints will be send to your windows box :-(
2. Set printer queue on Linux after connecting your printer on your server.

lp command still exists when using cups, lpd and cups are both printer/queue manager
 
Old 08-31-2008, 07:54 AM   #3
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 148

Rep: Reputation: 18
perhaps, you 'll put "-o raw" on your command line
 
Old 09-03-2008, 02:30 AM   #4
backroger
Member
 
Registered: Dec 2004
Posts: 81

Original Poster
Rep: Reputation: 15
Holy crap batman!!!

I can now print!!!

1st I went to the GUI printer in RHEL and try to set the LPD/LPR Parameters. I was able to print but the problem is still very persistent on defining PPD. Ok...what the hell, I used Generic ESC/P Epson Printer and I knew it will turned out to be a postscript when I try to print. Disgusted with the result I deleted it in the GUI Printer Setup. I went to my remote terminal and logging (1st floor bldg) to ssh.

Reading lpr points to lpadmin. Reading lpadmin, I see stuff pertaining to the old setup commandline...so I just did.

-p = Printer Name (okidata microline 321)
-E = enable/acceptting
-v = device/uri
-i = interface (Epson FX-2175)

#lpadmin -p oki321 -E -v lpd://192.168.1.5/oki321 -i efx2175

wtf!!! it gave me "No files or directory found."

I went to /usr/sbin and gave another command with the samething/result. I went back to the server (dammit 4 flrs of going up & down) and try again the IPP instead of LPD/LPR but to my suprise!!, the lpd/lpr GUI setup has a complete parameters of what I commanded with "lpadmin" but instead of the PPD printer driver its now using "Local Raw Printer" which is what I want!!!

At the end of the day!!!! I can now do what we used to do with the old dot matrix printer!!!

Thanks fantasio for this reply...

"lp command still exists when using cups, lpd and cups are both printer/queue manager"

It made me think more than the GUI.
 
  


Reply

Tags
lpr


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
lpr / lpd - Admin GUI stlouis Linux - Software 1 07-31-2006 11:55 AM
lpr is BSD LPD system. and lp? xcore_on Linux - Newbie 0 05-25-2006 10:28 AM
Linux LPD Printing Problems pnh73 Linux - Hardware 4 12-14-2003 03:21 PM
how can i print in a network whit lpr lpd ?? likid0 Linux - Software 0 07-11-2003 01:10 PM
PDQ/LPD/LPR/LPRng/PPR/CUPS...What to use? rodda Linux - Software 2 05-23-2002 03:17 PM


All times are GMT -5. The time now is 03:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration