moi sur Free on Thu, 4 Apr 2002 17:40:06 +0200 (CEST)(envelope-from owner-apsfilter-help@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

can you help me ? To print with lpd + apsfilter + gs under linux 2.2.13


Hello

I need some helps to print :-)
I use the Linux distribution Slackware 7.0 => kernel 2.2.13, BSD
printing system.
I downloaded apsfilter v7.2.2 from internet, as well as ghostscript
v6.53 (with jpeg package).
apsfilter is installed in the directory "/usr/local/apsfilter-7.2.2".
The first run was unsuccessfull
because of the ghostscript version.
Under Slack 7.0, the ghostscript version is 5.1 installed in the
directory "/usr/share/ghostscript".
I did an upgrade (from sources) and the v6.53 is now installed in
"/usr/local/share/ghostscript".
I renamed the original directory of ghostscript and I did a symbolic
link such as
"ln -s /usr/local/share/ghostscript /usr/share/ghostscript"  in order to
keep the original installation.
Now apsfilter can run with success :-) !
I have to printers : an old Nec PinWriter P2200 and an HP DeskJet 940C.
These two printers
work very well with Windows NT4 on the // port. And I decided to use
them with Linux :-)
As described in the documentation, I did ./SETUP in the directory
"/usr/local/apsfilter-7.2.2/share/apsfilter/"
under root login, of course. I selected the driver necp2x in the driver
listing of ghostscript for my
P2200. I supposed this was the right driver for this printer. After I
added the driver necp2x6.
For the Deskjet, I selected the option "official driver hpijs v1.0" and
I found the driver for DeskJet 940.
Therefore my printcap file is the following :

necp2x|necp2x.upp;r=360x360;q=medium;c=mono;p=a4;m=auto:\
    :lp=/dev:lp0:\
    :if=/usr/local/apsfilter-7.2.2/etc/apsfilter/basedir/bin/apsfilter:\

    :sd=/var/spool/lpd/necp2x:\
    :lf=/var/spool/lpd/necp2x/log:\
    :af=/var/spool/lpd/necp2x/acct:\
    :mx#0:\
    :sh:
#
necp2x6|necp2x6.upp;r=360x360;q=medium;c=mono;p=a4;m=auto:\
    :lp=/dev:lp0:\
    :if=/usr/local/apsfilter-7.2.2/etc/apsfilter/basedir/bin/apsfilter:\

    :sd=/var/spool/lpd/necp2x6:\
    :lf=/var/spool/lpd/necp2x6/log:\
    :af=/var/spool/lpd/necp2x6/acct:\
    :mx#0:\
    :sh:
#
hpdj940|ijs/DESKJET_940;r=720x720;q=high;c=full;p=a4;m=auto:\
    :lp=/dev:lp0:\
    :if=/usr/local/apsfilter-7.2.2/etc/apsfilter/basedir/bin/apsfilter:\

    :sd=/var/spool/lpd/hpdj940:\
    :lf=/var/spool/lpd/hpdj940/log:\
    :af=/var/spool/lpd/hpdj940/acct:\
    :mx#0:\
    :sh:

After a "lpc restart all" under root login, I tried to print under user
login a text file with
"lpr -Pnecp2x toto.txt" and I got the following message :

    lpr: cannot create /var/spool/lpd/necp2x/.seq

This problem was solved (under root login) with "chmod 777" on the
directory "./necp2x/"
and I created an empty file ".seq" in the directory "necp2x" with the
status "rw" for everybody.
Same things for the directories "necp2x6/" and "hpdj940/". How to
explain the above message
of lpr ? Did I apply the right method in order to suppress problem ? But
now, I have an other
message after "lpr -Pnecp2x toto.txt" :

    lpr: connect: Connection refused
    jobs queued, but cannot start daemon.

A "lpc status" gives :

    necp2x:
                queuing is enabled
                printing is enabled
                1 entry in spool area
                no daemon present
    necp2x6:
                queuing is enabled
                printing is enabled
                no entries
                no daemon present
    hpdj940:
                queuing is enabled
                printing is enabled
                no entries
                no daemon present

A "lpq -Pnecp2x" gives :

    Rank    Owner    Job    Files    Total Size
    1st        pt            13     toto.txt    123

The printing job can be deleted with "lprm -Pnecp2x 13". To print on the
hpdj940
restitute the same problem.
A precision perharps usefull : lpr, lpq, lpc, lprm are in the group "lp"
and the owner is "root",
as defined during the Slack install. The daemon lpd is in the group
"root".

So, it seems to me that there is a problem :-). From all these above
informations, can
you explain why it does not work ? Why is the daemon not started after
"lpr" ? The
daemon "lpd" is well started when linux is booting. After "killall lpd"
and "lpd" under
root login, this is the same problem.
About the printcap file, the parameter "if=" has the same definition for
all the printers. Is it
normal ?
Is it a problem located in apsfilter, in ghostscript or in linux lpd ?

To my mind, it is easier to use a remote postscript printer than to use
a local non-ps
printer :-). This is my experience at my work !

Thanks for all if you can help me :-)
If you need more informations to help you, no problem

Pascal Thevenet
a french linux user ;-)