OS関連
目次
Raspberry Pi OS(bookworm)の設定Tips。
Raspberry Pi 3 Model B Rev 1.2
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
設定ファイルに固定アドレスを指定する。
# The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.10.40 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.10.255 gateway 192.168.10.254 dns-nameservers 192.168.10.1 192.168.10.2
以下を実行して設定を書き込む
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
標準の構成ではnslookupが使用できないため、パッケージを追加する。
apt-get install dnsutils