Ubuntu 24.04 に Flatpak版 KStarsを用います。これまでのデータも移行します。
KStars 3.8.1 を使って、極軸修正を行うと、とんでもない修正値が表示されました。
「いやいや、沖縄くらいの緯度には居ないって」
KStars 3.8.1 と Apt installed KStars は、Polar Alignment に不備
KStars 3.8.1には、 Polar Alignment に不備があります。
Ubuntuシステムから、aptなどでインストールされた、KStars 3.8.2もこの不備が未修正です。

KStars 3.8.2に案内がありました。「Linux使いは、Flatpak版を強くお勧めしますよ」
極軸修正についての案内もありました。
Flatpak を Ubuntuにインストール
Flatpak の Ubuntuに設定する案内に沿って、インストールします。
$ sudo apt install flatpak
$ sudo apt install gnome-software-plugin-flatpak
$ flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
$ sudo reboot
Flatpak版、KStarsをUbuntuへインストール
再起動後に、「はて、KStars Flatpak版はどうやってインストールするのかな?」
kstars.kde.orgや、Stellarmateにも案内があるので、これに沿ってインストールしていきます。

インストールスクリプトをダウンロードする
$ wget https://raw.githubusercontent.com/ikarustechnologies/indi-firmware/main/kstars.sh
安定版の場合(ほとんどの皆さんに推奨されています):
$ bash kstars.sh
自動更新
$ bash kstars.sh
手動にて直接更新
flatpak update org.kde.kstars
インストール後のコンソールに、以下が表示されました。
================================================================
================================================================
Installation completed
For running the Kstars, run:
flatpak run --user org.kde.kstars//stable
================================================================
================================================================
Flatpak版 KStarsを使うには次のコマンです。
$ flatpak run --user org.kde.kstars//stable
KStarsを起動すると、以下の表示があり、KStarsが使うデータのディレクトリが分ります。
org.kde.kstars: Loaded DSO catalog file: "unnamedstars.dat"
org.kde.kstars: "星 HD20,794 が見つかりません。"
org.kde.kstars: "星 HD98,230 が見つかりません。"
org.kde.kstars: Loaded DSO catalogs.
org.kde.kstars: Loading asteroids
org.kde.kstars: Loading asteroid objects failed.
org.kde.kstars: " -> was trying to read /home/USERNAME/.var/app/org.kde.kstars/data/kstars/asteroids.dat"
org.kde.kstars: Loading comets
KStars インストールやデータ移行
これまで使っていたリポジトリインストール版からのデータ移行もします。

kstars.kde.orgにインストールやデータ移行の案内があります。
/home/USERNAME/.config/kstarsrc
このディレクトリに構成や設定データがあります。(自分のubuntu環境ではありませんでした)
/home/USERNAME/.local/share/kstars
Gaiaや天体位置測定、星図にあるフラグデータ(userdb.sqlite)などがあります。
これを KStars Flatpak版 が使えるように移行させます。
KStarsの構成や設定データを移行する
$ cp -r ~/.config/kstarsrc ~/.var/app/org.kde.kstars/config/
KStars各種データを移行する
こちらのUbuntu環境では次でした
$ cp -r ~/.local/share/kstars ~/.var/app/org.kde.kstars/data/
kstars.kde.org の案内は以下です
$ cp -r ~/.local/share/kstars ~/.var/app/org.kde.kstars/data/kstars/
KStars 設定
“INDI Control Panel” “Ekos” “KStars”などの画面が分離して表示させる。
independent window をチェック
File Settings
撮影画像ディレクトリ、及び名前形式を決めます。
Format: /%T/%t/%t_%T_%F_%e_%D
撮影画像名は、指定されたディレクトリに、次のファイル名になります。
/Light/M1/M1_Light_HEUIB-II_180_secs_2025-09-15T23-51-16_001.fits
- %f (ファイル名): 拡張子を除いた .esq ファイルの名前
- %D (日付/時刻): ファイルが保存された時刻と日付
- %T (タイプ): フレームのタイプ (例: “Light”、”Dark “など)
- %e (露出): 露光時間(秒)
- %F (フィルター): 使用するフィルター名
- %t (ターゲット): ターゲット名
- %s (シーケンス): イメージ シーケンスの識別子。* は使用される桁数 (1 ~ 9) です。 このタグは必須であり、形式の最後の要素である必要があります。
- サフィックス: ファイル名にシーケンス番号を追加するために使用される桁数
マウスポインターの形を変えるには、
KStars画面 → 設定 → KStarsを設定 → 詳細 → Look and Feel → Default cursor:
Flatpak版 KStarsインストール中のコンソール表示は、
$ wget https://raw.githubusercontent.com/ikarustechnologies/indi-firmware/main/kstars.sh
$ bash kstars.sh
Checking for and installing flatpak...
Flatpak is already installed.
Checking for and installing fxload (required for QHYCCD firmware)...
Detected Debian/Ubuntu. Installing fxload using apt...
以下のパッケージが新たにインストールされます:
fxload
Cloning repository 'https://github.com/ikarustechnologies/indi-firmware.git'...
Cloning into '/home/USERNAME/.indi-firmware'...
remote: Enumerating objects: 447, done.
remote: Counting objects: 100% (82/82), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 447 (delta 35), reused 54 (delta 19), pack-reused 365 (from 1)
Receiving objects: 100% (447/447), 1.78 MiB | 3.33 MiB/s, done.
Resolving deltas: 100% (192/192), done.
Creating destination directories: /lib/udev/rules.d, /lib/firmware/qhy...
Destination directories created.
Copying udev rules files to /lib/udev/rules.d...
'/home/USERNAME/.indi-firmware/indi/drivers/auxiliary/99-indi_auxiliary.rules' -> '/lib/udev/rules.d/99-indi_auxiliary.rules'
'/home/USERNAME/.indi-firmware/indi/drivers/video/80-dbk21-camera.rules' -> '/lib/udev/rules.d/80-dbk21-camera.rules'
'/home/USERNAME/.indi-firmware/indi-3rdparty/indi-ffmv/99-fireflymv.rules' -> '/lib/udev/rules.d/99-fireflymv.rules'
'/home/USERNAME/.indi-firmware/indi-3rdparty/indi-nightscape/99-nightscape.rules' -> '/lib/udev/rules.d/99-nightscape.rules'
'/homeUSERNAME/.indi-firmware/indi-3rdparty/indi-armadillo-platypus/99-armadilloplatypus.rules' -> '/lib/udev/rules.d/99-armadilloplatypus.rules'
Udev rules files copied.
Installing fxload helper script to /usr/local/sbin/indi-fxload...
Copying individual firmware files to /lib/firmware...
'/home/USERNAME/.indi-firmware/indi-3rdparty/libfishcamp/gdr_usb.hex' -> '/lib/firmware/gdr_usb.hex'
Individual firmware files copied.
Copying QHY firmware files to /lib/firmware/qhy...
'/home/USERNAME/.indi-firmware/indi-3rdparty/libqhy/firmware/IC16200A.HEX' -> '/lib/firmware/qhy/IC16200A.HEX'
QHY firmware files copied.
Reloading udev rules...
Udev rules reloaded.
Adding Flathub remote if it doesn't exist...
Flathub remote added.
Adding kstars-nightly hub remote if it doesn't exist...
kstars-nightly remote added.
Installing KDE Platform and SDK runtimes...
Looking for matches…
ID Branch Op Remote Download
1. [✓] org.freedesktop.Platform.GL.default 25.08 i flathub 141.4 MB / 142.4 MB
2. [✓] org.freedesktop.Platform.GL.default 25.08-extra i flathub 25.6 MB / 142.4 MB
3. [✓] org.freedesktop.Platform.VAAPI.Intel 25.08 i flathub 13.6 MB / 13.7 MB
4. [✓] org.freedesktop.Platform.codecs-extra 25.08-extra i flathub 14.2 MB / 14.4 MB
5. [✓] org.gtk.Gtk3theme.Yaru 3.22 i flathub 139.3 kB / 191.5 kB
6. [✓] org.kde.Platform.Locale 6.10 i flathub 1.9 MB / 400.7 MB
7. [✓] org.kde.Platform 6.10 i flathub 315.8 MB / 387.1 MB
Installation complete.
Looking for matches…
ID Branch Op Remote Download
1. [✓] org.kde.Sdk.Locale 6.10 i flathub 274.6 kB / 416.4 MB
2. [✓] org.kde.Sdk 6.10 i flathub 821.8 MB / 1.1 GB
Installation complete.
KDE Platform and SDK runtimes installed.
Installing KStars Flatpak package version stable...
Looking for matches…
org.kde.kstars permissions:
ipc network fallback-x11 pulseaudio wayland x11
devices devel file access [1] dbus access [2]
[1] xdg-config/kdeglobals:ro, xdg-documents, xdg-pictures, xdg-videos, ~/.cache/sentry, ~/.indi
[2] com.canonical.AppMenu.Registrar, org.kde.KGlobalSettings, org.kde.kconfig.notify
ID Branch Op Remote Download
1. [✓] org.kde.kstars stable i flathub 423.7 MB / 473.1 MB
Installation complete.
Looking for updates…
Nothing to do.
KStars Flatpak version stable installed.
Script finished.
================================================================
Installation completed
For running the Kstars, run:
flatpak run --user org.kde.kstars//stable
================================================================


コメント