Raspberry Pi

RTC (DS3231) を取り付けた Raspberry Pi で "hwclock -w" を実行すると「無効な引数です」と表示される

$ sudo date -s "2000-01-01 00:00:00" $ sudo hwclock -w hwclock: ioctl(RTC_SET_TIME) to /dev/rtc to set the time failed.: 無効な引数です 環境 Raspberry Pi 用高精度 RTC (DS3231) Raspbian 9.11 (stretch) Raspberry Pi 3 Model B+ 原因 仕様? こ…

システム時計に "1970-01-01 00:00:00" を設定できない

エラーメッセージ $ sudo date -u -s "1970-01-01 00:00:00" date: 日時を設定できません: 無効な引数です 環境 Raspbian 9.11 (stretch) Raspberry Pi 3 Model B+ 原因 仕様? 「1970-01-01 00:00:00+システム起動時からの経過秒数」より前の時刻は設定で…

Raspberry Pi に USB シリアルを挿しても ttyUSB0 が作られない

原因 "apt upgrade" でカーネルが更新されたのに、再起動していなかったため 稼働中のカーネル(旧)と、アップデートされたモジュール(新)が、適合しなかったと思われる 対処 OS を再起動する。 $ sudo reboot

Raspbian Lite に pip3 をインストールする方法

パッケージ名 "python3-pip" が正解。 $ sudo apt install python3-pip

Raspberry Pi の VNC サーバーに TightVNC で接続するとエラーになる

エラー内容 Error in TightVNC Viewer: No security types supported. Server sent security types, but we do not support any of their. 訳 TightVNC ビューアーのエラー: サポートされているセキュリティタイプがありません。サーバーはセキュリティタイ…

パスワードの最小長さを変更する方法

/etc/pam.d/common-password の次の行を書き換える。 # here are the per-package modules (the "Primary" block) password [success=1 default=ignore] pam_unix.so obscure sha512 ↓ # here are the per-package modules (the "Primary" block) password […