NetBSD
ハードウェアの確認は、dmesg
各種設定は、sushiコマンドからもできる。
man afterboot も参考に。
shutdownは、shutdown -h now
rebootは、shutdown -r now
/etc/rc.conf
hostname="hostname"
現在のinterfaceの状態を表示
ifconfig -a
DHCPに設定
/etc/ifconfig.fxp0
!dhclient $int
useradd -d /usr/home/remics -m remics
usermod -G wheel remics
/etc/wscons.conf
encoding jp
時刻の確認は、date
起動時に自動的にNTPで時刻あわせをするには、
/etc/rc.conf
ntpdate=YES
NTPサーバーを指定するには、
/etc/ntp.conf
server ux02.so-net.ne.jp
か、
/etc/rc.conf
ntpdate=YES ntpdate_hosts="ux02.so-net.ne.jp"
手動(コマンド)で時刻をあわせるには、
NTPの場合
ntpdate ux02.so-net.ne.jp
マニュアルの場合
date 200608101930
または
prompt変更
/etc/profileに2行追加
PS1='\h% '
export PS1
/root/.bashrc
PS1='\h# '
/etc/rc.conf に以下を追加
sshd=YES
追加後、rebootするか、/etc/rc.d/sshd start
old
ifconfig an0 up 192.168.0.11 netmask 0xfffffff8 nwid 0033 nwkey 0xa52de42cb6
または、
/etc/ifconfig.an0
up nwid 0033 nwkey 0xa52de42cb6
bash-2.05# snmpget 192.168.0.1 public system.sysUpTime.0
最終更新:2006年09月30日 23:51