# 空ファイル作成 ssh sudo raspi-config sudo apt install avahi-daemon sudo systemctl enable avahi-daemon sudo systemctl start avahi-daemon # ユーザー名追加 sudo adduser imabari # sudoに追加 sudo gpasswd -a imabari sudo #リブート sudo reboot #アカウントpiの削除 sudo gpasswd -d pi sudo sudo userdel -r pi # 時刻設定 sudo nano /etc/systemd/timesyncd.conf NTP=ntp.nict.jp sudo systemctl daemon-reload sudo systemctl restart systemd-timesyncd #リポジトリ変更 sudo nano /etc/apt/sources.list # 変更前 deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi #変更後 deb http://ftp.jaist.ac.jp/raspbian/ bullseye main contrib non-free rpi # SWAP無効 sudo swapoff --all sudo systemctl stop dphys-swapfile sudo systemctl disable dphys-swapfile systemctl status dphys-swapfile free -h sudo apt install python3-bs4 python3-requests python3-html5lib python3-lxml python3-requests-oauthlib python3-tweepy