Printing Problems

Printing Problems

Post by acer » Fri, 15 May 1998 04:00:00



Hi!
I am having problem of setting up my printer on freeBSD 2.2.6.
I have edited the "printcap" file as follows:

        lp|lj|ps|local LaserJet 6L printer:\
                :lp=dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\
                :if=/usr/local/libexec/lpfilter:

        rlp|sample remote printer:\
                :rm=freebie:sd=/var/spool/output/freebie:lf=/var/log/lpd-errs:

My "lpfilter" script is:
        #!/bin/sh
        printf "\033&k2G" && cat && printf "\f" && exit 0
        exit 2

I have checked that all of the above directories are created.
But when I try to test the spooler with the command:  lptest 20 5 | lpr
I get the following message:
        lpr: connect: No such file or directory
        jobs queued, but cannot start daemon

Also when I run "lpq", I get:
        Warning: no daemon present

Please tell me where the error is and how to make the daeman present.

Thanks...

Joseph

 
 
 

Printing Problems

Post by Serge V. Dorokho » Fri, 15 May 1998 04:00:00



> Hi!
hi!
> I am having problem of setting up my printer on freeBSD 2.2.6.
> I have edited the "printcap" file as follows:
>    lp|lj|ps|local LaserJet 6L printer:\
>            :lp=dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\

                ^^^^^^^^^^^^ mistake ? lp=/dev/lpt0
                                          ^ this ...
Quote:> Joseph

 Svd.

 
 
 

Printing Problems

Post by Ferdinand Goldman » Fri, 15 May 1998 04:00:00


: Please tell me where the error is and how to make the daeman present.

Have you started lpd in the first place? To do so whenever your machine reboots,
edit /etc/rc.conf and set the variable lpd_enable to YES.

/ferdl
--
<< In Real Life:  Goldmann Ferdinand                        UNIX the best  >>
<< IRC         :  DrAkHaI 8^)                               * the rest  >>

<<     'I will take the ring',  he said,  'though I don't know the way'    >>

 
 
 

Printing Problems

Post by Benjamin R Schurm » Mon, 18 May 1998 04:00:00



>Hi!
>I am having problem of setting up my printer on freeBSD 2.2.6.
>I have edited the "printcap" file as follows:

>    lp|lj|ps|local LaserJet 6L printer:\
>            :lp=dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\
>            :if=/usr/local/libexec/lpfilter:

>    rlp|sample remote printer:\
>            :rm=freebie:sd=/var/spool/output/freebie:lf=/var/log/lpd-errs:

>My "lpfilter" script is:
>    #!/bin/sh
>    printf "\033&k2G" && cat && printf "\f" && exit 0
>    exit 2

>I have checked that all of the above directories are created.
>But when I try to test the spooler with the command:  lptest 20 5 | lpr
>I get the following message:
>    lpr: connect: No such file or directory
>    jobs queued, but cannot start daemon

>Also when I run "lpq", I get:
>    Warning: no daemon present

>Please tell me where the error is and how to make the daeman present.

>Thanks...

>Joseph

Edit the rc.conf file in etc and go to the line that says
lpd_enable="NO"        # Run the line printer daemon.

and change the NO to a YES. Then reboot.
This will enable the daeman on your machine.

->Ben

 
 
 

Printing Problems

Post by overlor » Wed, 20 May 1998 04:00:00



> Hi!
> I am having problem of setting up my printer on freeBSD 2.2.6.
> I have edited the "printcap" file as follows:

>         lp|lj|ps|local LaserJet 6L printer:\
>                 :lp=dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\
>                 :if=/usr/local/libexec/lpfilter:

>         rlp|sample remote printer:\
>                 :rm=freebie:sd=/var/spool/output/freebie:lf=/var/log/lpd-errs:

> My "lpfilter" script is:
>         #!/bin/sh
>         printf "\033&k2G" && cat && printf "\f" && exit 0
>         exit 2

> I have checked that all of the above directories are created.
> But when I try to test the spooler with the command:  lptest 20 5 | lpr
> I get the following message:
>         lpr: connect: No such file or directory
>         jobs queued, but cannot start daemon

> Also when I run "lpq", I get:
>         Warning: no daemon present

> Please tell me where the error is and how to make the daeman present.

> Thanks...

> Joseph

  i think you need to run lpd, this is the actual lp deamon your error message speaks
of. you can configure it to run at boot time by running /stand/sysinstall and going to
the post configure screen and then go to startup and put a check next to the lpd
option. i ran into this problem a short time ago and had to read around a bit.
 
 
 

Printing Problems

Post by fpis » Tue, 26 May 1998 04:00:00


I have a hard disk, storing some interesting programs and other
information. But, for some reason it has been damaged. Under
FBSD 2.2.5, on start , the kernel gives that:

------
May 25 20:55:27 Destroyer /kernel wd1: 610MB (1249920 sectors), 1240
cyls, 16 heads, 63 S/T, 512 B/S
-----

But after that, trying to access the device wd1 ( mount, fdisk, etc), I
only get :

----
   wd1: hard error reading fsbn 0wd1 :status 59<rdy,seekdone,drq,err>
   error10<no_id>
   wd1: error reading primary partition table reading fsbn  0 (wd1: bn 0;
   cn 0 tn 0 sn 0)
   fdisk: Can't open device /dev/wd1
   Cannot open disk /dev/wd1 (Input/output error)
----

And the kernel continues repeating the error message :"...hard error
reading fsbn 0wd1..."

I'd like more information about that, and some ideas  to recover the
information on the disk (rebuild the partition table, or something
like that). It's important to me...

Thanks in advance,

Francisco Pis


 
 
 

1. Solaris 2.7 Print then No Print Problem

Server Configuration: Sun UltraSPARC-10, 300MHz UltraSPARC processor, with
256MB of RAM running Sun Solaris 2.7

I've been struggling with a, for me, perplexing problem in getting a cgi to
compile and work.  Note that this
software has been working under SUN 2.5 and 2.6.

The program uses a number of i/o functions, including lseek, open, close,
read, printf, fprintf, fwrite, and fgetc, as well as mSQL database
functions.  The problem is that the printf works initially, but then later
stops working; albeit without error.

I've stepped through the code with gdb and see nothing unusual.

Although I wouldn't doubt that there could well be a program problem on my
part, I don't see it.

The program flow is as follows.  Please note that while the program is
substantial in size, the process flow is exactly as shown; hence 99% of the
program doesn't execute prior to the difficulty.  The difficulty remains
consistent whether run from the prompt or as a database maintenance utility
in which HTML is parsed and written back to the server.

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
. . .

int main()
{
    initialization();
    .  .  .

void initialization()
{
    llist entries;
    printf("before");
    cgiHTMLStatus = read_cgi_input(&entries);
    formActionString = cgi_val(entries, "formAction");
    printf("after");

    . . .

The second print statement doesn't appear!  the read_input_entries(...) is
http://www.eekim.com's cgihtml which is heavily used.  However, thinking
that it might be somehow connected with his code, I replaced
it with a version of my own and got exactly the same result - no printf
"after" output to stdout.

All software and libraries have been compiled on the same 2.7 system.

I have a hunch that somehow I have some incompatible headers or libraries in
the mix, but my checking has thusfar ruled that out.

I've tried lots of combinations in an effort to isolate the point where it
fails, but every combination has worked except for the combination I need to
produce the required functionality.  For instance, I have tried making a
program which contains all the same headers, but only the logic which is
exercised prior to the problem.  It worked!

I have several more things to try, but thought while I was trying them, I'd
check to see whether anyone was having any similar problems.  Any thoughts,
suggestions, clues, etc., would be appreciated.

--
Regards,

Phil Welch

2. Help: NIHCL & Solaris2.3

3. Printing problems- Can't print plain ascii

4. Set up Proxy & NNTPD

5. printing problems: printer resets but no print

6. HELP!!! - Trouble Installing TCL 7.6

7. Printing problems on a Solaris 8 print server

8. execution environment

9. Printing Problem - No Print

10. print problem, blank page printing

11. HP Printing Problem & Printing.HOWTO can't help!!!

12. Printing problem (Not printing first line) Help!

13. Printing Problem: Stair-Stepping when printing text