Raspberry Pi 3 B+: Difference between revisions
Jump to navigation
Jump to search
(→setup) |
|||
(13 intermediate revisions by the same user not shown) | |||
Line 20: | Line 20: | ||
raspi-config | raspi-config | ||
# edit: /boot/config.txt | # edit: /boot/config.txt | ||
# | # add: hdmi_ignore_cec_init=1 | ||
apt-get install emacs-nox | apt-get install emacs-nox | ||
apt-get install cec-utils | apt-get install cec-utils | ||
Line 28: | Line 28: | ||
aptitude purge nodejs npm | aptitude purge nodejs npm | ||
npm install -g --unsafe-perm homebridge | npm install -g --unsafe-perm homebridge | ||
npm install -g homebridge-config-ui-x | |||
npm install -g homebridge-cmdswitch2 | npm install -g homebridge-cmdswitch2 | ||
aptitude install supervisor | aptitude install supervisor | ||
Line 41: | Line 42: | ||
setup sshtunnel | setup sshtunnel | ||
setup querierd | setup querierd | ||
gpasswd -a homebridge dialout | |||
</syntaxhighlight> | |||
== disable IPv6 == | |||
/boot/cmdline.txt | |||
<syntaxhighlight lang="text" enclose="div"> | |||
ipv6.disable=1 consoleblank=0 | |||
</syntaxhighlight> | |||
補足wようやくIPv6ネーティブな環境下になったので、IPv6 life を楽しんでますw | |||
== Raspbian bookworm == | |||
32bit のままで。upgrade しようとしたが、raspi-firmware の要求する構造 /boot が /boot/firmware うんぬんで死亡。この際なので 64bit(aarch64)版でクリーンインストールした。 | |||
まだ若干安定してなさそげ。 | |||
そーいや 「Raspbian」 は ポリコレ的wにマズそげなので、「Raspberry Pi OS」と称するらしいw | |||
cec-client で変な挙動 | |||
<syntaxhighlight lang="text" enclose="div"> | |||
# Enable DRM VC4 V3D driver | |||
#dtoverlay=vc4-kms-v3d | |||
dtoverlay=vc4-fkms-v3d | |||
max_framebuffers=2 | |||
</syntaxhighlight> | |||
する。 | |||
'''cec-client が修正されたので不要。''' | |||
'''libcecのアップデートでまた壊れた''' | |||
USB で変なエラー | |||
<syntaxhighlight lang="text" enclose="div"> | |||
dtoverlay=dwc2 | |||
</syntaxhighlight> | |||
する。 | |||
'''修正されたので不要。''' | |||
また変な挙動になったので、これで修正 (以下HDMI, USB関連すべて) | |||
<syntaxhighlight lang="text" enclose="div"> | |||
hdmi_ignore_cec_init=1 | |||
hdmi_force_hotplug=1 | |||
hdmi_drive=2 | |||
dtoverlay=dwc | |||
</syntaxhighlight> | |||
bookworm の仕様変更なのだが、rsyslog が無くなり、あらゆる journalctl らしい。 | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
journalctl -ef | |||
</syntaxhighlight> | </syntaxhighlight> | ||
が tail -F /var/log/syslog の代わりw | |||
python で独自 module のインストールが制限された。pipx 使えとの事。 | |||
https://www.debian.org/releases/stable/i386/release-notes/ch-information.ja.html | |||
参照。 |
Latest revision as of 09:36, 26 January 2024
memo
Ubuntu Server 18.04
Ubuntu Server on a Raspberry Pi 2 or 3
netplan
/etc/netplan/50-cloud-init.yaml
netplan apply
結局 RPi HDMI の制御ができなさそうなので、せっかくの aarch64 だがやりたいことが難しいので採用はしないことにした。
Raspbian memo
setup
raspi-config
# edit: /boot/config.txt
# add: hdmi_ignore_cec_init=1
apt-get install emacs-nox
apt-get install cec-utils
apt-get install nodejs npm
npm install -g n
n stable
aptitude purge nodejs npm
npm install -g --unsafe-perm homebridge
npm install -g homebridge-config-ui-x
npm install -g homebridge-cmdswitch2
aptitude install supervisor
aptitude install python-serial
aptitude install avahi-utils
setup ssh keys
setup homebridge user & group
setup sudousers
setup homebridge (/var/lib/homebridge)
setup sshtunnel
setup querierd
gpasswd -a homebridge dialout
disable IPv6
/boot/cmdline.txt
ipv6.disable=1 consoleblank=0
補足wようやくIPv6ネーティブな環境下になったので、IPv6 life を楽しんでますw
Raspbian bookworm
32bit のままで。upgrade しようとしたが、raspi-firmware の要求する構造 /boot が /boot/firmware うんぬんで死亡。この際なので 64bit(aarch64)版でクリーンインストールした。
まだ若干安定してなさそげ。
そーいや 「Raspbian」 は ポリコレ的wにマズそげなので、「Raspberry Pi OS」と称するらしいw
cec-client で変な挙動
# Enable DRM VC4 V3D driver
#dtoverlay=vc4-kms-v3d
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
する。 cec-client が修正されたので不要。
libcecのアップデートでまた壊れた
USB で変なエラー
dtoverlay=dwc2
する。 修正されたので不要。
また変な挙動になったので、これで修正 (以下HDMI, USB関連すべて)
hdmi_ignore_cec_init=1
hdmi_force_hotplug=1
hdmi_drive=2
dtoverlay=dwc
bookworm の仕様変更なのだが、rsyslog が無くなり、あらゆる journalctl らしい。
journalctl -ef
が tail -F /var/log/syslog の代わりw
python で独自 module のインストールが制限された。pipx 使えとの事。
https://www.debian.org/releases/stable/i386/release-notes/ch-information.ja.html
参照。