2015-05-05

2.SSH経由で初期設定

a)raspi-configによる初期設定

pi@raspberrypi sudo raspi-config

 以下のGUIで一式設定しておく。
 


1.ファイルシステム拡張(特に指定、選択は無し)

4.国際化
I2.タイムゾーンをASIA、TOKYOとする。

7.overclock
Pi2とする。

8.Advanced Option
A2.Hostnameは適当なものに。本例ではraspberry1とする。
A3.Memory SplitはGPUへのメモリ割当で最小で良いので16とする

b)firmwareの更新

pi@raspberrypi sudo rpi-update

 DNSを正しく設定していれば、internet経由で最新のfirmwareを取得、更新してくれる。適用には再起動が必要。
 筆者の環境では20分ほど必要だった。

 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9823  100  9823    0     0  13463      0 --:--:-- --:--:-- --:--:-- 18123
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** We're running for the first time
 *** Backing up files (this will take a few minutes)
 *** Backing up firmware
 *** Backing up modules 3.18.7-v7+
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    207      0 --:--:-- --:--:-- --:--:--   280
100 46.1M  100 46.1M    0     0  39231      0  0:20:32  0:20:32 --:--:-- 48259
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 3.18.12-v7+
 *** depmod 3.18.12+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to 3ae7fd5bb0d2d34f7793f76c8a242ee177fafb3d
 *** A reboot is needed to activate the new firmware


c)パッケージ類の更新

pi@raspberrypi sudo apt-get update

pi@raspberrypi sudo apt-get upgrade

 時間は1時間近くかかるので放置しておく。

d)rootのパスワード設定

pi@raspberrypi sudo passwd root

 基本的にはsudoを使うが、suで必要なので設定する。




0 コメント:

自己紹介

自分の写真
東京都, Japan
憂鬱な凍死家です。こちらではmixiとは異なり固めの話題中心です。

Total Page View

Categories

Powered by Blogger.

Popular Posts

Blog Archive