🍓

RaspberryPIをセットアップしよう

2023/06/03に公開

やりたいこと

raspaiOS(64bit版)を入れる

手順

  1. RaspberryPi Imagerをインストール
  2. イメージをダウンロード
  3. RaspberryPi Imagerを起動
  4. OSを選択
  5. ストレージを選択
  6. 設定

SSHしてみた

CMDにて

C:\Users\amazi>ssh raspi@raspi.local
raspi@raspi.local's password:
Linux raspi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

raspi@raspi:~ $

いけてるっぽい

ファームウェアアップデートしたい

学校でやってるんだけど、学校のWi-Fiにアクセスするには絶対GUIじゃなきゃいけないラシのでGUI入れ直し()

sudo apt upate
sudo apt full-upgrade -y
sudo apt clean
sudo reboot
sudo rpi-update
sudo reboot

sshしたい

GUIにしたときに何かやらかしたっぽく、sshできなくなった

 % ssh raspi@raspi.local
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

???

% ping raspi.local
PING raspi.local (169.254.69.104): 56 data bytes
64 bytes from 169.254.69.104: icmp_seq=0 ttl=64 time=85.282 ms
64 bytes from 169.254.69.104: icmp_seq=1 ttl=64 time=7.497 ms
64 bytes from 169.254.69.104: icmp_seq=2 ttl=64 time=6.449 ms
^C
% ssh-keygen -R 169.254.69.104
% ssh raspi@169.254.69.104
raspi@169.254.69.104's password: 
Linux raspi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed May  3 04:23:51 2023
raspi@raspi:~ $ 

やっと来ました。疲れた😭

参考文献

https://www.raspberrypi.com/documentation/computers/os.html
https://www.niandc.co.jp/tech/20150729_2464/

Discussion