FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 10-03-2011, 10:57 AM
Tim Waugh
 
Default Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

On Mon, 2011-10-03 at 14:34 +0530, Sanjay Arora wrote:

> While I can create the SMB printer from the Printers GUI screen, it
> does not get enabled or even print a test page. I think the issue is
> that the software prints to a device that does not exist. I think I
> need to create a device file & redirect it to the smb share or
> something similar....but maybe I'm wrong.

No, that doesn't sound right.

First of all, what are you using to set up the printer? "Printers GUI"
could refer to several different things...

The way to do what you want is to use the system-config-printer
application. Set up the SMB queue, and for the driver choose "Generic"
as the manufacturer and "Raw Queue" as the model.

Tim.
*/


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 10-03-2011, 12:30 PM
Sanjay Arora
 
Default Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

Tim

On Mon, Oct 3, 2011 at 4:27 PM, Tim Waugh <twaugh@redhat.com> wrote:

First of all, what are you using to set up the printer? *"Printers GUI"
could refer to several different things...


I am using system-config-printer....Selected Windows Printer via SAMBA, keyed in the widows samba printer uri, keyed in authentication details & clicked verify....the printer verified as accessible.


The way to do what you want is to use the system-config-printer

application. *Set up the SMB queue, and for the driver choose "Generic"

as the manufacturer and "Raw Queue" as the model.


Upon selection of Printer Driver as Epson 24 pin Generic AND upon selection of Manufaturer as Generic & Raw Queue as model, the printer gets installed and does print a test page. It is getting Enabled now...Thanks!

But it still does not print from CLI applications printing to the printer port (In my case, from ls -lha >prn or Harbour compiled legacy dbase applications). The output of ls -lha > prn does not land in the print queue, even if this printer is the default printer, nor does the output of the legacy DOS based programs recompiled on Linux (Harbour project...in my case for recompiling old dbase programs).

Hope you can help me troubleshoot further.
With best regards & thanks.Sanjay.

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 10-03-2011, 01:04 PM
Tim Waugh
 
Default Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

On Mon, 2011-10-03 at 18:00 +0530, Sanjay Arora wrote:

> But it still does not print from CLI applications printing to the
> printer port (In my case, from ls -lha >prn or Harbour compiled legacy
> dbase applications). The output of ls -lha > prn does not land in the
> print queue, even if this printer is the default printer, nor does the
> output of the legacy DOS based programs recompiled on Linux (Harbour
> project...in my case for recompiling old dbase programs).

To print from the command line, use the lp command.

Tim.
*/


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 10-03-2011, 07:11 PM
Sanjay Arora
 
Default Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

Tim
On Mon, Oct 3, 2011 at 6:34 PM, Tim Waugh <twaugh@redhat.com> wrote:



To print from the command line, use the lp command.



Tim.

*/
lp would print a file to the named printer. How do I print or redirect the console output to the printer as is the case in "ls -lha > prn"

And moreover a legacy program is printing to a device lpt1, had the port existed & been connected/redirected to some printer....it would have printed.
Problem here is that there is no connection between the print output of the software and the lpd/lpr/cups/smb device. The software is NOT modified to recognize the lpr/cups device and therefore is printing to a lpt1 port, as all DOS legacy programs do. What I need to do is somehow capture the output to the lpt1 device & redirect it to the printer setup on linux.

Is it possible to create a directory named lpt1 in /dev and make it behave like a device (whatever behaving like a device is), so that the program output written to it can be redirected to the the linux printer?


With best regards.Sanjay.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 02:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org