home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / protocol / appletal / 4344 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  14.6 KB

  1. Path: sparky!uunet!munnari.oz.au!munnari.oz.au!not-for-mail
  2. From: djh@munnari.OZ.AU (David Hornsby)
  3. Newsgroups: comp.protocols.appletalk
  4. Subject: CAP 6.0 Frequently Asked Questions
  5. Date: 7 Jan 1993 14:36:09 +1100
  6. Organization: University of Melbourne
  7. Lines: 381
  8. Message-ID: <1ig8f9INNkhq@munnari.OZ.AU>
  9. NNTP-Posting-Host: munnari.oz.au
  10.  
  11.  
  12. CAP FAQ
  13. -------
  14. Last update:
  15. Thu Jan  7 14:30:39 EST 1993
  16.  
  17.  
  18. > What is CAP ?
  19.  
  20. The Columbia AppleTalk Package (CAP) implements the AppleTalk protocol
  21. stack on a variety of UNIX machines.  The main applications provide an
  22. AppleShare 2.0 compatible server (aufs), a LaserWriter Spooler (lwsrv)
  23. and a program to print to LaserWriters (papif).  The latter can be used
  24. to talk to EtherTalk LaserWriters, LocalTalk LaserWriters used on Dayna
  25. EtherPrint cards or on a LocalTalk/EtherTalk gateway.  There are also a
  26. number of contributed packages bundled with CAP (see cap60/contrib).
  27.  
  28.  
  29.  
  30. > What extra hardware is required for CAP ?
  31.  
  32. On a SUN or ULTRIX machine, CAP can speak Phase 1 or Phase 2 EtherTalk
  33. packets using packet filters based on the Stanford ENET model.  Where
  34. available, CAP can also use Kernel based AppleTalk or run the UNIX
  35. AppleTalk Bridge (UAB) to act as a gateway.  On other UNIX boxes you
  36. need to have a gateway that can translate IPTalk packets.  Suitable
  37. candidates are Shiva FastPath, Cayman GatorBox or Webster MultiPort Gateway.
  38.  
  39.  
  40.  
  41. > What machines will CAP run on ?
  42.  
  43. The CAP Configure script has specific support for the following
  44. Operating Systems:
  45.  
  46.     sunos - SUN SunOS
  47.     ultrixnn - DEC Ultrix 1.2, 2.0, 4.N
  48.     irix - Silicon Graphics IRIS/IRIX
  49.     aix - IBM AIX System V
  50.     hpux - HP HP-UX 8.0
  51.     uts - Amdahl UTS
  52.     aux - Apple A/UX 2.0
  53.     encore - Encore MultiMax BSD
  54.     pyr - Pyramid (BSD Universe)
  55.     next - NeXT/MACH
  56.     dynix - Sequent Balance
  57.     newsos - Sony NEWS
  58.     bsd - BSD 4.2, 4.3
  59.  
  60.  
  61.  
  62. > What is the current CAP version ?
  63.  
  64. CAP is at version 6.0 with (currently) 126 patches to be applied, most of
  65. which add extra functionality to the original.  To determine the current
  66. patch level of your sources, check the cap60/README file for a line of
  67. the form
  68.  
  69.     o CAP Distribution 6.0, Patch Level 126, July 1992
  70.  
  71.  
  72.  
  73. > Where can I get CAP ?
  74.  
  75. CAP can be obtained by anonymous FTP from
  76.  
  77. rutgers.EDU        src/{cap60.tar.Z,cap60.patches/*}
  78. munnari.OZ.AU        mac/{cap60.tar.Z,cap.patches/*}
  79. gatekeeper.DEC.COM    pub/net/appletalk/cap/{cap60.tar.Z,cap.patches/*}
  80. ftp.kuis.kyoto-u.AC.JP    net/cap/{cap60.tar.Z,cap60.patches/*.Z}
  81. src.doc.ic.AC.UK    mac/multigate/{cap60.tar.Z,cap.patches/*}
  82.  
  83. Please choose an appropriate site and an off-peak time for the transfer.
  84.  
  85. The patches are available individually or as the files "patches.1-75.tar.Z",
  86. "patches.76-100.tar.Z" and "patches.101-126.tar.Z". Additionally, for new
  87. users, a partially patched source file is available as "cap60.pl100.tar.Z"
  88. (beware: the file cap60.tar.Z is totally unpatched).
  89.  
  90.  
  91.  
  92. > How do I apply the patches ?
  93.  
  94. To make the process of patching easier, you should get the 'patch' utility
  95. written by Larry Wall, it is normally archived at sites that archive
  96. comp.sources.unix in volume7/patch2.
  97.  
  98. For each of the patches, run 'patch -p < cap60.patch0NN' from the top level
  99. cap60 directory, for example, in csh
  100.  
  101.         foreach i (cap60.patches/cap60.patch*)
  102.         patch -p < $i >>& /tmp/patches
  103.         end
  104.  
  105. and check the /tmp/patches file for patching errors (should be none).
  106. To remove the *.orig files that patch leaves behind (containing the original
  107. version of the file), run 'make spotless' from the top level directory (note
  108. that spotless also removes all makefiles so gen.makes needs to be run to
  109. regenerate them).
  110.  
  111.  
  112.  
  113. > I picked up CAP 6.0 from rutgers.edu, but our Unix system administrator
  114. > refuses to install it because there are 74 patches (can't say I blame him)!
  115.  
  116. Sigh. Using the patch program to apply patches requires a minimal amount of
  117. time and energy.  Taking time to install the patch program will pay off for
  118. CAP and other program updates.
  119.  
  120. % date
  121. Sat Mar  7 23:51:05 EST 1992
  122. % touch /tmp/patches
  123. % foreach i (cap60.patches/cap60.patch*)
  124. ? patch -p < $i >>& /tmp/patches
  125. ? end
  126. % grep rej /tmp/patches
  127. % date
  128. Sat Mar  7 23:54:26 EST 1992
  129.  
  130. It took just 3:11 to apply 75 patches to the raw CAP tar source.  The extra
  131. overhead is the time to FTP 3 files, cap60.tar.Z, patches.1-74.tar.Z and
  132. cap60.patch075 and uncompress them.  The total time spent on this ... 0:8:02.
  133.  
  134.  
  135.  
  136. > Is CAP Public Domain ?
  137.  
  138. No, CAP is distributed with the following condition on its use:
  139.  
  140.   Copyright (c) 1986, 1987, 1988, The Trustees of Columbia University in
  141.   the City of New York.  Charlie C. Kim, User Services Group, Academic
  142.   Information Services Division, Libraries and Center for Computing
  143.   Activities and Bill Schilit, formerly of Computer Research Facilities,
  144.   Computer Science Department.
  145.  
  146.   Permission is granted to any individual or institution to use, copy,
  147.   or redistribute this software so long as it is not sold for profit,
  148.   provided that this notice and the original copyright notices are
  149.   retained.  Columbia University makes no representations about the
  150.   suitability of this software for any purpose.  It is provided "as is"
  151.   without express or implied warranty.
  152.  
  153. Some portions of CAP have other copyrights and are suitably marked.
  154.  
  155.  
  156.  
  157. > Is there a version of CAP available that supports Ethertalk Phase 2 ?
  158.  
  159. Phase 2 support was added in CAP 6.0 patches 25, 28 & 35 for SUN NIT, ULTRIX
  160. 4.n and SUN enet driver respectively.
  161.  
  162.  
  163.  
  164. > Can a workstation with 2 ethernet cards running Cap s/w act as a phaseII
  165. > to (phaseI or phaseII) "Gateway"? If so, what patch level of Cap do I need
  166. > to do this?
  167.  
  168. The UNIX AppleTalk Bridge (UAB) is an EtherTalk gateway.  It can handle
  169. multiple ethernet interfaces and gateway between them.  This is its primary
  170. function but it can also be set up to provide CAP services.  But ...
  171.  
  172.  
  173.  
  174. > Does anyone have a patch that will support the phase 2 appletalk protocol
  175. > on UAB (CAP6.0).
  176.  
  177. UAB supports Phase 1 only. 
  178.  
  179.  
  180.  
  181. > Is there any standard way yet of implementing a execute only, copy
  182. > protected CAP AUFS server?
  183.  
  184. The original method of achieving this was to removing read permission from
  185. the data fork of the Application (make it non-zero length if the file is
  186. empty).  The current method involves using the Application Manager added in
  187. patch number 61.  Either of these methods can be circumvented by users who
  188. are either knowledgeable or determined.
  189.  
  190.  
  191.  
  192. > Recently I introduced a new color postscript printer, Tektronix Phaser III
  193. > 4698PXi, under one of the LocalTalks.  It works fine from Macintosh's so I
  194. > tried to use it from papif but failed.
  195.  
  196. CAP uses DDP checksums by default, the checksum code in the Phaser III PXi
  197. and the Apple Personal LaserWriter NTR incorrectly calculate the checksum
  198. value and the packet is dropped. The programs aufs, lwsrv, papif, atis,
  199. atlooklws and tlw now support the -k option to disable CAP checksums on a
  200. per-program basis. To disable CAP checksums completely, add the following
  201. lines to the m4.features file, rerun gen.makes and remake CAP.
  202.  
  203. # + DONT_DOCHKSUM no DDP checksums (Tektronix Phaser III PXi & Apple LW NTR)
  204. define(`specialcflags',concat(specialcflags,` -DDONT_DOCHKSUM'))
  205. #
  206.  
  207. No other code changes are necessary.
  208.  
  209.  
  210.  
  211. > We've just upgraded our DECstations to version 4.2 of ULTRIX, and our CAP
  212. > distribution very neatly broke.
  213.  
  214. You need to obtain the net_common.o and pfilt.o patches from Digital's
  215. Customer Support (also for ULTRIX 4.2A).  Do not turn on the ifconfig
  216. copyall (stop-gap measure previously suggested on the net).  Do not define
  217. ULT42PFBUG in m4.features.
  218.  
  219.  
  220.  
  221. > Does anybody know if the packet-filter patches that were necessary
  222. > to make CAP work under Ultrix 4.2 are built into Ultrix 4.3?
  223.  
  224. CAP under Ultrix 4.3 does not require the packet filter kernel patches.
  225. Do not turn on the ifconfig copyall (stop-gap measure previously suggested
  226. on the net).  Do not define ULT42PFBUG in m4.features.  See also the file
  227. /pub/DEC/ultrix-faq.txt on gatekeeper.dec.com
  228.  
  229.  
  230.  
  231. > When we run aarpd with a command like:
  232. >      aarpd pf0 our_zone
  233. > the daemon doesn't start & we get the message 'failed to start ZIS listener'.
  234.  
  235. This means that something has been allocated the UPD port 774 (768+6)
  236. by 'portmap'. You can check this with the command 'rpcinfo -p'.
  237.  
  238. There are two solutions, break 'start-cap-servers' into two so that aarpd
  239. and atis is started before portmap. Alternatively, and preferably, install
  240. the NIC assigned port numbers into /etc/services. See the doc in the file
  241. cap60/doc/install.ms for more details.
  242.  
  243.  
  244.  
  245. > I have installed the enet driver. But aarpd won't start successfully.
  246. > Instead the following error message is being printed.
  247. > unix!: # aarpd le0 EtherTalk
  248. > open: /dev/enetXX: No such file or directory
  249.  
  250. The ENET drivers use devices of the form enet0, enet1 etc. Replace the
  251. string "le0" with "enet0".
  252.  
  253.  
  254.  
  255. > I tried to run aarpd, and what happened was:
  256. > /dev/nit: Permission denied
  257. > I also tried to do a chmod 777 /dev/nit, to no avail.
  258.  
  259. In addition to requiring the device node, /dev/nit, you have to make sure
  260. your kernel has the NIT driver support in it.  Here's what it looks like in
  261. the GENERIC configuration file for SunOS 4.1.1 (/sys/sun4c/conf/GENERIC):
  262.  
  263. #
  264. # The following are for streams NIT support.  NIT is used by
  265. # etherfind, traffic, rarpd, and ndbootd.  As a rule of thumb,
  266. # NIT is almost always needed on a server and almost never
  267. # needed on a diskless client.
  268. #
  269. pseudo-device   snit            # streams NIT
  270. pseudo-device   pf              # packet filter
  271. pseudo-device   nbuf            # NIT buffering module
  272.  
  273. #
  274. # The following is for the "clone" device, used with streams devices.
  275. # This is required if you include streams NIT support, RFS, or an audio
  276. # device.
  277. #
  278. pseudo-device   clone           # clone device
  279.  
  280. If your kernel configuration doesn't have these pseudo-devices included,
  281. add them, rebuild (config and make) your kernel, and reboot.
  282.  
  283.  
  284.  
  285. > We're running CAP with Native EtherTalk on a network without a router.
  286. > atlook doesn't show our LaserWriter IIg and getzones fails with
  287. > error -1096 getting zone list
  288.  
  289. Zone names are the responsibility of AppleTalk routers. Without a router,
  290. there are no zones defined for the network and the zone name field in NBP
  291. lookup packets must be * (or nothing at all). To use CAP with Native
  292. EtherTalk in this situation, start 'aarpd' with "*" as the zone name,
  293. any other zone name string may cause the lookup packet to be dropped.
  294.  
  295.  
  296.  
  297. > I had problems with the top level CAP folder losing icon positions.
  298. > I thought I solved it by creating .finderinfo and .resource dirs in ..,
  299. > and making everything rw for everyone, rwx for everyone but the problem
  300. > remains ...
  301.  
  302. The Mac will not save any Finder Information unless the Volume is owned by
  303. the connected user (so that the AFP "owner bit" is set, Inside AppleTalk,
  304. 2nd edition, page 13-88). The solution with CAP is to setuid the top-level
  305. directory - then anyone with the appropriate UNIX permissions will be able
  306. to save ICON positions etc.
  307.  
  308.  
  309.  
  310. > I need help with IPTalk.
  311.  
  312. Herewith 10 easy steps to installing CAP with IPTalk:
  313.  
  314. 1. Make sure that you have the latest CAP code. If in doubt, FTP the CAP
  315. FAQ file mac/cap.patches/CAP.faq from munnari.OZ.AU. It contains a list of
  316. the sites where CAP is available, please choose the closest site.
  317.  
  318. 2. Run the CAP Configure program, answer all of the questions with the
  319. defaults (by hitting RETURN). Run gen.makes to create the makefiles.
  320.  
  321. 3. Find out the IP address of the CAP host, say 132.45.67.89. This is a 32
  322. bit number represented as four 8-bit quantities written as decimal numbers.
  323. It could also be represented as a hexadecimal number, 0x842d4359. The CAP
  324. host node number is the bottom eight bits of the IP address, written as a
  325. decimal number, in this case 89.
  326.  
  327. 4. Find out the IP address of the IPTalk compatible gateway, such as a
  328. FastPath, GatorBox or MultiPort Gateway, say 132.45.67.90. The "bridge"
  329. node number is the bottom eight bits of the IP address, in this case 90.
  330.  
  331. 5. Check that the top 24-bits of the two IP addresses are identical, in
  332. this case 132.45.67. For simplicity I'll call this the IP subnet number.
  333. If they do not match you have to investigate the atalkad administration
  334. package, or use CAP with Native EtherTalk or one of the AppleTalk routers.
  335.  
  336. 6. Find out the IPTalk network number being used by the gateway. This is
  337. a 16-bit number represented as two 8-bit quantities separated by periods
  338. or a single decimal number. For example 93.57 is 93*256 + 57, or 23865.
  339. Each IPTalk network number is uniquely associated with one IP subnet
  340. number, each IPTalk installation must have a unique network number where
  341. the IP subnets differ.
  342.  
  343. 7. (optional) Check all the other network numbers in use on your network,
  344. make sure that the IPTalk network number is not being used for LocalTalk,
  345. EtherTalk (Phase 1 or Phase 2) or on any other IPTalk network where the
  346. IP subnet numbers differ.
  347.  
  348. 8. Find out the zone name associated with the IPTalk network number. This
  349. may be the same as other zone names on the network but must be identical
  350. to the zone name programmed into the IPTalk gateway. eg: unimelb-CompSci
  351.  
  352. 9. Create a file called /etc/atalk.local using the template provided in
  353. cap60/etc/atalk.local and the UNIX manual entry in cap60/man/atalk.local.5
  354. As a minimum, the file would look like the following, using the numbers
  355. from the examples used above, comment lines start with a '#'
  356.  
  357. # mynet         mynode          myzone
  358. 93.57        89        unimelb-CompSci
  359. # bridgenet     bridgenode      bridgeIP
  360. 93.57        90        132.45.67.90
  361.  
  362. 10. Find out what UDP ports are being used on the IP network. These are
  363. also called the "NIC Assigned" ports. These ports map to AppleTalk socket
  364. numbers and are used to deliver packets to the correct UNIX processes. By
  365. default, CAP will use the ports starting at 768 so that the RTMP socket
  366. number 1 maps to UDP port 769 and the ECHO socket 4 maps to 772. The
  367. official port range starts at 200, so RTMP becomes 201 and ECHO becomes
  368. 204. To ensure that CAP uses the official ports, add the following entries
  369. to the file /etc/services or the NIS database
  370.  
  371. at-rtmp         201/udp
  372. at-nbp          202/udp
  373. at-echo         204/udp
  374. at-zis          206/udp
  375.  
  376. The port numbers should already be defined in the gateway configuration.
  377.  
  378. Continue testing from the [10] Verification step in cap60/doc/install.ms
  379.  
  380. Note: if you are using CAP with Native EtherTalk then ignore all but step 1.
  381. The Native EtherTalk code is able to learn the network configuration. If
  382. you have an /etc/atalk.local file, you should remove it. If there are no
  383. other routers on the network, start aarpd with "*" as the zone name. The
  384. UDP ports are also used in Native EtherTalk, as markers for sockets in use.
  385. If a CAP process has trouble starting the ZIS listener or ECHO or NBP
  386. sockets are unavailable, consider installing the official UDP port entries.
  387.  
  388.  
  389. For more information, see the CAP60.README file in the CAP distribution.
  390.  
  391. Send CAP FAQ contributions to cap@munnari.OZ.AU
  392.