debian_squeeze_開発環境設定

debian_squeezeのインストール の続き

最初の最初にやること

ログイン

debian login:root
Password:root

文字コードが日本語になっているが日本語フォントが入っていないため文字化けする。
文字化けを避けるため最初は LANG=C で英語表示にする

# export LANG=C
  • /etc/apt/sources.list

aptラインからDVDをコメントアウトする。vi エディタで /etc/apt/sources.list を編集する

# vi /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 6.0.3 _Squeeze_ - Official i386 DVD Binary-1 20111008-13:01]/ squeeze contrib main
↑をコメントアウト

aptパッケージ情報の更新

# apt-get update

telnetd,sshのインストール

# apt-get install telnetd ssh
Do yo want to continue [Y/n]? y
  • /etc/ssh/sshd_config パスワード認証を有効にする (セキュリティレベルは下がるので好みで)
    # Change to no to disable tunnelled clear text passwords
    PasswordAuthentication yes
    ↑ コメントを外して有効にする

開発環境を整える

お勧めパッケージ構成

# apt-get install build-essential dpkg-dev libncurses5-dev screen samba nfs-kernel-server \
                  ftpd ncftp vim mtd-utils dosfstools dpkg-cross distcc tree file

sambaの設定

  • /etc/samba/smb.conf
 [homes]
   comment = Home Directories
   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
   read only = no
               ↑ yes を no に変更する
# smbpasswd -U kaihatsu
New SMB password: kaihatsu
Retype new SMB password: kaihatsu

SH4クロスコンパイラのインストール

  • /etc/apt/sources.list に以下の1行追加
    • 32bit(i386)の場合
      deb https://www.si-linux.co.jp/pub/debian-sh/squeeze-sh4/toolchain-i386/ ./
    • 64bit(amd64)の場合
      deb https://www.si-linux.co.jp/pub/debian-sh/squeeze-sh4/toolchain-amd64/ ./

クロスツールのインストール

# apt-get update
# apt-get install gcc-4.4-sh4-linux-gnu
# apt-get install g++-4.4-sh4-linux-gnu

ARMEL(ARMリトルエンディアン)クロスコンパイラのインストール

  • /etc/apt/sources.list に以下の1行追加
    • 32bit(i386)の場合
      deb https://www.si-linux.co.jp/pub/debian-armel/squeeze-armel/toolchain/debian-squeeze-i386/ ./
    • 64bit(amd64)の場合
      deb https://www.si-linux.co.jp/pub/debian-armel/squeeze-armel/toolchain/debian-squeeze-amd64/ ./

クロスツールのインストール

# apt-get update
# apt-get install gcc-4.4-arm-linux-gnu
# apt-get install g++-4.4-arm-linux-gnu

関連

Last-modified: 2019-07-22 (月) 17:56:00 (1733d)