日本語コードの設定

/etc/sysconfig/i18n
LANG=”ja_JP.eucJP”
SUPPORTED="ja_JP.eucJP:ja_JP:ja"

カーネルにネットワークドライバ組み込み

SRPM のカーネルソースからドライバを組み込んだRPMを作成する。

ドライバはここから http://www.marvell.com/drivers/search.do

kernel-2.6.25.10-47.fc8.src.rpm を get
rpm でインストールすると、/usr/src/redhat 以下に入る
主なファイル
SPECS/kernel.config  ←パッチの一覧等
SOURCES/linux-2.6.25.tar.bz2 ←オリジナルのkernelソース
カーネルソースツリーを準備
cd ~/rpmbuild/SPECS
rpmbuild -bp --target=`uname -m` kernel.spec
カーネルコンフィグ
cd ~/rpmbuild/BUILD/kernel-2.6.24/linux-2.6.24.i686/
cp configs/kernel-2.6.24.7-i686.config  .config 
make oldconfig 
make menuconfig 
cp .config ~/rpmbuild/SOURCES/config-i686
カーネルビルド
cd ~/rpmbuild/SPECS 
rpmbuild -bb --target=`uname -m` kernel.spec 
ビルド中にエントロピーがどうのこうのでとまったら、他のsshセッションで以下を実行
dd if=/dev/urandom of=/tmp/mass bs=1M count=700
新しいカーネルをインストール 
rpm -ivh ~/rpmbuild/RPMS/kernel-2.6.24.7-92.fc8.i686.rpm

dhcp

/etc/sysconfig/dhcpd

# Command line options here
DHCPDARGS=eth0

/etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;
#
subnet 192.168.2.0 netmask 255.255.255.0 {
#
# --- default gateway
       option routers                  192.168.2.1;
       option subnet-mask              255.255.255.0;
#
#       option nis-domain               "domain.org";
       option domain-name              "domain.org";
       option domain-name-servers      192.168.2.1;
#
       option time-offset              -18000; # Eastern Standard Time
#       option ntp-servers              192.168.2.1;
#       option netbios-name-servers     192.168.2.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#       option netbios-node-type 2;
#
       range dynamic-bootp 192.168.2.128 192.168.2.254;
       default-lease-time 21600;
       max-lease-time 43200;
#
#       # we want the nameserver to appear at a fixed address
#       host ns {
#               next-server marvin.redhat.com;
#               hardware ethernet 12:34:56:78:AB:CD;
#               fixed-address 207.175.42.254;
#       }
}
chkconfig dhcpd on

/etc/exports

/home/hirai     192.168.2.4(rw,async,no_root_squash)
/etc/init.d/nfs restart

/etc/ntp.conf

# --- OUR TIMESERVERS -----
server 157.8.1.153
/etc/init.d/ntpd restart

/etc/resolv.conf

DHCP なのでなにもしない

/etc/xinetd.d/tftp

service tftp
{
       disable = no
       socket_type             = dgram
       protocol                = udp
       wait                    = yes
       user                    = root
       server                  = /usr/sbin/in.tftpd
       server_args             = -c -s /tftpboot
       per_source              = 11
       cps                     = 100 2
       flags                   = IPv4
}

  

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2009-07-24 (金) 16:47:34 (5382d)