2013年4月30日火曜日

KURO-BOX/T4をLennyからSqueezeに更新してみる

ユーティリティでシステムを入れたばかりの状態でDebian Lennyが入ってますが、サポート終わってるのでSqueezeに更新します。

1. 不要なパッケージの削除
ApacheとWebminは不要で使う予定も無いので削除します。
KURO-NAS-T4:~# apt-get --purge remove apache*
KURO-NAS-T4:~# apt-get --purge remove webmin
KURO-NAS-T4:~# apt-get --purge autoremove
2. スクリプトの編集
/etc/init.d/buffalo-apps を編集します。(/etc/init.d/sambaのファイルからコピペして編集しただけです)
KURO-NAS-T4:~# vi /etc/init.d/buffalo-apps
#!/bin/sh
 ↓以下を追加
### BEGIN INIT INFO
# Provides: Buffalo
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Should-Start:
# Should-Stop:
# Short-Description: start Buffalo Apps
### END INIT INFO
 ↑ここまで
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/bin

3. apt設定ファイルの編集
/etc/apt/sources.list を編集してSqueeze用のファイルを取ってくるようにします。
KURO-NAS-T4:~# vi /etc/apt/sources.list
deb http://ftp.debian.org/debian/ lenny main
deb-src http://ftp.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

deb http://volatile.debian.org/debian-volatile lenny/volatile main
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main

 ↓以下に変更

deb http://ftp.jp.debian.org/debian/ squeeze main
deb-src http://ftp.jp.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

#deb http://volatile.debian.org/debian-volatile lenny/volatile main
#deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
4. パッケージの更新
編集が終わったらパッケージを更新します。
KURO-NAS-T4:~# apt-get update
KURO-NAS-T4:~# apt-get install debian-archive-keyring
KURO-NAS-T4:~# apt-get update
KURO-NAS-T4:~# apt-get upgrade
KURO-NAS-T4:~# apt-get install udev
5. カーネルの更新
あらかじめ作っておいたカーネルも落として入れておきます。
KURO-NAS-T4:~# cd /boot
KURO-NAS-T4:~# wget --no-check-certificate https://sites.google.com/site/iroirofiles/uImage-2.6.32-48squeeze1 -O uImage-2.6.32-48squeeze1
KURO-NAS-T4:~# rm uImage.buffalo
KURO-NAS-T4:~# ln -s uImage-2.6.32-48squeeze1 uImage.buffalo
KURO-NAS-T4:~# cd /
KURO-NAS-T4:~# wget --no-check-certificate https://sites.google.com/site/iroirofiles/modules.tgz -O modules.tgz
KURO-NAS-T4:~# tar zxvf modules.tgz
ここで一度再起動します。
6. システムのアップグレード
再起動が問題なく終わったらシステムのアップグレードをします。
KURO-NAS-T4:~# apt-get dist-upgrade
KURO-NAS-T4:~# apt-get --purge autoremove

参考:第4章 Debian 5.0 (lenny) からのアップグレード

0 件のコメント:

コメントを投稿