ラベル Raspberry Pi Desktop for PC の投稿を表示しています。 すべての投稿を表示
ラベル Raspberry Pi Desktop for PC の投稿を表示しています。 すべての投稿を表示

金曜日, 7月 18, 2025

Flightrader24用のPCのOSを更新

 Flightrader24用のPCのOSを更新

  • 旧 Debian Bullseye with Raspberry Pi Desktop
  • 新 Linux Mint 22.1 "Xia"
  1. Linux mintをインストール後に日本語入力等の設定
  2. Google Chromeをインストール
  3. ソフトウェアマネージャーで”rtl-sdr”を検索しインストール
    1. デバイスを接続して、rtl_testコマンドで動作確認・・・OK!
  4. Dump1090-fa等をインストール
    1. https://github.com/abcd567a
    2. piaware-ubuntu-debian-amd64
    3. リブート
    4. dump1090-fa に位置情報を記入
    5. Chromeで"http://localhost:8080/"にアクセスし動作確認
  5. Flightradae24 Share your ADS-B data
    1. Linuxタブのコマンドを入力
      1. "wget -qO- https://fr24.com/install.sh | sudo bash -s"
      2. メールアドレス、シェアリングキー等を入力

--
Linux mintへリモートデスクトップで接続
  1. 参照 [Linux Mint 20]リモートデスクトップ接続する・される
  2. ソフトウェアマネージャーで"xrdp"を検索してインストール
  3. $ sudo nano /etc/xrdp/xrdp.ini
    1. new_cursors=true
    2. 上記の「true」を「false」に変更
  4. $ sudo nano /etc/xrdp/startwm.sh
    1. "test -x /etc/X11/Xsession && exec /etc/X11/Xsession”の上に下記を2行を挿入
    2. ”unset DBUS_SESSION_BUS_ADDRESS”
    3. ”exec cinnamon-session”
  5. 下記のコマンドでxrdpをリスタート
    1. $ sudo systemctl restart xrdp
  6. 下記のコマンドで”Active: active (running)”を確認する
    1. $ sudo systemctl status xrdp
  7. Windowsの「リモートデスクトップ接続」でMint側のIPアドレスを入力して接続
    1. Mint側のユーザ・パスワードを入力

    金曜日, 1月 20, 2023

    GT-9400UFを Raspberry Pi Desktop for PC (bullseya)で使う

    Ubuntuの64BitでGT-9400UFを使えるように色々とやってみたがうまく行かないので、32BIt版のRaspberry Pi Desotop for PC(bullseye)で使えるようにとやってみました。
    ※個人用のメモなので間違いが有るかも?

    EPSON ドライバーダウンロード」に型式とOSを入力し、検索。

    GT-9400UF, Linux Driver
     

    gcc 3.4以降用の2番と4番目をダウンロードします。
    ※Linux版のChrome、chromiumでは安全で無いとのことでダウンロードボタンが効きません。Windows版のChromeでは注意喚起がありますが、メニューから保存可能です。ダウンロードリンクもコピー出来たので、下記に記します。※※自己責任!

    フォルダー「GT-9400UF」作成し、そこで作業します。

    md5チェックサムの計算
    $ md5sum *.rpm
    349715562010b0905b0a2aa6c758fb85  iscan-2.10.0-1.c2.i386.rpm
    f76725766f44debe3f3fec06d0e2023b  iscan-plugin-gt-9400-1.0.0-1.c2.i386.rpm
    

    「Image Scan! for Linux 操作ガイド」(userg_revG_j.pdf)には下記が書いてあります。 

    Image Scan! for Linux を使用するコンピュータには、SANE パッケージ バージョン 1.0.3 以降がインストールされている必要があります。

    SANEはRaspberry Pi Desotop for PCにインストール済みで下記コマンドでバージョン確認が可能です。

    $ scanimage -V
    scanimage (sane-backends) 1.0.31-debian; backend version 1.0.31
    


    下記を参照し、iscan ソフトウェア パッケージで root 以外のユーザーが USBスキャナーにアクセスできるようにudev ルールを作成するファイルを編集します。


    最初に開発環境の確認とインストール

    gccインストールの確認
    $ apt show gcc
    Package: gcc
    Version: 4:10.2.1-1
    Priority: optional
    Build-Essential: yes
    Section: devel
    Source: gcc-defaults (1.190)
    Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
    Installed-Size: 56.3 kB
    Provides: c-compiler, gcc-i686-linux-gnu (= 4:10.2.1-1)
    Depends: cpp (= 4:10.2.1-1), gcc-10 (>= 10.2.1-3~)
    Recommends: libc6-dev | libc-dev
    Suggests: gcc-multilib, make, manpages-dev, autoconf, automake, libtool, flex, bison, gdb, gcc-doc
    Conflicts: gcc-doc (<< 1:2.95.3)
    Tag: devel::compiler, devel::lang:c, devel::library, implemented-in::c,
     interface::commandline, role::devel-lib, role::metapackage,
     role::program, suite::gnu, works-with::software:source
    Download-Size: 5,244 B
    APT-Manual-Installed: no
    APT-Sources: http://deb.debian.org/debian bullseye/main i386 Packages
    Description: GNU C コンパイラ
     これは GNU C コンパイラです。移植性に優れ、最適化を行う C 言語用コンパイラ
     です。
     .
     本パッケージは、デフォルトの GNU C コンパイラを提供する依存パッケージです。
    


    alienのインストールとバージョン確認、使い方
    $ sudo apt install alien
    
    
    $ alien --version
    alien version 8.95.4
    
    
    $ alien --help
    Usage: alien [options] file [...]
      file [...]                Package file or files to convert.
      -d, --to-deb              Generate a Debian deb package (default).
         Enables these options:
           --patch=<patch>      Specify patch file to use instead of automatically
                                looking for patch in /var/lib/alien.
           --nopatch	    Do not use patches.
           --anypatch           Use even old version os patches.
           -s, --single         Like --generate, but do not create .orig
                                directory.
           --fixperms           Munge/fix permissions and owners.
           --test               Test generated packages with lintian.
      -r, --to-rpm              Generate a Red Hat rpm package.
          --to-slp              Generate a Stampede slp package.
      -l, --to-lsb              Generate a LSB package.
      -t, --to-tgz              Generate a Slackware tgz package.
         Enables these options:
           --description=<desc> Specify package description.
           --version=<version>  Specify package version.
      -p, --to-pkg              Generate a Solaris pkg package.
      -i, --install             Install generated package.
      -g, --generate            Generate build tree, but do not build package.
      -c, --scripts             Include scripts in package.
          --target=<arch>       Set architecture of the generated package.
      -v, --verbose             Display each command alien runs.
          --veryverbose         Be verbose, and also display output of run commands.
      -k, --keep-version        Do not change version of generated package.
          --bump=number         Increment package version by this number.
      -h, --help                Display this help message.
      -V, --version		    Display alien's version number.
    

    $ rpm --version
    RPM version 4.16.1.2



    debuildインストール
    $ debuild
    bash: debuild: コマンドが見つかりません
    
    $ devscripts
    bash: devscripts: コマンドが見つかりません
    
    $ debuild --version
    This is debuild, from the Debian devscripts package, version 2.21.3+deb11u1
    This code is copyright 1999-2003 by Julian Gilbey <jdg@debian.org>,
    all rights reserved.
    Based on a shell-script program by Christoph Lameter.
    This program comes with ABSOLUTELY NO WARRANTY.
    You are free to redistribute this code under the terms of the
    GNU General Public License, version 2 or later.
    

    $ debuild --help
    First usage method:
      debuild [<debuild options>] -- binary|binary-arch|binary-indep|clean ...
        to run debian/rules with given parameter(s).  Options here are
            --no-conf, --noconf      Don't read devscripts config files;
                                     must be the first option given
            --rootcmd=<gain-root-command>, -r<gain-root-command>
                                     Command used to become root if debuild
                                     not setuid root; default=fakeroot
    
            --preserve-envvar=<envvar>, -e<envvar>
                                     Preserve environment variable <envvar>
    
            --preserve-env           Preserve all environment vars (except PATH)
    
            --set-envvar=<envvar>=<value>, -e<envvar>=<value>
                                     Set environment variable <envvar> to <value>
    
            --prepend-path=<value>   Prepend <value> to the sanitised PATH
    
            -d                       Skip checking of build dependencies
            -D                       Force checking of build dependencies (default)
    
            --check-dirname-level N
                    How much to check directory names:
                    N=0   never
                    N=1   only if program changes directory (default)
                    N=2   always
    
            --check-dirname-regex REGEX
                    What constitutes a matching directory name; REGEX is
                    a Perl regular expression; the string `PACKAGE' will
                    be replaced by the package name; see manpage for details
                    (default: 'PACKAGE(-.+)?')
    
            --help, -h    display this message
    
            --version     show version and copyright information
    
    Second usage method:
      debuild [<debuild options>] [<dpkg-buildpackage options>]
                 [--lintian-opts <lintian options>]
        to run dpkg-buildpackage and then run lintian on the resulting
        .changes file.
    
        Additional debuild options available in this case are:
    
            --lintian           Run lintian (default)
            --no-lintian        Do not run lintian
            --[no-]tgz-check    Do [not] check for an .orig.tar.gz before running
                                dpkg-buildpackage if we have a Debian revision
                                (Default: check)
            --username          Run debrsign instead of debsign, using the
                                supplied credentials
    
            --dpkg-buildpackage-hook=HOOK
            --clean-hook=HOOK
            --dpkg-source-hook=HOOK
            --build-hook=HOOK
            --binary-hook=HOOK
            --dpkg-genchanges-hook=HOOK
            --final-clean-hook=HOOK
            --lintian-hook=HOOK
            --signing-hook=HOOK
            --post-dpkg-buildpackage-hook=HOOK
                                These hooks run at the various stages of the
                                dpkg-buildpackage run.  For details, see the
                                debuild manpage.  They default to nothing, and
                                can be reset to nothing with --foo-hook=''
            --clear-hooks       Clear all hooks
    
        For available dpkg-buildpackage and lintian options, see their
        respective manpages.
    
    Default settings modified by devscripts configuration files:
      (none)
    


    パッケージの検索コマンドラインツールをインストール、アップデート
    $ sudo apt install -y apt-file
    
    $ sudo apt-file update

    .rpmから.debパッケージへの変換
    $ cd GT-9400UF
    
    $ sudo alien -g --scripts iscan-plugin-gt-9400-1.0.0-1.c2.i386.rpm
    Directories iscan-plugin-gt-9400-1.0.0 and iscan-plugin-gt-9400-1.0.0.orig prepared.
    
    $ sudo alien -g --scripts iscan-2.10.0-1.c2.i386.rpm
    Directories iscan-2.10.0 and iscan-2.10.0.orig prepared.
    

    $ cd ..


    ここで iscan-2.10.0/usr/lib/iscan/make-udev-rules の編集をする
    $ sudo nano iscan-2.10.0/usr/lib/iscan/make-udev-rules
    

     'SYSFS' を'ATTRS' に置き換えは置換で実施、コメントを含めて5箇所あった。
     'usb_device' を 'usb' に置き換え、一箇所。

    もう一つは下記のようにTEMPLETEの行を編集。
    # Before
    TEMPLATE='ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="HHHH", MODE="0666"'
    
    # After
    TEMPLATE='ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="HHHH", MODE="0666"'
    

    diffで編集した新旧ファイルの差分を確認
    $ diff iscan-2.10.0/usr/lib/iscan/make-udev-rules iscan-2.10.0.orig/usr/lib/iscan/make-udev-rules
    26,27c26,27
    < TEMPLATE='ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="HHHH", MODE="0666"'
    < SUB_SYST='usb'
    ---
    > TEMPLATE='SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="HHHH", MODE="0666"'
    > SUB_SYST='usb_device'
    57c57
    < #  does assume that ATTRS{idVendor} is on the first line.
    ---
    > #  does assume that SYSFS{idVendor} is on the first line.
    61c61
    <     /ATTRS{idVendor}=\{1,2\}"04[bB]8"/{
    ---
    >     /SYSFS{idVendor}=\{1,2\}"04[bB]8"/{
    67c67
    < 	| sed 's/\(ATTRS{idProduct}=\{1,2\}\)"[[:xdigit:]]\{4\}"/\1"HHHH"/'
    ---
    > 	| sed 's/\(SYSFS{idProduct}=\{1,2\}\)"[[:xdigit:]]\{4\}"/\1"HHHH"/'
    

    32bitなので、Architectureにamd64の追加はしていない。


    debuildを実施
    $ cd iscan-2.10.0
    $ sudo debuild -uc -us -b
    
    $ cd ..
    
    $ cd iscan-plugin-gt-9400-1.0.0
    $ sudo debuild -uc -us -b
    

    $ cd ..

    iscan_2.10.0-2_i386.buildのerror
    dpkg-shlibdeps: error: cannot find library libusb-0.1.so.4 needed by debian/iscan/usr/lib/sane/libsane-epkowa.so.1.0.15 (ELF format: 'elf32-i386' abi: '0101000300000000'; RPATH: '')
    dpkg-shlibdeps: error: cannot find library libpangox-1.0.so.0 needed by debian/iscan/usr/bin/iscan (ELF format: 'elf32-i386' abi: '0101000300000000'; RPATH: '')
    dpkg-shlibdeps: error: cannot find library libusb-0.1.so.4 needed by debian/iscan/usr/bin/iscan (ELF format: 'elf32-i386' abi: '0101000300000000'; RPATH: '')
    dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iscan/usr/bin/iscan was not linked against libpango-1.0.so.0 (it uses none of the library's symbols)
    dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iscan/usr/lib/sane/libsane-epkowa.so.1.0.15 debian/iscan/usr/bin/iscan were not linked against libnsl.so.1 (they use none of the library's symbols)
    dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iscan/usr/bin/iscan was not linked against libgmodule-2.0.so.0 (it uses none of the library's symbols)
    dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iscan/usr/bin/iscan was not linked against libatk-1.0.so.0 (it uses none of the library's symbols)
    dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iscan/usr/bin/iscan was not linked against libgdk_pixbuf-2.0.so.0 (it uses none of the library's symbols)
    dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iscan/usr/lib/sane/libsane-epkowa.so.1.0.15 debian/iscan/usr/bin/iscan were not linked against libjpeg.so.62 (they use none of the library's symbols)
    dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iscan/usr/lib/sane/libsane-epkowa.so.1.0.15 debian/iscan/usr/bin/iscan were not linked against libieee1284.so.3 (they use none of the library's symbols)
    dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iscan/usr/bin/iscan was not linked against libpangoxft-1.0.so.0 (it uses none of the library's symbols)
    dpkg-shlibdeps: error: cannot continue due to the errors listed above
    

      不足のライブラリーを検索してインストール
      $ apt-file search libusb-0.1.so.4
      libusb-0.1-4: /lib/i386-linux-gnu/libusb-0.1.so.4
      libusb-0.1-4: /lib/i386-linux-gnu/libusb-0.1.so.4.4.4
      
      $ sudo apt install libusb-0.1-4
      


      $ apt-file search libpangox-1.0.so.0
      libpangox-1.0-0: /usr/lib/i386-linux-gnu/libpangox-1.0.so.0
      libpangox-1.0-0: /usr/lib/i386-linux-gnu/libpangox-1.0.so.0.0.0
      
      $ sudo apt install libpangox-1.0-0

      再度、前記のdebuildを実施してエラーが無くなることを確認する

      ファイルマネージャーで「iscan_2.10.0-2_i386.deb」選択し、右ボタンの「パッケージのインストール」を実施

      インストール後は端末で「iscan」を起動すれば、ドライバーを必要としないGT-9300UFは使用可能になる。但し、保存形式は「pnm」のみ。「png」は選択可能だがlibpng warning発生。

      $ iscan
      libpng warning: Application built with libpng-1.2.7 but running with 1.6.37
      terminate called after throwing an instance of 'std::bad_alloc'
        what():  std::bad_alloc
      

      ファイルマネージャーで「iscan-plugin-gt-9400_1.0.0-2_i386.deb」選択し、右ボタンの「パッケージのインストール」を実施

      iscan_2.10.0-2をインストール

      この状態で端末から「iscan」で起動すればGT-9300UFは使用可能になる。

      GT-9400UFのプラグインをインストール



      $ scanimage -L
      
      No scanners were identified. If you were expecting something different,
      check that the scanner is plugged in, turned on and detected by the
      sane-find-scanner tool (if appropriate). Please read the documentation
      which came with this software (README, FAQ, manpages).
      
      $ sudo scanimage -L
      Created directory: /var/lib/snmp/cert_indexes
      device `epkowa:libusb:001:007' is a Epson GT-9400 flatbed scanner
      

      $ sudo scanimage -L
      device `epkowa:libusb:001:007' is a Epson GT-9400 flatbed scanner

      $ sane-find-scanner | grep 04b8 could not open USB device 0x04b8/0x0116 at 001:007: Access denied (insufficient permissions) 

      $ sudo sane-find-scanner | grep 04b8
      found USB scanner (vendor=0x04b8 [EPSON], product=0x0116 [EPSON Scanner]) at libusb:001:007
      

      ※使用可能になった後はsudo不要

      $ scanimage -L
      device `epkowa:libusb:003:010' is a Epson GT-9400 flatbed scanner

      $ sane-find-scanner | grep 04b8
      found USB scanner (vendor=0x04b8 [EPSON], product=0x0116 [EPSON Scanner]) at libusb:003:010


      GT-9400UFのプラグインをインストールする前に下記を行う必要があるかも?

      SANE/スキャナー別の問題 ※Epson Perfection 1270を参照
      • ドライバーファイルは iscan-plugin-gt-9400-1.0.0/usr/share/iscan/esfw32.bin
        • ドライバーファイルを /usr/share/sane/epson2 へコピー
        • /usr/shere/iscan/esfw32.bin コピーされている事を確認する
      • GT-9400UFのバックエンドの設定ファイルは /etc/sane.d/epson2.conf
      • $ sudo nano /etc/sane.d/epson2.conf
      • /etc/hotplug/usb/iscan.usermap は確認のみ
      $ sudo pcmanfm ※管理者権限でファイルマネージャーを起動

      --
      Add / Remove SoftwareでSANEを検索し、xsane-0.999-10とsimple-scan-3.38.1-1をインストール。gimpをインストールすれば、jpeg,png,PDF等で保存可能になる。XSaneでもスキャン後に任意のファイル形式で保存可能。

      gimp 画像の生成 > XSane

      --
      設定 > Main Menu Editorでグラフィックスに登録
          Command: /usr/bin/iscan
          Name、Commentは適当に登録。必要ならアイコンを変更
      --
      Image Scan! for Linuxではjpeg形式の保存を選択できないが、Add Remove Softwareで「libjpeg-turbo JPEG ライブラリの開発用ファイル」をインストールすれば、jpegでの保存が可能になる。
      Add Remove Software


      Flightradar24 を1.0.34-0アップデートせよとのメール着

      Flightradar24からメールが届きました。

      Dear Host,

      We have noticed that you are using an older version of Flightradar24 data sharing software (1.0.25-3) that we are phasing out. We would therefore like you to upgrade to the latest version (1.0.34-0) before Feb 28, 2023.

      確かに1.0.25-3を使ってますが、新しい1.0.34-0はどこにあるのかな?

      Flightradar24のサイトを見る限り、Linux用の最新版ですけどね。

      Linux Debian package amd64/x86_64

      support宛てに質問メールを出しました。サポートフォーラムを見てみると、下記の投稿が有りました。

      Your Flightradar24 feeder XXX is running outdated version?

      サポートから14分後に返信が来て、ダウンロード用のリンクを教えてくれました。メール対応は早いのにウェブの更新とフォーラムの対応は遅いようです。

      --

      サポートフォーラムにも書いてねと返信したら、別の方も問い合わせしていたらしく、ダウンロードリンクを投稿してました。直後にウェブサイトも更新されてます。

      更新されました!

      最初のメールを送る前にウェブサイトを更新すれば良かったのに・・・。たぶん担当者が違うんだろうな。

      --

      ブラウザでflightradar24のShare your ADS-B dataにアクセス、LINUXタブを選択し「Linux Debian package amd64/x86_64」をダウンロード。ファイルマネージャーでダウンロードしたdebファイルを右クリック、「パッケージをインストール」をクリックするとインストール出来た。予めfr24 feederを停止したり設定を保存する必要はない。インストール後にPCを再起動すればアップデート作業終了です。※Raspberry Pi Desktop for PC[Debian version: 11 (bullseye)]

      version 1.0.34-0


      火曜日, 8月 02, 2022

      Raspberry Pi Desktop for PC and Mac(Debian 11 Bullseye)

       Raspberry Pi Desktop for PC and Macを見ていたら、2022年7月1日版が出てました。Debianのバージョンが10(buster)から、11 (bullseye)に変わっています。※32bitです。

      Debian Bullseye with Raspberry Pi Desktop
      Release date: July 1st 2022
      System: 32-bit
      Kernel version: 5.10
      Debian version: 11 (bullseye)
      Size: 3,440MB

       取りあえず、Rufusを使ってLIVE USB化し遊んでみます。RufusもV3.19に更新。やり方は忘れているので前回の記事を参照。最初のUpdate Softwareは時間が掛かるのでパスした方が良かった! ※2022/08/03にRufus 3.20が出てます。

      LIVE USBで動作確認が出来たので、USB接続のHDDにインストールしました。日本語は何も設定しなくても入力可能です。

      --

      貰い物のNEC LaVie LL850/Dにインストールしました。このPCはちょっとキーボードの調子が悪く、他にも調べた結果内蔵メモリー4GBx2の内の1枚が不良でした。久々にMemtest86+をUSB起動で調べてみたら大量のエラーの嵐になってました。4GB生き残ってるけど、Windows10には不足気味だろうから、Raspberry Pi Desktop for PC で使用することにしました。

      前回の記事を参考にdump1090-fa他をインストール。後はノートパソコンのカバー(ディスプレイ)を閉じてもスリープ状態に移行しないようにする必要があります。下記の設定を行えば、カバーを閉じれば画面が消えますがサスペンドしません。

      $ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
      有効に戻す時は
      sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

      土曜日, 3月 19, 2022

      Raspberry Pi Desktop for PC にdump1090-fa をインストールし、SkyView mapを表示

      SkyView map: PiAware SkyAware 7.2

       Raspberry Pi Desktop for PC にdump1090-fa をインストールし、ローカルのウェブサーバー(lighttpd)にADB-Sの受信状況を上記の様に表示させてみました。SkyView mapまたはSkyAware mapと呼ぶらしい。

      先ず、Raspberry Pi Desktop for PC は日本語化とスクリーンキャプチャーを入れた状態から始めます。※USB接続のHDDにインストールしています。Windows10のPCです。

      1. RTL-SDRの動作確認
        メニュー「設定」の「Add/Remove Software」でRTL-SDRを検索し、インストールする。※出来るだけGUIでやってみます。
        「Add/Remove Software」でRTL-SDRを検索

        参照サイト RTL-SDRを動かしてみました
        デバイスを接続して、rtl_testコマンドで動作確認・・・OK!
        $ rtl_test
        Found 1 device(s):
          0:  Realtek, RTL2838UHIDIR, SN: 00000001
         
        Using device 0: Generic RTL2832U OEM
        Detached kernel driver
        Found Rafael Micro R820T tuner
        以下省略 Found 1 device なので、認識してる

      2. dump1090-faとlighttpdをインストール
        dump1090-mutabilityは1項と同様にGUIでインストール可能ですが、fa版は不可。
      3.      fa版は下記参照
        ここのINSTALL DUMP1090:
        (3) For Debian 9 & 10 and Ubuntu 18 & 19 (dump1090-fa)
        $ sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/fr24feed-debian-ubuntu-amd64/master/install-dump1090-fa.sh)"こ
        ※上記はlighttpdとdump1090-faをインストールするスクリプトです。
        これでlighttpdは1.4.53、dump1090-faはVer7.2がインストールされました。
        ※昨夜は巧くいったのに今日はエラーが出てdump1090-faがインストールされなかった。別途、ググって下記を見つけた。
        abcd567a/piaware-ubuntu20-amd64
        上記のインストール方法でやってみたら、dump1090-fa 7.2が入りました。
        ローカルポート:skyawareが使えなくなり、8080になってしまった。何故?
        ※ローカルポート/skyaware or ローカルポート:8080 でした。両方OK!
        Dump1090-fa showing 404-not found
        sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-dump1090-fa.sh)"
        


        ===============
        ALL DONE - dump1090-fa (Flightaware version)
        ===============
        (1) In your browser, go to web interface at
        誤     http://192.168.xxx.xxx/dump1090-fa/
        正     http://192.168.xxx.xxx/skyaware/
         
        REBOOT YOUR COMPUTER IF MAP DOES NOT SHOW, OR SHOWS ERROR MESSAGE
        In case you want to change/add settings of dump1090-fa, edit following files:
          sudo nano /etc/default/dump1090-fa 
          sudo nano /usr/share/dump1090-fa/html/config.js か


        $ dump1090-fa --help
        -----------------------------------------------------------------------------
        | dump1090 ModeS Receiver                                   dump1090-fa 7.2 |
        | build options: ENABLE_RTLSDR ENABLE_BLADERF ENABLE_HACKRF ENABLE_LIMESDR  |
        -----------------------------------------------------------------------------
        --device-type <type>     Select SDR type (default: rtlsdr)
        
              rtlsdr-specific options (use with --device-type rtlsdr)
        
        --device <index|serial>  select device by index or serial number
        --enable-agc             enable digital AGC (not tuner AGC!)
        --ppm <correction>       set oscillator frequency correction in PPM
        --direct <0|1|2>         set direct sampling mode
        
              bladeRF-specific options (use with --device-type bladerf)
        
        --device <ident>         select device by bladeRF 'device identifier'
        --bladerf-fpga <path>    use alternative FPGA bitstream ('' to disable FPGA load)
        --bladerf-decimation <N> assume FPGA decimates by a factor of N
        --bladerf-bandwidth <hz> set LPF bandwidth ('bypass' to bypass the LPF)
        
              HackRF-specific options (use with --device-type hackrf)
        
        --enable-amp             enable amplifier)
        --enable-antenna-power   enable DC power to the antenna connector
        --lna-gain               set LNA gain (Range 0-40 in 8dB steps))
        --vga-gain               set VGA gain (Range 0-62 in 2dB steps))
        --samplerate             set sample rate)
        --ppm                    ppm correction)
        
              limesdr-specific options (use with --device-type limesdr)
        
        --limesdr-verbosity      set verbosity level for LimeSDR messages
        --limesdr-serial         serial number of desired device
        --limesdr-channel        set number of an RX channel
        --limesdr-oversample     set RF oversampling ratio
        --limesdr-gain           set normalized gain (range: 0.0 to 1.0)
        --limesdr-lpfbw          set LPF bandwidth
        --limesdr-bw             set bandwidth
        
              ifile-specific options (use with --ifile)
        
        --ifile <path>           read samples from given file ('-' for stdin)
        --iformat <type>         set sample format (UC8, SC16, SC16Q11)
        --throttle               process samples at the original capture speed
        
              Output modes
        
        --raw                    Show only messages hex values
        --modeac                 Enable decoding of SSR Modes 3/A & 3/C
        --mlat                   display raw messages in Beast ascii mode
        --onlyaddr               Show only ICAO addresses (testing purposes)
        --metric                 Use metric units (meters, km/h, ...)
        --gnss                   Show altitudes as HAE/GNSS when available
        --quiet                  Disable output to stdout. Use for daemon applications
        --show-only <addr>       Show only messages from the given ICAO on stdout
        --snip <level>           Strip IQ file removing samples < level
        
              Decoder settings
        
        --gain <db>              Set gain in dB (default: varies by SDR type)
        --freq <hz>              Set frequency (default: 1090 Mhz)
        --fix                    Enable single-bit error correction using CRC
        --fix-2bit               Enable two-bit error correction using CRC
                                  (use with caution!)
        --no-fix                 Disable error correction using CRC
        --no-fix-df              Disable error correction of the DF message field
                                  (reduces CPU requirements)
        --no-crc-check           Disable messages with broken CRC (discouraged)
        --enable-df24            Enable decoding of DF24 Comm-D ELM messages
        --lat <latitude>         Reference/receiver latitude for surface positions
        --lon <longitude>        Reference/receiver longitude for surface positions
        --max-range <distance>   Absolute maximum range for position decoding (in NM)
        
              Adaptive gain
        
        --adaptive-burst                     Adjust gain for too-loud message bursts
        --adaptive-burst-change-delay <s>     Set delay after changing gain before
                                               resuming burst control (seconds)
        --adaptive-burst-alpha <a>            Set burst rate smoothing factor
                                               (0..1, smaller=more smoothing)
        --adaptive-burst-loud-rate <r>        Set burst rate for gain decrease
        --adaptive-burst-loud-runlength <l>   Set burst runlength for gain decrease
        --adaptive-burst-quiet-rate <r>       Set burst rate for gain increase
        --adaptive-burst-quiet-runlength <l>  Set burst runlength for gain increase
        --adaptive-range                     Adjust gain for target dynamic range
        --adaptive-range-target <db>          Set target dynamic range in dB
        --adaptive-range-alpha <a>            Set dynamic range noise smoothing factor
                                               (0..1, smaller=more smoothing)
        --adaptive-range-percentile <p>       Set dynamic range noise percentile
        --adaptive-range-change-delay <s>     Set delay after changing gain before
                                               resuming dynamic range control (seconds)
        --adaptive-range-scan-delay <s>       Set scan interval for dynamic range
                                               gain scanning following a gain decrease
                                               due to an increase in noise (seconds)
        --adaptive-range-rescan-delay <s>     Set periodic rescan interval for dynamic
                                               range gain scanning (seconds)
        --adaptive-min-gain <g>              Set gain adjustment range lower limit (dB)
        --adaptive-max-gain <g>              Set gain adjustment range upper limit (dB)
        --adaptive-duty-cycle <p>            Set adaptive gain duty cycle % (1..100)
        
              Network connections
        
        --net                    Enable networking with default ports unless overridden
        --no-modeac-auto         Don't enable Mode A/C if requested by a net connection
        --net-only               Enable just networking, no RTL device or file used
        --net-bind-address <ip>  IP address to bind to (use 127.0.0.1 for private)
        --net-ri-port <ports>    TCP raw input listen ports  (default: 30001)
        --net-ro-port <ports>    TCP raw output listen ports (default: 30002)
        --net-sbs-port <ports>   TCP BaseStation output listen ports (default: 30003)
        --net-bi-port <ports>    TCP Beast input listen ports  (default: 30004,30104)
        --net-bo-port <ports>    TCP Beast output listen ports (default: 30005)
        --net-stratux-port <ports>  TCP Stratux output listen ports (default: disabled)
        --net-ro-size <size>     TCP output minimum size (default: 0)
        --net-ro-interval <rate> TCP output memory flush rate in seconds (default: 0)
        --net-heartbeat <rate>   TCP heartbeat rate in seconds
                                  (default: 60 sec; 0 to disable)
        --net-buffer <n>         TCP buffer size 64Kb * (2^n) (default: n=0, 64Kb)
        --net-verbatim           Make output connections default to verbatim mode
                                   (forward all messages without correction)
        --forward-mlat           Allow forwarding of received mlat results
        
              Stats and json output
        
        --stats                  Show stats summary at exit.
        --stats-every <seconds>  Show and reset stats every <seconds> seconds
        --stats-range            Collect/show range histogram
        --write-json <dir>       Periodically write json output to <dir>
                                  (for serving by a separate webserver)
        --write-json-every <t>   Write json aircraft output every t seconds (default 1)
        --json-stats-every <t>   Write json stats output every t seconds (default 60)
        --json-location-accuracy <n>  Accuracy of receiver location in json metadata
                                  (0=no location, 1=approximate, 2=exact)
        
              Interactive mode
        
        --interactive                       Interactive mode refreshing data on screen.
                                             Implies --throttle
        --interactive-ttl <sec>             Remove from list if idle for <sec>
        --interactive-show-distance         Show aircraft distance and bearing
                                             (requires --lat and --lon)
        --interactive-distance-units <u>    Distance units ('km', 'sm', 'nm')
        --interactive-callsign-filter <r>   Filter rows by callsign against regex
        
              Misc
        
        --wisdom <path>          Read DSP wisdom from given path
        --version                Show version, build and DSP options
        --help                   Show this help
        


      4. dump1090-fa に位置情報を記入
        参照サイト How-to Install dump1090-fa and Piaware on Arch Linux x64_86 and on AlarmPi Armv7 & Aarch64
         (1) Open file “dump1090-fa” for editing
              $ sudo nano  /etc/default/dump1090-fa
                 RECEIVER_LAT=xx.xxxx     #緯度 latitude
                 RECEIVER_LON=xxx.xxx    #経度 longitude
         受信地の経度・緯度を書き込み・終了しリスタートすると、設定した位置の地図に同心円が表示され、画面右側のDistanceも表示されます。別の地域が表示されている時は「Reset Map」をクリックしてみてください。同心円の距離は画面右上のギヤマークをクリックして、Units:で単位を変えることが出来ます。
          Aeronautical/Metric/Imperial => nm/km/mi(海里/km/マイル)
          dump1090-faのサービスには下記のコマンドを使用します。
          1. $ sudo systemctl enable dump1090-fa.service   #サービスを有効化
          2. $ sudo service dump1090-fa start           #サービスを開始   
          3. $ sudo service dump1090-fa stop           #サービスを停止
          4. $ sudo systemctl disable dump1090-fa    #サービスを無効化

      --
      SkyAware map

      フィードしなくてもADS-Bの受信状況は分かりやすいし、航空機との距離も表示されるのでこれは良いですね。

      --
      dump1090-mutability から dump1090-fa に変更する方法は下記参照。未だ試してないけど…。
      ググっていて下記を見つけました。
      Flightradar24にフィードせずに、dump1090-mutabilityをインストールして、SkyAwareマップみたいなのが見れないか試したことがあります。どこかにウェブ機能は無効になっていると書いて有り、やってみても表示されないので、mutability版では簡単に出来ないのだと思ってました。上記記事を読んで、Flghtradar24にフィードしている環境のmutability版では確認していなかったので確認してみました。ポート番号は何だろうと思いつつ、/dump1090を付けてやってみたら、マップ表示が現れました。
      • ローカルポート/dump1090/gmap.html
      地図の初期位置設定はどこでやるのかな? 3項の方法で位置情報は書き込めるけど、同心円は描かれないし、距離も表示されない。マップのオーバーレイ設定にはチェックマーク有りだし。「reset map」をクリックするとミラノ付近を表示する。???
      原因は「LAT=""」とダブルコーテーションが2つ書いてあったので、その間に入力したのが間違いかな?? それとも/etc/dump1090-mutability/config.js に位置情報を書き込むのかも??  まだ不明です。どこだろう??
      別のPCからアクセスしてみたら、reset map」が効いて地図の初期位置が開きます。同心円は表示されません。同じところを見ているのに???
      航空機をクリックしたときのリンク先はあちこちのサイトが有って、これが良いかも。
      dump1090-mutability


      --
      素直にフィードしているPCのdump1090をfa版に入れ替えた方が良いかも。
      --
      同心円の描き方
      --
      初心者向けアンテナのスレッド
      --
      その他、リンクのメモ



      日曜日, 1月 09, 2022

      Raspberry Pi Desktop for PC に Flightradar24 data sharing software をインストール

       Raspberry Pi Desktop for PCFlightradar24 にADS-B dataをシェアしてみようと、Linux Debian package amd64/x86_64 (Ver 1.0.25-3)をインストールしてみました。

      ※ここで使ったのは Raspberry Pi(ARMプロセッサを搭載したシングルボードコンピュータ)では無く、Core i3-3240が入ったWindows10のパソコンです。
      USBメモリーからRaspberry Pi Desktop for PC  を起動しています。

      Raspberry Pi Desktopのブラウザで、「Linux Debian package amd64/x86_64.deb」をダウンロードし、ファイルマネージャーでDownloadsフォルダを開き、該当アイコンを右クリックし、「開く(O)」を選択すると、インストール出来ました。

      $ fr24feed --help では下記の様に表示されます。

      $ fr24feed --help
      22-01-09 15:25:01.687 [E] Local time: 2022-01-09 15:25:01 +0900
      22-01-09 15:25:01.687 [E] GMT+0 time: 2022-01-09 06:25:01 +0900
      22-01-09 15:25:01.687 [E] Your machine should be set as GMT+0 time zone!
      22-01-09 15:25:01.687 [W] Time zone is not set to GMT+0
      ______  _  _         _      _                    _              _____    ___ 
      |  ___|| |(_)       | |    | |                  | |            / __  \  /   |
      | |_   | | _   __ _ | |__  | |_  _ __  __ _   __| |  __ _  _ __`' / /' / /| |
      |  _|  | || | / _` || '_ \ | __|| '__|/ _` | / _` | / _` || '__| / /  / /_| |
      | |    | || || (_| || | | || |_ | |  | (_| || (_| || (_| || |  ./ /___\___  |
      \_|    |_||_| \__, ||_| |_| \__||_|   \__,_| \__,_| \__,_||_|  \_____/    |_/
                     __/ |                                                         
                    |___/                                                          
      [main][i]FR24 Feeder/Decoder
      [main][i]Version: 1.0.25-3/generic
      [main][i]Built on Apr  8 2020 07:00:11 (HEAD-5e8ef0c.git/Linux/static_amd64)
      [main][i]Running on: debian10
      [main][i]Local IP(s): ***.***.***.***
      [main][i]Copyright 2012-2020 Flightradar24 AB
      [main][i]https://www.flightradar24.com
      [main][i]DNS mode: PING
      
      FR24 Feeder/Decoder usage:
      fr24feed --fr24key=0123456789ABCDEF| Start feeding process manually
      fr24feed --signup                  | Sign up and configure
      fr24feed --reconfigure             | Change configuration
      fr24feed --version                 | Show binary version number
      

      うまく動きそうなので、flightradar24にアカウントを作成してフィードしてみます。やり方はfr24 Manualを参照しました。

      $ fr24feed --signup
      事前に地理院地図 で緯度・経度・高度(フィート)を調べておきます。
      アカウント登録に使用したメールアドレス等を登録して終了です。
      詳細はココをご参照ください
      途中で「Checking for dump1090...NOT FOUND」と出たので心配しましたが、そのまま続行です。※見つからなければ、dump1090-mutability がインストールされます。
      最後の方でkeyとIDが表示されます。一ヶ月以内にデータ共有を開始しないと削除されるそうです。月に数回PCを起動すれば削除されないのかな? 止まったらメールが来るらしいので、それが来たら起動すれば良いかも。

      flightradar24 にログインしたら、BasicからBusiness になりました。
      \(^o^)/
      --
      PCの電源を切って寝たら翌日にフィーダー停止通知のメールが届きました。
      48時間以内にデータを提供しないとGoldにダウン、一週間後にはBasicにダウンされるそうです。データ提供を再開すればBisinessに復帰します。
      --
      dump1090-mutability と dump1090-fa が有りますが、faはFlightAware用にカスタマイズされたものなので、無理にfa版を使う必要は無いと思います。下記はREADME.mdより一部引用です。
      dump1090-fa Debian/Raspbian packages
      This is a fork of dump1090-mutability customized for use within FlightAware's PiAware software.

      It is designed to build as a Debian package.

      --

      参考 ADS-B Setup.md



      YB1DXH: Not in log (I worked with YD1FOD, not YB1DXH.)

        ログに無いeQSLが届きました。 InBox: YB1DXH また「2025-06-06 11:17」、今回で8局目です。私がこの日時にQSOしたのはYD1FOD局です。それにも関わらず、下記の様に他局から同じ日時・バンドでeQSLが届きます。 Rejected: YB1DX...