baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: Sindi Keesan <keesan AT iamjlamb.com>
- To: baslinux AT lists.ibiblio.org
- Subject: [BL] printing with lpr
- Date: Sun, 21 Dec 2003 19:09:59 -0500 (EST)
I am trying to get my printer working. It is plugged in properly and
turned on. I installed lpr.tgz and did the three insmods in that order
and typed lpd.
I changed sh to bash in printcap on the line for generic printer. Before
I did this when I tried to print (lpr filename.txt) nothing happened at
all. After this change, the printer feeds a sheet of paper through itself
but does not print.
I typed lpq and it said 'no entries'.
It is HP 540 inkject.
What else do I need to do before I can print text? Do I need to modify
printcap further?
> Ron Clarke wrote:
> >
> > > -----------------
> > > insmod parport
> > > insmod parport_pc
> > > insmod lp
> > > -----------------
> > > Then you start the printer daemon: lpd
> >
> > All done without complaint.
>
> To test that lpd is working (before worrying about the
> filtering), output a text file and see if it prints
> (I assume your printer can print straight text?).
> -------------------
> lpr /etc/login.defs
> -------------------
> If nothing prints, do the following: lpq
>
> > I have left /etc/printcap as is for the moment, set
> > on default. There is only a small choice,
>
> Ghostscript formats the output, so it is ghostscript
> that needs the choices. Do the following to see what
> choices there are in ghostscript:
> ---------
> gs --help
> ---------
>
> > none of which is related to an HP DeskJet 600.
>
> Looks like deskjet or djet500 could be OK. I assume your
> 600 is compatible with 500 codes? Or, if it is color, one
> of those cdj options could be a better choice.
>
> Make a /var/spool/lpd/postscript directory. In that directory,
> you put your filter script (in a file called deskjet.filter).
> The filter will look something like this:
> ' -------------------------------------------------
> ' #!/bin/sh
> ' /usr/bin/gs -q -dSAFER -sDEVICE=deskjet -r180x180
> ' -sPAPERSIZE=letter -sOutputFile=- -
> ' -------------------------------------------------
> All of those parameters should go in one line (I split the
> line to avoid a random wrap). You may also want to change
> the resolution (180x180) and the papersize (letter). Also,
> if you decide to use a different filter, change (deskjet).
>
> Make sure your file script is executable (chmod). Now you
> need to tell /etc/printcap about this filter.
> -------------------------------------------------------
> lp|ps|PS|PostScript:sh:mx#0:\
> :lp=/dev/lp0:\
> :sd=/var/spool/lpd/postscript:\
> :if=/var/spool/lpd/postscript/deskjet.filter:\
> --------------------------------------------------------
> Make sure there are no # in front of those lines (and all
> other lines in printcap do have a #). You should also
> check that your printer actually comes up as lp0 (when
> you do all those insmods). If not, change the lp0 to lp1
> (or whatever comes up).
>
> Have fun. You'll be bloody lucky if this works first time.
>
> Cheers,
> Steven
>
>
>
>
> _______________________________________________
> BasLinux mailing list
> BasLinux AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/baslinux
>
-
[BL] Re: Printing from Abiword in BL2,
Ron Clarke, 12/20/2003
-
Re: [BL] Re: Printing from Abiword in BL2,
3aoo-cvfd, 12/20/2003
-
[BL] printing with lpr,
Sindi Keesan, 12/21/2003
- Re: [BL] printing with lpr, Sindi Keesan, 12/21/2003
-
Re: [BL] printing with lpr,
3aoo-cvfd, 12/21/2003
-
Re: [BL] printing with lpr,
Sindi Keesan, 12/21/2003
-
Re: [BL] printing with lpr,
3aoo-cvfd, 12/22/2003
-
Re: [BL] printing with lpr,
Sindi Keesan, 12/22/2003
- Re: [BL] printing with lpr, 3aoo-cvfd, 12/22/2003
-
Re: [BL] printing with lpr,
Sindi Keesan, 12/22/2003
- Re: [BL] printing with lpr, 3aoo-cvfd, 12/22/2003
- Re: [BL] printing with lpr, Sindi Keesan, 12/22/2003
- Re: [BL] printing with lpr, 3aoo-cvfd, 12/22/2003
-
Re: [BL] printing with lpr,
Sindi Keesan, 12/22/2003
-
Re: [BL] printing with lpr,
3aoo-cvfd, 12/22/2003
-
Re: [BL] printing with lpr,
Sindi Keesan, 12/21/2003
-
[BL] printing with lpr,
Sindi Keesan, 12/21/2003
-
Re: [BL] Re: Printing from Abiword in BL2,
3aoo-cvfd, 12/20/2003
Archive powered by MHonArc 2.6.24.