From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 21 Aug 1996 15:16:40 -0400 From: Ishwar Rattan rattan@cps.cmich.edu Subject: Plan9 and laser printer.. Topicbox-Message-UUID: 4b6213dc-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19960821191640.DFYcCLTLcJROEpfP-2CwzRBJz37TFCeWr8mHA6JvX3g@z> This mail is meant for luther@infinet.com, I can't reach him through our mailer.. ----- Some time ago you gave the following instructions for making a laser printer (LaserWriter) connected to a parallel port work under standalone Plan9. I did make the changes but when I tried `lp doc.ps' the error on screen are rc: /dev/lpt1data: mounted directory forbids creation rc: /dev/lpt1data: mounted directory forbids creation I looked at /dev entries, I found one for lpt2data ---w--w--w- L 1 none none 0 Nov 21 1995 /dev/lpt2data --rw-rw-rw- L 1 none none 0 Nov 21 1995 /dev/lpt2dlr ---w--w--w- L 1 none none 0 Nov 21 1995 /dev/lpt2pcr --r--r--r-- L 1 none none 0 Nov 21 1995 /dev/lpt2psr How can one make the same entries for lpt1? With regards, Ishwar Rattan >I might be able to help you out on this issue, if someone hasn't already. > >1. Edit /sys/lib/lp/devices > a. Uncomment out the entry for "stdout" > b. Uncomment out "pcclone" > c. Uncomment out entry for your laser printer, if there is one. My >printer is a 1200-dpi postscript, so the closest thing is 600 dpi. > >2. mkdir /sys/lib/lp/tmp (don't ask me why; it needs it) > >3. Edit lp.rc (I believe in /sys/src/cmd/lp/lp.rc) and copy to /rc/bin/lp > a. Remove the block referring to bootes near beginning of file. >Don't be afraid, just rip it out! Here's the offending block: >if (! test -r /srv/bootes) srv -m bootes >if (! mount -c /srv/bootes /n/bootesother other || ! bind -a >/n/bootesother/lp /sys/lib/lp) { > echo 'could not properly setup LPSPOOL' >[1=2] > exit 'LPSPOOL setup' >} > >4. Edit $home/lib/profile by adding: > a. LPDEST='pcclone' > b. bind -a '#L2' /dev (you had this one figured out) > >Restart your machine. >That should allow you to print a file such as doc.ps by: >lp doc.ps > >Hope it works for you and that I haven't left a step out. > >Regards, >Luther