プライベートでよく使うUNIX(UNIXライクシステム)は、FreeBSDです。UNIXを始めたころから、System V系よりBSD系の方が、私には断然しっくり来ていたので、業務以外ではBSD系一択。その中でも、安定していて、ネットワークサーバーとしての信頼性もあるFreeBSDを初期の頃から利用してきました。そのFreeBSDにおける自分用の覚え書き。
ちょっと情報が古いので、現状とは合わないかもしれないので注意してください。
/etc/amd.map
# $FreeBSD: src/etc/amd.map,v 1.8 1999/09/13 17:09:07 peter Exp $ # #/defaults type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key} #* opts:=rw,grpid,resvport,vers=2,proto=udp,nosuid,nodev /defaults fs:=/${autodir}/${key} flash type:=program;\ mount:="/sbin/mount mount -t msdos -o ro /dev/wd1s1 ${fs}";\ unmount:="/sbin/umount umount /dev/wd1s1";
/etc/ppp/ppp.conf
default: allow user FreeBSDのユーザ名 set device /dev/cuaa3 set speed 115200 set timeout 1200 set log phase chat connect lcp ipcp ccp tun set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0 #--------# # 接続先 # #--------# #外線から接続 infoweb-yokohama-ex: set phone "接続先電話番号" set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 30 \"\" AT&F1 OK-AT-OK ATDT\\T TIMEOUT 60 CONNECT" set login "TIMEOUT 30 Login: 接続先ユーザID Password: パスワード" dial # delete ALL add default HISADDR #内線から接続 infoweb-yokohama-in: set phone "0,接続先電話番号" set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 30 \"\" AT&F1 OK-AT-OK ATX3DP\\T TIMEOUT 60 CONNECT" set login "TIMEOUT 60 Login: 接続先ユーザID Password: パスワード" dial # delete ALL add default HISADDR
/etc/pccard.conf
#==============================# # PC Card Configuration File # #==============================# # irq device # 1 sc0 # 3 sio1 # 4 sio0 # 5 pcic # 6 fdc0 # 7 lpt0 # 12 psm0 # 14 wdc0 # unused IRQ : 0 2 8 9 10 11 13 15 # enable IRQ (3C589C) : 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 # enable IRQ (DF2814B/M) : 3 4 5 7 9 10 15 # enable IRQ (APA-1460) : 9 10 11 12 # enable IRQ (EC-4CF) : 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ******************************** # PC-card sample configuration file # # Removing all IRQ conflicts from this file can't be done because of some # IRQ-selfish PC-cards. So if you want to use some of these cards in # your machine, you will be forced to modify their IRQ parameters from # the following list. # # $Id: pccard.conf.sample,v 1.21 1999/08/07 13:52:27 toshi Exp $ # Generally available IO ports io 0x240-0x3ff #KAZUOLD#io 0x240-0x2e0 0x300-0x360 # Generally available IRQs (DEPRECATED, USE OF THE OPTION IS DISCOURAGED) #irq 10 11 # Unavailable IRQs #ignirq 9 # refrain from using SoundBlaster's IRQ, by default. ignirq 5 # it may be helful for most of notebook PCs #ignirq 15 # Available memory slots memory 0xd4000 96k #ここから追加# #----------------------------------------------# # 3Com Etherlink III LAN PC Card 3C589/B/C/D # #----------------------------------------------# card "3Com Corporation" "3C589" config default "ep0" any # config default "ep0" 10 insert echo 3Com Etherlink III 3C589/B/C/D inserted insert /etc/pccard_ether $device remove echo 3Com Etherlink III 3C589/B/C/D removed remove /etc/pccard_ether_remove $device #---------------------------------------# # TDK DF2814B/M PCMCIA Data Fax Modem # #---------------------------------------# card "TDK" "DF3314 DATA-FAX MODEM" config 0x32 "sio2" any # 0x3e8 # config 0x32 "sio2" 9 # 0x3e8 # config 0x33 "sio2" any # 0x2e8 # reset 100 # default reset 1000 # safety reset time # reset 10000 # for unstable cards insert echo "TDK DF3314B/M inserted" remove echo "TDK DF3314B/M removed" #--------------------# # Adaptec SlimSCSI # #--------------------# card "Adaptec, Inc." "APA-1460 SCSI Host Adapter" config default "aic0" any # config default "aic0" 11 insert echo Adaptec Slim SCSI inserted remove echo Adaptec Slim SCSI removed #---------------------# # IBM ChipCard VW-200 # #---------------------# card "IBM" "ChipCard VW-200" config 0x15 "wdc1" any insert echo IBM ChipCard VW-200 inserted remove echo IBM ChipCard VW-200 removed #-------------------# # SunDisk Flash ATA # #-------------------# card "SunDisk" ".*" # config 0x03 "wdc1" any config default "wdc1" any insert echo SunDisk Flash ATA inserted remove echo SunDisk Flash ATA removed #ここまで追加# #----------------------------------------------------------------------- # Were not for special reasons, please add new entries at the top of # this file when you wrote new entries for unsupported cards. # And, if you succeed using new unsupported cards, please e-mail me # the new entries. #----------------------------------------------------------------------- (省略)
/etc/start_if.sl0
/sbin/slattach -a -h -l -s 115200 /dev/cuaa0