FreeBSD-2.2.5 Enviroment

FreeBSD環境設定

FreeBSD-2.2.5Rのインストールが終了した直後からの、 環境設定について解説します。
root でログインします。パスワードをつけていない場合には、 passwd コマンドでパスワードをつけます。

ユーザを追加(登録)します。

# adduser [-verbose,-silent]
username と password 以外はリターンでいいでしょう。 もし、UidがあるならUid [1000]:に答えます。 また、スーパユーザになるためには、/etc/group を以下のように変更します。
ユーザが foo の場合:
wheel:*:0:root,foo
またこれは、adduserコマンドで、
Login group is ``hideya''. Invite hideya into other groups: guest no 
[no]: wheel
と答えても同じです。

もしあるなら、/etc/hosts を他のUNIX からftp でとって来ると便利です。 また、/etc/host.confを

# $Id: host.conf,v 1.2 1993/11/07 01:02:57 wollman Exp $
# If that doesn't work, then try the /etc/hosts file
hosts
# Default is to use the nameserver first
bind
# If you have YP/NIS configured, uncomment the next line
# nis
と変更すると、DNSより先に/etc/hostsを見るようになります。
また、/etc/resolv.confには、セカンダリDNSも登録できます。
domain  ca.csse.yamaguchi-u.ac.jp
nameserver      133.62.128.32
nameserver      133.62.128.33

必要ならば/etc/hosts.equiv の設定

コンソールに、ルート以外でログインした時BackSpaceが効きませんが、

% stty erase ^H
で有効になります。
topへ