Mailinglist Archive: opensuse (3964 mails)

< Previous Next >
Re: [SLE] DOSemu Printing
  • From: Graham Smith <gqs@xxxxxxxxxxxx>
  • Date: Wed, 17 Nov 2004 18:10:21 +1100
  • Message-id: <200411171810.21564.gqs@xxxxxxxxxxxx>
On Wed, 17 Nov 2004 17:35, pinto wrote:
> On Tuesday 16 November 2004 22:29, Bruce Marshall wrote:
> > You need to uncomment and modify the line:
> >
> > $_printer_command = "lpr"     to make it be:
> >
> > $_printer_command = "lp -o raw'
> >
> > This *should* do raw printing for you....   but you may need to tweak
> > other things as well.  Most of the information has been in these
> > replies but if you need more help, come on back with questions.
>
> ________________
>
> Thank you kindly.
>
> ~ the error message that I continue to receive, is :-
>
> /var/log/cups :
>
> "print_job: resource name '/printers/lp' no good!"

At a guess - You do not have a printer named 'lp'
Somewhere in the config you have to specify a printer that is valid.

>
> ........................................
>
> In SuSE vers 8.0 am using CUPs.
>
> ......................................
>
> the DOSemu configuration file in my home dosemu directory, is called
> " ~/.dosemurc " { I believe that it is ~/.dosemurc that I am
> supposed to adjust, rather than "global.conf" }
>
> ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
>
> this is how the "Printer" section of " ~/.dosemurc " looks :-
> .................................
>
> ## Printer settings
>
> # list of (/etc/printcap) printer names to appear as LPT1, LPT2, LPT3
> # (not all are needed, empty for none). Default: "lp"
> # use "" if you want the printer_command (below) free-form (LPT1 only)
>
> # $_printer = "lp"

Change this setting to your actual printer name
e.g. "Stylus COLOR 200"
Check the name is correct using the following command
lpstat -a

>
> # Nov. 15. 2004
> # printer { file "/usr/tmp/dos-print-1" timeout 10 }
> # printer { file "/dev/lp0" timeout 10 }
>
> # printer { command "lpr" options "-p %s" timeout 10 }
>
> # Nov. 16. 2004
>
> # $_ports = "device /dev/lp0 fast range 0x3bc 0x3bf" # lpt0
>
> # Print command to use. Default: "lpr", for "lpr -P printername".
> # Sometimes (with CUPS) "lpr -l" is necessary.
> # $_printer_command = "lpr -l -P Stylus COLOR 200"
> # $_printer_command = "lpr"
>
> # idle time in seconds before spooling out. Default: (20)
>
> # $_printer = "lp0"
>

Try this command it should be right
> # $_printer_command = "lpr -l"


> # $_printer_timeout = (20)
>
> #######
>
> Is there, please, anything obvious, that could produce error message
> "print_job: resource name '/printers/lp' no good!" ?
>
> ...............................
>
> my Printer is an Epson Stylus Color 200 , on
> /dev/lp0
>

See my inline comments.
To make sure the printer name is correct use
lpstat -a
which will list all your printers and their status.

man lpstat for more info.

Best of luck!
--
Regards,

Graham Smith
---------------------------------------------------------

< Previous Next >