続き
http://qiita.com/hkato/items/90f71ea78fd6916bfd45
SSHを使う
まずはsshログインできないと不便だよね
sshのPort forward
-netオプションを追加して起動
$ qemu-system-arm -M versatilepb \
-kernel vmlinuz-2.6.32-5-versatile \
-initrd initrd.img-2.6.32-5-versatile \
-hda redsleeve_armel_rootfs.qcow2 \
-nographic \
-append "root=/dev/sda1 console=ttyAMA0" \
-net user,hostfwd=tcp::50022-:22 \
-net nic
リポジトリの更新
yum/rpmのリポジトリパスが変わってる様なので-releaseファイルをアップデートする。
# rpm -Uvh http://ftp.redsleeve.org/pub/el6/6.7/base/RPMS/redsleeve-release-6-20160310.el6.armv5tel.rpm
# rpm -Uvh http://ftp.redsleeve.org/pub/el6/6.7/base/RPMS/epel-release-6-20140302.noarch.rpm
sshdのインストール
# yum install openssh-server
# chkconfig sshd on
# service sshd start
ログイン
これでホスト側からログインできる様になる
$ ssh root@localhost -p 50022
パッケージアップデート
# yum update
これでRSEL6.7になってるはず。
時刻関連
タイムゾーン設定
ここら辺はCentOS/RHEL等と同じ
# cp -p /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
# vim /etc/sysconfig/clock
ZONE="Asia/Tokyo"
UTC="false"
# cp -p /etc/ntp.conf /etc/ntp.conf.orig
# vim /etc/ntp.conf
--- /etc/ntp.conf.orig 2016-01-21 00:14:26.000000000 +0900
+++ /etc/ntp.conf 2016-08-14 22:28:25.000000000 +0900
@@ -19,10 +19,9 @@
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
-server 0.rhel.pool.ntp.org iburst
-server 1.rhel.pool.ntp.org iburst
-server 2.rhel.pool.ntp.org iburst
-server 3.rhel.pool.ntp.org iburst
+server ntp1.jst.mfeed.ad.jp iburst
+server ntp2.jst.mfeed.ad.jp iburst
+server ntp3.jst.mfeed.ad.jp iburst
#broadcast 192.168.1.255 autokey # broadcast server
#broadcastclient # broadcast client
# service ntpd restart
ログ
なんかログが一切吐かれてない様なので見てみるとrsyslogが入ってない
# yum install rsyslog
これでベースとなるLinux環境は大体できた?