2022年11月27日日曜日

RaspiOsLite: :gpiozero,,flask,ssh,ads1115adc,pcimager,pip3,aplay/arecord

---------------------------gpiozero,flask-------------------------------------

sudo apt install python3-gpiozero 

sudo pip3 install flask

https://www.denshi.club/parts/2020/12/gpiozero13import-mcp3001mcp3002mcp3004mcp3008.html  :: gpiozero tutorial

---------------ssh,scp-------------------------------------------------------------

fseigojp@fseigojp-PC:~$ ssh -X pi@raspberrypi.local では

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

The ECDSA host key for raspberrypi.local has changed,

and the key for the corresponding IP address 192.168.3.12

has a different value. This could either mean that

DNS SPOOFING is happening or the IP address for the host

and its host key have changed at the same time.

Offending key for IP in /home/fseigojp/.ssh/known_hosts:1

  remove with:

  ssh-keygen -f "/home/fseigojp/.ssh/known_hosts" -R "192.168.3.12"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

Someone could be eavesdropping on you right now (man-in-the-middle attack)!

It is also possible that a host key has just been changed.

The fingerprint for the ECDSA key sent by the remote host is

SHA256:ZF2oZwd0xaZPE/PL9JnFWnD5tjpGXWYj+xuL0T5KGvQ.

Please contact your system administrator.

Add correct host key in /home/fseigojp/.ssh/known_hosts to get rid of this message.

Offending ECDSA key in /home/fseigojp/.ssh/known_hosts:3

  remove with:

  ssh-keygen -f "/home/fseigojp/.ssh/known_hosts" -R "raspberrypi.local"

ECDSA host key for raspberrypi.local has changed and you have requested strict checking.

Host key verification failed.

というエラーがでるので

ssh-keygen -f "/home/fseigojp/.ssh/known_hosts" -R "raspberrypi.local"を実施
してからssh pi@192.168.3.12,ssh -X pi@raspberrypi.localで成功した
scp::https://uxmilk.jp/50946にくわしい
ーーーーーーーadafruit ads1115 i2c adconverter ,pip3 ーーーーーーーーーーーーーーーー

https://qiita.com/ekzemplaro/items/1e98e1c9e58bd4d8a95c もうcircuitpythonでないと

いんすとできん(2022年末) 要注意

https://qiita.com/Lovely_030_Dong/items/672e0e98a5de11923f34 

pip3 install and git command install necessary!!

------------------------pc imager これだけではsshできん冒頭を参照------------------------------------

pc image writeのときに無線Lan,sshの設定が必要 設定印を操作

http://www.n-mmra.net/audio/raspi-os-ver/raspi-os-ver.htmlを参照

------------------aplay/arecord------------------------------------------------------------------------

 https://qiita.com/tukiyo3/items/524b435ffaf61199f434

https://netlog.jpn.org/r271-635/2019/02/ubuntu_google_home.html :: google assistant

0 件のコメント:

コメントを投稿