Last active
November 1, 2020 10:34
-
-
Save kuredev/2089a6e0fa41b83c7f8247644d9d1360 to your computer and use it in GitHub Desktop.
Raspberry Pi Zero の初期設定メモ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ■OS のインストール | |
| USB 1本とSDカードライタだけでできるUSB OTGを用いたRapsberry Pi Zero WH のセットアップ - Qiita | |
| https://qiita.com/Liesegang/items/dcdc669f80d1bf721c21 | |
| ※もしSSH接続時に「無効なホスト」みたいなエラーが出たらUSBケーブルがデータ転送をサポートしているか等を確認する | |
| ■パスワード変更 | |
| ``` | |
| passwd | |
| ``` | |
| ■ホスト名の変更(再起動しておくこと) | |
| Raspberry Piのホスト名を変更する | |
| Qiita https://qiita.com/naoyukisugi/items/66fd21512da75b437465 | |
| ■Wi-Fi設定 | |
| [Raspberry Pi] Wi-FiやIPアドレスの設定を行う方法 | Developers.IO | |
| https://dev.classmethod.jp/articles/raspberrypi-remote-connect/ | |
| ``` | |
| $ sudo vi /ets/wpa_supplicant/wpa_supplicant.conf | |
| network={ | |
| ssid="xxx" | |
| psk="xxx" | |
| } | |
| ``` | |
| ■パッケージ類アップデート | |
| ``` | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install vim | |
| ``` | |
| ■(任意)遠隔操作 | |
| 以下記事によってSSM経由で操作できる | |
| AWS Systems ManagerをRaspberry Piで使用してみた | Developers.IO | |
| https://dev.classmethod.jp/developers-io-cafe/aws_systems_manager_raspberry_pi/ | |
| ■gpio コマンドのインストール | |
| https://aquarius-train.hatenablog.com/entry/Raspberry_Pi_(%E3%83%A9%E3%82%BA%E3%83%91%E3%82%A4)_%E3%81%A7gpio_readall%E3%81%8C%E5%A4%B1%E6%95%97%E3%81%99%E3%82%8B%E6%99%82%E3%81%AE%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95 | |
| ■Rubyのインストトール | |
| ``` | |
| sudo apt-get install git | |
| git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
| vi ~/.bashrc | |
| # rbenv | |
| PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" | |
| eval "$(rbenv init -)" | |
| source ~/.bashrc | |
| git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
| sudo apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev | |
| rbenv install 2.7.1 | |
| もしくは nohup rbenv install 2.7.1 & | |
| rbenv global 2.7.1 | |
| ruby -v | |
| ``` | |
| 参考: https://qiita.com/u6k/items/ffb0265f6cbb58f2227d |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
📝
Raspberry Pi 4 ModelB で上記の手順でRebootしてもwlan0 がupしてこなかった。
以下のように手動でupしようとしてもエラーが出る。
ぐぐったところ、以下のページにたどり着いた。
で、接続できるようになった。
Raspbian Stretch Lite で突然無線LANに接続不能になったとき - 今日も微速転進
https://a244.hateblo.jp/entry/2017/12/28/024238