Raspberry Pi(ラズベリーパイ)にRed Hat Enterprise Linux 互換のRedSleeve Linuxを入れる

本家 http://www.redsleeve.org/

http://ftp.redsleeve.org/pub/yum/os/ から raspi-redsleeve-gui-0.3.1.img.xz をダウンロード
(但し遅いので、適当なミラー先から)

本家インストール手順 http://wiki.redsleeve.org/index.php/Install_Rasperry_Pi

SDカードが刺さるLinux Boxが手元にないのでWindows PCでやる

raspi-redsleeve-gui-0.3.1.img.xz の拡張子をraspi-redsleeve-gui-0.3.1.img.gzに変える
適当に解凍して raspi-redsleeve-gui-0.3.1.img を取り出す
(Universal Extractorがおすすめ http://www.legroom.net/software/uniextract/

解凍したimgをflashnul http://shounen.ru/soft/flashnul/ を使ってSDカードを作る

flashnul のダウンロード http://shounen.ru/soft/flashnul/flashnul-1rc1.zip

zipを適当な場所に解凍(例 C:\flashnul )
以後の作業は、管理者として実行したコマンドプロンプト

C:\flashnul\flashnul.exe -p

Avaible physical drives:
0       size = 250059350016 (232 Gb)
1       size = 1990197248 (1898 Mb)

Press ENTER to exit.

SDカードの番号を確認してENTER

C:/flashnul/flashnul.exe 1 -L C:/raspi-redsleeve-gui-0.3.1.img

データ消去にyesで同意
完了後ENTER

できあがったSDカードをRaspberry Piに装着して電源ON

RedSleeve Linuxが起動する

初期パスワードは下記の通りになっているので必ず変更
user=pi, password=raspberry
user=root, password=redsleeve

■起動確認

# uname -a
Linux raspberrypi 3.1.9+ #107 PREEMPT Sun Jun 10 15:57:56 BST 2012 armv6l armv6l armv6l GNU/Linux

# cat /etc/redhat-release
Red Sleeve Enterprise Linux release 6.1 (Leap)

■初期設定

SSHはrootログインできないように設定済み
# grep ^PermitRootLogin /etc/ssh/sshd_config
PermitRootLogin no

SELinuxは無効になっている

iptablesが起動している
# chkconfig --list | grep iptables
iptables        0:off   1:off   2:on    3:on    4:on    5:on    6:off

キーボードマップの変更
# cat /etc/sysconfig/keyboard
KEYTABLE="jp106"
MODEL="jp106"
LAYOUT="jp"
KEYBOARDTYPE="pc"

タイムゾーンの変更
# rm -f /etc/localtime
# cp -p /usr/share/zoneinfo/Japan /etc/localtime
# date
Fri Jul 27 20:18:40 JST 2012

ntpサーバが遠いので変更
# grep ^server /etc/ntp.conf
server ntp.jst.mfeed.ad.jp
server ntp.nict.jp

使いそうなものをインストール
# yum install bind-utils traceroute