LoginSignup
18
19

More than 5 years have passed since last update.

Raspberry Pi 3初期セットアップ作業メモ

Last updated at Posted at 2016-05-13

Spec.

ハードウェア:

  • Raspberry Pi 3 Model B (element 14)
  • 5.2V-2.5A DC給電USBアダプタ
  • Transcend microSDHC 32GB Class10
  • Wi-Fiアクセスポイント (2.5GHz/11n)
  • HDMIケーブル+TV, USBキーボード, USBマウス
  • (有線LAN接続なし)

ソフトウェア:

  • Raspbian Jessie (2016-03-18-raspbian-jessie.img)

初回起動まで

http://qiita.com/ttyokoyama/items/7afe6404fd8d3e910d09

X起動後

ファイルシステムを拡張

  1. 画面左上[Menu] → [Preferences] → [Raspberry Pi Configuration]
  2. [System]タブ → [Expand Filesystem]ボタン
  3. (再起動を促すダイアログが表示されるのでreboot)

df -Hコマンドで確認した/dev/rootのSize:拡張前 3.9G → 拡張後 32G

備考:ターミナルからraspi-configコマンドでも同じ操作を実行可能。

ロケール/タイムゾーン/キーボード設定

  1. 画面左上[Menu] → [Preferences] → [Raspberry Pi Configuration]
  2. [Localization]タブ
  3. [Set Locale...] → "ja (Japanese)", "JP (Japan)", "UTF-8"
  4. [Set Timezone...] → "Japan"
  5. [Set Keyboard...] → "Japan", "Japanese (Kana 86)"
  6. [Set WiFi Country...] → "JP Japan"

備考:ターミナルからraspi-configコマンドでも同じ操作を実行可能。

Wi-Fi接続設定

$ sudo su -
# wpa_passphrase [SSID] [PASSWORD] >> /etc/wpa_supplicant/wpa_supplicant.conf
# vi /etc/wpa_supplicant/wpa_supplicant.conf
network={
  (以下を追記)
  # WPA2-PSK(AES)
  proto=WPA
  key_mgmt=WPA-PSK
  pairwise=CCMP
  group=CCMP
}

設定ファイルの妥当性チェック&Wi-Fi接続確認は wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

DHCPクライアント動作:

# vi /etc/network/interfaces
(iface wlan0 inet manualから書き換え)
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# /etc/init.d/network restart

静的IP割り当て:

# vi /etc/network/interfaces
(iface wlan0 inet manualから書き換え&追記)
iface wlan0 inet static
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    address 192.168.NNN.NNN
    netmask 255.255.255.0
    gateway 192.168.NNN.NNN
# /etc/init.d/network restart

備考:最新のRaspbianでは、予めSDカード内の/boot/wpa_supplicant.confを配置しておけば自動的に/etc/wpa_supplicant/へ移動してくれる。原理的には初回起動からI/Oデバイス無しで、いきなりWiFi接続SSHログインができる気がする(トラブルシュートを考えると現実的ではないが…)

apt-get upgrade

# apt-get update
# apt-get upgrade

日本語フォント/IME導入

# apt-get install fonts-ipafont fonts-ipaexfont
# apt-get install uim uim-mozc

VNCサーバ導入

# apt-get install tightvncserver

その他

Minecraft Pi Ed.をサバイバル化

18
19
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
18
19