まず 安定版の netatalk-1.6.4a.tar.gz を 入手して
# ls -l | sed -e 1d drwxr-xr-x 3 root root 4096 Jul 17 2005 001_no-ip/ -rw-r--r-- 1 mm users 7508193 Jul 22 2006 httpd-2.0.54.tar.gz drwxr-xr-x 3 root root 4096 Aug 11 2005 misc/ -rw------- 1 mm users 1026531 Mar 2 21:57 netatalk-1.6.4a.tar.gz drwxr-xr-x 22 1037 root 4096 Feb 25 2005 sendmail-8.12.11/ -rw-r--r-- 1 root root 1899112 Feb 25 2005 sendmail.8.12.11.tar.gz
展開 する configure make make install して 次に 設定をしてゆく
# tar zxvf netatalk-1.6.4a.tar.gz # cd netatalk-1.6.4a # ./configure --with-shadow --without-pam # make 2>&1 # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda2 3579116 2035152 1359220 60% / # make install
atalkd.conf を 設定する
# pwd /usr/local/etc/netatalk sv:/usr/local/etc/netatalk# cp atalkd.conf org_atalkd.conf sv:/usr/local/etc/netatalk# vi atalkd.conf sv:/usr/local/etc/netatalk# diff -s atalkd.conf org_atalkd.conf 37,38c37 < # Fri Mar 2 22:33:50 JST 2007 < eth0 -phase 2 --- > #
AppleVolumes.default を 設定する
# cp AppleVolumes.default 1st_AppleVolumes.default # vi AppleVolumes.default # diff -s AppleVolumes.default 1st_AppleVolumes.default 77,79c77 < # Fri Mar 2 22:38:26 JST 2007 < ~/open_emac < /home/kyoutu/darea/ darea --- > ~
rc.atalk を 作成する 内容は
# cat /etc/rc.d/rc.atalk #!/bin/sh # # AppleTalk daemons. Make sure not to start atalkd in the background: # its data structures must have time to stablize before running the # other processes. # Modefy Fri Mar 2 23:05:57 JST 2007 by BK # # SUNOS: UNCOMMENT THESE LINES TO LOAD THE KERNEL MODULE. Note that # modunload-ing netatalk may cause your machine to panic or hang. # ##echo -n 'loading netatalk: ' ##if [ -f /usr/local/etc/netatalk/netatalk.o ]; then ## /usr/etc/modload -sym /usr/local/etc/netatalk/netatalk.o; ##fi echo -n 'starting appletalk daemons:' if [ -x /usr/local/sbin/atalkd ]; then /usr/local/sbin/atalkd; echo -n ' atalkd' fi if [ -x /usr/local/bin/nbprgstr ]; then /usr/local/bin/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:Workstation /usr/local/bin/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:netatalk echo -n ' nbprgstr' fi if [ -x /usr/local/sbin/papd ]; then /usr/local/sbin/papd; echo -n ' papd' fi if [ -x /usr/local/sbin/afpd ]; then /usr/local/sbin/afpd; echo -n ' afpd' fi # if [ -x /usr/local/sbin/timelord ]; then # /usr/local/sbin/timelord; echo -n ' timelord' # fi echo '.'
これで 設定は 終わった
rc.M の内容を確認 抜粋の もの
# Start netatalk. (a file/print server for Macs using Appletalk) if [ -x /etc/rc.d/rc.atalk ]; then /etc/rc.d/rc.atalk fi
これで サーバーを 起動させたら netatalk も 起動する事に なるはず
¡ ¡ 色々試行中!!
2007年 3月 3日 (土) 23:05:04 JST