debiansh.gif DebianSH 非公式支援ページ

設定

コンソールの設定

CAT709ttySC0115200bps
CAT760ttySC0115200bps
CAT724ttySC0115200bps
LANDISKttySC19600bps
  • /etc/inittab
#1:2345:respawn:/sbin/getty 38400 tty1
#2:23:respawn:/sbin/getty 38400 tty2
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
T0:23:respawn:/sbin/getty -L ttySC0 115200 vt100

login: プロンプトを出す端末と速度を記述する

  • /etc/securetty
ttySC0
ttySC1
ttySC2

rootでのログインを許す端末を記述する

パーテーション

  • /etc/fstab

CAT709/CAT760の場合

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda2       swap            swap    defautls,pri=1  0       0

CAT724の場合

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mmcblk0p2  /               ext3    errors=remount-ro,noatime 0       1
# /dev/mmcblk0p3  none            swap    sw,pri=10              0       0
# tmpfs         /tmp            tmpfs   size=128m       0 0

パーテーションとファイルシステム形式を記述する

ネットワーク

  • /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.7.99
        netmask 255.255.255.0
        gateway 192.168.7.1

dhcpで割り当てるならば dhcpの行を有効にして、その下4行を # コメントアウトする

aptライン

  • /etc/apt/sources.list
  • lenny(5.0)
    deb http://download.si-linux.co.jp/debian-lenny-sh4 lenny main contrib non-free
    deb-src http://ftp.debian.org/debian/       lenny main contrib non-free
    deb-src http://security.debian.org/ lenny/updates main contrib non-free
    deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
  • squeeze(6.0)
    deb http://download.si-linux.co.jp/debian-sh/squeeze-sh4 squeeze main contrib non-free
    deb-src http://ftp.jp.debian.org/debian/ squeeze main contrib non-free
    deb-src http://security.debian.org/ squeeze/updates main
    deb-src http://ftp.jp.debian.org/debian/ squeeze-updates main
  • wheezy(7.0)
    deb [arch=sh4] http://download.si-linux.co.jp/debian-sh/wheezy-sh4 wheezy main
    deb [arch=all] http://ftp.jp.debian.org/debian/ wheezy main contrib non-free
    deb-src http://ftp.jp.debian.org/debian/ wheezy main contrib non-free

その他

  • 時計(RTC)デバイスを作る

カーネルのバージョンを確かめる

# uname -r
2.6.15 の場合
# mknod /dev/rtc c 10 135
2.6.3x の場合
# mknod /dev/rtc c 254 0

時計を読む

# hwclock

でエラーが出なければOK

  • タイムゾーンの設定
# dpkg-reconfigure tzdata
Asia -> Tokyo
  • /etc/default/rcS
    UTC=no          RTCをローカルタイム(日本時間)で持つ
    FSCKFIX=yes     fsck実行時に、エラーがあれば fix する

関連事項

外部リンク

内部リンク

自動リンク