9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Aram Hăvărneanu" <aram.h@mgk.ro>
To: 9fans <9fans@9fans.net>
Subject: [9fans] How to set up printing
Date: Sat, 28 Jun 2014 13:01:54 +0200	[thread overview]
Message-ID: <CAEAzY3-16h6Mc7agQCN9sD6-0D+QoVjrPVWtb9_irw279PnCmw@mail.gmail.com> (raw)

I have a networked PostScript printer that speaks LPR.  I have no idea
how to make it work in Plan 9.

I have edited /sys/lib/lp/devices and added:

    # Lexmark X203N
    lexmarkx203n - - x203n - post+600dpi generic lpdspool lpd - -

Of course I can ping x203n.

When I do

    troff -ms /sys/doc/backup.ms | lp -D -dlexmarkx203n

this happens:

    grep '^lexmarkx203n[ ]' /sys/lib/lp/devices
    date
    test -e /sys/lib/lp/log/lexmarkx203n
    bind -b /sys/lib/lp/spooler /bin
    lpdspool
    bind -b /sys/lib/lp/process /bin
    /386/bin/aux/lpdsend -dx203n -tf -Hcwfs64x -Param -
    generic
    cat
    file /tmp/lp107693
    /sys/lib/lp/process/tr2post
    echo ''
    awk -F, '{ n=split($0, a, ","); for (i=1;i<=n;i++) print a[i]; }'
    /sys/lib/lp/process/hpost
    eval /386/bin/aux/tr2post '' '' -c1 '' '' -pp '' '-P''%%Patch from lp
    %%EndPatch from lp
    '''
    date
    /386/bin/aux/tr2post -c1 -pp '-P%%Patch from lp
    %%EndPatch from lp
    '
    awk '{ if(match("cwfs64x", $1)) {print $2; exit}}' /lib/face/.machinelist
    awk '/^cwfs64x\/aram /{print $2}' /lib/face/48x48x8/.dict
    awk '/^cwfs64x\/aram /{print $2}' /lib/face/48x48x4/.dict
    awk '/^cwfs64x\/aram /{print $2}' /lib/face/48x48x2/.dict
    awk '/^cwfs64x\/aram /{print $2}' /lib/face/48x48x1/.dict
    test -f /lib/face/48x48x1/u/unknown.1
    test -r /lib/face/48x48x2/u/unknown.1
    cat
    cat
    cat
    exit ''
    exit
    wait
    rm -f /tmp/lp107693
    exit
    rm -f /tmp/lp107693
    exit
    exit 'lpdspool 107692: |lpdsend 107695: 1'
    exit ''

There is no effect on the printer.

I can use this printer on Linux, BSD and OS X through LPR + generic
postscript driver (no special Lexmark drivers).

What to do?

Thanks,

-- 
Aram Hăvărneanu



             reply	other threads:[~2014-06-28 11:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-28 11:01 Aram Hăvărneanu [this message]
2014-06-28 11:18 ` Aram Hăvărneanu
2014-06-28 11:28   ` Aram Hăvărneanu
2014-06-28 11:29   ` David du Colombier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEAzY3-16h6Mc7agQCN9sD6-0D+QoVjrPVWtb9_irw279PnCmw@mail.gmail.com \
    --to=aram.h@mgk.ro \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).