Raspberry Pi Zero W: Difference between revisions

Line 28: Line 28:
= First Step =
= First Step =
<syntaxhighlight lang="bash" enclose="div">
<syntaxhighlight lang="bash" enclose="div">
# user 'pi' のパスワードを変更しておく事
sudo raspi-config
passwd
# Time Zone を変更する事
echo "Asia/Tokyo" | sudo tee /etc/timezone
sudo dpkg-reconfigure --frontend noninteractive tzdata
sudo apt-get update
sudo apt-get upgrade
</syntaxhighlight>
</syntaxhighlight>


その他をかえたければ、これが楽。SPI や I2C を有効にする。
<syntaxhighlight lang="text" enclose="div">
<syntaxhighlight lang="bash" enclose="div">
1 Change User Password Change password for the default user
sudo raspi-config
2 Hostname            Set the visible name for this Pi on a network
4 Localisation Options Set up language and regional settings to match your location
5 Interfacing Options  Configure connections to peripherals
8 Update              Update this tool to the latest version
</syntaxhighlight>
</syntaxhighlight>
:必ず上記を確認して必要なら変更を行う。
::ユーザ pi のパスワードは必ず変更する事
::ホスト名は必要なら変更
::ロケーションは必ず変更する事。特に'''I4 Change Wi-fi Country'''は JP にする。技適に関連する。
::インターフェースは必要な物を有効にする。たぶん SSH, SPI, I2C, Serial ぐらい。
:::


起動されているサービスを確認する
起動されているサービスを確認する