LoginSignup
0
0

More than 5 years have passed since last update.

RaspberryPi1 ModelBの初期設定

Posted at

概要

自宅で使用しているRaspberryPi1 ModelBの調子が悪くなったので再インストールを行いました。その際に一部うまくいかない個所があったのでメモしておきます。

環境

  • RaspberryPi1 ModelB
  • RASPBIAN JESSIE LITE (Release date:2015-11-21)

SDカード作成

  1. 公式サイトのダウンロードからRASPBIAN JESSIE LITEのZIPをダウンロードします。
  2. SDカードにイメージを書き込みます。(Win32 Disk Imagerを使用)
  3. RaspberryPiを起動します。

raspi-config設定

pi/raspberryでログインし、設定してきます。

  1. "raspi-config"画面に入ります。
    $ sudo raspi-config

  2. "1 Expand Filesystem"を実行

  3. "2 Change User Password"を実行

  4. "5 Internationalisation Options"を実行
    "I1 Change Locale"

    • en_GB.UTF-8 UTF-8
    • ja_JP.UTF-8 UTF-8 -> "ja_JP.UTF-8"

"I2 Change Timezone"
"Asia" -> "Tokyo"

"I3 Change Keyboard Layout"
"Generic 101-key PC" -> "Other" -> "Japanese" -> "Japanese" -> "The default for the keyboard layout" -> "No compose key"

  1. <Finish>を選択し、RaspberryPiを再起動します。

ネットワーク設定

NOOBS 1.4.1 以降(Raspbian 2015-05-05)から設定が変わり、"/etc/network/interfaces"を編集しても固定IPにできません。ここで数時間引っかかってしまいました。
"/etc/network/interfaces"内にも記載されている"/etc/dhcpcd.conf"を編集してeth0を固定IP化します。

$ sudo vi /etc/dhcpcd.conf

interface eth0
static ip_address=xxx.xxx.xxx.xxx //RaspberryPiのIPアドレス
static router=xxx.xxx.xxx.xxx //デフォルトゲートウェイ
static domain_name_server=xxx.xxx.xxx.xxx //DNSサーバのIPアドレス

$ sudo service dhcpcd reload

ホスト名変更

$ sudo vi /etc/hostname
$ sudo vi /etc/hosts
$ sudo reboot

パッケージ更新

$ sudo apt-get update
$ sudo apt-get upgrade

参照先

こちらを参考にさせていただきました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0