LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-02-2007, 07:54 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Emulating LPT1 from networked printer


I've got some old programs running nicely in DOSEMU that expect to be printing to LPT1 and/or LPT2. In addition, I've got a few old binary-only programs in Linux that equally expect to print to LPT1 and LPT2.

Problem is that on my new laptop there is no LPT ports, and I was hoping there might be a way to emulate the LPT ports and redirect that traffic to the networked printer, or worst case capture it and send it to a USB-port instead?

Anyone with experience on this subject?

-Y1
 
Old 01-02-2007, 11:13 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
According to the docs, the default dosemu config should redirect printing to the LPT1 port to a "lpr" printing command in Linux. Just make sure a default printer is setup in CUPS.
Did this info help? http://www.faqs.org/docs/Linux-HOWTO...WTO.html#ss4.8

Eric
 
Old 01-02-2007, 11:26 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Thanks for quick reply.

I guess what I'm looking for is some sort of combination. The old DOS program expects to connect directly to the printer, as it sends ESCape codes in PCL to the printer. Thus it'll be ruined if I do as the FAQ and dosemu docs say and just redirect LPT1 to default printer.

Furthermore, doing direct passthrough as also described is of little help as new computers very rarely have such physical ports.

So what I was hoping is to combine the two, that I set DOSEMU to print to LPT1 which is capured and sent to a CUPS-printer called RAW for instance, and then that one sends the data un-filtered on to the printer itself, so that the ESCape codes for PCL and others arrive un-hindered.

Is something like this achievable, or should we really look to retire the old DOS programmes once and for all?

(I finally got my father to switch from DOS to Linux - he's over 70, has refused Windows on his computers since Windows95, and is now finally convinced that Slackware+dosemu is the way to go as he can keep his plethora of old DOS tools... come to think of it - how many others do you know who have been in the IT business since PDP-11 and CP/M, but skipped the step to Windows )

-Y1
 
  


Reply



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
Networked Printer Annoyance corvax Linux - Hardware 1 03-15-2006 11:00 AM
Cannot connect to Networked Printer TBennettcc Linux - Networking 2 09-23-2004 11:04 AM
installing networked printer hokagi_ninja Linux - Newbie 2 09-14-2004 07:31 PM
Trying to connect to a networked printer without a server b.steadman Linux - Hardware 3 01-16-2004 11:09 AM
Can't add Networked Printer thethinker101 Linux - Hardware 0 12-18-2003 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:40 AM.

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