*** NetBSDの環境設定についての情報 ***(富永君)

引用文献: SoftWare Design 1999年1月号

ix86用のNetBSD 1.3.2のインストール後の環境設定としては次のファイルが有るようです。デフォルトのファイルに、最低限次の設定をしておけば良いようです。

=== 引用 ===

--- /etc/rc.conf ---

hostname="name"

domainname="dokokano.domain"

defaultroute="www.xxx.yyy.zzz"

--- /etc/ifconfig.xxx ---

inet namae

注:xxxはデバイス名、namaeはrc.confで設定したマシン名

--- /etc/resolv.conf ---

domain nantoka.kantoka.domain

nameserver ww.xxx.yyy.zzz

--- /etc/hosts ---

www.xxx.yyy.zzz myname.my.domain myname

 

=== 引用終了 ===

*** NetBSDのシングルモードについての情報 ***

引用文献: SoftWare Design 1999年2月号

 

=== 引用 ===

シングルモードで起動したら、/etc/rc.confを編集して

見ましょう。まずは次の3項目の設定でよいでしょう。

 

# If this is not set to YES, the system will drop into single-user mode.

rc_configured=YES

# Basic network configuration

hostname="sun3" # if blank, use /etc/myname

 

BSDの場合、シングルユーザモードのシェルをexitすると、自動的にマルチユーザモードへ移行します。メモリが少ない場合は、非常に時間が掛かりますが、問題はないと思います。なお、ネットワーク設定のコマンドなどは、通常のBSD系OSと全く同じです。

=== 引用終了 ===

ということで、上の設定でマルチユーザモードはOKだと思います。参考になれば幸いです。

 

P.S.

日本語localeについても、FreeBSDは、問題ないようですが、NetBSDやOpenBSDは独自に対応する必要がありそうです。日本語化する予定があるようでしたら、判る範囲で、情報を流します。

 

---

NetBSDの設定について以下のようなドキュメントを見つけました。(西村先生?)

http://www.jp.netbsd.org/Ports/alpha/index.html

4.1 Preparing to Install from a CD-ROM

All you need to do is mount the CD-ROM, which will generally be device cd0. (The initial boot messages will tell you what the CD-ROM drive is probed as.) This would be done with:

mount -r -t cd9660 /dev/cd0a /mnt2

5. Configuring NetBSD

Configuring your NetBSD system requires editing the /etc/rc.conf file. Most of this file is fairly self-explanatory, but you can `man rc.conf' for further explanations. Remember to set `rc_configured' to YES so you will boot multi-user, set `hostname' and possibly `defaultroute', and add an ifconfig_int for your interface <int>, along the lines of

ifconfig_de0="inet 123.45.67.89 netmask 255.255.255.0"

or, if you have myname.my.dom in /etc/hosts:

ifconfig_de0="inet myname.my.dom netmask 255.255.255.0"

You will also want either to run named or add an /etc/resolv.conf file (`man resolv.conf' for information on this), use `vipw' to addaccounts to your system, edit /etc/aliases to forward root mail tothe right place (run `newaliases' afterwards) and edit /etc/rc.localto run any local daemons you use.

 

------------------------------------------------------------------------

http://www.axe-inc.co.jp/bsddoc/alpha/alpha.htm

NetBSD/AlphaはBSDの伝統に従っているので、BSDでは常識的な設定ばかりである。

以下にNetBSD/Alphaで必要な設定項目を列挙する。

ホスト名の設定。/etc/mynameにただ一行ホスト名をセットする。

/etc/hostsに自機のホスト名とIPアドレスを入れておく。

ネットワーク・インターフェースのアドレス設定。

'/etc/hostname.インターフェース名' ファイル(DECのPCI Ethercardなら、hostname.de0)に

inet ホスト名

を入れる。(ホスト名は/etc/hostsに存在すること)

タイムゾーンの設定

# rm /etc/localtime

# ln -s /usr/share/zoneinfo/Japan /etc/localtime

とする。

NFSを使用する場合は、/etc/netstartの

nfs_server=NO

nfs_client=NO

nfs_server=YES

nfs_client=YES

とする。