Debian + Flightradar24 その1
Raspberry Piでは構築してる人多いのと、事例多いのだが、Debianだと余り見つからなかったので
自分用メモも兼ねて
(その幾つまでいくかは不明)
取り敢えずコマンドとか設定だけ羅列
- マシンは消費電力が少なくFanLessな HP T630 Thin Client
Raspberry Pi 3B以降なら対応しているが、4シリーズになるとFanついて微妙だ - Debian 11をInstall
- サーバーに日本語は不要なので、Language は English、 Locale はUnited States - en_US.UTF-8
- Localtionは Asia/Tokyo
- Install pkgは、 最小構成の ssh server & standard system utilities のみ
必要なら後でインストールするだけ - Flightradar24専用機なので、LVMで1パーテ構成
- アンテナは定番の RTL2832U Nooelec NESDR SMArt v4 Bundle
アンテナは長短コイルアンテナに、ロッドアンテナが入っていたが1090MHzなら長いコイルアンテナ
DHCP環境だと、インストール時にIPアドレスが固定できないので、インストール後にIPアドレスを固定化
Before
Interface名が独特すぎる・・・
# cat /etc/network/interfaces <一部抜粋> # The primary network interface allow-hotplug enp1s0 iface enp1s0 inet dhcp
After
# cat /etc/network/interfaces <一部抜粋> # The primary network interface allow-hotplug enp1s0 #iface enp1s0 inet dhcp iface enp1s0 inet static address xxx.xxx.xxx.xxx netmask 255.255.255.0 gateway xxx.xxx.xxx.xxx dns-nameservers xxx.xxx.xxx.xxx
Interface再起動
# systemctl restart ifup@enp1s0
ついでにIPv6を Disable
# echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf # sysctl -p
dmesgを見た所、AMD GPUとRealtek NICで Firmware Errorになっていたので、non-freeリポジトリを追加してpkg install
/etc/apt/sources.list に以下を追加 # non-free package deb http://ftp.jp.debian.org/debian/ bullseye non-free deb-src http://ftp.jp.debian.org/debian/ bullseye non-free
# apt-get update # apt-get install firmware-realtek firmware-amd-graphics
で、OS再起動したら見事エラー解消
で、大したセキュリティ設定ではないけど
ログインをPassword認証から、Challenge Response認証に変更
/etc/ssh/sshd_config を以下に変更 PasswordAuthentication no ChallengeResponseAuthentication yes # systemctl restart sshd