Linux 偱 CAP 傪巊偆 mini-HOWTO

塹摗惤巌

seto@slip.net

侾俋俋俈擭俆寧侾俀擔

CAP 偲偼丄The Columbia AppleTalk Package 偺棯徧偱丄堦尵偱尵偆偲 Unix
Box 偵儅僢僋偺捠怣僾儘僩僐儖偱偁傞 AppleTalk 傪棟夝偝偣傞僜僼僩僂僃傾偱
偁傞丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

Table of Contents
1. 柶愑
2. CAP 偲偼丠
3. 僜乕僗偺庢摼偲僐儞僷僀儖
4. CAP 偺僐儞億乕僱儞僩
5. CAP 偺婲摦
6. 僼傽僀儖丒僒乕僶偺峔抸
7. 僾儕儞僞丒僒乕僶偺峔抸
8. 嵟屻偵
9. 嶲峫暥專

1. 柶愑

偙偺暥彂偺撪梕偼丄惓偟偄庤弴偺嶌嬈偺忋偱偺傒怣棅偱偒傞傕偺偵側傞偲巚傢
傟傞偑丄偙偺暥彂偺撪梕偵婲場偡傞懝奞偑弌偨偲偟偰傕偦偺愑擟偼丄挊幰偵偼
側偄偲偄偆偙偲傪彸戻偟偰偍偄偰偄偨偩偒偨偄丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

2. CAP 偲偼丠

CAP 偲偼丄The Columbia AppleTalk Package 偺棯徧偱丄堦尵偱尵偆偲 Unix
Box 偵儅僢僋偺捠怣僾儘僩僐儖偱偁傞 AppleTalk 傪棟夝偝偣傞僜僼僩僂僃傾偱
偁傞丅傑偨柤慜偐傜傕暘偐傞傛偆偵丄偙偺僜僼僩僂僃傾偼丄僐儘儞價傾戝妛偵
傛偭偰奐敪偝傟偨傕偺偱偁傞丅偦傟偱偙偺僷僢働乕僕傪巊偭偰壗偑偱偒傞偺偐
偲偄偆偲丄傑偢儅僢僋偺偨傔偺僼傽僀儖丒僒乕僶偺峔抸丄AppleTalk 傪巊偭偨
僾儕儞僞丒僒乕僶偺峔抸丄儅僢僋丒儚乕僋僗僥乕僔儑儞偲偺僀儞僞儔僋僥傿僽
側捠怣丄Post Script 僾儕儞僞傊偺僾儕儞僩丒僕儑僽偺憲怣丄偦偟偰
PostScript 僾儕儞僞偲偺僀儞僞儔僋僥傿僽側捠怣側偳偑偁傞丅屄恖揑偵昅幰偼
丄僾儕儞僞偲偺憃曽岦偱偺傗傝偲傝偑偱偒傞偲偄偆揰偱丄嵟屻偺 Post Script
僾儕儞僞偲偺僀儞僞儔僋僥傿僽側捠怣偲偄偆偺偵旕忢偵巪枴傪姶偠傞丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

3. 僜乕僗偺庢摼偲僐儞僷僀儖

偁偄偵偔 CAP 偼丄僶僀僫儕偱偺攝晍偼峴傢傟偰偄側偄偨傔丄奺帺僜乕僗傪僟僂
儞儘乕僪偟丄僐儞僷僀儖偟側偗傟偽側傜側偄丅CAP 偺僜乕僗偼丄條乆側僒僀僩
偐傜 FTP 傪巊偭偰僟僂儞儘乕僪偱偒傞丅師偵帵偡僒僀僩偼丄傎傫偺堦椺偵偡偓
側偄丗

劇劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劉
劆   ftp://munnari.OZ.AU/mac                                          劆
劆   ftp://gatekeeper.DEC.COM/pub/net/appletalk/cap                   劆
劆   ftp://ftp.kuis.kyoto-u.AC.JP/net/cap                             劆
劆   ftp://ftp.crl.go.jp/archives/mac/kdd-mac/Network/cap60           劆
劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊

傑偢丄忋婰偺僒僀僩偐傜 cap60.plNNN.tar.Z 傪庢摼偟丄夝搥偡傞:

   # compress -d cap60.plNNN.tar.Z                                     
   # tar xf cap60.plNNN.tar                                            

尰嵼 cap60.patch198 傑偱偺僷僢僠偑弌偰偄傞偺偱丄偦傟傜傪巊偭偰僷僢僠儗
儀儖傪忋偘傞丅屄乆偺僷僢僠偵偮偄偰偼丄cap60 偺嵞忋埵偺僨傿儗僋僩儕偱丗

   # patch -p < cap60.patchNNN                                         

偲偡傞偺偩偑丄CAP 偵偼丄慜偵傕弎傋偨傛偆偵旕忢偵偨偔偝傫偺僷僢僠偑弌偰
偄傞偨傔丄師偺傛偆側僗僋儕僾僩偱懳墳偡傞丗

   #!/bin/zsh                                                          
   setopt numeric_glob_sort                                            
   for i in cap60.patches/cap60.patch*                                 
   patch -p < $i >>& /tmp/patches                                      

偝傜偵 Linux 梡僷僢僠 linux.iptalk.patch 傪摉偰傞丅偙傟偱僐儞僷僀儖偱偒
傞忬懺偵側偭偨偼偢偩丅傑偢

   # ./Configure                                                       

偲偟偰撈帺偺僔僗僥儉偺娐嫬偵崌傢偣傞丅偙偙偱偼丄僾儘僌儔儉偑偄傠偄傠偲
暦偄偰偔傞偑丄僨僼僅儖僩偺傑傑偱戝忎晇偺傛偆偩丅師偵埲壓偺僐儅儞僪偱丄
奺僨傿儗僋僩儕枅偺 Makefile 傪嶌傞丗

   # ./gen.makes                                                       

偝傜偵

   # make include                                                      

偱僿僢僟僼傽僀儖傪僀儞僗僩乕儖偡傞丅偦偟偰

   # make libsmade                                                     

偲偟丄CAP 梡儔僀僽儔儕偺惗惉偵庢傝妡偐傞丅偦傟偑廔偭偨傜杮戣偺 CAP 奺庬
僾儘僌儔儉偺僐儞僷僀儖偩丅

   # make programs                                                     

堦墳壗傕側偗傟偽丄偡傫側傝偲僐儞僷僀儖偟偰偔傟傞偼偢偩丅嵟屻偵

   # make install                                                      

偲偟丄奺庬僾儘僌儔儉傪僀儞僗僩乕儖偡傞丅偡傞偲 /usr/local/cap偲偄偆僨傿
儗僋僩儕偵 make 偱嶌傜傟偨僾儘僌儔儉孮偑抲偐傟傞丅傑偨 IPTalk 傪巊梡偡
傞応崌偵偼丄/etc/servives 偵 NIC 偺愝掕偵懳偡傞師偺僄儞僩儕傪朰傟偢偵峴
側偭偰偍偙偆丗

  at-rtmp   201/udp                                                    
  at-nbp    202/udp                                                    
  at-echo   204/udp                                                    
  at-zis    206/udp                                                    

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

4. CAP 偺僐儞億乕僱儞僩

師偵昅幰偺 CAP 偺僨傿儗僋僩儕傪徯夘偟傛偆丅

  /usr/local/cap                                                        
  ./          ash         atlooklws   capd        iwpr        papof*    
  ../         atis        atpinger    getzones    lwpr        papstatus 
  .banner     atistest    aufs        instappl    ntxjif*     rc.cap*   
  afpvols     atlook      canonif*    isrv        papif*      tlw       

    拲堄: * 報偺晅偄偰偄側偄僼傽僀儖偼丄make install 傪偟偨屻偵帺摦揑偵
    抲偐傟傞傕偺偱丄* 報偺晅偄偨僼傽僀儖偼屻偐傜僐儞僷僀儖偟丄帩偭偰偒
    偨傕偺丄偁傞偄偼帺暘偱嶌惉偟偨傕偺偱偁傞丅
   
埲壓偼丄奺乆偺僼傽僀儖偵偮偄偰偺愢柧偱偁傞丗

劇劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劉
劆  .banner   ... 僶僫乕丒僼傽僀儖丅                                          劆
劆  afpvaols* ... aufs 傪婲摦偡傞嵺偵巊偆僐儞僼傿僊儏儗乕僔儑儞丒僼傽僀儖丅   劆
劆  ash       ... AppleShare 僒乕僶乕傊偺儘僌僀儞傗懳榖揑側捠怣傪壜擻偵偡     劆
劆                傞僾儘僌儔儉丅                                              劆
劆  atis      ... AppleTalk Information Server 偺棯偱丄AppleTalk 偱偺捠怣     劆
劆                傪壜擻偵偡傞丅                                              劆
劆  atistest  ... atis 偑惓忢偵摦偄偰偄傞偐偳偆偐傪専徹偡傞僾儘僌儔儉丅       劆
劆  atlook    ... 僝乕儞撪偱偺僒乕價僗傪堦棗昞帵偡傞僾儘僌儔儉丅              劆
劆  atlooklws ... 僝乕儞撪偱偺 LaserWriter 傪堦棗昞帵偡傞僾儘僌儔儉丅         劆
劆  atpinger  ... 僝乕儞撪偺僒乕價僗偵懳偟偰 ping 傪峴側偄丄偦傟傜偺僒乕價    劆
劆                僗偺忬懺傪挷傋傞僾儘僌儔儉丅                                劆
劆  aufs*     ... AppleTalk file protocol UNIX File Server丅AppleShare 僒乕   劆
劆                僶乕傪峔抸偡傞僾儘僌儔儉丅                                  劆
劆  canonif*  ... 擟堄偺僾儕儞僞偵懳偡傞僼傿儖僞丅                            劆
劆  capd      ... CAP 僨乕儌儞丅奺婡婍偺暔棟揑傾僪儗僗傪僀儞僞僾儕僢僩偡傞丅  劆
劆  getzones  ... 傾僋僙僗偱偒傞僝乕儞傪堦棗昞帵偡傞僾儘僌儔儉丅              劆
劆  instappl  ... 傾僾儕働乕僔儑儞傪僀儞僗僩乕儖偡傞嵺偵巊傢傟傞傜偟偄偺偩    劆
劆                偑丄昅幰偼丄巊梡偟偨偙偲偑側偄偺偱暘偐傜側偄丅              劆
劆  isrv      ... printcap 偵搊榐偝傟偰偄傞僾儕儞僞偵懳偟偰報嶞暔傪弌椡偡傞   劆
劆                嵺偵梡偄傞僐儅儞僪丅                                        劆
劆  iwpr      ... printcap 偵搊榐偝傟偰偄側偄僾儕儞僞偵懳偟偰報嶞暔傪弌椡偡   劆
劆                傞嵺偵梡偄傞僐儅儞僪丅                                      劆
劆  ntxjif*   ... 擟堄偺僾儕儞僞偵懳偡傞僼傿儖僞丅                            劆
劆  papif*    ... LaserWriter 僾儕儞僞梡擖椡乛捠怣僼傿儖僞丅                  劆
劆  papof*    ... LaserWriter 僾儕儞僞梡弌椡乛僶僫乕丒僼傿儖僞丅              劆
劆  papstatus ... 僾儕儞僞偺報嶞忬懺傪尒傞僾儘僌儔儉傜偟偄偺偩偑丄昅幰偵偼丄  劆
劆                巊梡曽朄偑暘偐傜側偄丅                                      劆
劆  rc.cap*   ... CAP 傪婲摦偡傞嵺偵梡偄傞僗僋儕僾僩丅                        劆
劆  tlw       ... 摿掕偺 LaserWriter 偵傾僋僙僗偟丄PostScript 僀儞僞僾儕僞    劆
劆                傪婲摦偡傞偙偲偺偱偒傞僾儘僌儔儉丅                          劆
劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊

側偍慜弎偺傛偆偵堦楢偺 make 偩偗偱偼丄aufs丄papif丄papof 側偳偺僾儘僌儔
儉傗僼傿儖僞偼丄僐儞僷僀儖丄僀儞僗僩乕儖偟偰偔傟側偄偺偱丄屻偵帺傜
CAP60 偺嵞忋埵僨傿儗僋僩儕 /applications 偺壓偺 aufs 傗 papif 偺僨傿儗
僋僩儕偺拞偱丄奺僾儘僌儔儉傪僐儞僷僀儖偟偰 /usr/local/cap 偺僨傿儗僋僩
儕偵偦傟傜偺僼傽僀儖傪帩偭偰棃側偗傟偽側傜側偄丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

5. CAP 偺婲摦

CAP 偺婲摦偼丄庤摦偱峴側偭偰傕傛偄偺偩偑丄埲壓偺傛偆側僗僋儕僾僩偱婲摦
偝偣傞偲曋棙偱偁傞丅

/etc/rc.d/rc.local 偵師偺傛偆側僗僥乕僩儊儞僩傪壛偊傞:

  #                                                                    
  # start AppleShare server                                            
  #                                                                    
  if [ -f /usr/local/cap/rc.cap ]; then                                
      /usr/local/cap/rc.cap                                            
  fi                                                                   
  #----End of /etc/rc.d/rc.local----                                   

# /usr/local/cap/rc.cap :

  #!/bin/sh                                                            
                                                                       
  echo "CAP server starting."                                          
  /usr/local/cap/capd eth0 "hogehoge zone"                             
  /usr/local/cap/atis                                                  
  /usr/local/cap/aufs -l /var/log/aufs.log -n `hostname` \             
                -U 10 -G guest -V /usr/local/cap/afpvols               
  #----End of /usr/local/cap/rc.cap----                                

CAP 僨乕儌儞傪婲摦偝偣傞 capd 僐儅儞僪偼丄戞堦堷悢偵僱僢僩儚乕僋丒僀儞
僞乕僼僃乕僗偺僨僶僀僗柤丄戞擇堷悢偼丄CAP 傪摦偐偟偨偄僝乕儞柤傪巜掕偡
傞丅偙偺応崌丄僱僢僩儚乕僋丒僀儞僞乕僼僃乕僗偵懳偡傞僨僶僀僗柤偼丄eth0
丄僝乕儞柤偼丄hogehoge zone 偲側偭偰偄傞偑丄奺帺偺娐嫬偵崌傢偣偰曄偊偰
偄偨偩偒偨偄丅側偍僝乕儞柤偺拞偵僗儁乕僗偑擖偭偰偄傞応崌偼丄忋婰偺傛偆
偵 " 乮僟僽儖丒僋僅乕僥乕僔儑儞乯偱埻傫偱婰弎偡傞丅僾儘儞僾僩偑曉偭偰偒
偨傜丄惉岟偲偄偆偙偲偱偁傞丅偝傜偵偙偺僐儅儞僪傪敪峴偡傞偲 /etc 偺僨傿
儗僋僩儕偵 etalk.local 偲偄偆 EtherTalk 偺僟僀僫儈僢僋丒僐儞僼傿僊儏儗
乕僔儑儞丒僼傽僀儖偑偱偒傞丅偙傟傕惉岟偺栚埨偵偡傞丅

etalk.local 僼傽僀儖偺椺丗

  #                                                                    
  # EtherTalk dynamic configuration data                               
  #                                                                    
  # Last update:  Tue Apr 29 18:20:44 1997                             
  #                                                                    
  # Generated by Kernel AppleTalk                                      
  #                                                                    
  interface       "eth0"                                               
  netRangeStart   15.160                                               
  netRangeEnd     15.160                                               
  thisNet         15.160                                               
  thisNode        52                                                   
  thisZone        "hogehoge zone"                                      
  bridgeNet       15.160                                               
  bridgeNode      167                                                  
  bridgeIP        127.0.0.1                                            
  nisNet          15.160                                               
  nisNode         52                                                   
  asyncNet         0.00                                                
  asyncZone       ""                                                   
  # ----End of etalk.local----                                         

側偍 /usr/local/cap/rc.cap 僼傽僀儖偺拞偺 aufs 僐儅儞僪偵偮偄偰偼丄屻弎
偺乽僼傽僀儖丒僒乕僶偺峔抸乿偺崁偱愢柧偡傞丅師偵 atis 偑丄惓忢偵摦偄偰
偄傞偐偳偆偐傪 atistest 偲偄偆僐儅儞僪傪巊偭偰専徹偡傞丅師偺傛偆側弌椡
偑偁傟偽丄惓忢偵摦偄偰偄傞偲偄偆偙偲偩丅

劇劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劉
劆  # atistest                                                          劆
劆  CAP distribution 6.00 using Kernel Based EtherTalk encapsulation,   劆
劆  June 1996 Copyright (c) 1986,1987,1988 by The Trustees of Columbia  劆
劆  University in the City of New York                                  劆
劆                                                                      劆
劆  abInit: [ddp:  15.160, 136], [GW:  15.160, 165] starting            劆
劆  debugging NBP                                                       劆
劆  Registering "atis test:testing@*"                                   劆
劆  NBP SndNBP: sending                                                 劆
劆  NBP nbp_timeout: 4 tick timeout on -1073743660, 3 remain            劆
劆  NBP SndNBP: sending                                                 劆
劆  NBP nbp_timeout: 4 tick timeout on -1073743660, 2 remain            劆
劆  NBP SndNBP: sending                                                 劆
劆  NBP nbp_timeout: 4 tick timeout on -1073743660, 1 remain            劆
劆  NBP SndNBP: sending                                                 劆
劆  NBP nbp_timeout: 4 tick timeout on -1073743660, 0 remain            劆
劆  NBP SndNBP: sending                                                 劆
劆  NBP status done: found -1073743660                                  劆
劆  Okay                                                                劆
劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊

偝偰偙傟偱奺庬 CAP 僾儘僌儔儉傪憱傜偣傞偨傔偺偍慥棫偰偑偱偒偨栿偩丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

6. 僼傽僀儖丒僒乕僶偺峔抸

崱搙偼丄儅僢僋梡僼傽僀儖丒僒乕僶偺峔抸偱偁傞丅偙傟傪峴側偆偵偼丄 aufs
偲偄偆僐儅儞僪傪梡偄傞丅

  # aufs -l /var/log/aufs.log -n `hostname` -U 10 -G guest \           
          -V /usr/local/cap/afpvols                                    

aufs 偵偼丄20掱偺僐儅儞僪丒僆僾僔儑儞偑偁傞偑丄晛捠巊偆偺偼丄忋婰偺僗僥
乕僩儊儞僩偺拞偱巊偭偰偄傞傕偺偖傜偄偱偁傠偆丅埲壓偵奺僆僾僔儑儞偵偮偄
偰偺愢柧傪帵偡丗

劇劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劉
劆  -l ... 儘僌丒僼傽僀儖柤傪巜掕偡傞乮僨僼僅儖僩偼.log 乯            劆
劆  -n ... 僒乕僶柤傪巜掕偡傞丅僨僼僅儖僩偼丄 Aufs丅                  劆
劆  -U ... 堦搙偵峴側偊傞僙僢僔儑儞偺悢傪巜掕偡傞丅                   劆
劆  -G ... 僎僗僩丒儘僌僀儞傪嫋壜偡傞丅偙偺応崌丄僒乕僶懁偵           劆
劆         guest 傾僇僂儞僩偑昁梫偱偁傞丅                             劆
劆  -V ... 傾僋僙僗偡傞儃儕儏乕儉傪婰弎偟偰偍偔僼傽僀儖柤傪巜掕       劆
劆         偡傞丅                                                     劆
劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊

afpvols 僼傽僀儖偺椺丗

  #                                                                    
  # This is an example of Apple Filing Protocol Volume file.           
  #                                                                    
  # Format:                                                            
  #  path:volume name[:password][:]                                    
  #                                                                    
                                                                       
  /home/guest:Guest::                                                  
  /home/seiji:Seiji:xxxxx:                                             
  # ---- End of afpvols ----                                           

AppleShare 僒乕僶偑棫偪忋偑傞偲儅僢僋偺乽僙儗僋僞丒僟僀傾儘僌乿偺乽僼傽
僀儖僒乕僶偺慖戰乿偺儕僗僩丒儃僢僋僗偵僒乕僶柤偑尰傟傞偼偢偱偁傞丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

7. 僾儕儞僞丒僒乕僶偺峔抸

偝偰崱搙偼丄僾儕儞僞丒僒乕僶偺峔抸偱偁傞丅偙傟偼丄CAP 偲 lpd 偺慻傒崌傢
偣偱丄僝乕儞撪偺 AppleTalk 偱宷偑偭偰偄傞 PostScript 僾儕儞僞偵帺桼偵僾
儕儞僩丒僕儑僽傪憲傞偲偄偆傕偺偱偁傞丅偝傜偵 lpd 偺儕儌乕僩婡擻傪巊偊偽
丄CAP 偑僀儞僗僩乕儖偝傟偰偄側偄 Unix Box 偐傜偱傕丄CAP 偑僀儞僗僩乕儖
偝傟偰偄傞 Linux Box 宱桼偱僾儕儞僩丒僕儑僽傪 PostScript 僾儕儞僞偵憲傞
偙偲偑偱偒傞丅傑偢嵟弶偵 atlooklws 偲偄偆僐儅儞僪偱摿掕偺僝乕儞偺拞偱巊
梡偱偒傞 PostScript 僾儕儞僞傪堦棗昞帵偝偣偰傒傛偆丅埲壓偺傛偆側弌椡偑
摼傜傟傞偼偢偩丅

  # atlooklws "hogehoge zone"                                                   
                                                                                
  abInit: [ddp:  15.160, 228], [GW:  15.160, 167] starting                      
  Looking for =:LaserWriter@SJ TW 8 ...                                         
    1 - ATM Dev IIg:LaserWriter@*                [Net: 15.161 Node: 83 Skt:191] 
  ---status: idle                                                               
  Address confirmed for socket 191                                              
    2 - Apple LaserWriter IINTX_J:LaserWriter@*  [Net: 15.161 Node:221 Skt:169] 
  ---status: idle                                                               
  Address confirmed for socket 169                                              
    3 - Canon Lasershot B406GII_J:LaserWriter@*  [Net: 15.161 Node:202 Skt:128] 
  ---status: idle                                                               
  Address confirmed for socket 128                                              
    4 - Centaur (fonts LWII-NTX):LaserWriter@*   [Net: 15.161 Node:153 Skt:234] 
  ---status: idle                                                               
  Address confirmed for socket 234                                              
    5 - Cheque:LaserWriter@*                     [Net: 15.161 Node:167 Skt:191] 
  ---status: idle                                                               
  Address confirmed for socket 191                                              
    6 - EPSON LP-8200PS2:LaserWriter@*           [Net: 15.161 Node:172 Skt:128] 
  ---status: idle                                                               

崱搙偼丄摿掕偺僾儕儞僞偵傾僋僙僗偟偰丄PostScript 僀儞僞僾儕僞傪婲摦偝偣
偰傒傛偆丅偦傟偼丄tlw 偲偄偆僐儅儞僪偱峴側偆丅

  # tlw "Canon Lasershot B406GII_J:LaserWriter@*"                        
  abInit: [ddp:  15.160, 228], [GW:  15.160, 167] starting               
  Starting session with Canon Lasershot B406GII_J:LaserWriter@*          
  %no status                                                             
  status: idle                                                           
                                                                         
  Okay                                                                   
  PostScript(r) Version 2013.115                                         
  (c) Copyright 1984-1994 Adobe Systems Incorporated.                    
  Typefaces (c) Copyright 1981 Linotype-Hell AG and/or its subsidiaries. 
  All Rights Reserved.                                                   
  PS> showpage                                                           

師偵偙偺僾儕儞僞偵壗偐 PS 僼傽僀儖傪憲傝丄僾儕儞僩偟偰傒傞丅

  # lwpr -p "Canon Lasershot B406GII_J:LaserWriter@*" temp.ps          
  abInit: [ddp:  15.160, 228], [GW:  15.160, 167] starting             
  Status: status: idle                                                 
  status: idle                                                         
  Sending temp.ps                                                      

偙傟偱報嶞偑壜擻偐偳偆偐暘偐偭偨傜丄師偵 lpd 偲楢學偟偰 PostScript 僾儕
儞僞偵 AppleTalk 傪夘偟偰僾儕儞僩丒僕儑僽傪憲傝丄報嶞偝偣傞偨傔偺愝掕偵
擖傞丅傑偢丄/etc 僨傿儗僋僩儕偵 cap.printers 偲偄偆僝乕儞撪偺
PostScript 僾儕儞僞偺柤慜傪掕媊偡傞僼傽僀儖傪埲壓偺傛偆偵偟偰嶌傞丅

  #                                                                    
  # /etc/cap.printers                                                  
  #                                                                    
                                                                       
  ntxj=Apple LaserWriter IINTX_J:LaserWriter@*                         
  canon=Canon Lasershot B406GII_J:LaserWriter@*                        
  # ---- End of /etc/cap.printers ----                                 

師偵 printcap 傪娐嫬偵崌傢偣偰曇廤偡傞丅

  # /etc/printcap                                                             
  #                                                                           
  # Please don't edit this file directly unless you know what you are doing!  
  # Be warned that the control-panel printtool requires a very strict format! 
  # Look at the printcap(5) man page for more info.                           
  #                                                                           
  # This file can be edited with the printtool in the control-panel.          
                                                                              
  ##PRINTTOOL## LOCAL PostScript 300x300 a4 1                                 
  lp:\                                                                        
          :sd=/var/spool/lpd/lp:\                                             
          :lp=/dev/lp1:\                                                      
          :sh:\                                                               
          :mx#0:\                                                             
          :if=/var/spool/lpd/lp/filter:                                       
                                                                              
  ## Remote PostScript Canon Laser Shot B-406G II                             
  lp|canon|Canon Lasershot B406GII_J:\                                        
          :lp=/dev/canon:\                                                    
          :sd=/var/spool/lpd/canon:\                                          
          :pl#72:pw#85:\                                                      
          :sf:\                                                               
          :mx#0:\                                                             
          :lf=/var/spool/lpd/canon/canon-lpd-errs:\                           
          :af=/var/spool/lpd/canon/canon-lpd-acct:\                           
          :if=/usr/local/cap/canonif:\                                        
          :of=/usr/local/cap/papof:                                           
  # ---- End of /etc/printcap ----                                            

師偵摿掕偺僾儕儞僞偵懳偡傞僨僶僀僗丒億乕僩傪嶌傞丅

  # touch /dev/canon                                                   
  # chmod 660 /dev/canon                                               

師偼丄摿掕偺僾儕儞僞偵懳偡傞僗僾乕儖丒僨傿儗僋僩儕傗僶僫乕丒僼傽僀儖傪
嶌傞丅

  # mkdir /var/spool/lpd                                               
  # mkdir /var/spool/lpd/canon                                         
  # touch /var/spool/lpd/canon/.banner                                 
  # chmod daemon.daemon /var/spool/lpd/canon/.banner                   

懕偄偰儘僌丒僼傽僀儖偺嶌惉偱偁傞丅

  # touch /var/spool/lpd/canon/canon-lpd-errs                          
  # touch /var/spool/lpd/canon/canon-lpd-acct                          

嵟屻偵摿掕偺僾儕儞僞偺偨傔偺僼傿儖僞乕丒僼傽僀儖傪埲壓偺傛偆偵偟偰嶌傞
丅

  #!/bin/sh                                                            
  # canonif - CAP Input filter for Canon Laser Shot B-406G II          
                                                                       
  /usr/local/cap/papif -P canon $*                                     
  # ---- End of /usr/local/cap/canonif ----                            

僾儕儞僩丒僐儅儞僪偼丄埲壓偺捠傝丗

  # lpr -Pcanon hogehoge.ps                                            

偝偰師偵 CAP 偑僀儞僗僩乕儖偝傟偰偄側偄 Unix Box (hogehoge2)偐傜 CAP 偑
僀儞僗僩乕儖偝傟偰偁傞 Linux Box (hogehoge1)宱桼偱僾儕儞僩丒僕儑僽傪
printcap 偵搊榐偟偰偁傞僾儕儞僞偵憲傞偨傔偺愝掕曽朄偵偮偄偰婰偡丅傑偢
CAP 偑僀儞僗僩乕儖偝傟偰偁傞 Linux Box 偺 /etc 僨傿儗僋僩儕偵 hosts.lpd
偲偄偆僼傽僀儖傪埲壓偺傛偆偵嶌傞丅

  # hosts.lpd                                                          
  hogehoge2                                                            

偝傜偵 CAP 偑僀儞僗僩乕儖偝傟偰偄側偄 Unix Box 偺 printcap 傪 lpd 偺儕
儌乕僩婡擻偑巊偊傞傛偆偵師偺傛偆偵愝掕偡傞丅

  # CAP 偑僀儞僗僩乕儖偝傟偰偄側偄 Unix Box 偺 printcap                
  lp|canon|:lp=:rm=hogehoge1:rp=canon:                                 

偙偆偡傞偙偲偱丄hogehoge2 偐傜師偺僐儅儞僪偱 hogehoge1 偵僾儕儞僩丒僕儑
僽傪憲傞偙偲偑偱偒傞丅

  # lpr -Pcanon hogehoge.ps                                            

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

8. 嵟屻偵

偙傟偱 CAP 偵娭偡傞慡偰偺愢柧偑廔偭偨丅CAP 傪僐儞僷僀儖偟丄摫擖偟偰傒偰
偺姶憐偼丄Linux Box 偲儅僢僋傗 PostScript 僾儕儞僞偲偺僐儈儏僯働乕僔儑
儞偑堄奜偵娙扨偵偱偒偰偟傑偭偨偲偄偆偙偲偩丅傑偨侾偮偺僷僢働乕僕偱偙傫
側偵悢懡偔偺偙偲偑偱偒偰偟傑偆偲偄偆偙偲偼丄彮偟嬃偒偱傕偁傞偑丄偲偰傕
慺惏傜偟偄偙偲偩偲巚偆丅傑偨壗偩偐摼傪偟偨傛偆偵傕巚偆丅偙偺僷僢働乕僕
傪巊偭偰條乆側傾僾儕働乕僔儑儞偺奐敪傊偲敪揥偟偰偄偔偺偩傠偆丅偦偆偄偆
堄枴偱 CAP 偲偄偆僜僼僩僂僃傾偼丄旕忢偵桪傟偨僜僼僩僂僃傾偱偁傞偲尵偊傛
偆丅

劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒劒

9. 嶲峫暥專

劇劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劉
劆  1. CAP 僷僢働乕僕偺 README丅                                      劆
劆  2. CAP60/doc 偺拞偺僪僉儏儊儞僩椶丅                               劆
劆  3. UNIX USER 1994 No. 10 乽LaserWriter 傊偺弌椡偺傒側傜偢傕 UNIX  劆
劆     忋偱 AppleShare 僒乕僶乕傕幚尰偡傞 CAP 僼傽儈儕乕乿            劆
劆     孎栰 慞峃挊丄 僜僼僩僶儞僋                                     劆
劋劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劅劊

