README.atalk 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Using lpstyl over AppleTalk
  2. ---------------------------
  3. Verison 0.9.9 of lpstyl contains preliminary support for StyleWriters
  4. connected to Ethernet with an "Apple StyleWriter Ethertalk Adapter".
  5. (Apple part number M4877.) This has only been tested with a
  6. StyleWriter 2400 and a 68k machine running NetBSD. I'd be interested
  7. in the results people with other printer types and/or little-endian
  8. machines get with this code.
  9. I'd also like to find out whether this code will work with the
  10. "Farallon EtherMac iPrint Adapter SL", which is another device that
  11. performs a similar if not identical function and looks very similar
  12. to the Apple device (appears to be the same plastics), but is still
  13. in production. (I'm pretty sure the Apple device has been
  14. discontinued.) If you try this code out with one of these things,
  15. _please_ let me know what happens.
  16. You'll have to do a number of things to set this up:
  17. 1) Make sure netatalk is installed on your machine and compiled into the
  18. kernel.
  19. 2) Make sure your machine is set up to communicate over AppleTalk. This
  20. is a bit complex, and full instructions are included with the
  21. netatalk package. atalkd should be running, 'ifconfig -a' should
  22. show an AppleTalk address bound to your Ethernet interface(s),
  23. and 'netstat -r' should show some AppleTalk routes.
  24. 3) Find out where the atalk headers and libraries are installed.
  25. (The included makefile assumes they are in
  26. /usr/local/include/atalk/ and /usr/local/lib, respectively.)
  27. 4) Set up your printer and Ethernet adapter, and attach them to the
  28. network. You may want to use the MacOS driver to set the name
  29. of the printer to something reasonable. In the examples here,
  30. the printer is a StyleWriter 2400 with the name "PaperShredder".
  31. 5) Find out your printer's nbp name. This can be done with the
  32. netatalk tool 'nbplkup'. It will give you a number of lines of
  33. output, one of which contains the name you gave your printer.
  34. On my system, this line is:
  35. PaperShredder:ColorStyleWriter2400AT 65280.1:129
  36. 6) Compile and install a version of lpstyl with AppleTalk support.
  37. The easiest way to do this is to use the Makefile.atalk included
  38. with the package. Copy it to 'Makefile' and do 'make lpstyl'.
  39. Note that a version compiled with AppleTalk support will still be
  40. able to print to serial connections.
  41. 7) Install lpstyl and the driver scripts as usual. Modify the printcap
  42. entry you want to use so that it points to one of the *-atalk scripts,
  43. and change the name of the AppleTalk device in that script to
  44. the name you retrieved in step 5.
  45. That should be it. Try printing something. If it doesn't work, add
  46. '-vvvvv' to the lpstyl invocation in the script you're using and examine
  47. the results in lpd-errs. If they're not self-explanatory, send me mail
  48. and we'll try and figure it out.
  49. -- Monroe Williams a.k.a. monroe@pobox.com --
  50. Copyright 1996-2000 Monroe Williams, all rights reserved.