Linux あれこれ

Linux 関連(一部 Windows11 )の備忘録です。

「VirtualBox 7.2.2」に、「Void Linux」(Xfce) をインストール〈H179-4〉

登録日: 2025-11-05 更新日: 2025-11-06

今回は、 「VirtualBox 7.2.2」に、「Void Linux」をコマンド ライン base イメージの「iso イメージ」からインストールして、「Xfce」デスクトップ環境を追加しました:

-

事前に、「vmwgfx」のエラーの回避として、「仮想マシン」の設定で、「3Dアクセラレーション」のチェックを外して、「グラフィックコントローラー」を 「VBoxSVGA」に変更しました。

-

邪魔?がなくなり、システムの立ち上げや、Firefox の立ち上げが速くなりました、が、
問題は、「VirtualBox Guest Additions」の機能が、インストールしてうまく動くか、です。

-

その備忘録です。

-

-

使用したPC は、新しく購入した ミニPC「MINISFORUM NAB5」です。
プロセッサは「Core i5-12450H」で、メモリ 16GB、SSD 512GB です。

-

(注)リンクを戻るときはブラウザの左上の「←」をクリック
Android スマホであれば「ホーム」ボタン隣の「<」をタップ

-

-


目次

-

今回の作業:

-

  1. 「ゲストOS」のISO イメージをダウンロード:

  2. 「仮想マシン」の作成:

  3. 「Void Linux」をインストール:

  4.  システム更新:

  5. 「日本語フォント」のインストール:

  6. 「Xfce」デスクトップ環境のインストール:

  7.  その他の「ツール」のインストール:

  8.  キーボードレイアウトを「日本語キーボード」に修正:

  9. 「VirtualBox Guest Additions」のインストール:

  10.  日本語入力:

  11.  デスクトップとパネルの設定:

  12.  ファイルマネージャ「thunar」の設定:

  13.  フォントのインストール:

  14.  アプリ のインストール:

  15.  ゲームのインストール:

  16. 「flatpak」でアプリをインストール:

-

参考になりそうな作業:

  1. 「Void Linux」の仮想マシンで、システムの立ち上げや、Firefox の立ち上げが遅い件の対策:

  2.  Firefox ブラウザで、日本語以外の「英数字」のフォントが粗(あら)く表示される件の対策:

  3.  キーボードレイアウトを「日本語キーボード」に修正:

  4. 「デフォルトのミラー」を「確実なミラー」に変更:

  5. 「Guest Additions」を削除したい場合:

  6. 「仮想マシン」のディスクを「.vmdk」形式に変更:

  7.  最新に近い「Firefox」のESR 版をインストール:

  8.  最新に近い「Firefox」を「flatpak」でインストール:

  9.   パッケージ管理を行う「XBPS」の使い方:

  10.  XBPS を使いやすくするため、XBPS の「エイリアス」を作成:

  11.  作成した、XBPS の「エイリアス」を使ってみる:

  12.  「エイリアス」を使わずに、XBPS を実行してみる:

-

「まとめ へ」

「目次詳細 へ」

-

-


- --- - --- - --- - --- - --- - --- - --- -

ホストOS の「Xubuntu 24.04.3 LTS」を立ち上げ:

-

VirtualBox 7.2.2」を起動:

今回作成した仮想マシンの「Void-Linux2」:

-

「Void-Linux2」(Xfce) を起動:

項番 11.」で、色々とカスタマイズ:

-

デスクトップ環境が「Xfce」だと、同じカスタマイズで、「Debian」でも、「Void Linux」でも、見た目も(レスポンスが同じなら)GUI での使い勝手も同じです:

-

大きな違いは、アプリのインストールに使う、「パッケージ管理コマンド」が異なること、使いやすい「ビルド環境」が準備されているか、それと「VirtualBox Guest Additions」の機能が使えるか、です:

Debian」は手動で「VirtualBox Guest Additions」をインストールするだけですべての機能が有効になりますが、 「Void Linux」だと、(今のところ)Vagrantプラグインに頼らないと、すべて使えません:

-

追記:

今回、「Void Linux」にて、手動で「VirtualBox Guest Additions」をインストール して、すべての機能が有効になりました:

-

-


- --- - --- - --- - --- - --- - --- - --- --

VirtualBox」について:

-

VirtualBox 」は、Oracle(オラクル)社が開発している「仮想マシン」を構築するためのソフトウェアです。

-

-

-


- --- - --- - --- - --- - --- - --- - --- ---

Xubuntu」について:

-

Ubuntu の公式フレーバー(性格の違う兄弟?)です

Xubuntu」(ズブントゥ)は、 Ubuntu ベースの、軽量な「Xfce」デスクトップ環境です。

Ubuntu ベースにつき、多くのノウハウ、情報等があること、および問題の少ない「x11」で動いていることが強みです。

-

個人的には使い慣れた環境です。
カスタマイズが色々とできるので、自分にとって使い勝手の良い環境を作れるのが利点です。

-

-


- --- - --- - --- - --- - --- - --- - --- ----

「Void Linux」について:

-


1). 公式サイト:

The Void (Linux) distribution

-

英語のみのサイトです:

-

「Void Linux」は、独立してボランティアのみで開発された、ローリングリリース安定版で提供されている、汎用 Linux オペレーティングシステムです:

-

抜粋:

Void の「パッケージマネージャ」と「ビルドシステム」はゼロから書かれています:

ソフトウェアは「バイナリパッケージ」で提供されるか、「XBPS ソースパッケージコレクション」の助けを借りて「ソース」から直接ビルドされます。

-

このディストリビューションを使う利点のひとつは、優れた「パッケージ管理」です:

 →ソースからのビルドを楽しめます:

-


2). runit:

runit を「init システム」および「サービススーパーバイザー」として使用しています。

シンプルさを好む開発者も多いみたい:

-

ただし、ソースからビルドする場合に、「systemd」に依存してるアプリは、うまくビルドできなかったり、ビルドできても動かないかも:

-


3). C ライブラリの多様性( 2つの選択肢):

Void Linux は、「musl」GNU libc」の両方の実装をサポートします。

-

→それぞれの利点があるので、それぞれの Live イメージが提供されています:

-

「musl」だと、「GNU libc」よりもリポjトリに登録されてるアプリが少ない?だろうし、

ソースからビルドするにしても、動くかはビルドしてみないとわかりません:

もし動けば、コンパクトで、速くなる?かも:

-


4). XBPS:

XBPS(X Binary Package System)パッケージマネージャ:

-

XBPS 0.60.5_1(2025年10月23日 現在)

XBPS は「パッケージマネージャ」で、二条項 BSD ライセンスでゼロから書かれています。

→提供と改善がしやすいように、開発途中で、最もゆるいライセンス形式に変更されたようです:

-


5). xbps-src:

xbps-src は「xbps パッケージビルダー」(ビルドシステム)で、二条項 BSD ライセンスでゼロから書かれています。

-

参考:

-

(1). Void Linux は、XBPS パッケージマネージャのテストディストリビューションとして、
NetBSD の開発者である Juan Romero Pardines によって2008年に作成されたみたい。

-

(2). 「xbps-src」に影響を与えた?かもしれない、「pkgsrc」について:

「pkgsrc」は FreeBSDports システムから派生したもので、 はじめは NetBSD 専用として開発されていました。その後、 多くののプラットフォーム(Linux を含む)に対応しています。

参考:

Chapter 1. pkgsrc とは何か

-


6). 二条項 BSD ライセンス:

OS や付属するアプリの配布や改善がしやすいように、「旧 BSD ライセンス(四条項 BSD ライセンス)」から「第三条」、「第四条」を削除して、制限をゆるくしたライセンスが採用されています:

参考:

BSD 2-Clause License

-

-


現在のOS のバージョンを表示:

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ホストOS : 「Xubuntu 24.04.3 LTS」

2025-11-05 現在

-

カーネル:
$ uname -r
:
6.8.0-87-generic

→LTS版は安定志向なので、更新の回数は少なめです:

-

リリース:
$ cat /etc/lsb-release
:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

→LTS 版の更新(ポイントリリース)は、6ヶ月前後で、
 今は「24.04.3」にアップされています

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
:
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ゲストOS : 「Void Linux

2025-11-05 現在

-

カーネル:
$ uname -r
6.12.57_1

Ubuntu よりも進んでいます:

-

リリース:
$ cat /etc/os-release
:
NAME="Void"
ID="void"
PRETTY_NAME="Void Linux"
HOME_URL="https://voidlinux.org/"
DOCUMENTATION_URL="https://docs.voidlinux.org/"
LOGO="void-logo"
ANSI_COLOR="0;38;2;71;128;97"

DISTRIB_ID="void"

→ローリングリリースです:

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-


- --- - --- - --- - --- - --- - --- - --- -----

1. 「ゲストOS」のISO イメージをダウンロード:

-


1). ダウンロードサイト:

Download Void Linux

-

-


2). コマンド ライン base イメージの「Live イメージ」をダウンロード:

X86_64」タブ

base             2025-02-02

-

右下の「赤色」で囲んだ、

live image glibc」のリンクをクリック

-

→ダウンロードしたファイルを、「~/ダウンロード/void/」フォルダに移動:

-


3). 「チェックサム」をダウンロード:

上部の「緑色」で囲んだ、

checksum file のリンクをクリック:

→ブラウザに表示:

抜粋:

SHA256 (void-live-x86_64-20250202-base.iso) = 0f7439f500740f62dd18972cae448cec7d8a85032c7eb8f1bf946100d9a92161

-


4). チェックサムの確認:

ファイルの確認:

$ cd ~/ダウンロード/void
$ ls
:
void-live-x86_64-20250202-base.iso

-

チェックサムの確認:

$ sha256sum void-live-x86_64-20250202-base.iso
0f7439f500740f62dd18972cae448cec7d8a85032c7eb8f1bf946100d9a92161  void-live-x86_64-20250202-base.iso

→OK

-

-


- --- - --- - --- - --- - --- - --- - --- ----- -

2. 「仮想マシン」の作成:

-


1). メニュー→「システム」→「Orcle VM VirtualBox

-

VirtualBox マネージャ」が起動:

→すでに作成した「仮想マシン」があります:

-


2). 右上の水色の「新規」ボタンをクリック:

-


3). 「仮想マシンの名前とOS」:

-

(1). 作成したい「ゲストOS」の名前を入力:
VM 名:Void-Linux2   ←(好みの英字の名前)

-

(2). ISO イメージファイルを指定:

ISO イメージ: <選択されていません>

右端の「▼」をクリック →その他 →「ダウンロード」→下記のファイルを指定:

「/home/ubn/ダウンロード/void/void-live-x86_64-20250202-base.iso」

-

(3). OS を指定:

一覧に「Void-Linux」の登録はないので、

OS:Linux
OS ディストリビューション: Other Linux   ←「変更」
OS バージョン:Other Linux (64-bit)   ←「変更」

-

(4). 「無人インストールを実行」にチェックしません

→グレー表示でチェックできません:

-


4). 「無人ゲストOS インストールの設定」をクリック:

→グレー表示で選べません。

-

ちなみに、「無人インストール」が使えるのは、 (OS のxml 情報を提供できる)Ubuntu などのメジャーな Linux ディストリビューションのみです:

-

今までの設定:

-


5). まだ設定していない、「仮想ハードウェアを指定」をクリック:

-

(1). メインメモリー:

今回は、メモリ 16GB を分割して、約 8 GB を割当てました:(以前のマシンでは 4 GB の指定)

(バーをクリックしてから、「→」キーで微調整)

7987 MB  ←(メモリに余裕がないときに大きくしすぎると、 ホストOS が不調になります)

-

(2). プロセッサー数:

8 CPU  ←(パソコンのプロセッサによって上限は変わります: 今回は最大 16)
       (以前のマシンでは 2 CPU の指定)

-

(3). 「EFIを使用(一部のOSのみ)」にチェック:

仮想環境で使うならどちらに設定してもかまいません。

→手持ちのPC が、UEFI 立ち上げなので、
(USB でインストールするときの)実際のOS の動きを確認したいのでチェックしています。

-

OS インストール後は、(パーティションの構成が変わるため)変更できないので注意:

-


6). まだ設定していない、「仮想ハードディスクを指定」をクリック:

-

「新しい仮想ハードディスクを作成」にチェックされていることを確認:

30.00 GB ←(増やしました)

-

→「完了」

-

通常であれば「25 GB」で良いですが、「xbps-src」でアプリの移植にトライするので増やしました:

-


7). 仮想マシンの「Void-Linux」が作成されました:

-

下記のように設定値を後から変更できるので、うまく動かないときはリトライできます。

-


8). ★「Void Linux」の仮想マシンを作成する場合は、「ディスプレイ」の設定を見直し:

立ち上げ時に「vmwgfx」エラーが発生するので、回避するため、「3Dアクセラレーション」のチェックを外して、「グラフィックコントローラー」を 「VBoxSVGA」に変更します:

→これを行うことで、
「Void Linux」の仮想マシンで、システムの立ち上げや、Firefox の立ち上げが遅い件の対策になります:

-

(1). 「ディスプレイ」をクリック →「スクリーン」タブ

-

(2). 「VBoxSVGA」に設定:

-

(3). 「3D アクセラレーション」のチェックを外します:

-

(4). ビデオメモリーを「128MB」に変更:
- ビデオメモリー: 16MB           →「128MB」に変更
- グラフィックコントローラー: VMSVGA           →「VBoxSVGA」に変更

-

今までの設定:

-

→OK

-


9). 「システム」→「マザーボード」タブ を確認:

 →ただし、グレー表示で変更できなくなっています

-

→OK

-


10). 画面が最初に戻るので、最終的な設定を確認できます:

→「ストレージ」の項目の、光学ドライブ「void-live-x86_64-20250202-base.iso」
 がセットされていることを確認:

-

この CD イメージでライブ立ち上げされます。

-

-


- --- - --- - --- - --- - --- - --- - --- ----- --

3. 「Void Linux」をインストール:

-


1). 「仮想マシン」を選択して、「起動」(緑色の右矢印)ボタンをクリック:

-


2). 「ブート選択」画面が表示:

→しばらく待つか、Enter

-

(CD-ROM での立ち上げです)

-

UEFI Firmware Settings」メニューが含まれています:

-


3). ライブ立ち上げの「コンソール」画面が表示:

void-live login:

→ログイン待ちです:

-

表示されている説明によると、
ログインできるユーザ:
- root(パスワード: voidlinux)
- anon(パスワード: voidlinux)

-

インストーラの起動:
# void-installer

-


4). 「root」でログイン:

void-live login: 「root」
Password: 「voidlinux」
#

→root のプロンプト表示:

-

確認:
# pwd
/root

-

# ls
# 

-

# uname -r
6.12.11_1

-


5). インストーラの起動:

# void-installer

-


6). 「Enter the void ...」画面が表示:

→ < OK > が選択されているので、Enter

-


7). 「Void Linux installation menu」画面が表示:

-


8). 「Keyboard」を選んで、Enter

Select your keymap 画面:

「j」を入力

「jp106」を選んで、Enter

-


9). 「Network」が選ばれているので、Enter

「Select the network interface to configure」表示:

(和訳: 設定するネットワークインターフェースを選択してください)

enp0s3  08:00:27:19:32:40

→ < OK > が選択されているので、Enter

-


10). ネットワークで、DHCP を使うか、の設定画面が表示:

Do you want to use DHCP for enp0s3?

H179-4-3-10.jpg

→ < Yes > が選択されているので、Enter

-


11). 「Source」が選ばれているので、Enter

「Select installation source」画面:

「Local Packages from ISO image」を選んで、

→ < OK > が選択されているので、Enter

-


12). 「Mirror」が選ばれているので、Enter

「Void Linux Mirror Selection Wizard」画面:

→ < OK > が選択されているので、Enter

-

(1). 「Choose a Region」画面:

-

追記: 「日本」と「ドイツ」のミラーは不調で使えないので、

「Default Reset to default mirror」→< OK >

で、取りあえず「デフォルト」に設定して、インストールが完了してから、修正します:

→ < Yes > が選択されているので、Enter

-

(2). リポジトリの同期が行われました:

https://repo-default.voidlinux.org/current/x86_r...

→ < OK > が選択されているので、Enter

-

ミラーが登録されている場所の説明: 「/etc/xbps.d/00-repository-main.conf」

-


13). 「Hostname 」が選ばれているので、Enter

Set the machine hostname:

「user-pc」を入力して、

→ < OK > が選択されているので、Enter

-


14). 「Locale」が選ばれているので、Enter

「Select your locale」画面:

「j」を押して、

「ja_JP.UTF-8 Japanese (Japan)」を選んで、

→ < OK > が選択されているので、Enter

-


15). 「Timezone」が選ばれているので、Enter

「Select area」画面:

「Asia」を選んで、

→ < OK > が選択されているので、Enter

-

「Select Location (Asia)」画面:

「t」を押して、「↓」でスクロールして、

「Tokyo」を選んで、

→ < OK > が選択されているので、Enter

-


16). 「RootPassword」が選ばれているので、Enter

-

(1). Enter the root password:

「空白」では次に進まないので、

「任意のパスワード」入力:

(今回はユーザと同じパスワードにしました)

→ < OK > が選択されているので、Enter

-

(2). Enter the root password again:

同じパスワードを入力して、

→ < OK > が選択されているので、Enter

-


17). 「UserAccount」が選ばれているので、Enter

-

(1). Enter a primary login name:

「user」(任意のログインユーザ名)

→ < OK > が選択されているので、Enter

-

(2). Enter a display name for login 'user' :

「user」(表示されるユーザ名、任意)

-

(3). Enter the password for login 'user' :

「任意のパスワード」

-

(4). Enter the password for login 'user' again:

「任意のパスワード」

-

(5). 「Select group menbership for login 'user'」画面:

自動で選択されているので、何もせず、

→ < OK > が選択されているので、Enter

-


18). 「BootLoader」が選ばれているので、Enter

-

(1). 「Select the disk to install the bootloader」画面:

「/dev/sda size:30GB;Sector_size:512」が自動で選ばれているので、

(サイズで判断)

→ < OK > が選択されているので、Enter

-

(2). 「Use a graphical terminal for the boot loader?」表示:

→ < Yes > が選択されているので、Enter

-


19). 「Partition」が選ばれているので、Enter

-

(1). 「Select the disk to partition」画面:

「/dev/sda size:30GB;Sector_size:512」が自動で選ばれているので、

→ < OK > が選択されているので、Enter

-

(2). 「Select the Software for partitioning」画面:

「cfdisk Easy to use」が自動で選ばれており 、

(fdisk ツールを使い、パーティションを分割します)

→ < OK > が選択されているので、Enter

-

(3). 「Modify Partition Table on /dev/sda」画面:

→ < OK > が選択されているので、Enter

-

(4). 「Select label type」画面:

「gpt」が自動で選ばれているので、

→Enter

-

(5). 「Disk: /dev/sda」画面:

→一番下で、 「New」が選ばれているので、Enter

-

(6). Partition size: 「30G」が入力されているので、

「1G」に修正して、Enter

(800 MB ぐらいで良いですが、少ないよりも、大きめが無難)

-

(7). 「Type」の指定:

→ 一番下で、「Quit」を「Type」に移動して、Enter

-

(8). Select partition type 画面:

→ 一番上のEFI System」を選んで、Enter

-

(9). 書き込み:

→ 一番下の「Type」を「Write」に移動して、Enter

→「yes」と入力して、Enter

-

(10). 新規作成:

一番下の「Free space」を選んで、

「New」が選ばれているので、Enter

-

(11). サイズ:

→ Partition size: 残りすべての「29G」が選ばれているので、Enter

-

(12). 書き込み:

一番下の「Quit」を「Write」に移動して、Enter

「yes」と入力して、Enter

-

(13). 終了:

一番下で、「Quit」が選ばれているので、Enter

-


20). 「Filesystems」が選ばれているので、Enter

パーティションを初期化するときの、「ファイルシステム」と「マウントポイント」を指定します:

-

(1). 「Select the partition to edit」画面:

「/dev/sda1 size:1G;fstype:none」

→ 一番下で「Change」が選ばれているので、Enter

-

(2). 「Select the filesystem type for /dev/sda1」画面:

「vfat FAT32を選んで、Enter

-

通常、「EFI System」のパーティションは、どのOS でも認識される「FAT32」でフォーマットしますが、「ext4」も使えます:

また、Windows では「vfat」と呼ばれることがあります:

-

(3). 「Please specity the mount point for /dev/sda1」表示:

「/boot/efiと入力して、Enter

→ 「Yes」が選ばれているので、Enter

-

(4). 「Select the partition to edit」画面:

「/dev/sda2 size:29G;fstype:none」を「↓」で選んで、

→ 一番下で「Change」が選ばれているので、Enter

-

(5). 「Select the filesystem type for /dev/sda2」画面:

ext4 Linux ext4 (journal)」を選んで、Enter

-

(6). 「Please specity the mount point for /dev/sda2」表示:

「/」(ルート)を入力して、Enter

→ 「Yes」が選ばれているので、Enter

-

つまり、こちらの「/dev/sda2」の「/」に、「/boot/efi」として「/dev/sda1」がマウントされます:

-

(7). 「Select the partition to edit」画面:
/dev/sda1 size:1G;fstype:vfat
/dev/sda2 size:29G;fstype:ext4

→ 一番下の「Change」「Done」に移動して、Enter

-


21). 「↓」で、「Install」を選んで、

→ < OK > が選択されているので、Enter

-

(1). パーティションが初期化されるので、赤い警告が表示:

→ 「Yes」が選ばれているので、Enter

-

(2). インストール中:

-

(3). 「Select services to enable:」画面:

有効にする「サービス」が自動で選ばれています:

→ < OK > が選択されているので、Enter

-


22). 「Void Linux has been installed successfully!」(インストール完了)画面:

Do you want to reboot the system? (リブートしますか)

→ < Yes > が選択されているので、Enter

-


23). 再起動されました:

-


24). 「コンソール」のログイン画面:

-

ログイン待ち:

user-pc login:

→設定した、コンピュータ名(ホスト名)が表示されていることに注目:

-


25). 「仮想マシン」画面の右下のパネルに、「CD-ROM」アイコンがあるので、

右クリック→「仮想ドライブからディスクを除去」→「強制マウント解除」

-


26). ログイン画面で、

「@@」を入力

@@

→「コンソール」画面では、ちゃんと「日本語キーボード」の配列に設定されています:

GUI 画面とは設定が異なるので注意)

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ---

4. システム更新:

-


1). ログイン画面:

-

user-pc login:

→設定した「ユーザ名」と「パスワード」で、ログイン:

-

[user@user-pc ~]$

→ログインで、プロンプトが変わりました:

-


2). 登録されている、リポジトリの表示:

$ xbps-query -L
:
14295 https://repo-default.voidlinux.org/currnt (RSA signed)

→「-L」は大文字のエル

「デフォルト」のミラーに設定したので、うまく同期が取れるかも

-


3). リポジトリの同期:

英語表示にして、同期:

$ LANG=C sudo xbps-install -S
:
Password: 
[*] Updating repository `https://repo-default.voidlinux.org/currnt/x86_64-repodata' ...

「-S」は、大文字のエスです:(Sync)

→エラーが表示されないので、このリポジトリなら、うまく動きそう:

-


4). システム更新:

システム更新で「xbps」も一緒に(自動で)更新してくれると思ったけど、

$ LANG=C sudo xbps-install -Su
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
The 'xbps' package must be updated, please run `xbps-install -u xbps`

→システム更新の前に、「xbps」の更新が必要みたい:

-


5). 「xbps」を手動で更新:

$ sudo xbps-install -u xbps
:
Name    Action    Version           New version            Download size
glibc   update    2.39_4            2.41_1                 8956KB 
libxbps update    0.59.2_3          0.60.5_1               142KB 
xbps    update    0.59.2_3          0.60.5_1               118KB 

-


6). システム更新:

$ LANG=C sudo xbps-install -Su

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----

5. 「日本語フォント」のインストール:

-

以前は、「日本語フォント」として、「noto-fonts-cjk-sans」をインストールしていましたが、

「noto-fonts-cjk-sans」は、CJK(中国語、日本語、韓国語)文字と英数字を組み合わせて表示する設計で、アプリや環境によっては、日本語部分と英数字部分がうまく統合されず、互換性のある別のフォント(および太さ)が適用されることがあるようです:

-

一方、「Noto Sans JP」であれば、日本語に最適化されており、欧文と和文のウェイトが自然に見えるように調整されています。

なので、「Noto Sans JP」を「日本語フォント」としてインストールしました:

-


1). 「日本語フォント」の「Noto Sans JP」フォントのインストール:

「項番 13.」フォントのインストール: の「項番 1).」を参照:

-


2). vim よりは使いやすい、ラインエディタの「nano」をインストール:

$ LANG=C sudo xbps-install nano
:
Name Action    Version           New version            Download size
nano install   -                 8.6_1                  656KB 

-


3). 「日本語表示」にするため、再起動:

$ sudo reboot

-


4). コンソール画面で、ログイン待ち:

Void 6.12.55_1 (user-pc) (tty1)

user-pc  ligin:

-

デスクトップ画面(GUI)を早くインストールしないと、マウスでの貼り付けができないので、作業がはかどりません:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- -----

6. 「Xfce」デスクトップ環境のインストール:

-


1). 「dbus」のインストール:

$ sudo xbps-install dbus

-


2). 「dbus」の有効化:

リンク:
$ sudo ln -sf /etc/sv/dbus /var/service/

-

確認:
$ sudo sv status dbus
:
run: dbus: (pid 986) 139s; run: log: (pid 985) 139s

-


3). 「Xorg」のインストール:

$ sudo xbps-install xorg

-

確認:
$ xbps-query -l | grep xorg-fonts
:
ii xorg-fonts-7.6_5                        Modular Xorg Fonts

→すでにインストール済です:

-

$ xbps-query -l | grep mesa-dri
:
ii mesa-dri-25.1.9_1                       Mesa DRI drivers

→すでにインストール済です:

-


4). 「Xfce4」のインストール:

-

(1). 「Xfce4」のインストール:
$ sudo xbps-install xfce4

-

(2). 「elogind」のインストールの確認:
$ xbps-query -l | grep elogind
:
ii elogind-252.9_2                         Standalone logind fork
ii libelogind-252.9_2                      Standalone logind fork - elogind library

→インストールされました:

-

サービスが有効かの確認:
$ sudo sv status elogind
:
fail: elogind: unable to change to service directory: file does not exist

-

リンク:
$ sudo ln -s /etc/sv/elogind /var/service/

→行末の「/」を忘れずに

-

サービスが有効かの確認:
$ sudo sv status elogind
run: elogind: (pid 1519) 6s; run: log: (pid 1518) 6s

→有効になりました:

-

(3). 「端末」の「xfce4-terminal」のインストールの確認:
$ xbps-query -l | grep xfce4-term
:
ii xfce4-terminal-1.1.5_1          Modern terminal emulator primarly for the Xfce desktop environment

→インストールされました:

-

(4). ファイルマネージャの「thunar」のインストールの確認:
$ xbps-query -l | grep thunar
:
ii thunar-volman-4.20.0_1          Thunar Volume Manager

→インストールされました:

-

(5). ブラウザの「firefox」のインストールの確認:
$ xbps-query -l | grep firefox
$ 

→インストールされていません:

-


5). 「Xfce4 プラグイン」のインストール:

$ sudo xbps-install xfce4-plugins
:
38 packages will be installed:
  xfce4-battery-plugin-1.2.0_1 libqrencode-4.1.1_1 
  xfce4-clipman-plugin-1.7.0_1 xfce4-cpufreq-plugin-1.3.0_1 
  xfce4-cpugraph-plugin-1.3.0_1 xfce4-diskperf-plugin-2.8.0_1 
  xfce4-fsguard-plugin-1.2.0_1 xfce4-genmon-plugin-4.2.1_1 
  xfce4-mailwatch-plugin-1.4.0_1 xfce4-mpc-plugin-0.6.0_1 
  xfce4-netload-plugin-1.5.0_1 xfce4-places-plugin-1.9.0_1 
  libsigc++3-3.4.0_1 glibmm2.68-2.78.0_1 libcloudproviders-0.3.6_1 
  libtinysparql-3.9.2_1 gtk4-4.18.6_1 cairomm1.16-1.16.1_1 
  pangomm2.48-2.50.0_1 gtkmm4-4.18.0_1 pavucontrol-6.1_1 
  libkeybinder3-0.3.2_2 xfce4-pulseaudio-plugin-0.5.1_1 
  xfce4-sensors-plugin-1.5.0_1 xfce4-systemload-plugin-1.4.0_1 
  xfce4-time-out-plugin-1.2.0_1 xfce4-timer-plugin-1.8.0_1 
  xfce4-verve-plugin-2.1.0_1 xfce4-wavelan-plugin-0.7.0_1 
  libproxy-0.5.11_1 glib-networking-2.80.1_1 libsoup3-3.4.2_1 
  xfce4-weather-plugin-0.11.3_1 accountsservice-23.13.9_2 
  xfce4-whiskermenu-plugin-2.10.0_1 xfce4-xkb-plugin-0.9.0_1 
  xfce4-smartbookmark-plugin-0.6.0_1 xfce4-plugins-1.4_1 

-


6). 「LightDM」のインストール:

$ sudo xbps-install lightdm

→ディスプレイマネージャです:

-


7). 「LightDM」の有効化:

-

確認:
$ sudo sv status lightdm
:
fail: lightdm: unable to change to service directory: gile does not exist

-

確認:
$ ls -l /etc/sv/lightdm
:
drwxr-xr-x 2 root root 4096 Oct 19 03:55 log
-rwxr-xr-x 1 root root  145 May 12 02:51 run
lrwxrwxrwx 1 root root   28 May 12 02:51 supervise -> /run/runit/supervise.lightdm

一番下が赤色で表示:

→インストールしただけでは、うまくリンクされていません:

-

リンク:
$ sudo ln -sf /etc/sv/lightdm /var/service/

→行末の「/」を忘れずに(フォルダの中にリンクを貼ります)

-

確認:
$ ls -l /etc/sv/lightdm
:
drwxr-xr-x 2 root root 4096 Oct 19 03:55 log
-rwxr-xr-x 1 root root  145 May 12 02:51 run
lrwxrwxrwx 1 root root   28 May 12 02:51 supervise -> /run/runit/supervise.lightdm

→一番下が「水色」になりました:

(正常な状態)

-

「リンク:」のところに書いたコマンドで、リンクを貼ると、こちらの「水色」のリンクが自動で作られます:

-

確認:
$ sudo sv status lightdm
:
run: lightdm: (pid 1705) 2167s; run: log: (pid 1704) 2167s

→サービスが動いています:

-


8). 「ネットワークマネージャ」のインストール:

$ sudo xbps-install NetworkManager
:
10 packages will be installed:
  openresolv-3.17.0_1 mobile-broadband-provider-info-20250613_1 
  libmm-glib-1.24.0_1 libnm-1.50.0_1 oniguruma-6.9.10_1 slang-2.3.2_2 
  popt-1.19_1 newt-0.52.24_2 libndp-1.9_1 NetworkManager-1.50.0_1 

-


9). 「ネットワークマネージャ」の有効化:

-

確認:
$ sudo sv status NetworkManager
:
fail: NetworkManager: unable to change to service directory: file does not exist

→インストールしただけでは、うまくリンクされていません:

-

リンク:
$ sudo ln -sf /etc/sv/NetworkManager /var/service/

-

確認:
$ sudo sv status NetworkManager
:
run: NetworkManager: (pid 3371) 27s; run: log: (pid 3370) 27s

-


10). 「ネットワーク アプレット」のインストール:

$ sudo xbps-install network-manager-applet
:
5 packages will be installed:
  libayatana-appindicator-0.5.94_1 gcr-3.41.2_1 libnma-1.10.6_1 
  libsecret-0.21.7_1 network-manager-applet-1.36.0_1 

→「ネットワークマネージャ」のサポートを行います:

-


11). 「pulseaudio」のインストール:

$ sudo xbps-install pulseaudio pavucontrol
:
ERROR: Package `pavucontrol' already installed.

Name             Action    Version     New version      Download size
pulseaudio-utils install   -           16.1_2           70KB 
rtkit            install   -           0.13_3           31KB 
pulseaudio       install   -           16.1_2           498KB 

→「pavucontrol」はインストール済でした:

-


12). 「firefox-esr」ブラウザのインストール:

$ sudo xbps-install firefox-esr
:
Name        Action    Version     New version      Download size
firefox-esr install   -           140.2.0_1        74MB 

→「ESR 版」です:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- -

7. 「その他の「ツール」のインストール:

-


1). 「その他の「ツール」のインストール:

$ sudo xbps-install htop git unzip p7zip archiver

-

スクリーンショット関連:
$ sudo xbps-install xfce4-screenshooter shotwell

-

$ sudo xbps-install psensor

→「lm-sensors」は、「lm_sensors」でした:

どちらにしても、依存で入りました:

-

パッケージのアップデート通知:
$ sudo xbps-install octoxbps

-

Thunar ファイルマネージャの「ゴミ箱」の表示:
$ sudo xbps-install -S gvfs
:
Name            Action    Version     New version      Download size
gcr4            install   -           4.4.0.1_2        539KB 
fuse3           install   -           3.16.2_1         100KB 
avahi-glib-libs install   -           0.8_8            24KB 
libnfs          install   -           5.0.3_1          133KB 
gvfs            install   -           1.56.1_1         1130KB 

-


2). 再起動:

$ sudo reboot

-


3). ログイン画面が表示:

ユーザ名

パスワード

-


4). デスクトップ画面が表示:

Xfce デスクトップ画面です:

→日本語化されています:

-


5). 画面が狭いので広げました:

アプリケーション→設定→ディスプレイ

解像度: 800x600 →「1280x768」

-


6). Ctrl+Alt+T で「端末」を起動:

$ @@ 

$ [[

→「日本語キーボード」ですが、英語の配列です:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- --

8. キーボードレイアウトを「日本語キーボード」に修正:

-

問題:「日本語キーボード」で、「@@」で「[[」が入力されます:

「Void Linux」のインストールの中で、「日本語キーボード」を指定しました:

→「コンソール」画面では、「日本語キーボード」の配列です。

 ですが、GUI 画面には反映されていません:

-


1). 設定の確認:

「アプリケーション」→「設定」→「キーボード」→「レイアウト」タブ:

-

-

一番下の「キーボードレイアウト」

英語 (US)

→「日本語キーボード」のレイアウトではありません:

-

一番上の「システムのデフォルトを使用する」のボタンを左(オフ)にします:

「英語 (US)」を選んで、「編集」ボタンをクリック

→「日本語」を選んで、「OK」

-

-

「キーボードレイアウト」

日本語

-

→「閉じる」

-


2). 「端末」にてキー入力を確認:

「@@」と入力:

@@

→OK

-


3). 「date」で「日時」を確認:

$ date
:
2025年  10月  24日  金曜日  19:13:45  JST

→「日時」が日本語で表示され、タイムゾーンも「JST」です:

こちらの設定は反映されています:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ---

9. ゲストOS に「VirtualBox Guest Additions」をインストール:

-

「Void Linux」だとインストールしても、うまく機能しないので、色々とトライ:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----

9-1. 参考: うまく動かない対策として、「.vmdk」ディスクに変更してみました:

-

追記: 効果がなかったので、「こちらの作業は要りません」

ただし、

「Void Linux」を Vagrant のBox としてアップするときは、ディスク容量を減らせるので有用です:

-

手動で作成した「仮想マシン」に、手動で「Guest Additions」をインストールすると、エラーは出ませんが、機能しません:

-

1). vagrant で作成した「仮想マシン」はうまく動くので、何が違うのか、比べたら:

-

手動で作成した「仮想マシン」の場合:

「グラフィックコントローラー」を 「VMSVGA」、「3Dアクセラレーション」にチェックすると、
必ず「vmwgfx」のエラーが出て、システムの起動と Firfox の起動が遅くなります:

「グラフィックコントローラー」を 「VBoxSVGA」、「3Dアクセラレーション」のチェックを外すと、
必ず「vmwgfx」のエラーは出なくなり、システムの起動と Firfox の起動が速くなります:

ストレージは、コントローラが SATA で、VirtualBox 標準の仮想ディスク「.vdi」です:

-

vagrant で作成した「仮想マシン」の場合:

「グラフィックコントローラー」を 「VMSVGA」、「3Dアクセラレーション」のチェックを付けると、
必ず「vmwgfx」のエラーは出ますが、システムの起動と Firfox の起動は速いままです:

「グラフィックコントローラー」を 「VBoxSVGA」、「3Dアクセラレーション」のチェックを外すと、
必ず「vmwgfx」のエラーは出ません。システムの起動と Firfox の起動は速いままです:

ストレージは、コントローラが IDE で、VMware の仮想ディスク「.vmdk」です:

ちなみに、「vmwgfx」は、VMware製品で使われる「グラフィックスドライバー」です:

-

vagrant のBox で提供されているディスクイメージのほとんどが「.vmdk」なのは、 可変ディスクなので実サイズの大きさで済むからです:

→失敗しても、勉強になるので、ストレージの形式を変えてみる、価値はありそう:

-

2). 「.vmdk」は、GUI からの直接的な作成はできません。

つまり、手動で作成した「仮想マシン」は、必ず「.vdi」ディスクです:

-

3). 既存の「.vdi」ディスクを「.vmdk」ディスクに変換してみました:

-

(1). 「クローン」を作成:
$ ls -1p "/home/ubn/VirtualBox VMs/Void-Linux3/"
:
Void-Linux3.nvram
Void-Linux3.vbox
Void-Linux3.vdi

-

(2). VBoxManage コマンドで、既存の「.vdi」を「.vmdk」に変換:

変換先の形式として「VMDK」を指定し、
変換元のVDIファイルのパスと、変換後のVMDKファイルのパスを指定します:

$ VBoxManage clonemedium "/home/ubn/VirtualBox VMs/Void-Linux3/Void-Linux3.vdi" "/home/ubn/VirtualBox VMs/Void-Linux3/Void-Linux3.vmdk" --format VMDK

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone medium created in format 'VMDK'. UUID: 4f1bdc76-4455-4831-8b70-92cb89d06a6f

-

確認:

$ ls -1p "/home/ubn/VirtualBox VMs/Void-Linux3/"
:
Void-Linux3.nvram
Void-Linux3.vbox
Void-Linux3.vbox-prev
Void-Linux3.vdi
Void-Linux3.vmdk  ←(作成されました)

-

(3). 作成したハードディスク「Void-Linux3.vmdk」を「仮想マシン」に接続:

VirtualBox マネージャ」にて、クローンで作成した「Void-Linux3」を選択:

「設定」ボタンをクリック

「ストレージ」を選択

-

「コントローラー: IDE」を選択

右端に表示された、2つのアイコンのうち、
「ハードディスクを追加」が表示される、右のアイコン(緑色のプラスマーク)をクリック

-

Not Attached

「Void-Linux3.vmdk」を選んで、

→「選択」

-

(4). 既存のハードディスク「Void-Linux3.vdi」を取り外し:

「コントローラー: SATA」にある、

「Void-Linux3.vdi」を選択

→右下の赤いバツの付いた「割り当てを除去」ボタンをクリック:

-

-

→「OK」

-

→ディスクが IDE 接続の「.vmdk」であることに注目:

-

「起動」ボタンを押して、起動することを確認:

→OK

-

SATA よりも、IDE 接続にした方が、端末での、コマンドの応答が速くなったように感じます:

使われるドライバーの差かな。

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- -----

9-2. 「Void Linux」に「VirtualBox Guest Additions」をインストールする手順がヒット:

-

参考:

VirtualBox - Guest Additions インストール - Void Linux

抜粋:

「Void Linux」には、「systemctl」がありません。  「VirtualBox」付属の、「Guest Additions CD イメージ」のインストーラは、 「systemctl」で有効化して起動することが前提なので、インストールスクリプトの実行だけでは、機能しません。

-

(1). インストールスクリプトの実行:

-

(2). 「Void Linux」のリポジトリから、パッケージを追加でインストール:
$ sudo xbps-install -S virtualbox-ose-guest-dkms

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- -

9-3. ゲストOS に「VirtualBox Guest Additions」をインストール:

-

ゲストOS を起動して、操作します:

-


1). Ctrl+Alt+T で「端末」を起動:

-


2). インストールされているカーネルを確認:

-

$ uname -r
6.12.55_1

-


3). 「dkms」のインストール:

$ sudo xbps-install -S dkms
:
ERROR: Package `dkms' already installed.

→すでにインストール済でした:

-


4). カーネルのビルドに必要な、「ツール」をインストール:

$ sudo xbps-install -S gcc make perl
:
ERROR: Package `gcc' already installed.
ERROR: Package `make' already installed.
ERROR: Package `perl' already installed.

→すでにインストール済でした:

-


5). 「クリップボードの共有」機能の設定を済ましておきました:

バイス →「クリップボードの共有」
→「無効」を「双方向」に変更:

-


6). 「ドラッグ & ドロップ」機能の設定を済ましておきました:

バイス→「ドラッグ & ドロップ」
→「無効」を「双方向」に変更:

-


7). 再起動:

$ sudo reboot

-


8). 「仮想マシン」の上部バーのメニュー →「デバイス」→「Guest Additions CDイメージの挿入…」

→デスクトップにCD-ROM アイコンが表示されました:

-


9). しばらくすると、「ファイルマネージャ」が起動:

もし起動しない場合は、CD-ROM アイコンをダブルクリック:

-


10). ファイルマネージャにて、開いたフォルダの空きで、右クリック →「Open Terminal Here」(ここでターミナルを開く)

$ pwd
/run/media/user/VBox_GAs_7.2.2

→マウントされた CDドライブの位置(マウントポイント)になります:

-


11). 「ゲストOS」は「Void Linux」なので、「Linux」のスクリプトを実行します:

-


12). スクリプトの確認:

$ ls *.run
:
VBoxLinuxAdditions-arm64.run  VBoxLinuxAdditions.run

→2つありますが、片方は CPU アーキテクチャが違います:

-


13). スクリプトの 実行:

$ sudo ./VBoxLinuxAdditions.run
パスワード: 
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.2.2 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
grep: warning: stray \ before t
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.12.55_1.
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules were not reloaded
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
[user@user-pc VBox_GAs_7.2.2]$ 

→再起動が必要ですが、その前に追加のインストールがあります。

-

「CD-ROM をつかみっ放し」になるので、
「端末」と「ファイルマネージャ」を右上の「x」で閉じておきます:

-


14). [光学ドライブ]に挿入した、「Guest Additions の CD イメージ(.iso)」を取り外し:

デスクトップに表示されている、CD-ROM アイコンを右クリック→「ボリュームを安全に取り外す」

デスクトップから、CD-ROM アイコンが消えました:

-


15). 追加: 「Void Linux」のパッケージをインストール:

$ sudo xbps-install -S virtualbox-ose-guest-dkms
:
1 package will be installed:
  virtualbox-ose-guest-dkms-7.2.4_1 
:
Building DKMS module 'virtualbox-ose-guest-7.2.4' for kernel-6.12.56_1... done.
Installing DKMS module 'virtualbox-ose-guest-7.2.4' for kernel-6.12.56_1... done.

-

参考:

パッケージの確認:

$ xbps-query virtualbox-ose-guest-dkms
:
architecture: x86_64
changelog: https://www.virtualbox.org/wiki/Changelog
filename-sha256: eb7f362df5e719ac4fc09e940233abe9d67a0682f119f8961575477731921cff
filename-size: 834KB
homepage: https://www.virtualbox.org
install-date: 2025-11-02 11:51 JST
install-script: 825B
installed_size: 5610KB
license: GPL-2.0-only, CDDL-1.0
maintainer: Orphaned <orphan@voidlinux.org>
metafile-sha256: 20f2427dd3d2aaef4de4045036e6a3eb073376bc835c597d7c23e483f6056481
pkgname: virtualbox-ose-guest-dkms
pkgver: virtualbox-ose-guest-dkms-7.2.4_1
remove-script: 823B
repository: https://repo-default.voidlinux.org/current
run_depends:
    dkms>=0
short_desc: General-purpose full virtualizer for x86 hardware - guest addition module source for dkms
source-revisions: virtualbox-ose:881adfe33dc
sourcepkg: virtualbox-ose
state: installed

→短い説明: x86 ハードウェア用の汎用フル バーチャライザー - dkms 用のゲスト追加モジュール ソース

-

「端末」を右上の「x」で閉じました:

-


16). 電源オフ:

「アプリケーション」→「ログアウト」→「シャットダウン」

-


17). ホストOS「Xubuntu 24.04 LTS」を再起動:

クリップボードの共有」機能は、ホストOS との連携で動作するので、1度ホストOS 側の再起動が必要です。

-


18). 「仮想マシン」を起動:

-


19). ログイン画面:

→パスワード入力

-


20). デスクトップ画面:

-


21). 自動でウィンドウがリサイズされるか確認:

-

→リサイズされました:

-


22). 「クリップボードの共有」機能が使えるか確認:

→「クリップボードの共有」機能が使えました:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- --

9-4. 参考: 「Guest Additions」を削除したい場合:

-


1). スクリプトの場所を確認:

$ ls /opt
VBoxGuestAdditions-7.2.2

-

$ ls /opt/VBoxGuestAdditions-7.2.2/
LICENSE  bin  init  other  routines.sh  sbin  src  uninstall.sh

-


2). スクリプトのパスを確認:

$ ls /opt/VBoxGuestAdditions-7.2.2/uninstall.sh
/opt/VBoxGuestAdditions-7.2.2/uninstall.sh

-


3). 「Guest Additions」を削除する、スクリプトを実行:

(削除される)フォルダに移動せずに、スクリプトを実行しているのがポイント:

$ sudo /opt/VBoxGuestAdditions-7.2.2/uninstall.sh
:
Removing installed version 7.2.2 of VirtualBox Guest Additions...

→削除されました:

-

$ ls /opt
$

-


4). 完了したので、電源オフ:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ---

10. 「fcitx5-mozc」で、日本語入力:

-


1). 「fcitx5-mozc」のインストール:

「xbps-install」でアプリのインストールをする場合、複数のアプリが指定できます:

-

$ sudo xbps-install fcitx5 fcitx5-mozc fcitx5-gtk fcitx5-gtk+2 fcitx5-gtk+3 fcitx5-qt fcitx5-configtool
:
22 packages will be installed:
  libuv-1.49.2_1 libfcitx5-5.1.14_1 xcb-imdkit-1.0.9_1 
  fcitx5-5.1.14_1 mozc-base-2.31.5851.102_2 fcitx5-mozc-2.31.5851.102_2 
  fcitx5-gtk-5.1.4_1 gtk+-2.24.33_3 fcitx5-gtk+2-5.1.4_1 
  fcitx5-gtk+3-5.1.4_1 fcitx5-qt-5.1.10_1 kf6-kdbusaddons-6.18.0_1 
  qt6-sql-6.8.2_5 qt6-declarative-6.8.2_2 qt6-wayland-6.8.2_2 
  kf6-kwindowsystem-6.18.0_1 libshiboken6-6.8.3_2 libpyside6-6.8.3_2 
  kf6-kwidgetsaddons-6.18.0_1 kf6-kitemviews-6.18.0_1 
  fcitx5-qt6-5.1.10_1 fcitx5-configtool-5.1.10_1 

-


2).インストールされたか確認:

$ xbps-query -l | grep fcitx
:
ii fcitx5-5.1.14_1                           Flexible Context-aware Input Tool with eXtension - v5
ii fcitx5-configtool-5.1.10_1                Fcitx v5 - config tool
ii fcitx5-gtk-5.1.4_1                        Fcitx v5 - GTK common
ii fcitx5-gtk+2-5.1.4_1                      Fcitx v5 - GTK+2 IM Modules
ii fcitx5-gtk+3-5.1.4_1                      Fcitx v5 - GTK+3 IM Modules
ii fcitx5-mozc-2.31.5851.102_2               Mozc engine for fcitx v5
ii fcitx5-qt-5.1.10_1                        Flexible Context-aware Input Tool with eXtension v5 - Qt
ii fcitx5-qt6-5.1.10_1                       Flexible Context-aware Input Tool with eXtension v5 - Qt6
ii libfcitx5-5.1.14_1                        Flexible Context-aware Input Tool with eXtension - v5 - libraries

-


3). 「Fcitx5 設定」

「メニュー」→「設定」→「Fcitx5 設定」

または、

$ fcitx5-configtool

-

初回は、「Fcitx5を実行する」ボタンが表示されるので、ボタンを押して、起動します:

-


4). 「Fcitx の設定」画面:

左の「現在の入力メソッド」が、下記であることを確認:

キーボード - 日本語
Mozc

-


5). 設定ファイルの修正:

$ sudo mousepad /etc/environment

↓ ファイルの最後に追記:

export LANG="ja_JP.UTF-8"
export XMODIFIERS="@im=fcitx"
export XMODIFIER="@im=fcitx"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export DefaultIMModule=fcitx

→Ctrl+S で保存:

-

確認:

$ cat /etc/environment
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
export LANG="ja_JP.UTF-8"
export XMODIFIERS="@im=fcitx"
export XMODIFIER="@im=fcitx"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export DefaultIMModule=fcitx

-


6). ログアウト→ログイン:

-


7). デスクトップ画面:

→デスクトップのパネルに「キーボード」アイコンが表示:

-


8). 日本語入力の確認:

テキストエディタ (mousepad) を起動:

-

「半角/全角」キー、もしくは、「Ctrl+スペース」にて、入力切り替え:

デスクトップのパネルの「キーボード」アイコンが日本語のときに消えます(アイコンが表示されないだけみたい)

-

→日本語入力できました:

-


任意: 別々のキーに、日本語オン・オフを割り当て:

パネルの「キーボード」アイコンを右クリック→「設定」→「Fcitx の設定」

→「グローバルオプション」タブ

入力メソッドを有効にする: 右の空き(もしくは、ハングル Hanja)をクリック→「…」→「ひらがな」キーを押します→「ひらがな カタカナ」
入力メソッドをオフにする: 右の空き(もしくは、ハングル Romaja)をクリック→「…」→「無変換」キーを押します→「無変換」

-

→「適用」→「閉じる」

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----

11. デスクトップやパネルの設定:

-

この辺りは好みなので、使いたい設定だけ行えば OK:

:


1). パネルの「時計」の表示を変更:

パネルの右にある「時計」を右クリック→「プロパティ」

-

時計のオプション:

レイアウト:「日付のみ」に変更:

日付

フォント: 「Sans Bold 11」に変更

フォーマット:「カスタム」に変更

その下の入力欄:「 %H:%M」に変更

→「閉じる」

-

表示を確認:

18:08

-

-


2). パネルの「時計」にマウスを置いたときの、Tips の表示を変更:

パネルの右にある「時計」を右クリック→「プロパティ」

-

外観

ツールチップの形式:

「カスタム」→「%Y年%B%d日 (%a)」に変更:

-

表示を確認:

「時計」にマウスを置くと、年月日曜日を確認できます:

2025年9月19日 (金)

-

-


3). ショートカットキー: ウィンドウ画面をタイル表示:

「グローバルアクション」の定義で、「左のWindows」キーは使われているので、
「左のWindows」キーを使った設定をしても無効です。

なので、代わりに「Ctrl+Shift」キーを使ってみました:

-

ショートカットキーを修正:

「アプリケーション」 →「設定」→「ウィンドウマネージャー」→「キーボード」タブ

-

(1/2 画面で、左に移動)
  • 「ウィンドウを画面左にタイル表示」→「編集」
 「Ctrl+Shift」+ 「←」   表示: Shift + Ctrl + Left

-

(1/2 画面で、右に移動)
  • 「ウィンドウを画面右にタイル表示」→「編集」
 「Ctrl+Shift」+ 「→」   表示: Shift + Ctrl + Right

-

(1/4 画面で、右上に移動)
  • 「ウィンドウを画面右上にタイル表示」→「編集」
 「Ctrl+Shift」+ 「↑」   表示: Shift + Ctrl + Up

-

(1/4 画面で、右下に移動)
  • 「ウィンドウを画面右下にタイル表示」→「編集」
 「Ctrl+Shift」+ 「↓」    表示: Shift + Ctrl + Down

-

→「閉じる」

-

もう一度、同じ組み合わせを押せば、元の位置とサイズに戻ります:

-

-


4). ショートカットキー: 「Windows + Enter」で、「端末」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: exo-open --launch TerminalEmulator
ショートカット: Super+Return    ←(Windows+Enter)

-

→「閉じる」

-

ちなみに、ウィンドウのタイトルバーをダブルクリックすると、全画面表示:

-

-


5). ショートカットキー: 「Windows + T」で、「テキストエディタ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

-

「mousepad」を起動したい場合:

コマンド: mousepad

もしくは、

「featherpad」を起動したい場合:

コマンド: featherpad

-

ショートカット: Super+T    ←(Windows+T)

-

→「閉じる」

-

-


6). ショートカットキー: 「Windows + W」で、「ブラウザ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

-

既存の「firefox」を起動したい場合:

もしくは、

ダウンロードしてインストールした、最新の「firefox」を起動したい場合:

コマンド: firefox

-

ショートカット: Super+W    ←(Windows+W)

-

→「閉じる」

-

-


7). ショートカットキー: 「Windows + N」で、「ファイルマネージャ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: thunar
ショートカット: Super+N    ←(Windows+N)

-

→「閉じる」

-

-


8). ウィンドウのタイトルバーの「巻き上げ」ボタンを移動:

すでに「巻き上げ」ボタンは追加されていますが、ボタンの位置がイマイチなので、左に移動しました:

-

「アプリケーション」→「設定」→「ウィンドウマネージャー」

「スタイル」タブ:

-

ボタンの配置:

右下の「表示する:」にある、「↑」ボタンに注目:

「タイトル」「↑」

↓ マウスでドラッグして、移動:

「↑」「タイトル」

-

→「閉じる」

-

-


9). デスクトップのアイコンを「ゴミ箱」のみにしました:

デスクトップの空きで右クリック→「デスクトップの設定」→「ファイル/ランチャーアイコン」タブ:

-

デフォルトのアイコン:

「ホーム」と「ファイルシステム」のみ、チェックを外しました:

→「閉じる」

-

「ゴミ箱」のみのデスクトップ:

-

-


10). ウィンドウのタイトルバーとウィンドウ枠の「テーマ」を変更:

この辺りは、好みです:

-

「アプリケーション」 →「設定」→「ウィンドウマネージャー」→「スタイル」タブ

-

テーマ

たくさんのテーマが登録されているので、お好きなものを、

微妙に違います:

-

「Smoothwall」に変更した場合: ★

-

「Wallis」に変更した場合:

-

「Waza」に変更した場合:

→枠なし:

-

→「閉じる」

-

「端末」画面にて、ウィンドウのタイトルバーを確認:

→選択されているウィンドウがわかりやすいし、タイトルバーが細いです:
 色違いのテーマがあると良いかも:

-

-


11). パネルの仮想デスクトップの数「1〜4」を減らしました:

パネルの「仮想デスクトップ」を右クリック→「ワークスペースの設定」→「全般」タブ:

レイアウト

ワークスペースの数: 「4」→「2」に変更:

-

→「閉じる」

-

-


12). パネルの背景色を変更:

この辺りは、好みです:

-

「アプリケーション」 →「設定」→「パネル」→「外観」タブ

全般

ダークモード   右(オン)

→パネルがダークモードになっているので、以下の設定はいらないかも:

-

背景

スタイル: 「なし(システムスタイルを使用)」(黒色)のままか、

-

もしくは、

スタイル: 「単一色」に変更:

配色: 右端をクリック→一番下の「作成した色」の「右から 2つ目の濃い水色」に変更:

→「選択」

-

→「閉じる」

-

パネルを確認:

→パネルの色は、デスクトップの壁紙と色合いが合うものが良さそう:

-

-


13). パネルに「スピーカ」アイコン(音量調整)を追加:

パネルの空きで右クリック→「パネル」→「パネルの設定」→「アイテム」タブ:

左下の「+追加」をクリック→「PulseAudio プラグイン→「+追加」→「閉じる」

-

「PulseAudio プラグインを選んで、右の「上矢印」で、時計の上の、セパレーターの上まで移動:

-

-

→「閉じる」

-

「ゲーム」アプリで、音量調整できるか確認:

「アプリケーション」→「ゲーム」→「Kajongg 中国式四人麻雀」を起動:

「Play」で開始

→牌を捨てるときに英語の音声が出るので、音量調整できるか確認:

-

-


14). 上にあったパネルを画面下に移動:

-

(1). 上のパネルを移動する前に、下のパネルを削除します:

下のパネルの空きで右クリック→「パネル」→「パネルの設定」→一番上に「パネル2」が表示されていることを確認:

右上の「ー」をクリックして、「パネル2」を削除:

-

もし、「パネル2」(ドック)を残したいのであれば、パネルを右か左に移動:

ロックを解除してから、モードを「垂直」に変更して、移動します:

-

(2). 「パネルの設定」画面の、一番上に「パネル1」が表示:

「パネルをロックする」のチェックを外します:

→パネルが赤枠で囲まれ、行頭と行末に「縦棒」が表示されます:

-

(3). マウスでその「縦棒」をつかむと手のひらになるので、そのまま画面下に移動します:

-

(4). 画面下に移動できたら、先ほどの「パネルの設定」画面にて、

「パネルをロックする」にチェックします:

-

→「閉じる」

-

移動後:

-

(5). 参考: もし、パネルを右か左に移動したい場合は、

ロックを解除してから、モードを「垂直」に変更して、移動します:

-

-


15). パネルの「アプリケーション」メニューの「アプリケーション」文字を変更:

パネルの「アプリケーション」メニューを右クリック→「プロパティ」

-

ボタンタイトル:
「アプリケーション」の文字を →「メニュー」、もしくは「Menu」に変更:

-

-

もしくは、

「アプリケーション」の文字を →「半角スペース」で、クリックできる横幅を調整:

-

→「閉じる」

-

例:「Menu」に設定した場合:

↓ 拡大:

-

-


16). デスクトップにて「単一色」の壁紙を準備して、「壁紙」を設定:

設定で、デスクトップは「単一色」にできますが、ログイン画面は以前に「デスクトップ」の壁紙に設定した壁紙のままです:

-

壁紙は「単一色」でなく、お気に入りの画像でも良いですが、縦横比が問題になるかも:

-

(1). 「壁紙」を準備:

「単一色」のデスクトップのスクリーンショットを撮って、それを加工しました:

-

(2). 準備した「壁紙」をシステムにコピー:
$ sudo cp ~/ダウンロード/bule-screen.jpg /usr/share/backgrounds/xfce/

→デフォルトの「xfce」フォルダに、壁紙が追加されました:

-

(3). デスクトップの空きで、右クリック→「デスクトップの設定…」→「背景」タブ:

デスクトップの壁紙: 追加した「壁紙」を選択:

-

フォルダ: 「Xfce

スタイル: 「無し」  ←(ポイント)

-

→「閉じる」

-

デスクトップの壁紙が、「単一色」になったことを確認:

-

(4). ログアウトして、確認:

-

ログイン画面の壁紙が、「単一色」になったことを確認:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- -----

12. ファイルマネージャ「thunar」の設定:

-

設定することで、「ファイルマネージャ」の使い勝手を向上させました:

-


1). 日付の形式を変更

こちら」を参照:

-


2). USB メモリの自動マウント:

こちら」を参照:

1). 必要なパッケージがインストールされているかの確認:

$ xbps-query -Rs gvfs
:
[*] gvfs-1.56.1_2         Userspace virtual filesystem
[-] gvfs-afc-1.56.1_2     Userspace virtual filesystem - Apple mobile device ...
[-] gvfs-afp-1.56.1_2     Userspace virtual filesystem - Apple Filing Protoco...
[-] gvfs-cdda-1.56.1_2    Userspace virtual filesystem - CD-ROM backend
[-] gvfs-devel-1.56.1_2   Userspace virtual filesystem - development files (t...
[-] gvfs-goa-1.56.1_2     Userspace virtual filesystem - Gnome Online Account...
[-] gvfs-gphoto2-1.56.1_2 Userspace virtual filesystem - gphoto2 (PTP camera/...
[-] gvfs-mtp-1.56.1_2     Userspace virtual filesystem - MTP backend
[-] gvfs-smb-1.56.1_2     Userspace virtual filesystem - SMB/CIFS (Windows cl...

-


3). 「ここでターミナルを開く」メニューを追加:

こちら」を参照:

-

既存のメニューは英語の「Open Terminal Here」なので、「ここでターミナルを開く」に修正:

-


4). ファイルの圧縮・解凍:

こちら」を参照:

-

ファイルの解凍ができるように「file-roller」パッケージをインストール:

$ sudo xbps-install -S file-roller
:
Name        Action    Version           New version            Download size
libnautilus install   -                 48.3_1                 14KB 
libxmlb     install   -                 0.3.22_2               85KB 
AppStream   install   -                 1.0.4_2                895KB 
libadwaita  install   -                 1.7.5_1                635KB 
file-roller install   -                 44.5_1                 855KB 

-


5). 圧縮ファイルを右クリック →「ここで展開」メニューを追加:

こちら」を参照:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- -

13. フォントのインストール:

-

個人的によく使っているフォントを、インストールしました。 インストールは任意です。

-

-


1). 「Noto Sans JP」フォントのインストール:

「noto-fonts-cjk-sans」は、中国語、日本語、韓国語の文字をすべて含み、それぞれの言語の太さが異なることがあります。
一方、「Noto Sans JP」は日本語に最適化されており、欧文と和文のウェイトが自然に見えるように調整されています。

-

「日本語フォント」をひとつだけインストールしたい場合にオススメです:

-

(1). Google Fonts の「Noto Sans Jp」をダウンロード:

ダウンロードページ

→全画面表示にして、右上にある水色の「Get font」をクリック

→表示された、「Download all (1)」をクリック

-

(2). ダウンロードした「Noto_Sans_JP.zip」ファイルを「~/ダウンロード/fonts/」に移動:

-

(3). 「Noto_Sans_JP.zip」ファイルを右クリック→「ここに展開(zip)」

「[項番 12.](

)」のファイルマネージャの設定が済んでいることが前提です:

-

(4). 確認:
$ cd ~/ダウンロード/fonts/
$ ls -1p
:
NotoSansJP-VariableFont_wght.ttf ←(バリアブルフォント)
Noto_Sans_JP.zip ←(展開前)
OFL.txt
README.txt
SourceHanCodeJP.ttc ←(別件のフォント)
static/ ←(バリアブルでないフォントのフォルダ)

→展開時の名前で「フォルダ」が作られないので注意:

-

バリアブルでないフォントのフォルダの中身を確認:

$ ls -1p static/
:
NotoSansJP-Black.ttf
NotoSansJP-Bold.ttf
NotoSansJP-ExtraBold.ttf
NotoSansJP-ExtraLight.ttf
NotoSansJP-Light.ttf
NotoSansJP-Medium.ttf
NotoSansJP-Regular.ttf
NotoSansJP-SemiBold.ttf
NotoSansJP-Thin.ttf

→いくつかの太さのフォントが揃っています。
 Regular と Bold があれば良さそう:

-

(5). システム全体で使えるようにインストール:

フォルダの作成:

$ sudo mkdir -p /usr/share/fonts/NotoSansJP/

-

コピー:

$ cd ~/ダウンロード/fonts/
$ sudo cp static/NotoSansJP-Bold.ttf /usr/share/fonts/NotoSansJP/
$ sudo cp static/NotoSansJP-Regular.ttf /usr/share/fonts/NotoSansJP/

-

確認:

$ ls -1 /usr/share/fonts/NotoSansJP/
:
NotoSansJP-Bold.ttf
NotoSansJP-Regular.ttf

-

(6). フォントキャッシュをクリア:
$ sudo fc-cache -fv
:
fc-cache: succeeded

-

-


2). 「MiguMix」フォントのインストール:

「MigMix」フォントは、横幅が狭いので、狭い画面で多くの情報を表示できるのが利点です:

-

「MigMix」パッケージには、次のフォントが含まれています:

- プロポーショナルフォント(ブラウザ用)→ Migu 1P、Migu 1C、MigMix 1P、MigMix 2P
- 等幅フォント(テキストエディタ用)   → Migu 1M、Migu 2M、MigMix 1M、MigMix 2M

-

(1). 「MiguMix」フォントがインストールできるか確認:
$ xbps-query -Rs migmix
$

リポジトリになし:

-

(2). ツールのインストール:

「xbps-install」は、複数のパッケージのインストールの指示ができます:

-

$ sudo xbps-install -S dpkg curl
:
Name  Action    Version           New version            Download size
libmd install   -                 1.1.0_1                26KB 
dpkg  install   -                 1.22.18_1              2399KB 

-

インストールされたか確認:
$ xbps-query -l | grep -e dpkg -e curl
:
ii curl-8.16.0_1                             Client that groks URLs
ii dpkg-1.22.18_1                            Debian Package Manager
ii libcurl-8.16.0_1                          Multiprotocol file transfer library

→「-e」は grep の連結機能です:

-

(3). 「MigMix」をダウンロード:
$ curl http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-migmix/fonts-migmix_20200307-1_all.deb --output /tmp/fonts-migmix_20200307-1_all.deb

→「.deb」ファイルを「/tmp/」にダウンロード:

-

(4). 「MigMix」を「dpkg」でインストール:
$ sudo dpkg -i /tmp/fonts-migmix_20200307-1_all.deb
:
パスワード: 
以前に未選択のパッケージ fonts-migmix を選択しています。
(データベースを読み込んでいます ... 現在 0 個のファイルとディレクトリがインストールされています。)
.../fonts-migmix_20200307-1_all.deb を展開する準備をしています ...
fonts-migmix (20200307-1) を展開しています...
fonts-migmix (20200307-1) を設定しています ...

-

(5). dpkg でインストールされた、パッケージ一覧を表示:
$ dpkg -l --no-pager | grep font
:
ii  fonts-migmix  20200307-1   all   High quality Japanese font based on M+ fonts and IPA fonts

grep で余計な行を表示させていません:

-

-


3). 「源ノ角ゴシック Code JP」フォントのインストール:

「源ノ角ゴシック Code JP」フォントは、

英数字と日本語が「2 : 3」の幅の「等幅フォント」です。
日本語と英数字が混在しても、バランスが良く見やすいです;

-

9 ポイントくらいに小さくすると、見やすくて、多くの情報が表示できます。

「1 : 2」ではないので、「端末」等では使えません:

-

(1). ツールのインストール:
$ sudo xbps-install -S wget
:
Name Action    Version       New version        Download size
wget install   -             1.25.0_1           805KB 

-

(2). 「SourceHanCodeJP.ttc」フォントのダウンロード:
$ mkdir -p ~/ダウンロード/fonts
$ cd ~/ダウンロード/fonts/
$ wget https://github.com/adobe-fonts/source-han-code-jp/releases/download/2.012R/SourceHanCodeJP.ttc

→ダウンロードに時間がかかるので、ネットが空いている時間帯に行うのが良いです:

-

確認:

$ ls -1 ~/ダウンロード/fonts/
SourceHanCodeJP.ttc

-

(3). システム全体で使えるようにインストール:

フォルダの作成:

$ sudo mkdir -p /usr/share/fonts/

-

コピー:

$ cd ~/ダウンロード/fonts/
$ sudo cp SourceHanCodeJP.ttc /usr/share/fonts/

-

確認:

$ ls -1p /usr/share/fonts/
:
NotoSansJP/
SourceHanCodeJP.ttc
TTF/
X11/
noto/
truetype/

-

(4). フォントキャッシュをクリア:
$ sudo fc-cache -fv
:
fc-cache: succeeded

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- --

14. アプリのインストール:

-

個人的によく使っているアプリを、インストールしました。 インストールは任意です。

-

-


1). PC の詳細確認に便利な「screenfetch」をインストール:

一度実行したら、後は役に立ちません:

こちらに実行時の表示を載せました。なので、インストールする必要はありません:

-

(1). インストールできるか確認:
$ xbps-query -Rs screenf
[-] screenFetch-3.9.1_2 Bash screenshot information tool

-

(2). インストール:
$ sudo xbps-install -S screenFetch
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2087KB [avg rate: 1159KB/s]

Name        Action    Version       New version        Download size
xdpyinfo    install   -             1.3.4_2            15KB 
screenFetch install   -             3.9.1_2            53KB 

-

(3). PC 使用情報の表示(ロゴ表示なし):
$ screenfetch -n
:
grep: warning: stray \ before "
grep: warning: stray \ before "
 user@user-pc                           ←(ユーザ名@コンピュータ名)
 OS: Void Linux                          ←(ディストリビューション)
 Kernel: x86_64 Linux 6.12.47_1          ←(カーネル)64bit
 Uptime: 45m
 Packages: 659
 Shell: bash
 Resolution: 1280x960                    ←(VertualBox での解像度)★
 DE: Xfce                                 ←(デスクトップは Xfce)
 WM: Xfwm4                               ←(ウィンドウマネージャは Xfwm4)
 WM Theme: Smoothwall                    ←(ウィンドウのテーマ)
 GTK Theme: Adwaita [GTK2]
 Icon Theme: Adwaita
 Font: Sans 10
 Disk: 5.7G / 29G (21%)
 CPU: 12th Gen Intel Core i5-12450H @ 8x 2.496GHz ←(CPU x8)
 GPU: VMware SVGA II Adapter
 RAM: 1234MiB / 7722MiB

-

-


2). テキストエディタ「Featherpad」のインストール:

-

(1). インストール失敗:
$ sudo xbps-install -S featherpad
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
ERROR: Package 'featherpad' not found in repository pool.

リポジトリで見つからないみたい:

-

(2). 確認:
$ xbps-query -Rs featherpad
:
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

→注意: 「パッケージ名」に大文字が含まれています:

ちなみに、言語パッケージがないバージョンのようです:

-

(3). インストールやり直し:
$ sudo xbps-install -S FeatherPad
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name             Action    Version       New version        Download size
qt6-svg          install   -             6.8.2_1            238KB 
qt6-printsupport install   -             6.8.2_5            213KB 
libhunspell1.7   install   -             1.7.2_1            456KB 
FeatherPad       install   -             1.6.2_1            936KB 

→検索でヒットした「パッケージ名」でインストール:

-

(4). バージョンの確認:
$ featherpad --version
FeatherPad 1.6.2

→「実行ファイル名」は今までと同じ、小文字です:

-

(5). 設定は「こちら」を参照:

-

-


3. ファイアウォール「gufw」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs gufw
:
[-] gufw-24.04_2 GTK+ frontend for ufw

-

(2). インストール:
$ sudo xbps-install -S gufw
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2069KB [avg rate: 943KB/s]
13 packages will be downloaded:
  net-tools-2.10_1 ufw-0.36.2_4 bubblewrap-0.11.0_1 
  xdg-dbus-proxy-0.1.6_1 libwoff2common1.0.2-1.0.2_1 
  libwoff2dec1.0.2-1.0.2_1 rav1e-0.6.6_3 libavif-1.3.0_1 
  hyphen-en-25.8.1.1_1 hyphen-2.8.8_4 libmanette-0.2.6_1 
  libwebkit2gtk41-2.46.6_1 gufw-24.04_2 
13 packages will be installed:
  net-tools-2.10_1 ufw-0.36.2_4 bubblewrap-0.11.0_1 
  xdg-dbus-proxy-0.1.6_1 libwoff2common1.0.2-1.0.2_1 
  libwoff2dec1.0.2-1.0.2_1 rav1e-0.6.6_3 libavif-1.3.0_1 
  hyphen-en-25.8.1.1_1 hyphen-2.8.8_4 libmanette-0.2.6_1 
  libwebkit2gtk41-2.46.6_1 gufw-24.04_2 

-

(3). 設定は、「こちら」を参照:

-

(4). ssh 接続して使う場合は、「項番 2)」のファイアウォールの開始: は行いません:

-

-


4). ディスクの管理の「disks」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs gnome-disk
:
[-] gnome-disk-utility-46.1_1 GNOME libraries and applications for dealing wi...

-

(2). インストール:
$ sudo xbps-install -S gnome-disk-utility
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
7 packages will be downloaded:
  gptfdisk-1.0.10_1 parted-3.6_1 libhandy1-1.8.3_1 
  libcracklib-2.10.3_1 cracklib-2.10.3_1 libpwquality-1.4.5_3 
  gnome-disk-utility-46.1_1 
7 packages will be installed:
  gptfdisk-1.0.10_1 parted-3.6_1 libhandy1-1.8.3_1 
  libcracklib-2.10.3_1 cracklib-2.10.3_1 libpwquality-1.4.5_3 
  gnome-disk-utility-46.1_1 

-

(3). 起動:

「アプリケーション」→「アクセサリ」→「ディスク」

-

-

(4). 使い方は、「こちら」を参照:

-

-


5). ディスクのパーティション管理の「gparted」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs gparted
:
[-] gparted-1.7.0_1 Gnome Partition Editor

-

(2). インストール:
$ sudo xbps-install -S gparted
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name      Action    Version       New version        Download size
libsigc++ install   -             2.12.1_1           9.9KB 
glibmm    install   -             2.66.6_1           672KB 
atkmm     install   -             2.28.3_1           80KB 
cairomm   install   -             1.14.5_1           46KB 
pangomm   install   -             2.46.2_1           53KB 
gtkmm     install   -             3.24.8_1           1067KB 
gparted   install   -             1.7.0_1            1912KB 

-

(3). 起動:

「アプリケーション」→「システム」→「Gparted」

-

→「スワップパーティション」があることに注目:

-

(4). 使い方は、「こちら」を参照:

-

-


6). 音楽プレーヤの「audacious」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs audacious
[-] audacious-4.5.1_1            Lightweight, advanced audio player focused o...
[-] audacious-base-4.5.1_1       Lightweight, advanced audio player focused o...
[-] audacious-base-devel-4.5.1_1 Lightweight, advanced audio player focused o...
[-] audacious-devel-4.3.1_1      Lightweight, advanced audio player focused o...
[-] audacious-plugins-4.5.1_1    Plugins for the Audacious media player

-

(2). インストール:
$ sudo xbps-install -S audacious
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
16 packages will be downloaded:
  audacious-base-4.5.1_1 faad2-2.11.2_1 opusfile-0.12_3 
  libsidplayfp-2.3.1_1 libmms-0.6.4_2 neon-0.32.2_2 libcue-2.3.0_1 
  qt6-opengl-widgets-6.8.2_5 minizip-1.3_1 libassimp-5.2.5_2 
  libqt6shadertools-6.8.2_1 qt6-quicktimeline-6.8.2_1 
  qt6-quick3d-6.8.2_1 qt6-multimedia-6.8.2_2 audacious-plugins-4.5.1_1 
  audacious-4.5.1_1 
16 packages will be installed:
  audacious-base-4.5.1_1 faad2-2.11.2_1 opusfile-0.12_3 
  libsidplayfp-2.3.1_1 libmms-0.6.4_2 neon-0.32.2_2 libcue-2.3.0_1 
  qt6-opengl-widgets-6.8.2_5 minizip-1.3_1 libassimp-5.2.5_2 
  libqt6shadertools-6.8.2_1 qt6-quicktimeline-6.8.2_1 
  qt6-quick3d-6.8.2_1 qt6-multimedia-6.8.2_2 audacious-plugins-4.5.1_1 
  audacious-4.5.1_1 

-

(3). インストールされたかの確認:
$ xbps-query -Rs audacious
:
[*] audacious-4.5.1_1            Lightweight, advanced audio player focused o...
[*] audacious-base-4.5.1_1       Lightweight, advanced audio player focused o...
[-] audacious-base-devel-4.5.1_1 Lightweight, advanced audio player focused o...
[-] audacious-devel-4.3.1_1      Lightweight, advanced audio player focused o...
[*] audacious-plugins-4.5.1_1    Plugins for the Audacious media player

-

(4). バージョン:
$ audacious --version
Audacious 4.5.1 (xbps)

-

(5). 起動:

「アプリケーション」→「マルチメディア」→「Audacious

-

(6). 詳細は、「こちら」を参照:

-

-


7). 画像加工の「kolourpaint」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs kolou
[-] kolourpaint-24.12.2_1 Free, easy-to-use paint program for KDE

-

(2). インストールで失敗:
$ sudo xbps-install -S kolourpaint
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
libpoppler-25.06.0_1: broken, unresolvable shlib `libgpgmepp.so.6'
volume_key-0.3.12_8: broken, unresolvable shlib `libgpgme.so.11'
ERROR: Transaction aborted due to unresolved shlibs.
[user@user-pc ~]$ 

→ 2つの依存するライブラリが解決できないみたい:

-

(3). アプリの依存を確認:
$ xbps-query -R kolourpaint
:
architecture: x86_64
changelog: https://kde.org/announcements/changelogs/gear/24.12.2/#kolourpaint
filename-sha256: 241c27cc6e1eacc32dd2b8d4292cdfd3e2abdee820878a71802c961b727aa69f
filename-size: 5602KB
homepage: http://www.kolourpaint.org/
installed_size: 9589KB
license: BSD-2-Clause, GPL-2.0-or-later, LGPL-2.1-only, GFDL-1.2-only
maintainer: Piotr Wójcik <chocimier@tlen.pl>
pkgname: kolourpaint
pkgver: kolourpaint-24.12.2_1
provides:
    cmd:kolourpaint-24.12.2_1
repository: https://repo-fi.voidlinux.org/current
run_depends:
    kf6-kguiaddons>=6.0.0_1
    kf6-kio>=6.0.0_1
    kf6-ki18n>=6.0.0_1
    kf6-kwidgetsaddons>=6.0.0_1
    qt6-widgets>=6.8.1_1
    qt6-gui>=6.8.1_1
    kf6-kcoreaddons>=6.0.0_1
    qt6-core>=6.8.1_1
    libstdc++>=4.4.0_1
    glibc>=2.39_1
    kf6-kxmlgui>=6.0.0_1
    qt6-printsupport>=6.8.1_1
    libksane6>=24.02.0_1
    kf6-kconfigwidgets>=6.0.0_1
    kf6-kcrash>=6.0.0_1
    kf6-kconfig>=6.0.0_1
shlib-provides:
    libkolourpaint_lgpl.so.5
shlib-requires:
    libKF6ConfigCore.so.6
    libKF6ConfigGui.so.6
    libKF6ConfigWidgets.so.6
    libKF6CoreAddons.so.6
    libKF6Crash.so.6
    libKF6GuiAddons.so.6
    libKF6I18n.so.6
    libKF6KIOCore.so.6
    libKF6KIOFileWidgets.so.6
    libKF6KIOGui.so.6
    libKF6WidgetsAddons.so.6
    libKF6XmlGui.so.6
    libKSaneWidgets6.so.6
    libQt6Core.so.6
    libQt6Gui.so.6
    libQt6PrintSupport.so.6
    libQt6Widgets.so.6
    libc.so.6
    libm.so.6
    libstdc++.so.6
short_desc: Free, easy-to-use paint program for KDE
source-revisions: kolourpaint:9f7ed336e4f

上記に書かれた依存とは違うので、たぶん、依存の依存かな。

-

(4). 依存の 1つ目がインストールできるか確認:
$ xbps-query -Rs libpoppler
:
[-] libpoppler-25.06.0_2 PDF rendering library - poppler runtime library

→OK

-

(5). 依存の 2つ目がインストールできるか確認:
$ xbps-query -Rs volume_key
:
[-] volume_key-0.3.12_9         Library for manipulating storage volume encry...
[-] volume_key-devel-0.3.12_9   Library for manipulating storage volume encry...
[-] volume_key-python3-0.3.12_9 Library for manipulating storage volume encry...

→OK

-

(6). 2つの依存をインストール:
$ sudo xbps-install -S libpoppler volume_key
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name         Action    Version       New version        Download size
poppler-glib update    25.06.0_1     25.06.0_2          206KB 
libgpgme     update    1.24.1_1      2.0.0_1            147KB 
gpgmepp      update    1.24.1_1      2.0.0_1            147KB 
libpoppler   update    25.06.0_1     25.06.0_2          1310KB 
volume_key   update    0.3.12_8      0.3.12_9           144KB 

-

(7). 「kolourpaint」のインストール:
$ sudo xbps-install -S kolourpaint
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
41 packages will be downloaded:
  kf6-kguiaddons-geo-uri-handler-6.17.0_1 kf6-kguiaddons-6.17.0_1 
  kf6-ki18n-6.17.0_1 qt6-xml-6.8.2_5 kf6-kconfig-6.17.0_1 
  kf6-kcoreaddons-6.17.0_1 kf6-kservice-6.17.0_1 kf6-kcrash-6.17.0_1 
  polkit-qt6-0.200.0_1 kf6-kauth-6.17.0_1 xmlcatmgr-2.2_4 
  docbook-xml-4.5_6 docbook-xsl-1.79.2_3 kf6-karchive-6.17.0_1 
  kf6-kdoctools-6.17.0_1 media-player-info-24_2 kf6-solid-6.17.0_1 
  kf6-knotifications-6.17.0_1 kf6-kcolorscheme-6.17.0_1 
  qt6-qt5compat-6.8.2_2 botan-2.19.5_1 qca-qt6-2.3.8_2 
  kf6-kwallet-6.17.0_2 kf6-kjobwidgets-6.17.0_1 kf6-kcodecs-6.17.0_1 
  kf6-kcompletion-6.17.0_1 libbreeze-icons-6.17.0_1 
  kf6-kiconthemes-6.17.0_1 kf6-kbookmarks-6.17.0_1 kf6-kio-6.17.0_2 
  kf6-kglobalaccel-6.17.0_1 kf6-kconfigwidgets-6.17.0_1 
  kf6-kxmlgui-6.17.0_1 libaspell-0.60.8.1_1 kf6-sonnet-6.17.0_1 
  qt6-speech-6.8.2_2 kf6-ktextwidgets-6.17.0_1 libsane-1.3.1_2 
  ksanecore6-25.08.0_1 libksane6-24.08.0_1 kolourpaint-24.12.2_1 
41 packages will be installed:
  kf6-kguiaddons-geo-uri-handler-6.17.0_1 kf6-kguiaddons-6.17.0_1 
  kf6-ki18n-6.17.0_1 qt6-xml-6.8.2_5 kf6-kconfig-6.17.0_1 
  kf6-kcoreaddons-6.17.0_1 kf6-kservice-6.17.0_1 kf6-kcrash-6.17.0_1 
  polkit-qt6-0.200.0_1 kf6-kauth-6.17.0_1 xmlcatmgr-2.2_4 
  docbook-xml-4.5_6 docbook-xsl-1.79.2_3 kf6-karchive-6.17.0_1 
  kf6-kdoctools-6.17.0_1 media-player-info-24_2 kf6-solid-6.17.0_1 
  kf6-knotifications-6.17.0_1 kf6-kcolorscheme-6.17.0_1 
  qt6-qt5compat-6.8.2_2 botan-2.19.5_1 qca-qt6-2.3.8_2 
  kf6-kwallet-6.17.0_2 kf6-kjobwidgets-6.17.0_1 kf6-kcodecs-6.17.0_1 
  kf6-kcompletion-6.17.0_1 libbreeze-icons-6.17.0_1 
  kf6-kiconthemes-6.17.0_1 kf6-kbookmarks-6.17.0_1 kf6-kio-6.17.0_2 
  kf6-kglobalaccel-6.17.0_1 kf6-kconfigwidgets-6.17.0_1 
  kf6-kxmlgui-6.17.0_1 libaspell-0.60.8.1_1 kf6-sonnet-6.17.0_1 
  qt6-speech-6.8.2_2 kf6-ktextwidgets-6.17.0_1 libsane-1.3.1_2 
  ksanecore6-25.08.0_1 libksane6-24.08.0_1 kolourpaint-24.12.2_1 

Size to download:               28MB
Size required on disk:         128MB
Space available on disk:        17GB

Do you want to continue? [Y/n] 

-

(8). バージョン:
$ kolourpaint --version
kolourpaint 24.12.2

-

(9). 起動:

「アプリケーション」→「グラフィックス」→「KolourPaint」

-

(10). 詳細は、「こちら」を参照:

-

-


8). PDF ビュワー「qpdfview」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs qpdfv
:
[-] qpdfview-0.5.0_1 Tabbed document viewer

-

(2). インストール:
$ sudo xbps-install -S qpdfview
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name              Action    Version     New version           Download size
libdjvulibre      install   -           3.5.29_1              709KB 
qt5-core          install   -           5.15.11+20231124_5    2441KB 
qt5-dbus          install   -           5.15.11+20231124_5    209KB 
qt5-network       install   -           5.15.11+20231124_5    746KB 
qt5-gui           install   -           5.15.11+20231124_5    4090KB 
qt5-xml           install   -           5.15.11+20231124_5    104KB 
poppler-qt5       install   -           25.06.0_1             209KB 
qt5-concurrent    install   -           5.15.11+20231124_5    11KB 
qt5-sql           install   -           5.15.11+20231124_5    102KB 
qt5-plugin-sqlite install   -           5.15.11+20231124_5    29KB 
qt5-widgets       install   -           5.15.11+20231124_5    2652KB 
qt5-printsupport  install   -           5.15.11+20231124_5    197KB 
qt5-svg           install   -           5.15.11+20231124_5    152KB 
qpdfview          install   -           0.5.0_1               843KB 

→インストールされたのは、「qpdfview 0.5.0」です:

-

(3). 起動して確認:

「アプリケーション」→「オフィス」→「qpdfview」を起動:

-

→ヘルプ以外は日本語化されています:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ---

15. ゲームのインストール:

-

個人的によく使っているゲームを、インストールしました。 インストールは任意です。

-

-


1). 「swell-foop」をインストール:

「さめざめ」もどきで、音が出ないのが惜しいです。

-

(1). インストールできるか確認:
$ xbps-query -Rs swell-f
:
[-] swell-foop-48.1_1 GNOME puzzle game where you remove similar objects

→検索する「アプリ名」か「説明文」の、一部がわかれば、ヒットします:

-

(2). インストール:
$ sudo xbps-install -S swell-foop
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
6 packages will be downloaded:
  libxmlb-0.3.22_2 AppStream-1.0.4_2 libadwaita-1.7.5_1 
  libgee-0.20.8_2 libgnome-games-support2-2.0.2_1 swell-foop-48.1_1 
6 packages will be installed:
  libxmlb-0.3.22_2 AppStream-1.0.4_2 libadwaita-1.7.5_1 
  libgee-0.20.8_2 libgnome-games-support2-2.0.2_1 swell-foop-48.1_1 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/org.gnome.SwellFoop.desktop

↓ 行を修正:

Name[ja]=Swell Foop さめざめもどき

-

(4). 起動:

「アプリケーション」→「ゲーム」→「Swell Foop さめざめもどき」

-

実行時の画面:

-

-


2). 「マインスイーパ」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs kmines
:
[-] kmines-24.08.0_1 Classic Minesweeper game

-

(2). インストール:
$ sudo xbps-install -S kmines
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2070KB [avg rate: 1866KB/s]

Name            Action    Version       New version        Download size
kf6-kdnssd      install   -             6.17.0_1           85KB 
kf6-attica      install   -             6.17.0_1           192KB 
kf6-syndication install   -             6.17.0_1           222KB 
kf6-kpackage    install   -             6.17.0_1           178KB 
kf6-knewstuff   install   -             6.17.0_1           743KB 
libkdegames     install   -             24.08.0_1          9041KB 
kmines          install   -             24.08.0_1          1163KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kmines.desktop

↓ 行を修正:

Name[ja]=KMines マインスイーパ

-

(4). 起動:

「アプリケーション」→「ゲーム」→「KMines マインスイーパ

-

実行時の画面:

-

-


3). 「ソリティア」(クロンダイク)のインストール:

カードゲーム集なので、いくつかのカードゲームで遊べます:

-

(1). インストールできるか確認:
$ xbps-query -Rs aisleriot
:
[-] aisleriot-3.22.35_1 GNOME solitaire card game

-

(2). インストール:
$ sudo xbps-install -S aisleriot
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name      Action    Version       New version        Download size
gc        install   -             8.2.8_1            106KB 
libguile  install   -             3.0.10_1           506KB 
guile     install   -             3.0.10_1           9681KB 
yelp-xsl  install   -             42.4_1             214KB 
yelp      install   -             42.3_1             851KB 
aisleriot install   -             3.22.35_1          9467KB 

-

(3). 起動:

「アプリケーション」→「ゲーム」→「AisleRiot ソリティア

-

実行時の画面:

-

-


4). 「上海」 (KMahjongg) のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs kmahjongg
:
[-] kmahjongg-25.04.3_1          Mahjong Solitaire
[-] libkmahjongg-25.04.3_1       Common code, backgrounds and tile sets for M...
[-] libkmahjongg-devel-25.04.3_1 Common code, backgrounds and tile sets for M...

-

(2). インストール:
$ sudo xbps-install -S kmahjongg
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2070KB [avg rate: 933KB/s]

Name         Action    Version       New version        Download size
libkmahjongg install   -             25.04.3_1          1657KB 
kmahjongg    install   -             25.04.3_1          3838KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kmahjongg.desktop

↓ 行を修正:

Name[ja]=KMahjongg 上海

-

(4). 起動:

「アプリケーション」→「ゲーム」→「KMahjongg 上海」

-

実行時の画面:

-

-


5). 「宇宙船スクロールシューティングゲーム」(kobodeluxe) のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs kobodeluxe
:
[-] kobodeluxe-0.5.1_3 Space shooter in 2D

-

(2). インストール:
$ sudo xbps-install -S kobodeluxe
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name         Action    Version       New version        Download size
sdl12-compat install   -             1.2.68_2           - 
SDL_image    install   -             1.2.12_14          29KB 
kobodeluxe   install   -             0.5.1_3            1555KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/kobodl.desktop

↓ 行を追加:

Name[ja]=kobodeluxe 宇宙船スクロールシューティング

-

(4). 起動:

「アプリケーション」→「ゲーム」→「kobodeluxe 宇宙船スクロールシューティング」

-

実行時の画面:

-

キビキビ動きます。速すぎるので難しいです。 レーダーで自分の位置を確認しながら、基地のパイプの先の球体にビームを当てて破壊します。

shift: 前後にビーム
矢印: 方向転換
スペース: 一時停止

-

-


6). LbreakoutHD(ブロックくずし もどき)のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs lbreakout2
:
[-] lbreakout2-2.6.5_2   Breakout-style arcade game
[-] lbreakouthd-1.1.10_1 Scalable 16:9 remake of LBreakout2

→解像度で 2つのアプリに別れています:

-

(2). インストール:
$ sudo xbps-install -S lbreakouthd
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name        Action    Version       New version        Download size
libmikmod   install   -             3.3.11.1_1         95KB 
smpeg2      install   -             2.0.0_6            125KB 
SDL2_mixer  install   -             2.8.1_1            162KB 
SDL2_image  install   -             2.8.8_1            98KB 
SDL2_ttf    install   -             2.20.2_2           34KB 
lbreakouthd install   -             1.1.10_1           3808KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/lbreakouthd.desktop

↓ 行を追加:

Name[ja]=LbreakoutHD ブロックくずし

-

(4). 起動:

「アプリケーション」→「ゲーム」→「LbreakoutHD ブロックくずし」

-

実行時の画面:

-

ラケットで受けている途中で、お宝に気を奪われると、受け損ないます:

→落ちてくるのがお宝と限らないのが面白いところ。 ラケットの幅が広くなるお宝と狭くなるお宝があります。ボールが2個に増えるのもありました。

-

-


7). LTris(テトリス もどき)のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs ltris:
[-] ltris-1.2.6_2 Tetris clone using SDL

-

(2). インストール:
$ sudo xbps-install -S ltris
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2069KB [avg rate: 1064KB/s]

Name      Action    Version       New version        Download size
smpeg     install   -             0.4.5_7            119KB 
SDL_mixer install   -             1.2.12_15          78KB 
ltris     install   -             1.2.6_2            1388KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/ltris.desktop

↓ 行を追加:

Name[ja]= LTris テトリス

-

(4). 起動:

「アプリケーション」→「ゲーム」→「LTris2 テトリス

-

実行時の画面:

-

落ちる場所がぼんやりと表示されて親切だけど、落ち方が乱暴なテトリスです。

操作が矢印キーだけなので窮屈です。スペースキーで落とすか、回転してほしいです。

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----

16. 「flatpak」でアプリをインストール:

-

「flatpak」を使えば、(ソースからビルドしなくても)使える「アプリ」を増やせます:

ヒットした「アプリ」のみ載せました:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- -----

16-1. 「flatpak」をインストール:

-


1). Flatpak をインストール:

$ sudo xbps-install -S flatpak
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2070KB [avg rate: 1163KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
x86_64-repodata: 750KB [avg rate: 1243KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...

Name    Action    Version           New version            Download size
ostree  install   -                 2025.6_2               570KB 
flatpak install   -                 1.16.1_1               1704KB 

-


2). Flathubリポジトリを追加:

$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
:
Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/user/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

-


3). 再起動:

$ sudo reboot

-


4). ヘルプ表示:

$ flatpak --help

-


5). アプリ名で検索:

$ flatpak search  [アプリ名]

→「Application ID」を確認:

-

事前に、ブラウザで「Flathub アプリストア」を参照しても良いです:

-


6). アプリを「Application ID」で指定して、インストール:

$ flatpak install flathub [Application ID]

-


7). アプリを実行:

$ flatpak run  [Application ID]

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- -

16-2. 「flatpak」で、「四川省」 (Shisen-Sho) をインストール:

-


1). 検索:

$ flatpak search KShisen
:
Name        Description                            Application ID      Version        Branch    Remotes
KShisen     Shisen-Sho Mahjongg-like Tile Game     org.kde.kshisen     1.11.25081     stable    flathub

→「org.kde.kshisen」

-


2). インストール:

$ flatpak install flathub org.kde.kshisen
:
Looking for matches…
Required runtime for org.kde.kshisen/x86_64/stable (runtime/org.kde.Platform/x86_64/6.9) found in remote flathub
Do you want to install it? [Y/n]: 

→Enter

org.kde.kshisen permissions:
    ipc      fallback-x11         pulseaudio           wayland      x11
    dri      file access [1]      dbus access [2]

    [1] xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar, org.kde.KGlobalSettings, org.kde.kconfig.notify,
        org.kde.kdeconnect

        ID                                       Branch          Op     Remote      Download
 1.     org.freedesktop.Platform.GL.default      24.08           i      flathub     < 145.0 MB
 2.     org.freedesktop.Platform.GL.default      24.08extra      i      flathub     < 145.0 MB
 3.     org.freedesktop.Platform.openh264        2.5.1           i      flathub     < 971.4 kB
 4.     org.kde.KStyle.Adwaita                   6.9             i      flathub       < 8.5 MB
 5.     org.kde.Platform.Locale                  6.9             i      flathub     < 409.2 MB
 6.     org.kde.Platform                         6.9             i      flathub     < 388.0 MB
 7.     org.kde.kshisen.Locale                   stable          i      flathub     < 512.1 kB
 8.     org.kde.kshisen                          stable          i      flathub      < 13.2 MB

Proceed with these changes to the system installation? [Y/n]: 

→Enter

:
Installation complete.
[user@user-pc ~]$ 

-


3). インストール一覧:

$ flatpak list
:
Name                  Application ID                   Version                  Branch      Installation
Freedesktop Platform  org.freedesktop.Platform         freedesktop-sdk-22.08.28 22.08       system
Mesa                  …freedesktop.Platform.GL.default 24.0.9                   22.08       system
Mesa (Extra)          …freedesktop.Platform.GL.default 24.0.9                   22.08-extra system
Mesa                  …freedesktop.Platform.GL.default 25.2.2                   24.08       system
Mesa (Extra)          …freedesktop.Platform.GL.default 25.2.2                   24.08extra  system
openh264              …g.freedesktop.Platform.openh264 2.1.0                    2.2.0       system
openh264              …g.freedesktop.Platform.openh264 2.5.1                    2.5.1       system
Frozen Bubble         org.frozen_bubble.frozen-bubble  2.213                    stable      system
Adwaita theme         org.kde.KStyle.Adwaita                                    6.9         system
KDE Application Plat… org.kde.Platform                                          6.9         system
KShisen               org.kde.kshisen                  1.11.25081               stable      system

-


4). 実行:

$ flatpak run org.kde.kshisen
Qt: Session management error: Could not open network socket
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
KTranscript: Loaded module: /usr/share/locale/ja/LC_SCRIPTS/ki18n6/ki18n6.js

もしくは、

「アプリケーション」→「ゲーム」→「Shisen-Sho」

-

実行時の画面:

-


5). メニューの修正:

-

ファイル名の確認:
$ sudo find / -name org.kde.kshisen.desktop
:
/var/lib/flatpak/exports/share/applications/org.kde.kshisen.desktop
/var/lib/flatpak/app/org.kde.kshisen/x86_64/stable/0be04a77b9ac47786c0916dc51490cac39e862e8d0806f29fc01a16042ca6d36/export/share/applications/org.kde.kshisen.desktop
/var/lib/flatpak/app/org.kde.kshisen/x86_64/stable/0be04a77b9ac47786c0916dc51490cac39e862e8d0806f29fc01a16042ca6d36/files/share/applications/org.kde.kshisen.desktop

-

修正:
$ sudo mousepad /var/lib/flatpak/exports/share/applications/org.kde.kshisen.desktop
Name[ja]=Shisen-Sho

↓ 修正:

Name[ja]=Shisen-Sho 四川省

Ctrl+S にて保存:

-

ログアウト→ログイン

-

起動:

「アプリケーション」→「ゲーム」→「Shisen-Sho 四川省

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- --

16-3. 「flatpak」で、「フローズン・バブル」 (frozen-bubble) をインストール:

-


1). 検索:

$ flatpak search 'Frozen Bubble'
:
Name         Description                            Application ID                  Version Branch Remotes
Frozen Bubb… An addictive game about frozen bubbles org.frozen_bubble.frozen-bubble 2.213   stable flathub

→「org.frozen_bubble.frozen-bubble」

-


2). インストール:

$ flatpak install flathub org.frozen_bubble.frozen-bubble
:
Looking for matches…
Required runtime for org.frozen_bubble.frozen-bubble/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/22.08) found in remote flathub
Do you want to install it? [Y/n]: 

→Enter

Info: runtime org.freedesktop.Platform branch 22.08 is end-of-life, with reason:
   org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: applications using this runtime:
   org.frozen_bubble.frozen-bubble

Info: runtime org.freedesktop.Platform.GL.default branch 22.08-extra is end-of-life, with reason:
   org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: applications using this runtime:
   org.frozen_bubble.frozen-bubble

Info: runtime org.freedesktop.Platform.GL.default branch 22.08 is end-of-life, with reason:
   org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: applications using this runtime:
   org.frozen_bubble.frozen-bubble

org.frozen_bubble.frozen-bubble permissions:
    ipc    network    pulseaudio    x11   dri

        ID                                       Branch          Op     Remote      Download
 1.     org.freedesktop.Platform.GL.default      22.08           i      flathub     < 148.3 MB
 2.     org.freedesktop.Platform.GL.default      22.08-extra     i      flathub     < 148.3 MB
 3.     org.freedesktop.Platform.Locale          22.08           i      flathub     < 333.0 MB
 4.     org.freedesktop.Platform.openh264        2.2.0           i      flathub     < 944.3 kB
 5.     org.freedesktop.Platform                 22.08           i      flathub     < 216.2 MB
 6.     org.frozen_bubble.frozen-bubble          stable          i      flathub      < 43.9 MB

Proceed with these changes to the system installation? [Y/n]: 

→Enter

:
Installation complete.
[user@user-pc ~]$ 

-


3). インストール一覧:

$ flatpak list
:
Name                  Application ID                   Version                  Branch      Installation
Freedesktop Platform  org.freedesktop.Platform         freedesktop-sdk-22.08.28 22.08       system
Mesa                  …freedesktop.Platform.GL.default 24.0.9                   22.08       system
Mesa (Extra)          …freedesktop.Platform.GL.default 24.0.9                   22.08-extra system
Mesa                  …freedesktop.Platform.GL.default 25.2.2                   24.08       system
Mesa (Extra)          …freedesktop.Platform.GL.default 25.2.2                   24.08extra  system
openh264              …g.freedesktop.Platform.openh264 2.1.0                    2.2.0       system
openh264              …g.freedesktop.Platform.openh264 2.5.1                    2.5.1       system
Frozen Bubble         org.frozen_bubble.frozen-bubble  2.213                    stable      system
Adwaita theme         org.kde.KStyle.Adwaita                                    6.9         system
KDE Application Plat… org.kde.Platform                                          6.9         system
KShisen               org.kde.kshisen                  1.11.25081               stable      system

-


4). 実行:

$ flatpak run org.frozen_bubble.frozen-bubble
Qt: Session management error: Could not open network socket
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
KTranscript: Loaded module: /usr/share/locale/ja/LC_SCRIPTS/ki18n6/ki18n6.js
[user@user-pc ~]$ flatpak run org.frozen_bubble.frozen-bubble
        [[ Frozen-Bubble-2.213 ]]

  http://www.frozen-bubble.org/

  Copyright (c) 2000-2012 The Frozen-Bubble Team.

    Artwork: Alexis Younes
             Amaury Amblard-Ladurantie
    Soundtrack: Matthias Le Bidan
    Design & Programming: Guillaume Cottenceau
    Level Editor: Kim and David Joham
    Additional network programming: Mark Glines

  Originally sponsored by Mandriva <http://www.mandriva.com/>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 2, as
  published by the Free Software Foundation.

[SDL Init] [Graphics....libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
......] 
[Sound Init] Ready.
[user@user-pc ~]$ 

-

もしくは、

「アプリケーション」→「ゲーム」→「Frozen Bubble」

-

実行時の画面:

-


5). メニューの修正:

-

ファイル名の確認:
$ ls -1 /var/lib/flatpak/exports/share/applications/
:
mimeinfo.cache
org.frozen_bubble.frozen-bubble.desktop
org.kde.kshisen.desktop
org.mozilla.firefox.desktop

→デスクトップファイルをカスタマイズ(翻訳)しやすくする?ための、リンクです:

長いフォルダ名の「実体」は別にあります。

-

修正:
$ sudo mousepad /var/lib/flatpak/exports/share/applications/org.frozen_bubble.frozen-bubble.desktop

↓ 翻訳行を 1行 追記:

Name[ja]=Frozen Bubble フローズン・バブル

Ctrl+S にて保存:

-

ログアウト→ログイン

-

起動:

「アプリケーション」→「ゲーム」→「Frozen Bubble フローズン・バブル」

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- ---

16-4. 任意: 「flatpak」で、「Firefox」をインストール:

-

「Void Linux」では、「Firefox」ブラウザをインストールする場合、いくつかの選択肢があります:

リポジトリからインストールする、通常版の「firefox」(143.0_1)    ←(デフォルト)
リポジトリからインストールする、ESR 版の「fire-esr」(140.2.0_1) 
ダウンロードしてインストールする、ESR 版の「Firefox」(140.3.0esr) 
flatpack でインストールする、通常版の「firefox」(143.0.1)

→インストールのやり方が違うだけで、ブラウザとしての機能の差はわずかです:

-

「flatpak」版は、隔離された環境?に作られるので、他の「firefox」と共存できるのが利点です:

惜しいのは、ESR 版がないこと。

-


1). 検索:

$ flatpak search firefox
:
Name            Description                           Application ID         Version     Branch Remotes
Firefox         Fast, Private & Safe Web Browser      org.mozilla.firefox    143.0.1     stable flathub
Add Water       Keep Firefox in fashion               dev.qwery.AddWater     1.2.6       stable flathub
:

-


2). インストール:

$ flatpak install flathub org.mozilla.firefox
:
Looking for matches…
Required runtime for org.mozilla.firefox/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/24.08) found in remote flathub
Do you want to install it? [Y/n]: 

→Enter

org.mozilla.firefox permissions:
    ipc                      network                 cups                      fallback-x11                   pcsc
    pulseaudio               wayland                 x11                       devices                        devel
    file access [1]          dbus access [2]         bus ownership [3]         system dbus access [4]

    [1] /run/.heim_org.h5l.kcm-socket, xdg-download, xdg-run/speech-dispatcher:ro
    [2] org.a11y.Bus, org.freedesktop.FileManager1, org.gtk.vfs.*
    [3] org.mozilla.firefox.*, org.mozilla.firefox_beta.*, org.mpris.MediaPlayer2.firefox.*
    [4] org.freedesktop.NetworkManager


        ID                                        Branch           Op           Remote            Download
 1. [✓] org.freedesktop.Platform.Locale           24.08            i            flathub            10.4 MB / 387.7 MB
 2. [✓] org.freedesktop.Platform                  24.08            i            flathub            63.9 MB / 264.8 MB
 3. [✓] org.mozilla.firefox.Locale                stable           i            flathub            36.5 MB / 36.5 MB
 4. [✓] org.mozilla.firefox                       stable           i            flathub           111.1 MB / 112.3 MB

Installation complete.
[user@user-pc ~]$ 

-


3). インストール一覧から抜粋:

$ flatpak list | grep fire
Firefox org.mozilla.firefox 143.0.1 stable  system

-


4). 実行:

$ flatpak run org.mozilla.firefox

-

もしくは、

「アプリケーション」→「インターネット」→「Firefox

-

「flatpak」版であるかは、ヘルプで確認できます:

-


5). 参考: 「flatpak」版の「firefox」が配置される場所:

$ sudo find / -name firefox
:
/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/e46eff611fe0f37495ff7e3ed73fbb23b9777a364b859159adbb93ee8a527540/files/lib/firefox
/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/e46eff611fe0f37495ff7e3ed73fbb23b9777a364b859159adbb93ee8a527540/files/lib/firefox/firefox
/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/e46eff611fe0f37495ff7e3ed73fbb23b9777a364b859159adbb93ee8a527540/files/bin/firefox
/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/e46eff611fe0f37495ff7e3ed73fbb23b9777a364b859159adbb93ee8a527540/files/etc/firefox
/home/user/.cache/mozilla/firefox
/home/user/.mozilla/firefox
/home/user/.var/app/org.mozilla.firefox/config/.mozilla/firefox
/home/user/.var/app/org.mozilla.firefox/cache/mozilla/firefox
/home/user/.var/app/org.mozilla.firefox/.mozilla/firefox

/opt/firefox     ←(ダウンロードしてインストールしたESR 版の「firefox」のファイル)
/opt/firefox/firefox
/usr/local/bin/firefox

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- ----

17. 問題: Firefox ブラウザで、日本語以外の「英数字」のフォントが粗(あら)く表示され、美しくありません:

-

粗(あら)いというか、ギザギザで色が薄いフォントに見えます:

-

作業前:

→色が薄くて、かすれています:

-

作業後:

→色が濃くて、くっきりしました:

-


1). フォントを管理している「fontconfig」のバージョン:

$ fc-list --version
:
fontconfig version 2.16.0

-


2). システムのデフォルトフォントを確認:

$ fc-match
:
SourceHanCodeJP.ttc: "源ノ角ゴシック Code JP" "R"

-


3). システムで認識している、フォントを確認:

$ fc-list :lang=ja file family style | sort | head -50
:
/usr/local/share/fonts/NotoSansJP/NotoSansJP-Bold.ttf: Noto Sans JP:style=Bold
/usr/local/share/fonts/NotoSansJP/NotoSansJP-Regular.ttf: Noto Sans JP:style=Regular
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP EL,源ノ角ゴシック Code JP EL:style=EL It,Italic
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP EL,源ノ角ゴシック Code JP EL:style=EL,Regular
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP H,源ノ角ゴシック Code JP H:style=H It,Italic
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP H,源ノ角ゴシック Code JP H:style=H,Regular
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP L,源ノ角ゴシック Code JP L:style=L It,Italic
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP L,源ノ角ゴシック Code JP L:style=L,Regular
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP M,源ノ角ゴシック Code JP M:style=M It,Italic
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP M,源ノ角ゴシック Code JP M:style=M,Regular
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP N,源ノ角ゴシック Code JP N:style=N It,Italic
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP N,源ノ角ゴシック Code JP N:style=N,Regular
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP R,源ノ角ゴシック Code JP R:style=B It,Bold Italic
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP R,源ノ角ゴシック Code JP R:style=B,Bold
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP R,源ノ角ゴシック Code JP R:style=R It,Italic
/usr/local/share/fonts/SourceHanCodeJP.ttc: 源ノ角ゴシック Code JP,Source Han Code JP,Source Han Code JP R,源ノ角ゴシック Code JP R:style=R,Regular
/usr/share/fonts/truetype/migmix/migmix-1m-bold.ttf: MigMix 1M:style=Bold
/usr/share/fonts/truetype/migmix/migmix-1m-regular.ttf: MigMix 1M:style=Regular
/usr/share/fonts/truetype/migmix/migmix-1p-bold.ttf: MigMix 1P:style=Bold
/usr/share/fonts/truetype/migmix/migmix-1p-regular.ttf: MigMix 1P:style=Regular
/usr/share/fonts/truetype/migmix/migmix-2m-bold.ttf: MigMix 2M:style=Bold
/usr/share/fonts/truetype/migmix/migmix-2m-regular.ttf: MigMix 2M:style=Regular
/usr/share/fonts/truetype/migmix/migmix-2p-bold.ttf: MigMix 2P:style=Bold
/usr/share/fonts/truetype/migmix/migmix-2p-regular.ttf: MigMix 2P:style=Regular
/usr/share/fonts/truetype/migmix/migu-1c-bold.ttf: Migu 1C:style=Bold
/usr/share/fonts/truetype/migmix/migu-1c-regular.ttf: Migu 1C:style=Regular
/usr/share/fonts/truetype/migmix/migu-1m-bold.ttf: Migu 1M:style=Bold
/usr/share/fonts/truetype/migmix/migu-1m-regular.ttf: Migu 1M:style=Regular
/usr/share/fonts/truetype/migmix/migu-1p-bold.ttf: Migu 1P:style=Bold
/usr/share/fonts/truetype/migmix/migu-1p-regular.ttf: Migu 1P:style=Regular
/usr/share/fonts/truetype/migmix/migu-2m-bold.ttf: Migu 2M:style=Bold
/usr/share/fonts/truetype/migmix/migu-2m-regular.ttf: Migu 2M:style=Regular

→「設定ファイル」を書くとき、この中の family の値を使ってフォントを指定します:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- -----

17-2. 対策: 「ビットマップ フォント」の使用を無効にしました:

-

検索でヒット:

Void Linux フォントがギザギザになってる(アンチエイリアシング?ヒンティング?)

-

Firefox は、パッケージ「font-adobe-100dpi」および「font-adobe-75dpi」に含まれる「Helvetica」フォントのレンダリング処理がうまくできないようで、フォントが美しくありません:

-


1). 対策: ビットマップ フォントを無効にしました:

-

(1). 利用する「.conf」ファイルへのシンボリックリンクを作成:
$ sudo ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps-except-emoji.conf /etc/fonts/conf.d/

-

(2). 「fontconfig」パッケージを再構成:
$ sudo xbps-reconfigure -f fontconfig
:
fontconfig: configuring ...
Building fonts cache... 
done.
fontconfig: configured successfully.

-

(3). フォントの色が濃くて、くっきりになりました:

-


2). 参考1:

公式ドキュメントの Fonts に、

→やり方が、「使用例」として記載されています:

なぜ行うのか、の具体的な記述がないので、見逃してしまいがち。

-

「Fonts」サイトのその他の説明を和訳:

XBPS リポジトリで、多数のフォントやフォントコレクションが利用できます:

-

何を選択すればよいかわからない場合は、「dejavu-fonts-ttf」または「xorg-fonts」が良いです。

「noto-fonts-ttf」には、多くの言語とスクリプトのフォントが含まれます。
「noto-fonts-cjk」はこれを中国語、日本語、韓国語のフォントで拡張します。
「noto-fonts-emoji」は絵文字を提供します。
nerd-fonts」は、カスタム アイコンなどの特殊文字を含むフォントを提供します。

-

XBPS のリポジトリから入手できないフォントは、「/usr/share/fonts」(システム全体)、
または「~/.local/share/fonts」 (ユーザごと)に手動でインストールできます。

-

GUI 画面でのフォント表示をカスタマイズするには、

「/usr/share/fontconfig/conf.avail/」で提供される設定が使えます:

使うには、「/etc/fonts/conf.d/」内の関連する「.conf」ファイルへのシンボリックリンクを作成し、
「xbps-reconfigure」を使用して、「fontconfig」パッケージを再構成します。

-

例、ビットマップ フォントの使用を無効にします:
# ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps-except-emoji.conf /etc/fonts/conf.d/
# xbps-reconfigure -f fontconfig

→こちらを参考にしました:

-


3). 参考2:

利用した「定義ファイル」の内容:

$ cat /usr/share/fontconfig/conf.avail/70-no-bitmaps-except-emoji.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
  <description>Reject bitmap fonts except bitmap emoji fonts</description>
  <!-- Reject bitmap fonts -->
  <selectfont>
    <rejectfont>
      <pattern>
        <patelt name="outline"><bool>false</bool></patelt>
        <patelt name="scalable"><bool>false</bool></patelt>
      </pattern>
    </rejectfont>
  </selectfont>
</fontconfig>

-


4). 参考3:

-

(1). 悪さをしている「ビットマップフォント」:

-

「helv* font」は、サンセリフ体(ゴシック体)のHelvetica」(ヘルベチカ) を指します:

世界でもっとも使用されている書体のひとつで、 シンプルな見た目でありながらあらゆる用途で利用できる、 出版や広告などの業界で定番といえる書体です。

Helvetica (ヘルベチカ) は、サンセリフ体の中の、ネオグロテスク体で、
元々の名前、Neue Haas Grotesk (ノイエ・ハース・グロテスク) としても知られています。

-

ちなみに、Helvetica (ヘルベチカ) の無料の代替フォントとしては、 「Liberation Sans」と「Roboto」が使えます。

-

多くの古いスタイルの Web サイトは「Helvetica」フォントを使用しています:

パッケージ「font-adobe-100dpi」および「font-adobe-75dpi」に含まれる「Helvetica」フォント
を「Firefox はうまく処理できないのでこれらのパッケージをインストールすべきではない」という意見もあります。

ところが、「Void Linux」ではこれらは「Xorg」の依存関係であり、自動でインストールされるため、 xbps-remove を使っての削除ができません。拒否されます。

-

(2). 「Void Linux」にインストールされている「helv*」フォントを確認:
$ ls -1 /usr/share/fonts/X11/*/helv*
:
/usr/share/fonts/X11/100dpi/helvB08-ISO8859-1.pcf.gz
/usr/share/fonts/X11/100dpi/helvB08-ISO8859-10.pcf.gz
/usr/share/fonts/X11/100dpi/helvB08-ISO8859-13.pcf.gz
:
/usr/share/fonts/X11/75dpi/helvR18-ISO8859-4.pcf.gz
/usr/share/fonts/X11/75dpi/h8.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-1.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-10.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-13.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-14.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-15.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-2.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-3.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-4.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24-ISO8859-9.pcf.gz
/usr/share/fonts/X11/75dpi/helvR24.pcf.gz

→多くの(ウェイト: 太さの)フォントがヒット:

-

(3). 参考: 「Xubuntu 24.04 LTS」にインストールされている「helv*」フォントを確認:
$ ls -1 /usr/share/fonts/X11/*/helv*
:
ls: '/usr/share/fonts/X11/*/helv*' にアクセスできません: そのようなファイルやディレクトリはありません

→そもそも、問題となる「Helvetica」フォントがインストールされていません:

問題にならないので、「Firefox」でそのような問題があることを知りませんでした。

-

(4). 回避策として、問題のあるフォントを手動で削除できますが、下記のやり方(依存の強制削除)は推奨されません:

GUI で使うためのフォントで、使わないのなら、削除しても良さそうですが、システムに矛盾が生じます)

$ sudo rm /usr/share/fonts/X11/*/helv*

→「項番 1).」の、「ビットマップ フォントを無効にする」やり方が無難です:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- ----- -

18. 追記: リポジトリの「qt6」関連の一部のパッケージが見つからず、「Qt アプリ」のインストールでエラー:

-

2025-11-02 20:00 頃に確認:

-


1). 「FeatherPad」をインストールすると、依存が解決できないというエラーが表示:

$ sudo xbps-install -S FeatherPad
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2052KB [avg rate: 921KB/s]
MISSING: qt6-svg>=6.8.1_1
MISSING: qt6-printsupport>=6.8.1_1
ERROR: Transaction aborted due to unresolved dependencies.

和訳:

未解決の依存関係のため、トランザクションは中止されました:

-

確認:

$ xbps-query -Rs qt6-svg
:
[-] python3-pyqt6-svg-6.8.1_1 Python 3 bindings for Qt6 - svg

依存の依存しか表示されません:

-

$ xbps-query -Rs qt6-printsupport
:
[-] python3-pyqt6-printsupport-6.8.1_1 Python 3 bindings for Qt6 - Print Supp...

依存の依存しか表示されません:

-

→依存パッケージである、「qt6-svg」と「qt6-printsupport」の 2つが見つかりません:

-


2). 「fcitx5-mozc」をインストールすると、依存が解決できないというエラーが表示:

$ sudo xbps-install fcitx5 fcitx5-mozc fcitx5-gtk fcitx5-gtk+2 fcitx5-gtk+3 fcitx5-qt fcitx5-configtool
:
パスワード: 
MISSING: qt6-declarative>=6.8.1_1
MISSING: qt6-declarative>=6.8.1_1
MISSING: qt6-declarative>=6.8.1_1
ERROR: Transaction aborted due to unresolved dependencies.

-

確認:

$ xbps-query -Rs qt6-declarative
:
[-] python3-pyqt6-declarative-6.8.1_1 Python 3 bindings for Qt6 - Declarative

依存の依存しか表示されません:

→依存パッケージである、「qt6-declarative」が見つかりません:

-

もしかしたら、ビルドサーバーが「qt6」関連をビルド中なのかも。しばらく待つ?しかないかな。

-


3). 念の為、リポジトリの「ミラー」を変更してみる:

-

(1). デフォルトの「リポジトリの設定ファイル」を表示:
$ cat /usr/share/xbps.d/00-repository-main.conf
:
repository=https://repo-default.voidlinux.org/current

-

(2). 調子が良い(ことが判明している)「ミラー」に設定:
$ sudo nano /etc/xbps.d/00-repository-main.conf

↓ 下記と置換え:

#repository=https://repo-default.voidlinux.org/current
repository=https://repo-fi.voidlinux.org/current

→Ctrl+O で保存:

→Ctrl+X で終了:

-

(3). リポジトリの同期:
$ sudo xbps-install -S

-

(4). 登録されている、リポジトリを確認:
$ xbps-query -L
:
14267 https://repo-fi.voidlinux.org/current (Staged) (RSA signed)

-

(5). パッケージの更新:
$ sudo xbps-install -Su

-

(6). 確認:
$ xbps-query -Rs qt6-declarative
:
[-] python3-pyqt6-declarative-6.8.1_1 Python 3 bindings for Qt6 - Dec...

→変化なし。「ミラー」の調子が良くないのが原因ではないみたい:

-


4). 念の為、キャッシュをクリーンアップ:

「sudo apt autoremove」と同じような機能:

-

$ sudo xbps-remove -O
:
Removed linux6.12-6.12.55_1.x86_64.xbps from cachedir (obsolete)
Removed libunbound-1.24.0_1.x86_64.xbps from cachedir (obsolete)
Removed git-2.51.1_1.x86_64.xbps from cachedir (obsolete)
Removed qt6-widgets-6.8.2_5.x86_64.xbps from cachedir (obsolete)
Removed libsharpyuv-1.6.0_2.x86_64.xbps from cachedir (obsolete)
Removed tiff-4.7.1_1.x86_64.xbps from cachedir (obsolete)
Removed qt6-core-6.8.2_5.x86_64.xbps from cachedir (obsolete)
Removed gvfs-1.56.1_1.x86_64.xbps from cachedir (obsolete)
Removed libwebp-1.6.0_2.x86_64.xbps from cachedir (obsolete)
Removed qt6-dbus-6.8.2_5.x86_64.xbps from cachedir (obsolete)
Removed qt6-gui-6.8.2_5.x86_64.xbps from cachedir (obsolete)
Removed qt6-network-6.8.2_5.x86_64.xbps from cachedir (obsolete)
Removed brotli-1.1.0_1.x86_64.xbps from cachedir (obsolete)
Removed qt6-xml-6.8.2_5.x86_64.xbps from cachedir (obsolete)
Removed linux6.12-headers-6.12.55_1.x86_64.xbps from cachedir (obsolete)
Removed xapps-2.8.7_3.x86_64.xbps from cachedir (obsolete)

→「-O」(大文字のオー)は「--clean-cache」の略です:

(obsolete) は (廃止版)

以前、使われていたカーネルや「qt6」関連が含まれていることに注目:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- ----- --

18-2. 対策: システム更新を待ちました:

-

対策というより、更新が来るのを待っただけ:

-


1). 2日待って、システム更新:

1日ではダメでした:

-

$ date
2025年 11月  5日 水曜日 21:04:05 JST

-

$ sudo xbps-install -Su
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2034KB [avg rate: 1052KB/s]

Name              Action    Version           New version            Download size
dialog            update    1.3.20250817_1    1.3.20251001_1         142KB 
gst-plugins-good1 update    1.26.5_1          1.26.5_2               2597KB 
libdav1d          update    1.5.1_1           1.5.2_1                679KB 
libmpg123         update    1.33.0_1          1.33.3_1               223KB 
libpoppler        update    25.10.0_1         25.11.0_1              1314KB 
libxkbcommon      update    1.12.0_1          1.12.3_1               177KB 
libxkbcommon-x11  update    1.12.0_1          1.12.3_1               14KB 
libz3             update    4.15.3_1          4.15.4_1               11MB 
linux6.12         update    6.12.56_1         6.12.57_1              157MB 
linux6.12-headers update    6.12.56_1         6.12.57_1              12MB 
poppler-glib      update    25.10.0_1         25.11.0_1              207KB 
libicu78          install   -                 78.1_1                 13MB 
qt6-core          update    6.8.2_5           6.10.0_3               2335KB 
qt6-dbus          update    6.8.2_5           6.10.0_3               289KB 
qt6-gui           update    6.8.2_5           6.10.0_3               4377KB 
qt6-network       update    6.8.2_5           6.10.0_3               754KB 
qt6-widgets       update    6.8.2_5           6.10.0_3               2934KB 
qt6-xml           update    6.8.2_5           6.10.0_3               65KB 

→「qt6」系の更新が来ました:

-


2). 再起動:

$ sudo reboot

-


3). エラーのあった依存が見えるか確認:

$ uname -r
6.12.57_1

-

$ xbps-query -Rs qt6-declarative
:
[-] python3-pyqt6-declarative-6.10.0_1     Python 3 bindings for Qt6 - Declar...
[-] qt6-declarative-6.10.0_1               Cross-platform application and UI ...
[-] qt6-declarative-devel-6.10.0_1         Cross-platform application and UI ...
[-] qt6-declarative-host-tools-6.10.0_1    Cross-platform application and UI ...
[-] qt6-declarative-private-devel-6.10.0_1 Cross-platform application and UI ...
[-] qt6-declarative-tools-6.10.0_1         Cross-platform application and UI ...

→OK

-

$ xbps-query -Rs qt6-svg
:
[-] python3-pyqt6-svg-6.10.0_1 Python 3 bindings for Qt6 - svg
[-] qt6-svg-6.10.0_1           Cross-platform application and UI framework (Q...
[-] qt6-svg-devel-6.10.0_1     Cross-platform application and UI framework (Q...

→OK

-

$ xbps-query -Rs qt6-printsupport
:
[-] python3-pyqt6-printsupport-6.10.0_1 Python 3 bindings for Qt6 - Print Sup...
[-] qt6-printsupport-6.10.0_3           Cross-platform application and UI fra...

→OK

-


4). 失敗していた「FeatherPad」をインストール:

$ sudo xbps-install -S FeatherPad
:
Name             Action    Version           New version            Download size
qt6-svg          install   -                 6.10.0_1               280KB 
qt6-printsupport install   -                 6.10.0_3               213KB 
libhunspell1.7   install   -                 1.7.2_1                456KB 
FeatherPad       install   -                 1.6.2_1                936KB 

→OK

-

$ featherpad --version
FeatherPad 1.6.2

-


5). 失敗していた「fcitx5-mozc」をインストール:

$ sudo xbps-install fcitx5 fcitx5-mozc fcitx5-gtk fcitx5-gtk+2 fcitx5-gtk+3 fcitx5-qt fcitx5-configtool
:
20 packages will be installed:
  libuv-1.49.2_1 libfcitx5-5.1.16_1 xcb-imdkit-1.0.9_1 
  fcitx5-5.1.16_1 mozc-base-2.31.5851.102_2 fcitx5-mozc-2.31.5851.102_2 
  fcitx5-gtk-5.1.4_1 gtk+-2.24.33_3 fcitx5-gtk+2-5.1.4_1 
  fcitx5-gtk+3-5.1.4_1 fcitx5-qt-5.1.11_1 qt6-wayland-client-6.10.0_3 
  fcitx5-qt6-5.1.11_1 kf6-kitemviews-6.18.0_1 qt6-sql-6.10.0_3 
  qt6-declarative-6.10.0_1 libshiboken6-6.10.0_2 libpyside6-6.10.0_2 
  kf6-kwidgetsaddons-6.18.0_2 fcitx5-configtool-5.1.11_1 

→OK

-

-


まとめ

今回は、 「VirtualBox 7.2.2」に、「Void Linux」をコマンド ライン base イメージの「iso」からインストールして、「Xfce」デスクトップ環境を追加しました:

-

インストーラ」は、前回の〈H179〉の「Void LinuxXfce イメージの場合と同じでした。
ダウンロードするサイズが小さいし、余計なパッケージが入らないので、base イメージの「iso」からインストールする方が良いかも。

-

今回は、事前に、「vmwgfx」のエラーの回避のため、「仮想マシン」の設定で、「3Dアクセラレーション」のチェックを外して、「グラフィックコントローラー」を 「VBoxSVGA」に変更しました。

おかげで、「システムの立ち上げ」や、「Firefox の立ち上げ」が速くなり、前回よりも、スムーズにインストール作業ができました。

-

心配していた、手動での「VirtualBox Guest Additions」のインストールも、パッケージの追加インストールで、うまく機能するようになりました。

-

これで「仮想マシン」で「Void Linux」が楽しめる、と思ったら、

投稿(アップ)の最終確認で、「qt6」関連のリポジトリ問題が出ました。
他の Linux ディストリビューションも含め、「qt6」に移行している時期なので、しばらく様子:

-

→2日後に、システム更新して解決:

2日も待つことになったのは、たまたま、運がなかったということ。
運用しながら移行するのは大変です。開発者の方々には感謝。

-

-


-

-

    目次

-

「投稿の先頭 へ」

-

-


-

「この目次 の先頭へ」

「本編の目次 に戻る」

-

「Vagrant 2.4.9」にて、「Void Linux」をインストール〈H179-3〉

登録日: 2025-10-22 更新日: 2025-10-24

前回の〈H175-8〉にて、「Xubuntu 24.04 LTS」に「VirtualBox 7.2.2」と「Vagrant 2.4.9」をインストールしました:

-

今回は「その続き」の動作確認です。

その「Vagrant 2.4.9」で「VirtualBox 7.2.2」の仮想マシンがちゃんと作成できるか、
公式サイトの「Box」を使い、「Void Linux」の仮想マシンを作成して、確認しました:

-

その備忘録です。

-

-

使用したPC は、以前に購入した ミニPC「MINISFORUM NAB5」で、Linux マシンとして運用中です。
プロセッサは「Core i5-12450H」で、メモリ 16GB、SSD 512GB です。

-

(注)リンクを戻るときはブラウザの左上の「←」をクリック
Android スマホであれば「ホーム」ボタン隣の「<」をタップ

-

-


目次

-

今回の作業:

1. 「Vagrant」の状態を確認:

2. 「Vagrant にて「仮想マシン」を作成して動作を確認:

3.  仮想マシンの(初回の作成と)立ち上げ(エラー):

4. 「仮想マシン」の立ち上げ時のエラーに対応:

5. 「 仮想マシン」で「GUI」を表示するように「Vagrantfile」を修正:

6. 「GUI」を使えるように、「仮想マシン」の設定を見直し:

7. 「Xfce」デスクトップ環境をインストール:

8.  その他の「ツール」のインストール:

9. 「Void Linux」の日本語化:

10. 「タイムゾーン」を日本に変更:

11.  キーボードレイアウトを「日本語キーボード」に修正:

12.  日本語入力:

13.  デスクトップとパネルの設定:

14.  フォントのインストール:

15.  アプリ のインストール:

16.  ゲームのインストール:

17.  気づいたこと:

-

参考になりそうな作業:

1.  システムの起動と、「Firefox」ブラウザの立ち上げが遅くなる、原因が判明:

2.  調子が良い「ミラー」に変更:

3. 「firefox-esr」ブラウザのインストール:

4. 「TLP」を使った、「少電力」の設定: ←runit サービスの操作例:

5. 「TLP」の停止と削除:        ←runit サービスの操作例:

6. 「Powertop」を使った、「少電力」の設定:

7. 「Powertop」の停止と削除:

8. 「runit」のしくみ:

-

「まとめ へ」

「目次詳細 へ」

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - -

Xubuntu 24.04 LTS の立ち上げ:

-

VirtualBox 7.2.2」の VirtualBox マネージャを起動:

左側に「アイコン」(ボタン)が縦に並びます:

-

「ホーム」ボタン:(デフォルト)

→新しいデザインに変わり、機能を探す手間が減りました:

-

仮想マシンボタン:(通常使用)

→こちらは、今までと同じ画面です:

なので、使い勝手は変わりません:

-

一番下の「仮想マシン」が、「Vagrant 2.4.9」で自動作成された「Void Linux」です:

Vagrant だけでなく、VirtualBox マネージャからも起動や停止ができます:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - --

Xubuntu」について:

-

Ubuntu の公式フレーバー(性格の違う兄弟?)です

Ubuntu ベースの、軽量な「Xfce」デスクトップ環境です。

個人的には使い慣れた環境です。
安定していることと、カスタマイズしやすく、自分にとって使い勝手の良い環境を再現しやすいのが利点です。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ---

VirtualBox」について:

-

VirtualBox 」は、Oracle が開発している「仮想マシン」を構築するためのソフトウェアです。

-

  • 「VirtalBox」は「仮想的なパソコン」(仮想デバイス)を実現するソフトウェアです。別のパソコンに「Linux」をインストールするのと変わりません。

  • 仮想マシンを使うことで、ハードウェアで問題になりそうなPC でも、最新のLinux ディストリビューションをインストールできる可能性が高くなります。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----

Vagrant」について:

-

公式サイト:

Vagrant by HashiCorp

-

Vagrant」 (ベイグラント) は、「仮想マシン」の管理をしやすくするための「フロントエンド」のソフトウェアです:

仮想マシン」の管理を「vagrant コマンド」で行います:
複数の「仮想マシン」の環境(ベンダーと言います)に対応しており、 ベンダー指定を省略した時のデフォルトは「VirtualBox」です。

-

例えば、「VirtualBox」の場合は、
vagrant コマンド」の実行で、「VirtualBox」が内蔵する「VBoxManage」コマンドを発行して、「仮想マシン」の制御を行っています。

つまり、「VirtualBox」がインストールされていないと使えません。
また、「Vagrant」は、仮想環境を統一するのに便利なので、共同作業の多い「ソフト開発」でよく使われています。

-

個人的にはいろいろなOS にトライしており、ssh 接続よりも、GUI をよく使っていて、 GUI で使うときに便利になる、Guest Additions のインストールを手動で行うのですが、 その都度環境が違うので、よく失敗します。

-

なので、Guest Additions を(ほぼ 100% の成功率で)仮想マシンに自動インストールしてくれる、「vagrant plugin」機能を使うために、「Vagrant」を使っています。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - -----

現在のOS のバージョンを表示:

-

2025-10-19 現在

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ホストOS : 「Xubuntu 24.04.2 LTS」

カーネル:

$ uname -r
6.8.0-85-generic

→安定志向なので、更新は少なめです:

-

リリース:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

→LTS 版の更新(ポイントリリース)は、ほぼ 6ヶ月ごとです:

-

x11」と「Wayland」のどちらで動作しているか確認:
$ echo $XDG_SESSION_TYPE
x11

→「Wayland」ではなく、「x11」で動作しています。

→「Wayland」ではなく、「x11」で動作しています。

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ゲストOS : 「Void Linux

2025-10-19 現在

-

カーネル:
$ uname -r
6.12.52_1

Ubuntu よりも進んでいます:

-

リリース:
$ cat /etc/os-release
:
NAME="Void"
ID="void"
PRETTY_NAME="Void Linux"
HOME_URL="https://voidlinux.org/"
DOCUMENTATION_URL="https://docs.voidlinux.org/"
LOGO="void-logo"
ANSI_COLOR="0;38;2;71;128;97"

DISTRIB_ID="void"

→ローリングリリースです:

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- -

(前回の続き:)

-

前回の〈H175-8〉にて、「Xubuntu 24.04 LTS」に「VirtualBox 7.2.2」と「Vagrant 2.4.9」をインストールしました:

-

その「Vagrant 2.4.9」がうまく動作するかは、イチから「仮想マシン」を作ってみないとわかりません:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- --

1. 「Vagrant」の状態を確認:

-

1). vagrantプラグインを確認:

$ vagrant plugin list
:
vagrant-vbguest (0.32.0, global)

-

2). 登録されている「Box」を確認:

$ vagrant box list
:
There are no installed boxes! Use `vagrant box add` to add some.

→なし

-

3). 作成された「仮想マシン」を確認:

$ vagrant global-status
:
id       name    provider   state    directory                           
-------------------------------------------------------------------------

vagrant で管理されている「仮想マシン」なし

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ---

2. 「Vagrant 2.4.9」の確認に、Vagrant にて、「仮想マシン」を作成して動作を確認:

-


1). インストールすべき「Box」を検索:

-

公式サイト:

Discover Vagrant Boxes

-

「void」で検索:

→「ylabidi/voidlinux」のBox を使うことにしました:

-


2). 「作業フォルダ」を作成:

$ mkdir -p ~/ダウンロード/vm/void/

-


3). 「Box」をダウンロード、および「Vagrantfile」を作成:

$ cd ~/ダウンロード/vm/void/
$ vagrant init ylabidi/voidlinux --box-version 0.2.0
:
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

→ファルひとつの作成だけなので、すぐに応答が返ってきます:

-


4). 確認:

$ ls -lA ~/ダウンロード/vm/void/
:
-rw-rw-r-- 1 ubn ubn 3425 10月 16 21:20 Vagrantfile

→自動で「Vagrantfile」が作られました

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----

3. 仮想マシンの(初回の作成と)立ち上げで、エラー:

-


1). 仮想マシンの立ち上げ:

$ cd ~/ダウンロード/vm/void/
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ylabidi/voidlinux' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: 0.2.0
==> default: Loading metadata for box 'ylabidi/voidlinux'
    default: URL: https://vagrantcloud.com/api/v2/vagrant/ylabidi/voidlinux
==> default: Adding box 'ylabidi/voidlinux' (v0.2.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/ylabidi/boxes/voidlinux/versions/0.2.0/providers/virtualbox/unknown/vagrant.box
    default: Calculating and comparing box checksum...
==> default: Successfully added box 'ylabidi/voidlinux' (v0.2.0) for 'virtualbox'!
==> default: Importing base box 'ylabidi/voidlinux'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ylabidi/voidlinux' version '0.2.0' is up to date...
==> default: Setting the name of the VM: void_default_1760618090825_91285
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
[default] A Virtualbox Guest Additions installation was found but no tools to rebuild or start them.
The guest's platform ("linux") is currently not supported, will try generic Linux method...
Copy iso file /usr/share/virtualbox/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.
Installing Virtualbox Guest Additions 7.2.2 - guest version is 6.1.20
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.2.2 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
This system appears to have a version of the VirtualBox Guest Additions
already installed.  If it is part of the operating system and kept up-to-date,
there is most likely no need to replace it.  If it is not up-to-date, you
should get a notification when you start the system.  If you wish to replace
it with this version, please do not continue with this installation now, but
instead remove the current version first, following the instructions for the
operating system.

If your system simply has the remains of a version of the Additions you could
not remove you should probably continue now, and these will be removed during
installation.

Do you wish to continue? [yes or no]
touch: cannot touch '/var/lib/VBoxGuestAdditions/skip-5.12.13_1': No such file or directory
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.12.13_1.
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: cannot reload kernel modules: one or more module(s) 
is still in use
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
An error occurred during installation of VirtualBox Guest Additions 7.2.2. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: cannot reload kernel modules: one or more module(s) 
is still in use
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
vboxadd-service.sh: Starting VirtualBox Guest Addition service.
VBoxService: error: VbglR3Init failed with rc=VERR_FILE_NOT_FOUND
Unmounting Virtualbox Guest Additions ISO from: /mnt
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.1.20
VBoxService inside the vm claims: 7.2.2
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.1.20
VBoxService inside the vm claims: 7.2.2
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.1.20
VBoxService inside the vm claims: 7.2.2
Going on, assuming VBoxService is correct...
Restarting VM to apply changes...
==> default: Attempting graceful shutdown of VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /home/ubn/ダウンロード/vm/void => /vagrant

赤色の警告が表示:

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000,_netdev vagrant /vagrant

The error output from the command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

和訳:

Vagrant は VirtualBox 共有フォルダをマウントできませんでした。
これは通常、ファイルシステム「vboxsf」が使用できないことが原因です。
:

→共有フォルダのマウントで失敗しました:

-


2). 現在の状態を確認:

$ cd ~/ダウンロード/vm/void
$ vagrant plugin list
:
vagrant-vbguest (0.32.0, global)

-

$ vagrant status
:
Current machine states:

default                   running (virtualbox)

-

$ vagrant global-status
:
id       name    provider   state   directory                           
------------------------------------------------------------------------
88be79a  default virtualbox running /home/ubn/ダウンロード/vm/void            

→「仮想マシン」は作成されており、実行(running)中です:

-


3). ssh 接続:

$ vagrant ssh
:
[vagrant@voidlinux ~]$

ssh 接続できました:

-

[vagrant@voidlinux ~]$ ls
[vagrant@voidlinux ~]$ pwd
/home/vagrant

→ユーザ名は「vagrant」で、ホスト名は「voidlinux」です:

-

[vagrant@voidlinux ~]$ uname -r
5.12.13_1

-

[vagrant@voidlinux ~]$ cat /etc/os-release
:
NAME="Void"
ID="void"
PRETTY_NAME="Void Linux"
HOME_URL="https://voidlinux.org/"
DOCUMENTATION_URL="https://docs.voidlinux.org/"
LOGO="void-logo"
ANSI_COLOR="0;38;2;71;128;97"

DISTRIB_ID="void"

→ちゃんと動作しています:

-


4). ssh 接続を抜けました:

[vagrant@voidlinux ~]$ exit
logout
ubn@ubnbox:~/ダウンロード/vm/void$ 

-


5). 「仮想マシン」を電源オフ:

$ vagrant halt
:
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void

-

$ vagrant status
:
Current machine states:
default                   poweroff (virtualbox)

→電源オフされています:

-


6. ホストOS を再起動:

「端末」以外のウィンドウを閉じてから、

$ reboot

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- -----

4. 「仮想マシン」の立ち上げ時のエラーに対応:

-


1). 「仮想マシン」を立ち上げ:

$ cd ~/ダウンロード/vm/void/
$ vagrant up

-


2). ssh 接続:

$ vagrant ssh
:
[vagrant@voidlinux ~]$ 

-

[vagrant@voidlinux ~]$ pwd
/home/vagrant

-

[vagrant@voidlinux ~]$ uname -r
5.12.13_1

-


3). ssh 接続できたので、「システム更新」してみました:

$ sudo xbps-install -Su
:
[*] Updating repository `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
SSL certificate subject doesn't match host alpha.de.repo.voidlinux.org
ERROR: [reposync] failed to fetch file `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata': Operation not permitted

エラーしました:

[リポジトリの同期] ファイル「https://alpha.de.repo.voidlinux.org/current/x86_64-repodata」の取得に失敗しました:

-

ミラーを登録している、「リポジトリの設定ファイル」を確認:
$ ls /etc/xbps.d/
$ 

→「リポジトリの設定ファイル」に、ミラーは登録されていません:

ということは、

「デフォルト」で設定されている、リポジトリのURL が使われています:

-


4). デフォルトの「リポジトリの設定ファイル」の場所を検索:

エラーメッセージで、検索:
$ sudo grep -ril "alpha.de.repo.voidlinux" /usr/share/
:
/usr/share/xbps.d/00-repository-main.conf

-


5). デフォルトの「リポジトリの設定ファイル」を表示:

$ cat /usr/share/xbps.d/00-repository-main.conf
repository=https://alpha.de.repo.voidlinux.org/current

→エラーメッセージと同じ URL です:

「de」ということは「ドイツ」のミラーです:

-

前回は「日本」のミラーがダメで、今回は「ドイツ」のミラーです。
「Void Linux」のミラーは、調子が良くないミラーが多いみたい:

-


6). 調子が良い(ことが判明している)「ミラー」に設定:

GUI が操作できず、nano もインストールできない状態なので、

今のところ、エディタはvimしか使えません:

-

vim」の操作を思い出しながら設定:

$ sudo vim /etc/xbps.d/00-repository-main.conf

「Esc」を数回押して、「a」で挿入モード:

↓ 下記を貼り付け:

repository=https://repo-fi.voidlinux.org/current

「Esc」を数回押して、「:wq」で保存して終了

-


7). リポジトリの同期:

$ sudo xbps-install -S
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2025KB [avg rate: 1859KB/s]

→エラーせず、同期できました:

-


8). 登録されている、リポジトリを確認:

$ xbps-query -L
:
14293 https://repo-fi.voidlinux.org/current (Staged) (RSA signed)

-


9). パッケージの更新:

$ sudo xbps-install -Su
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
The 'xbps' package must be updated, please run `xbps-install -u xbps`

→先に「xbps」の更新が必要のようです:

-


10). 「xbps」の更新:

$ sudo xbps-install -u xbps
:
Name             Action    Version           New version            Download size
libxcrypt-compat install   -                 4.4.38_1               87KB 
glibc            update    2.32_2            2.41_1                 8956KB 
libcrypto3       install   -                 3.5.4_1                2097KB 
libssl3          install   -                 3.5.4_1                428KB 
libxbps          update    0.59.1_5          0.60.5_1               142KB 
xbps             update    0.59.1_5          0.60.5_1               118KB 
base-system      update    0.114_1           0.114_2                848B 

→「glibc」も更新されました:

-


11). パッケージの更新:

$ sudo xbps-install -Su

→多くのパッケージの更新があり、時間がかかりました:

-


12). ssh 接続を抜けました:

$ exit

-


13). 「仮想マシン」の電源オフ:

$ vagrant halt
:
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void

-


14). 「仮想マシン」の電源オン:

$ vagrant up
:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ylabidi/voidlinux' version '0.2.0' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
[default] GuestAdditions 7.2.2 running --- OK.     ←(バージョンに注目)
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /home/ubn/ダウンロード/vm/void => /vagrant  ←(共有フォルダ)
ubn@ubnbox:~/ダウンロード/vm/void$ 

→「仮想マシン」が、すんなり立ち上がりました:

-

メッセージを見ると「共有フォルダ」も自動でマウントされました:

-

リポジトリの登録された「ミラー」の調子が良くないため、
仮想マシン」の更新ができない(アプリのインストールができない)状態につき、

「 GuestAdditions」の整合の処理で、エラーしたようです:
ミラー変更で OK

-


15). 「仮想マシン」は立ち上がっていますが、

「Box」から作成した「仮想マシン」の多くは「デスクトップ環境」なし、なので、

GUI 画面は表示されません:

-

Vagrant を使う場合、「ssh 接続」して、操作する人(開発者?)が多いので、

表示すると邪魔になる、「GUI」を表示する(使用する)設定に、ほとんどの「Box」がなっていません:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- -

5. 仮想マシンで「GUI」を表示する設定に変更:

-


1). 「仮想マシン」の電源オフ:

$ vagrant halt
:
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void

-

$ vagrant status
:
Current machine states:
default                   poweroff (virtualbox)

-

$ vagrant global-status
:
id       name    provider   state    directory                           
-------------------------------------------------------------------------
88be79a  default virtualbox poweroff /home/ubn/ダウンロード/vm/void            

vagrant で管理されている「仮想マシン」です:

-

今回の「仮想マシン」の作業フォルダは、「~/ダウンロード/vm/void」です:

-


2). 「Vagrantfile」ファイルの確認:

$ cd ~/ダウンロード/vm/void
$ ls -1Ap
:
.vagrant/
Vagrantfile

-


3). 「GUI 表示」を行うように設定を変更:

$ featherpad Vagrantfile

-

60行目:

  # config.vm.provider "virtualbox" do |vb|
  #   # Display the VirtualBox GUI when booting the machine
  #   vb.gui = true
  #
  #   # Customize the amount of memory on the VM:
  #   vb.memory = "1024"
  # end

↓ 3つ(実質は 2つ)のコメント行を解除):

   config.vm.provider "virtualbox" do |vb|
     # Display the VirtualBox GUI when booting the machine
     vb.gui = true
  #
  #   # Customize the amount of memory on the VM:
  #   vb.memory = "1024"
   end

→Ctrl+S で保存:

-


4). 「仮想マシン」をリロード:

$ cd ~/ダウンロード/vm/void
$ vagrant reload
==> default: Checking if box 'ylabidi/voidlinux' version '0.2.0' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
[default] GuestAdditions 7.2.2 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /home/ubn/ダウンロード/vm/void => /vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
ubn@ubnbox:~/ダウンロード/vm/void$ 

→「仮想マシン」が立ち上がりました:

-


5). 「コンソール」画面が表示:

ログイン待ち:
Void 6.12.52_1 (voidlinux) (tty1)

voidlinux login:

-


6). 「仮想マシン」の電源オフ:

-

ログインします:

ユーザ名: vagrant

パスワード: vagant

-

電源オフ:
$ shutdown -h now

-

もしくは、ログインせずに、

仮想マシン」を起動した「端末」画面にて、
$ vagrant halt
:
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- --

6. 「GUI」を使えるように、「仮想マシン」の設定を見直し:

-

ssh 接続」しか使うことがないなら、こちらの設定は要りません:

GUI」(デスクトップ画面)を使う場合の設定です:

-

例えば、「ssh 接続」で、「Xbps-src」を使ってのアプリの移植は行えますが、

GUI」アプリを移植した場合、最終的なアプリの動作確認には「GUI 環境」が必要です:

-

ホストOS の「Xubuntu 24.04 LTS」で操作:

-


1). 「VirtualBox マネージャ」を起動:

メニュー→「システム」→「Orcre VirtualBox

-


2). 「仮想マシン」の設定を見直し:

-

(1). Vagrant で自動で作られた「仮想マシン」をクリックして、選択:

仮想マシン」名は任意で、 今回は「void_default_1760618090825_91285」です:
vagrant」で作られた「仮想マシン」には、「default」が含まれています:

-

(2). システム:
マザーボード」タブ:

メインメモリー: →「8177 MB」

ポインティングデバイス: 「PS/2 マウス」→「USB タブレットに変更:

-

プロセッサー」タブ:

CPU数: 「1」→「8」に変更:

→パソコンで使われているプロセッサで異なります:

-

アクセラレーション」タブ:

準仮想化インターフェース: 「デフォルト」

「ネステッドページンク」にチェック:

-

-

→右下の「OK」

-

(3). ディスプレイ:
「スクリーン」タブ:

「グラフィックコントローラー」: 「VMSVGA」に変更:

「3Dアクセラレーション」にチェック:

ビデオメモリー: →「256 MB」に変更:

-

「リモートディスプレイ」タブ:

「サーバーを有効化」のチェックを外しました:(セキュリティ面でリスクがあります)

-

→右下の「OK」

-

ちなみに、OS タイプを「Other」にした場合、「3Dアクセラレーション」にチェックさせてもらえません:

また、「3Dアクセラレーション」にチェックしないと、ビデオメモリー: を「256 MB」に変更できません:

-

-

追記:

「sudo demsg」で確認すると、立ち上げ時に「vmwgfx」のエラーが登録されているので、
仮想マシン」を作成し、「Xfce」デスクトップ環境をインストールして、立ち上げを確認した後に、

エラーを回避するため、「3Dアクセラレーション」のチェックを外して、「グラフィックコントローラー」を 「VBoxSVGA」に変更しました:

-

(4). 説明:
Vagrant で作成:

→任意です。わかりやすい説明にしました:

-

→右下の「OK」

-


3). 「VirtualBox」マネージャの「起動」ボタンをクリック:

「Void Linux」のウィンドウが表示されました:

-


4). 「コンソール」画面が表示:

ログイン待ち:
Void 6.12.52_1 (voidlinux) (tty1)

voidlinux login:

-

仮想マシン」の画面の下が表示しきれていない場合は、

表示→「ウィンドウのサイズを調整」

-


5). 「仮想マシン」の電源オフ:

voidlinux login:
ログイン:

ユーザ名: 「vagrant
パスワード: 「vagrant

-

[vagrant@voidlinux ~]$

→プロンプトが変わりました:

-


6). 参考として、現在、使われているサービスを確認しておきました:

収集:

$ ls -l /etc/sv/ >memo01.txt
$ ls -l /etc/sv/dbus >>memo01.txt

-

確認:

$ cat /etc/sv/ >memo01.txt

-


7). 電源オフ:

$ sudo shutdown -h now

-

-


参考: GUI 表示して使う場合の候補:

軽量な「デスクトップ」環境:
- 「OpenBox」デスクトップ環境:
- 「OpenBox + Xfce パネル」デスクトップ環境:
- 「Xfce」デスクトップ環境:

→インストールは「Xfce」デスクトップ環境が楽です:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ---

7. 「Xfce」デスクトップ環境をインストール:

-

参考:

Void Linux + Xfce4のインストール手順

-


1). 「仮想マシン」の電源オン:

確認:
$ vagrant global-status
id       name    provider   state    directory                           
-------------------------------------------------------------------------
88be79a  default virtualbox poweroff /home/ubn/ダウンロード/vm/void  

-

立ち上げ:
$ cd ~/ダウンロード/vm/void
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ylabidi/voidlinux' version '0.2.0' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
[default] GuestAdditions 7.2.2 running --- OK.
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /home/ubn/ダウンロード/vm/void => /vagrant
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
ubn@ubnbox:~/ダウンロード/vm/void$ 

→正常に立ち上がりました:

-


2). ssh 接続:

$ vagrant ssh
:
Last login: Sun Oct 19 02:19:34 2025 from 10.0.2.2
[vagrant@voidlinux ~]$ 

-

$ uname -r
6.12.52_1

-


3). システム更新:

$ sudo xbps-install -Su
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2027KB [avg rate: 794KB/s]

Name              Action    Version           New version            Download size
gdbm              update    1.23_1            1.26_1                 189KB 
libarchive        update    3.8.1_1           3.8.2_1                367KB 
linux6.12         update    6.12.52_1         6.12.53_1              156MB 
linux6.12-headers update    6.12.52_1         6.12.53_1              12MB 
lzo               update    2.10_2            2.10_3                 49KB 

Size to download:              169MB
Size required on disk:         220MB
Space available on disk:        35GB

Do you want to continue? [Y/n] 

→Enter

-


4). 参考:「dbus」のインストール:

すでにインストールされているので、作業は要りません:

-

確認:

$ xbps-query -l | grep dbus
:
ii dbus-1.16.2_2                           Message bus system
ii dbus-libs-1.16.2_2                      Message bus system - shared libraries

→すでにインストール済です:

-

もし、インストールされていない場合:

$ sudo xbps-install dbus

-


5). 「dbus」の有効化:

確認:
$ ls -l /etc/sv/dbus
:
-rwxr-xr-x 1 root root   92 Jul 19  2020 check
drwxr-xr-x 2 root root 4096 Oct 16 09:35 log
-rwxr-xr-x 1 root root  128 May 11 13:35 run
lrwxrwxrwx 1 root root   25 May 11 13:35 supervise -> /run/runit/supervise.dbus

-

もし、リンクされていない場合:

$ sudo ln -s /etc/sv/dbus /var/service/

-


6). 「Xorg」のインストール:

$ sudo xbps-install xorg
:
140 packages will be installed:
  font-alias-1.0.5_1 libpng-1.6.50_1 brotli-1.1.0_1 freetype-2.13.3_1 
  fontconfig-2.16.0_3 libfontenc-1.1.8_1 mkfontscale-1.2.2_1 
  font-util-1.4.1_1 encodings-1.1.0_1 font-adobe-100dpi-1.0.4_1 
  font-adobe-75dpi-1.0.4_1 font-adobe-utopia-100dpi-1.0.5_1 
  font-adobe-utopia-75dpi-1.0.5_1 font-adobe-utopia-type1-1.0.5_1 
  font-bh-100dpi-1.0.4_1 font-bh-75dpi-1.0.4_1 
  font-bh-lucidatypewriter-100dpi-1.0.4_1 
  font-bh-lucidatypewriter-75dpi-1.0.4_1 font-bh-ttf-1.0.4_1 
  font-bh-type1-1.0.4_1 font-bitstream-100dpi-1.0.4_1 
  font-bitstream-75dpi-1.0.4_1 font-bitstream-type1-1.0.4_1 
  font-cursor-misc-1.0.4_1 font-daewoo-misc-1.0.4_1 
  font-dec-misc-1.0.4_1 font-ibm-type1-1.0.4_1 font-isas-misc-1.0.4_1 
  font-jis-misc-1.0.4_1 font-misc-misc-1.1.3_1 font-mutt-misc-1.0.4_1 
  dejavu-fonts-ttf-2.37_2 xorg-fonts-7.6_5 libxkbfile-1.1.3_1 
  xkbcomp-1.4.7_1 xkeyboard-config-2.45_1 xorg-server-common-21.1.18_1 
  pixman-0.46.4_1 libglvnd-1.7.0_1 libXfont2-2.0.7_2 
  libpciaccess-0.18.1_1 libdrm-2.4.124_1 libgbm-25.1.9_1 
  libepoxy-1.5.10_1 nettle-3.9.1_1 libxshmfence-1.3.3_2 
  libtirpc-1.3.7_2 libxcvt-0.1.3_1 xorg-server-21.1.18_1 
  iceauth-1.0.9_1 oclock-1.0.6_1 sessreg-1.1.4_1 libXrender-0.9.12_1 
  libXrandr-1.5.4_1 setxkbmap-1.3.4_1 smproxy-1.0.8_1 
  transset-1.0.4_1 libXft-2.3.9_2 x11perf-1.6.1_1 xauth-1.1.4_1 
  xcb-util-0.4.1_1 xbacklight-1.2.4_1 libXpm-3.5.17_1 libXaw-1.0.16_1 
  xcalc-1.1.2_1 xclipboard-1.1.5_1 xclock-1.1.1_1 xcmsdb-1.0.7_1 
  xconsole-1.1.0_1 libXfixes-6.0.1_1 libXcursor-1.2.3_2 
  xcursorgen-1.0.9_1 libXcomposite-0.4.6_1 libXi-1.8.2_2 
  libXinerama-1.1.5_1 libXtst-1.2.5_2 xdpyinfo-1.3.4_2 xev-1.2.6_1 
  xeyes-1.3.1_1 xfontsel-1.1.1_1 libXxf86vm-1.1.6_2 xgamma-1.0.8_1 
  xhost-1.0.10_1 xinit-1.4.4_1 xinput-1.6.4_1 xkbevd-1.1.6_1 
  xkbutils-1.0.6_1 xkill-1.0.6_1 xload-1.2.0_1 xlogo-1.0.7_1 
  xlsatoms-1.1.4_1 xlsclients-1.1.5_1 xmessage-1.0.7_1 
  xmodmap-1.0.11_1 xpr-1.2.0_1 xprop-1.2.8_1 xrandr-1.5.3_1 
  libmcpp-2.7.2_8 mcpp-2.7.2_8 xrdb-1.2.2_1 xrefresh-1.1.0_1 
  xset-1.2.5_2 xsetroot-1.1.3_1 libXv-1.0.13_2 xvinfo-1.1.5_1 
  xwd-1.0.9_1 xwininfo-1.1.6_1 xwud-1.0.7_1 xorg-apps-7.6_9 
  mtdev-1.1.7_1 libevdev-1.13.2_1 xf86-input-evdev-2.11.0_1 
  xf86-input-synaptics-1.10.0_1 glib-2.86.0_1 libgudev-238_1 
  libwacom-2.16.1_1 libinput-1.28.1_1 xf86-input-libinput-1.5.0_1 
  xf86-input-wacom-1.2.3_1 xf86-input-vmmouse-13.2.0_1 
  xorg-input-drivers-7.6_4 xf86-video-fbdev-0.5.1_1 
  xf86-video-dummy-0.4.1_1 xf86-video-vesa-2.6.0_1 libz3-4.15.3_1 
  libicu77-77.1_1 libxml2-2.13.8_2 libllvm19-19.1.4_7 
  libxatracker-25.1.9_1 wayland-1.24.0_1 libsensors-3.6.0_2 
  mesa-libgallium-25.1.9_1 mesa-25.1.9_1 mesa-dri-25.1.9_1 
  xf86-video-vmware-13.4.0_1 xf86-video-ati-22.0.0_1 
  xf86-video-amdgpu-23.0.0_1 xf86-video-nouveau-1.0.18_1 
  xorg-video-drivers-7.6_23 xorg-7.6_6 

-

確認:
$ xbps-query -l | grep xorg-fonts
:
ii xorg-fonts-7.6_5                        Modular Xorg Fonts

→すでにインストール済です:

-

$ xbps-query -l | grep mesa-dri
:
ii mesa-dri-25.1.9_1                       Mesa DRI drivers

→すでにインストール済です:

-


7). 「Xfce4」、「Xfce4 プラグイン」のインストール:

「Xfce4」のインストール:
$ sudo xbps-install xfce4
:
243 packages will be installed:
  desktop-file-utils-0.28_1 hicolor-icon-theme-0.18_1 
  shared-mime-info-2.4_2 libjpeg-turbo-3.1.1_1 jbigkit-libs-2.2_2 
  tiff-4.7.0_1 gdk-pixbuf-2.42.12_2 gtk-update-icon-cache-3.24.50_1 
  cairo-1.18.4_2 libdav1d-1.5.1_1 fribidi-1.0.16_1 libdatrie-0.2.13_1 
  libthai-0.1.29_1 graphite-1.3.14_1 libharfbuzz-11.3.3_2 
  pango-1.56.3_2 librsvg-2.59.2_2 adwaita-icon-theme-49.0_1 
  dbus-x11-1.16.2_2 libxkbcommon-1.12.0_1 libXdamage-1.1.6_1 
  atk-2.56.5_1 at-spi2-core-2.56.5_1 at-spi2-atk-2.56.5_1 
  avahi-libs-0.8_2 libtasn1-4.20.0_1 p11-kit-0.25.5_2 
  libsodium-1.0.20_1 libevent-2.1.12_3 libunbound-1.24.0_1 
  gnutls-3.8.10_1 libcups-2.4.13_1 lcms2-2.17_1 json-glib-1.10.8_1 
  libgusb-0.4.9_1 libcolord-1.4.7_1 gtk+3-3.24.50_1 
  libxfce4util-4.20.1_1 xfconf-4.20.0_1 startup-notification-0.12_11 
  libgtop-2.41.3_1 libxfce4ui-4.20.2_1 garcon-4.20.0_1 
  xfce4-appfinder-4.20.0_1 gtk-layer-shell-0.9.2_1 
  libxfce4panel-4.20.5_1 libdisplay-info-0.2.0_1 libXres-1.2.2_1 
  libwnck-43.2_1 libxfce4windowing-4.20.4_1 exo-4.20.0_1 
  libdbusmenu-glib-16.04.0_6 libdbusmenu-gtk3-16.04.0_6 
  xfce4-panel-4.20.5_1 libelogind-252.9_2 duktape-2.7.0_2 
  polkit-126_2 xfce4-session-4.20.3_1 gnome-icon-theme-3.12.0_3 
  iso-codes-4.18.0_1 libxklavier-5.4_3 libnotify-0.8.6_1 
  libupower-glib3-1.90.9_2 xfce4-settings-4.20.2_1 libyaml-0.2.5_1 
  libexif-0.6.25_1 Thunar-4.20.5_1 xfdesktop-4.20.1_1 
  libXpresent-1.0.1_1 xfwm4-4.20.0_1 xfwm4-themes-4.10.0_4 
  libplist-2.2.0_6 libusbmuxd-2.0.2_1 libimobiledevice-1.3.0_7 
  upower-1.90.9_2 xfce4-power-manager-4.20.0_1 
  gsettings-desktop-schemas-48.0_1 vte3-profile-0.80.3_1 libicu73-73.2_5 
  icu-libs-73.2_5 vte3-0.80.3_1 xfce4-terminal-1.1.5_1 
  xfce4-taskmanager-1.6.0_1 thunar-volman-4.20.0_1 orc-0.4.41_2 
  gstreamer1-1.26.5_1 alsa-lib-1.2.14_1 libcdparanoia-10.2_15 
  graphene-1.10.8_1 libogg-1.3.6_1 opus-1.5.2_1 libtheora-1.1.1_8 
  libvorbis-1.3.7_1 gst-plugins-base1-1.26.5_1 libva-2.22.0_1 
  libvdpau-1.5_1 libvpl-2.15.0_1 ocl-icd-2.3.2_2 libavutil6-6.1.3_3 
  libswscale6-6.1.3_3 libpostproc6-6.1.3_3 libgomp-14.2.1+20250405_2 
  libsoxr-0.1.3_2 libswresample6-6.1.3_3 libvpx-1.13.1_1 
  libsharpyuv-1.6.0_2 libwebp-1.6.0_2 celt-0.11.3_3 libaom-3.8.1_2 
  lame-3.100_2 libspeex-1.2.1_1 libsvt-av1-2.3.0_1 
  x264-20191217.2245_1 x265-4.1_1 xvidcore-1.3.7_1 
  libavcodec6-6.1.3_3 libmpg123-1.33.0_1 libopenmpt-0.8.1_1 
  libbluray-1.3.4_1 mbedtls-3.6.3_1 librist-0.2.11_1 
  librtmp-2.4.20161210_10 libsrt-1.5.4_2 libavformat6-6.1.3_3 
  libflac-1.5.0_1 libsndfile-1.2.2_2 libbs2b-3.1.0_3 vmaf-3.0.0_1 
  libass-0.17.4_1 libvidstab-1.1.0_2 libavfilter6-6.1.3_3 
  gst-libav-1.26.5_1 v4l-utils-1.28.1_2 aalib-1.4rc5_3 giflib-5.2.2_1 
  libde265-1.0.16_2 libheif-1.20.1_3 libopenjpeg2-2.5.3_1 
  highway-1.2.0_1 libjxl-0.11.1_3 libjbig2dec-0.20_1 
  libpaper-1.1.29_1 libgs-10.05.1_1 libspectre-0.2.12_1 
  libid3tag-0.15.1b_8 imlib2-1.12.5_2 libcaca-0.99.beta20_1 
  libasyncns-0.8_9 libfftw-3.3.10_3 libsamplerate-0.2.2_1 
  libjack-1.9.22_1 libltdl-2.4.7_8 libtdb-1.4.10_2 sbc-2.0_1 
  speexdsp-1.2.1_1 webrtc-audio-processing-1.3_1 libpulseaudio-16.1_2 
  taglib-2.1.1_1 twolame-0.4.0_2 libwavpack-5.7.0_1 
  gst-plugins-good1-1.26.5_1 vulkan-loader-1.4.313.0_1 
  libxkbcommon-x11-1.12.0_1 libnice-0.1.22_1 chromaprint-1.5.1_2 
  faac-1.30_1 fdk-aac-2.0.3_1 flite-2.2_1 portaudio-190600.20161030_6 
  libcanberra-0.30_15 libpipewire-1.4.8_2 libinstpatch-1.1.6_1 
  libXScrnSaver-1.2.4_1 libdecor-0.2.2_1 SDL3-3.2.24_1 
  libfluidsynth-2.4.8_1 libgme-0.6.3_1 libgsm-1.0.22_2 
  libxslt-1.1.43_2 libraptor-2.0.16_1 liblrdf-0.6.1_2 
  libserd-0.32.2_1 zix-0.6.2_1 libsord-0.16.16_1 sratom-0.6.18_2 
  liblilv-0.24.26_2 libmodplug-0.8.9.0_1 libsndio-1.10.0_1 
  libopenal-1.23.1_2 openh264-2.6.0_2 soundtouch-2.3.2_1 
  spandsp-0.0.6_4 libsrtp-2.7.0_2 libzbar-0.23.1_8 
  gst-plugins-bad1-1.26.5_2 liba52-0.8.0_1 libcddb-1.3.2_9 
  libcdio-2.2.0_2 libdvdcss-1.4.3_1 libdvdread-6.1.3_1 
  libmpeg2-0.5.1_12 gst-plugins-ugly1-1.26.5_1 dbus-glib-0.112_1 
  parole-4.20.0_1 ristretto-0.13.4_1 gtksourceview4-4.8.4_1 
  enchant2-2.8.2_2 gspell-1.14.0_1 mousepad-0.6.5_1 
  libcanberra-gtk3-0.30_15 xfce4-notifyd-0.9.7_1 
  xfce4-screensaver-4.20.1_1 libcdio-paranoia-10.2+2.0.1_1 SDL2-2.32.8_1 
  libavdevice6-6.1.3_3 ffplay6-6.1.3_3 ffmpeg6-6.1.3_3 ffmpeg-4.4.6_2 
  ffmpegthumbnailer-2.2.3_1 libgsf-1.14.52_1 poppler-data-0.4.12_1 
  libgpg-error-1.55_1 libassuan-2.5.7_1 pinentry-1.3.2_1 
  libksba-1.6.6_1 libgcrypt-1.11.1_1 npth-1.8_1 mbedtls2-2.28.10_1 
  tpm2-tss-3.2.0_6 gnupg-2.4.5_2 libgpgme-2.0.0_1 gpgmepp-2.0.0_1 
  nspr-4.37_1 nss-3.117_1 libpoppler-25.06.0_2 poppler-glib-25.06.0_2 
  libopenraw-0.1.3_3 tumbler-4.20.1_1 xdg-user-dirs-0.18_1 
  xdg-user-dirs-gtk-0.14_1 elogind-252.9_2 xfce-polkit-0.3_2 
  xfce4-4.20_2 

-

確認:
$ xbps-query -l | grep elogind
:
ii elogind-252.9_2                         Standalone logind fork
ii libelogind-252.9_2                      Standalone logind fork - elogind library

→「elogind」がインストールされました:

-

確認:
$ sudo sv status elogind
:
fail: elogind: unable to change to service directory: file does not exist
リンク:
$ sudo ln -s /etc/sv/elogind /var/service/

→行末の「/」を忘れずに

-

確認:
$ sudo sv status elogind
down: elogind: 1s, normally up, want up; run: log: (pid 1985) 9s

-

「端末」のインストールの確認:
$ xbps-query -l | grep xfce4-term
:
ii xfce4-terminal-1.1.5_1          Modern terminal emulator primarly for the Xfce desktop environment

→端末の「xfce4-terminal」がインストールされました:

-

$ xbps-query -l | grep thunar
:
ii thunar-volman-4.20.0_1          Thunar Volume Manager

→ファイルマネージャの「thunar」がインストールされました:

-

$ xbps-query -l | grep firefox
$ 

→ブラウザは、インストールされていません:

-

「Xfce4 プラグイン」のインストール:
$ sudo xbps-install xfce4-plugins
:
38 packages will be installed:
  xfce4-battery-plugin-1.2.0_1 libqrencode-4.1.1_1 
  xfce4-clipman-plugin-1.7.0_1 xfce4-cpufreq-plugin-1.3.0_1 
  xfce4-cpugraph-plugin-1.3.0_1 xfce4-diskperf-plugin-2.8.0_1 
  xfce4-fsguard-plugin-1.2.0_1 xfce4-genmon-plugin-4.2.1_1 
  xfce4-mailwatch-plugin-1.4.0_1 xfce4-mpc-plugin-0.6.0_1 
  xfce4-netload-plugin-1.5.0_1 xfce4-places-plugin-1.9.0_1 
  libsigc++3-3.4.0_1 glibmm2.68-2.78.0_1 libcloudproviders-0.3.6_1 
  libtinysparql-3.9.2_1 gtk4-4.18.6_1 cairomm1.16-1.16.1_1 
  pangomm2.48-2.50.0_1 gtkmm4-4.18.0_1 pavucontrol-6.1_1 
  libkeybinder3-0.3.2_2 xfce4-pulseaudio-plugin-0.5.1_1 
  xfce4-sensors-plugin-1.5.0_1 xfce4-systemload-plugin-1.4.0_1 
  xfce4-time-out-plugin-1.2.0_1 xfce4-timer-plugin-1.8.0_1 
  xfce4-verve-plugin-2.1.0_1 xfce4-wavelan-plugin-0.7.0_1 
  libproxy-0.5.11_1 glib-networking-2.80.1_1 libsoup3-3.4.2_1 
  xfce4-weather-plugin-0.11.3_1 accountsservice-23.13.9_2 
  xfce4-whiskermenu-plugin-2.10.0_1 xfce4-xkb-plugin-0.9.0_1 
  xfce4-smartbookmark-plugin-0.6.0_1 xfce4-plugins-1.4_1 

-


8). 「LightDM」のインストール:

$ sudo xbps-install lightdm lightdm-greeter
:
5 packages will be installed:
  lightdm-1.32.0_7 liblightdm-gobject-1.32.0_7 ayatana-ido-0.9.3_1 
  libayatana-indicator-0.9.4_1 lightdm-gtk-greeter-2.0.9_1 

→ディスプレイマネージャです:

-

見栄えの良い「ログイン画面」にしたいときは、「lightdm-slick-greeter」がオススメ:
$ xbps-query -Rs lightdm-slick-greeter
:
[-] lightdm-slick-greeter-2.0.9_1 Light Display Manager GTK+ Greeter from Lin...

-


9). 「LightDM」の有効化:

-

確認:
$ ls -l /etc/sv/lightdm
:
drwxr-xr-x 2 root root 4096 Oct 19 03:55 log
-rwxr-xr-x 1 root root  145 May 12 02:51 run
lrwxrwxrwx 1 root root   28 May 12 02:51 supervise -> /run/runit/supervise.lightdm

一番下が赤色で点滅表示:

→インストールしただけでは、うまくリンクされていません:

-

リンク:
$ sudo ln -s /etc/sv/lightdm /var/service/

→行末の「/」を忘れずに(フォルダの中にリンクを貼ります)

-

確認:
$ ls -l /etc/sv/lightdm
:
drwxr-xr-x 2 root root 4096 Oct 19 03:55 log
-rwxr-xr-x 1 root root  145 May 12 02:51 run
lrwxrwxrwx 1 root root   28 May 12 02:51 supervise -> /run/runit/supervise.lightdm

→一番下が「水色」で点滅がなくなりました:

(正常な状態)

-

「リンク:」のところに書いたコマンドで、リンクを貼ると、こちらの「水色」のリンクが自動で作られます:

-

確認:
$ sudo sv status lightdm
:
run: lightdm: (pid 1705) 2167s; run: log: (pid 1704) 2167s

→サービスが動いています:

-


10). 「ネットワークマネージャ」のインストール:

$ sudo xbps-install NetworkManager
:
10 packages will be installed:
  openresolv-3.17.0_1 mobile-broadband-provider-info-20250613_1 
  libmm-glib-1.24.0_1 libnm-1.50.0_1 oniguruma-6.9.10_1 slang-2.3.2_2 
  popt-1.19_1 newt-0.52.24_2 libndp-1.9_1 NetworkManager-1.50.0_1 

-


11). 「ネットワークマネージャ」の有効化:

-

確認:
$ ls -l /etc/sv/NetworkManager
:
drwxr-xr-x 2 root root 4096 Oct 19 04:10 log
-rwxr-xr-x 1 root root   95 Nov 16  2024 run
lrwxrwxrwx 1 root root   35 Nov 16  2024 supervise -> /run/runit/supervise.NetworkManager

一番下が赤色で点滅表示:

→インストールしただけでは、うまくリンクされていません:

-

確認:
$ sudo sv status NetworkManager
:
fail: NetworkManager: unable to change to service directory: file does not exist

→リンクされていません:

-

リンク:
$ sudo ln -s /etc/sv/NetworkManager /var/service/

-

確認:
$ sudo sv status NetworkManager
:
run: NetworkManager: (pid 3371) 27s; run: log: (pid 3370) 27s

-


12). 「ネットワーク アプレット」のインストール:

$ sudo xbps-install network-manager-applet
:
5 packages will be installed:
  libayatana-appindicator-0.5.94_1 gcr-3.41.2_1 libnma-1.10.6_1 
  libsecret-0.21.7_1 network-manager-applet-1.36.0_1 

→「ネットワークマネージャ」のサポートを行います:

-


13). 「pulseaudio」のインストール:

$ sudo xbps-install pulseaudio pavucontrol
:
ERROR: Package `pavucontrol' already installed.

Name             Action    Version     New version      Download size
pulseaudio-utils install   -           16.1_2           70KB 
rtkit            install   -           0.13_3           31KB 
pulseaudio       install   -           16.1_2           498KB 

→「pavucontrol」はインストール済でした:

-


14). 「firefox-esr」ブラウザのインストール:

$ sudo xbps-install firefox-esr
:
Name        Action    Version     New version      Download size
firefox-esr install   -           140.2.0_1        74MB 

-


15). 再起動:

$ sudo reboot

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----

8. 「その他の「ツール」のインストール:

-


1). 「その他の「ツール」のインストール:

$ sudo xbps-install nano htop git unzip p7zip archiver
:
ERROR: Package `unzip' already installed.
17 packages will be installed:
  nano-8.6_1 htop-3.4.1_1 perl-Digest-HMAC-1.04_1 
  perl-Authen-SASL-2.1800_1 perl-Convert-BinHex-1.125_3 
  perl-IO-stringy-2.113_2 perl-TimeDate-2.33_2 perl-MailTools-2.21_3 
  perl-MIME-tools-5.515_1 perl-Net-SSLeay-1.94_2 perl-URI-5.21_1 
  perl-IO-Socket-SSL-2.095_1 perl-Net-SMTP-SSL-1.04_3 git-2.51.0_1 
  7zip-25.01_1 p7zip-25.01_1 archiver-3.5.1_4 

→「unzip」はインストール済でした:

-

スクリーンショット関連:
$ sudo xbps-install xfce4-screenshooter shotwell
:
12 packages will be installed:
  xfce4-screenshooter-1.11.2_1 libgee-0.20.8_2 exiv2-0.28.5_1 
  libgexiv2-0.14.5_1 libgphoto2-udev-rules-2.5.32_1 gd-2.3.3_2 
  libgphoto2-2.5.32_1 libjasper-2.0.25_1 libraw-0.21.4_1 
  libportal-0.9.1_2 libportal-gtk3-0.9.1_2 shotwell-0.32.13_1 

-

$ sudo xbps-install libsensors
:
ERROR: Package `libsensors' already installed.

→「libsensors」はインストール済でした:

-

$ xbps-query -Rs psensor
:
[-] psensor-1.2.1_2 Graphical hardware temperature monitor for Linux

-

$ sudo xbps-install psensor
:
Name          Action    Version     New version      Download size
libatasmart   install   -           0.19_5           22KB 
libmicrohttpd install   -           1.0.2_1          112KB 
lm_sensors    install   -           3.6.0_2          88KB 
mpfr          install   -           4.2.2_1          343KB 
libbytesize   install   -           2.10_2           17KB 
libcryptsetup install   -           2.8.0_1          270KB 
libkeyutils   install   -           1.6.3_2          7526B 
volume_key    install   -           0.3.12_9         144KB 
libdaxctl     install   -           70.1_1           15KB 
libndctl      install   -           70.1_1           58KB 
libnvme       install   -           1.15_1           91KB 
libparted     install   -           3.6_1            179KB 
libblockdev   install   -           3.3.1_1          268KB 
udisks2       install   -           2.10.1_1         892KB 
psensor       install   -           1.2.1_2          349KB 

→「lm-sensors」は、「lm_sensors」でした:

どちらにしても、依存で入りました:

-

パッケージのアップデート通知:
$ sudo xbps-install octoxbps
:
18 packages will be installed:
  double-conversion-3.3.1_1 libb2-0.98.1_1 qt6-core-6.8.2_5 
  qt6-dbus-6.8.2_5 libmd4c-0.5.2_1 xcb-util-image-0.4.1_1 
  xcb-util-renderutil-0.3.10_1 xcb-util-cursor-0.1.4_1 
  xcb-util-wm-0.4.2_1 xcb-util-keysyms-0.4.1_1 tslib-1.23_1 
  qt6-network-6.8.2_5 qt6-gui-6.8.2_5 qt6-widgets-6.8.2_5 
  qt-sudo-2.2.0_1 qtermwidget-qt6-2.2.0_1 qt6-xml-6.8.2_5 
  octoxbps-0.4.1_1 

-

Thunar ファイルマネージャの「ゴミ箱」の表示:
$ sudo xbps-install -S gvfs
:
Name            Action    Version     New version      Download size
gcr4            install   -           4.4.0.1_2        539KB 
fuse3           install   -           3.16.2_1         100KB 
avahi-glib-libs install   -           0.8_8            24KB 
libnfs          install   -           5.0.3_1          133KB 
gvfs            install   -           1.56.1_1         1130KB 

-


2). 再起動:

-

ssh 接続を抜けました:
[vagrant@voidlinux ~]$ exit
logout
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

仮想マシン」の電源オフ:
$ vagrant halt
:
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

仮想マシン」の電源オン:
$ vagrant up

-


3). ログイン画面が表示:

ユーザ名: vagrant

パスワード: vagrant

-


4). デスクトップ画面が表示:

Xfce デスクトップ画面です:

→日本語化されていません:

-

GUI 画面にて、Ctrl+Alt+T で「端末」を起動:

$ @@ 

$ [[

→日本語キーボードですが、英語の配列です:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- -----

9. 「Void Linux」の日本語化:

-


1). ssh 接続:

$ vagrant ssh
:
Last login: Sun Oct 19 04:58:57 2025 from 10.0.2.2
[vagrant@voidlinux ~]$ 

-


2). 「日本語フォント」の「noto-fonts-cjk-sans」をインストール:

$  sudo xbps-install -S noto-fonts-cjk-sans
: 
1 package will be installed:
  noto-fonts-cjk-sans-2.004_1 

-


3). 日本語のロケールか確認:

$ locale
:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

-


4). 「date」で確認:

$ date
:
Sun Oct 19 07:42:26 AM CDT 2025

→「日時」が日本語で表示されません:

-


5). ロケールの確認:

$ locale -a
:
C
C.utf8
en_US.utf8
POSIX

→日本語を指定する「ja_JP.UTF-8」が見当たりません:

-


6). locale 定義に「ja_JP.UTF-8」を追加:

$ sudo localedef -f UTF-8 -i ja_JP ja_JP.UTF-8

-

確認:

$ locale -a
:
C
C.utf8
POSIX
en_US.utf8
ja_JP.utf8   ←(追加されました)

-


7). ロケールを「日本語」に設定:

$ sudo nano /etc/locale.conf

-

LANG=en_US.UTF-8

↓ 修正:

LANG=ja_JP.UTF-8

-

$ cat /etc/locale.conf
:
LANG=ja_JP.UTF-8

-


8). 反映させるため、再起動:

[vagrant@voidlinux ~]$ exit
logout
ubn@ubnbox:~/ダウンロード/vm/void$

-

電源オフ:
$ vagrant halt
:
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

電源オン:
$ vagrant up

-


9). ログイン画面が表示:

ユーザ名: vagrant

パスワード: vagrant

-


10). デスクトップ画面が表示:

Xfce デスクトップ画面です:

→日本語化されました:

-


11). ssh 接続:

$ vagrant ssh
:
Last login: Sun Oct 19 07:58:49 2025 from 10.0.2.2
[vagrant@voidlinux ~]$

-


12). ロケールの確認:

[vagrant@voidlinux ~]$ locale
:
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=

→日本になりました:

-


13). 「date」で確認:

[vagrant@voidlinux ~]$ date
2025年 10月 19日 日曜日 08:19:31 CDT

→「日時」は日本語表示ですが、「タイムゾーン」が「JST」ではありません:

-


14). 次の項番で、「タイムゾーン」を変更

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -

10. 「タイムゾーン」を日本に変更:

-


1). 日本の「タイムゾーン」ファイルがあるか確認:

$ ls -1p /usr/share/zoneinfo/Asia/Tokyo
:
/usr/share/zoneinfo/Asia/Tokyo

→ありました:

-


2). 再起動で「タイムゾーン」が元に戻らないように設定を変更:

-

修正:
$ sudo nano /etc/rc.conf

-

HOSTNAME="voidlinux"
HARDWARECLOCK="UTC"
TIMEZONE="America/Chicago"
KEYMAP="us"

↓ 「TIMEZONE」の部分だけを修正:

HOSTNAME="voidlinux"
HARDWARECLOCK="UTC"
TIMEZONE="Asia/Tokyo"
KEYMAP="us"

-


3). リンク:

-

作業前:
$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 35 10月 19 14:04 /etc/localtime -> /usr/share/zoneinfo/America/Chicago

-

リンク:
$ sudo ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

「-s」はシンボリックリンクの指定、「-f」はファイルがあった場合に削除の指定:

-

作業後:
$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 30 10月 20 04:08 /etc/localtime -> /usr/share/zoneinfo/Asia/Tokyo

-


4). 再起動:

$ sudo reboot

-


5). 再起動しても、元に戻らないことを確認:

$ date
2025年 10月 19日 日曜日 22:48:13 JST

→正常な表示になりました:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- --

11. 残りの設定:

-

ここまで来れば、以前の投稿〈H179〉と手順は同じです:

:

-

1).  キーボードレイアウトを「日本語キーボード」に修正:

-

2).  日本語入力:

-

3).  デスクトップとパネルの設定:

-

4).  フォントのインストール:

-

5).  アプリ のインストール:

-

6).  ゲームのインストール:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ---

12. 任意: Void Linux に、「少電力」の設定を追加:

-

runit での「サービス」の使い方の勉強になりました:

-

本来は、ノートパソコンでバッテリを長持ちさせる、少電力に使うツール類ですが、
今回は、CPU バーが振れっ放し?なので、CPU への負荷を減らそうと、インストールしました:

負荷が高くなる原因がわからないので、取りあえず行なった対処です:

-

追記: 変化なしだったので、「ノートパソコン」でないかぎり、設定は要りません:

使うなら、「TLP」の設定は細かすぎて面倒?なので、「powertop」を使うのが簡単そう:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----

12-1. 「TLP」を使った、「少電力」の設定:

-

「TLP」は、少電力のための「コマンドライン」ユーティリティです:

-


1). 「TLP」をインストール:

$ sudo xbps-install -S tlp
:
Name   Action    Version           New version            Download size
hdparm install   -                 9.65_1                 77KB 
tlp    install   -                 1.8.0_1                92KB 

-


2). runit サービスとして、「TLP」を有効化:

$ sudo ln -sfv /etc/sv/tlp /var/service/
:
'/var/service/tlp' -> '/etc/sv/tlp'

-


3). 確認:

$ sudo sv status tlp
:
run: tlp: (pid 1481) 256s; run: log: (pid 1480) 256s

→実行中です:

-


4). 設定ファイルの確認:

細かすぎて、使いこなすのは大変そう:

-

$ sudo nano /etc/tlp.conf
# ------------------------------------------------------------------------------
# /etc/tlp.conf - TLP user configuration (version 1.8.0)
# See full explanation: https://linrunner.de/tlp/settings
#
# Copyright (c) 2025 Thomas Koch <linrunner at gmx.net> and others.
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Settings are read in the following order:
#
# 1. Intrinsic defaults
# 2. /etc/tlp.d/*.conf - Drop-in customization snippets
# 3. /etc/tlp.conf     - User configuration (this file)
#
# Please note:
# - If parameters are specified more than once, the last occurrence takes
#   precedence. This also means that any parameters defined here will take
#   precedence over any drop-ins.
# - You can however, append values to a parameter already defined as intrinsic
#   default or in a previously read file: use PARAMETER+="add values".
# - Important: all parameters are disabled here. Remove the leading '#' if you
#   want to enable a feature without a default or if you want to set a value
#   other than the default.
# - Parameters must always be specified in pairs, i.e. for AC and BAT.
#   If you omit one of them, the value you set will apply to both power
#   sources, since a change will only occur if different values are defined.
# - To completely disable a parameter, use PARAMETER="".
# Legend for defaults:
# - Default *: intrinsic default that is effective when the parameter is
#   missing or the line has a leading #'.
# - Default <none>: do nothing or use kernel/hardware defaults.
#
# ------------------------------------------------------------------------------
# tlp - Parameters for power saving

# Set to 0 to disable, 1 to enable TLP.
# Default: 1

#TLP_ENABLE=1

# Control how warnings about invalid settings are issued:
#   0=disabled,
#   1=background tasks (boot, resume, change of power source) report to syslog,
#   2=shell commands report to the terminal (stderr),
#   3=combination of 1 and 2
# Default: 3

#TLP_WARN_LEVEL=3

# Colorize error, warning, notice and success messages. Colors are specified
# with ANSI codes:
#   1=bold black, 90=grey, 91=red, 92=green, 93=yellow, 94=blue, 95=magenta,
#   96=cyan, 97=white.
# Other colors are possible, refer to:
#   https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit
# Colors must be specified in the order "<error> <warning> <notice> <success>".
# By default, errors are shown in red, warnings in yellow, notices in bold
# and success in green.
# Default: "91 93 1 92"

#TLP_MSG_COLORS="91 93 1 92"

# Operation mode when no power supply can be detected: AC, BAT.
# Concerns some desktop and embedded hardware only.
# Default: <none>

#TLP_DEFAULT_MODE=AC

# Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
# Note: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC.
# Default: 0

#TLP_PERSISTENT_DEFAULT=0

# Power supply classes to ignore when determining operation mode: AC, USB, BAT.
# Separate multiple classes with spaces.
# Note: try on laptops where operation mode AC/BAT is incorrectly detected.
# Default: <none>

#TLP_PS_IGNORE="BAT"

# Seconds laptop mode has to wait after the disk goes idle before doing a sync.
# Non-zero value enables, zero disables laptop mode.
# Default: 0 (AC), 2 (BAT)

#DISK_IDLE_SECS_ON_AC=0
#DISK_IDLE_SECS_ON_BAT=2

# Dirty page values (timeouts in secs).
# Default: 15 (AC), 60 (BAT)

#MAX_LOST_WORK_SECS_ON_AC=15
#MAX_LOST_WORK_SECS_ON_BAT=60

# Select a CPU scaling driver operation mode.
# Intel CPU with intel_pstate driver:
#   active, passive.
# AMD Zen 2 or newer CPU with amd-pstate driver as of kernel 6.3/6.4(*):
#   active, passive, guided(*).
# Default: <none>
#CPU_DRIVER_OPMODE_ON_AC=active
#CPU_DRIVER_OPMODE_ON_BAT=active

# Select a CPU frequency scaling governor.
# Intel CPU with intel_pstate driver or
# AMD CPU with amd-pstate driver in active mode ('amd-pstate-epp'):
#   performance, powersave(*).
# Intel CPU with intel_pstate driver in passive mode ('intel_cpufreq') or
# AMD CPU with amd-pstate driver in passive or guided mode ('amd-pstate') or
# Intel, AMD and other CPU brands with acpi-cpufreq driver:
#   conservative, ondemand(*), userspace, powersave, performance, schedutil(*).
# Use tlp-stat -p to show the active driver and available governors.
# Important:
#   Governors marked (*) above are power efficient for *almost all* workloads
#   and therefore kernel and most distributions have chosen them as defaults.
#   You should have done your research about advantages/disadvantages *before*
#   changing the governor.
# Default: <none>

#CPU_SCALING_GOVERNOR_ON_AC=powersave
#CPU_SCALING_GOVERNOR_ON_BAT=powersave

# Set the min/max frequency available for the scaling governor.
# Possible values depend on your CPU. For available frequencies see
# the output of tlp-stat -p.
# Notes:
# - Min/max frequencies must always be specified for both AC *and* BAT
# - Not recommended for use with the intel_pstate driver, use
#   CPU_MIN/MAX_PERF_ON_AC/BAT below instead
# Default: <none>

#CPU_SCALING_MIN_FREQ_ON_AC=0
#CPU_SCALING_MAX_FREQ_ON_AC=0
#CPU_SCALING_MIN_FREQ_ON_BAT=0
#CPU_SCALING_MAX_FREQ_ON_BAT=0

# Set CPU energy/performance policies EPP and EPB:
#   performance, balance_performance, default, balance_power, power.
# Values are given in order of increasing power saving.
# Requires:
# * Intel CPU
#   EPP: Intel Core i 6th gen. or newer CPU with intel_pstate driver
#   EPB: Intel Core i 2nd gen. or newer CPU with intel_pstate driver
#   EPP and EPB are mutually exclusive: when EPP is available, Intel CPUs
#   will not honor EPB. Only the matching feature will be applied by TLP.
# * AMD Zen 2 or newer CPU
#   EPP: amd-pstate driver in active mode ('amd-pstate-epp') as of kernel 6.3
# Default: balance_performance (AC), balance_power (BAT)

#CPU_ENERGY_PERF_POLICY_ON_AC=balance_performance
#CPU_ENERGY_PERF_POLICY_ON_BAT=balance_power

# Set Intel CPU P-state performance: 0..100 (%).
# Limit the max/min P-state to control the power dissipation of the CPU.
# Values are stated as a percentage of the available performance.
# Requires Intel Core i 2nd gen. or newer CPU with intel_pstate driver.
# Default: <none>

#CPU_MIN_PERF_ON_AC=0
#CPU_MAX_PERF_ON_AC=100
#CPU_MIN_PERF_ON_BAT=0
#CPU_MAX_PERF_ON_BAT=30

# Set the CPU "turbo boost" (Intel) or "core performance boost" (AMD) feature:
#   0=disable, 1=allow.
# Allows to raise the maximum frequency/P-state of some cores if the
# CPU chip is not fully utilized and below it's intended thermal budget.
# Note: a value of 1 does *not* activate boosting, it just allows it.
# Default: <none>

#CPU_BOOST_ON_AC=1
#CPU_BOOST_ON_BAT=0

# Set CPU dynamic boost feature:
#   0=disable, 1=enable.
# Improve performance by increasing minimum P-state limit dynamically
# whenever a task previously waiting on I/O is selected to run.
# Requires Intel Core i  6th gen. or newer CPU: intel_pstate driver in active mode.
# Note: AMD CPUs currently have no tunable for this.
# Default: <none>

#CPU_HWP_DYN_BOOST_ON_AC=1
#CPU_HWP_DYN_BOOST_ON_BAT=0

# Kernel NMI Watchdog:
#   0=disable (default, saves power), 1=enable (for kernel debugging only).
# Default: 0

#NMI_WATCHDOG=0

# Select platform profile:
#   performance, balanced, low-power.
# Controls system operating characteristics around power/performance levels,
# thermal and fan speed. Values are given in order of increasing power saving.
# Note: check the output of tlp-stat -p to determine availability on your
# hardware and additional profiles such as: balanced-performance, quiet, cool.
# Default: <none>

#PLATFORM_PROFILE_ON_AC=performance
#PLATFORM_PROFILE_ON_BAT=low-power

# System suspend mode:
#   s2idle: Idle standby - a pure software, light-weight, system sleep state,
#   deep: Suspend to RAM - the whole system is put into a low-power state,
#     except for memory, usually resulting in higher savings than s2idle.
# CAUTION: changing suspend mode may lead to system instability and even
# data loss. As for the availability of different modes on your system,
# check the output of tlp-stat -s. If unsure, stick with the system default
# by not enabling this.
# Default: <none>

#MEM_SLEEP_ON_AC=s2idle
#MEM_SLEEP_ON_BAT=deep

# Define disk devices on which the following DISK/AHCI_RUNTIME parameters act.
# Separate multiple devices with spaces.
# Devices can be specified by disk ID also (lookup with: tlp diskid).
# Default: "nvme0n1 sda"

#DISK_DEVICES="nvme0n1 sda"

# Disk advanced power management level: 1..254, 255 (max saving, min, off).
# Levels 1..127 may spin down the disk; 255 allowable on most drives.
# Separate values for multiple disks with spaces. Use the special value 'keep'
# to keep the hardware default for the particular disk.
# Default: 254 (AC), 128 (BAT)

#DISK_APM_LEVEL_ON_AC="254 254"
#DISK_APM_LEVEL_ON_BAT="128 128"

# Exclude disk classes from advanced power management (APM):
#   sata, ata, usb, ieee1394.
# Separate multiple classes with spaces.
# CAUTION: USB and IEEE1394 disks may fail to mount or data may get corrupted
# with APM enabled. Be careful and make sure you have backups of all affected
# media before removing 'usb' or 'ieee1394' from the denylist!
# Default: "usb ieee1394"

#DISK_APM_CLASS_DENYLIST="usb ieee1394"

# Hard disk spin down timeout:
#   0:        spin down disabled
#   1..240:   timeouts from 5s to 20min (in units of 5s)
#   241..251: timeouts from 30min to 5.5 hours (in units of 30min)
# See 'man hdparm' for details.
# Separate values for multiple disks with spaces. Use the special value 'keep'
# to keep the hardware default for the particular disk.
# Default: <none>

#DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
#DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"

# Select I/O scheduler for the disk devices.
# Multi queue (blk-mq) schedulers:
#   mq-deadline(*), none, kyber, bfq
# Single queue schedulers:
#   deadline(*), cfq, bfq, noop
# (*) recommended.
# Separate values for multiple disks with spaces. Use the special value 'keep'
# to keep the kernel default scheduler for the particular disk.
# Notes:
# - Multi queue (blk-mq) may need kernel boot option 'scsi_mod.use_blk_mq=1'
#   and 'modprobe mq-deadline-iosched|kyber|bfq' on kernels < 5.0
# - Single queue schedulers are legacy now and were removed together with
#   the old block layer in kernel 5.0
# Default: keep

#DISK_IOSCHED="mq-deadline mq-deadline"

# AHCI link power management (ALPM) for SATA disks:
#   min_power, med_power_with_dipm(*), medium_power, max_performance.
# (*) recommended.
# Multiple values separated with spaces are tried sequentially until success.
# Default: med_power_with_dipm (AC & BAT)

#SATA_LINKPWR_ON_AC="med_power_with_dipm"
#SATA_LINKPWR_ON_BAT="med_power_with_dipm"

# Exclude SATA links from AHCI link power management (ALPM).
# SATA links are specified by their host. Refer to the output of
# tlp-stat -d to determine the host; the format is "hostX".
# Separate multiple hosts with spaces.
# Default: <none>

#SATA_LINKPWR_DENYLIST="host1"

# Runtime Power Management for NVMe, SATA, ATA and USB disks
# as well as SATA ports:
#   on=disable, auto=enable.
# Note: SATA controllers are PCIe bus devices and handled by RUNTIME_PM further
# down.

# Default: on (AC), auto (BAT)

#AHCI_RUNTIME_PM_ON_AC=on
#AHCI_RUNTIME_PM_ON_BAT=auto

# Seconds of inactivity before disk is suspended.
# Note: effective only when AHCI_RUNTIME_PM_ON_AC/BAT is activated.
# Default: 15

#AHCI_RUNTIME_PM_TIMEOUT=15

# Power off optical drive in UltraBay/MediaBay: 0=disable, 1=enable.
# Drive can be powered on again by releasing (and reinserting) the eject lever
# or by pressing the disc eject button on newer models.
# Note: an UltraBay/MediaBay hard disk is never powered off.
# Default: 0

#BAY_POWEROFF_ON_AC=0
#BAY_POWEROFF_ON_BAT=0

# Optical drive device to power off
# Default: sr0

#BAY_DEVICE="sr0"

# Set the min/max/turbo frequency for the Intel GPU.
# Possible values depend on your hardware. For available frequencies see
# the output of tlp-stat -g.
# Default: <none>

#INTEL_GPU_MIN_FREQ_ON_AC=0
#INTEL_GPU_MIN_FREQ_ON_BAT=0
#INTEL_GPU_MAX_FREQ_ON_AC=0
#INTEL_GPU_MAX_FREQ_ON_BAT=0
#INTEL_GPU_BOOST_FREQ_ON_AC=0
#INTEL_GPU_BOOST_FREQ_ON_BAT=0

# AMD GPU power management.
# Performance level (DPM): auto, low, high; auto is recommended.
# Note: requires amdgpu or radeon driver.
# Default: auto

#RADEON_DPM_PERF_LEVEL_ON_AC=auto
#RADEON_DPM_PERF_LEVEL_ON_BAT=auto

# Dynamic power management method (DPM): balanced, battery, performance.
# Note: radeon driver only.
# Default: <none>

#RADEON_DPM_STATE_ON_AC=performance
#RADEON_DPM_STATE_ON_BAT=battery

# Display panel adaptive backlight modulation (ABM) level: 0(off), 1..4.
# Values 1..4 control the maximum brightness reduction allowed by the ABM
# algorithm, where 1 represents the least and 4 the most power saving.
# Notes:
# - Requires AMD Vega or newer GPU with amdgpu driver as of kernel 6.9
# - Savings are made at the expense of color balance
# Default: 0 (AC), 1 (BAT)

#AMDGPU_ABM_LEVEL_ON_AC=0
#AMDGPU_ABM_LEVEL_ON_BAT=3

# Wi-Fi power saving mode: on=enable, off=disable.
# Default: off (AC), on (BAT)

#WIFI_PWR_ON_AC=off
#WIFI_PWR_ON_BAT=on

# Disable Wake-on-LAN: Y/N.
# Default: Y

#WOL_DISABLE=Y

# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
# A value of 0 disables, >= 1 enables power saving.
# Note: 1 is recommended for Linux desktop environments with PulseAudio,
# systems without PulseAudio may require 10.
# Default: 1

#SOUND_POWER_SAVE_ON_AC=1
#SOUND_POWER_SAVE_ON_BAT=1

# Disable controller too (HDA only): Y/N.
# Note: effective only when SOUND_POWER_SAVE_ON_AC/BAT is activated.
# Default: Y

#SOUND_POWER_SAVE_CONTROLLER=Y

# PCIe Active State Power Management (ASPM):
#   default(*), performance, powersave, powersupersave.
# (*) keeps BIOS ASPM defaults (recommended)
# Default: <none>

#PCIE_ASPM_ON_AC=default
#PCIE_ASPM_ON_BAT=default

# Runtime Power Management for PCIe bus devices: on=disable, auto=enable.
# Default: on (AC), auto (BAT)

#RUNTIME_PM_ON_AC=on
#RUNTIME_PM_ON_BAT=auto

# Exclude listed PCIe device adresses from Runtime PM.
# Note: this preserves the kernel driver default, to force a certain state
# use RUNTIME_PM_ENABLE/DISABLE instead.
# Separate multiple addresses with spaces.
# Use lspci to get the adresses (1st column).
# Default: <none>

#RUNTIME_PM_DENYLIST="11:22.3 44:55.6"

# Exclude PCIe devices assigned to the listed drivers from Runtime PM.
# Note: this preserves the kernel driver default, to force a certain state
# use RUNTIME_PM_ENABLE/DISABLE instead.
# Separate multiple drivers with spaces.
# Default: "mei_me nouveau radeon xhci_hcd", use "" to disable completely.

#RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon xhci_hcd"

# Permanently enable/disable Runtime PM for listed PCIe device addresses
# (independent of the power source). This has priority over all preceding
# Runtime PM settings. Separate multiple addresses with spaces.
# Use lspci to get the adresses (1st column).
# Default: <none>

#RUNTIME_PM_ENABLE="11:22.3"
#RUNTIME_PM_DISABLE="44:55.6"

# Set to 0 to disable, 1 to enable USB autosuspend feature.
# Default: 1

#USB_AUTOSUSPEND=1

# Exclude listed devices from USB autosuspend (separate with spaces).
# Use lsusb to get the ids.
# Note: input devices (usbhid) and libsane-supported scanners are excluded
# automatically.
# Default: <none>

#USB_DENYLIST="1111:2222 3333:4444"

# Exclude audio devices from USB autosuspend:
#   0=do not exclude, 1=exclude.
# Default: 1

#USB_EXCLUDE_AUDIO=1

# Exclude bluetooth devices from USB autosuspend:
#   0=do not exclude, 1=exclude.
# Default: 0

#USB_EXCLUDE_BTUSB=0

# Exclude phone devices from USB autosuspend:
#   0=do not exclude, 1=exclude (enable charging).
# Default: 0

#USB_EXCLUDE_PHONE=0

# Exclude printers from USB autosuspend:
#   0=do not exclude, 1=exclude.
# Default: 1

#USB_EXCLUDE_PRINTER=1

# Exclude WWAN devices from USB autosuspend:
#   0=do not exclude, 1=exclude.
# Default: 0

#USB_EXCLUDE_WWAN=0

# Allow USB autosuspend for listed devices even if already denylisted or
# excluded above (separate with spaces). Use lsusb to get the ids.
# Default: 0

#USB_ALLOWLIST="1111:2222 3333:4444"

# Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
# on system startup: 0=disable, 1=enable.
# Note: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
# are ignored when this is enabled.
# Default: 0

#RESTORE_DEVICE_STATE_ON_STARTUP=0

# Radio devices to disable on startup: bluetooth, nfc, wifi, wwan.
# Separate multiple devices with spaces.
# Default: <none>

#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth nfc wifi wwan"

# Radio devices to enable on startup: bluetooth, nfc, wifi, wwan.
# Separate multiple devices with spaces.
# Default: <none>

#DEVICES_TO_ENABLE_ON_STARTUP="wifi"

# Radio devices to enable on AC: bluetooth, nfc, wifi, wwan.
# Default: <none>

#DEVICES_TO_ENABLE_ON_AC="bluetooth nfc wifi wwan"

# Radio devices to disable on battery: bluetooth, nfc, wifi, wwan.
# Default: <none>

#DEVICES_TO_DISABLE_ON_BAT="bluetooth nfc wifi wwan"

# Radio devices to disable on battery when not in use (not connected):
#   bluetooth, nfc, wifi, wwan.
# Default: <none>

#DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth nfc wifi wwan"

# Battery Care -- Charge thresholds
# Charging starts when the charger is connected and the charge level
# is below the start threshold. Charging stops when the charge level
# is above the stop threshold.
# Required hardware: Lenovo ThinkPads and other laptop brands are driven
#   via specific plugins:
# - Use the tlp-stat -b command to see if a plugin for your hardware is
#   active and to look up vendor-specific threshold values. Some
#   laptops support only 1 (on)/0 (off) instead of a percentage level.
# - If your hardware supports a start *and* a stop threshold, you must
#   specify both, otherwise TLP will refuse to apply the single threshold.
# - If your hardware supports only a stop threshold, set the start
#   value to 0.
# - The names of the batteries shown by tlp-stat -b don't have to match
#   the _BAT0 or _BAT1 parameter qualifiers. Please refer to [2]
#   to see which qualifier applies to which battery.
# For further explanation and all vendor specific details refer to
# [1] https://linrunner.de/tlp/settings/battery.html
# [2] https://linrunner.de/tlp/settings/bc-vendors.html

# BAT0: Main battery
# Default: <none>

# Battery charge level below which charging will begin.
#START_CHARGE_THRESH_BAT0=75
# Battery charge level above which charging will stop.
#STOP_CHARGE_THRESH_BAT0=80

# BAT1: Secondary battery (primary on some laptops)
# Default: <none>

# Battery charge level below which charging will begin.
#START_CHARGE_THRESH_BAT1=75
# Battery charge level above which charging will stop.
#STOP_CHARGE_THRESH_BAT1=80

# Restore charge thresholds when AC is unplugged: 0=disable, 1=enable.
# Default: 0

#RESTORE_THRESHOLDS_ON_BAT=1

# ------------------------------------------------------------------------------
# tlp-rdw - Parameters for the radio device wizard

# Possible devices: bluetooth, wifi, wwan.
# Separate multiple radio devices with spaces.
# Default: <none> (for all parameters below)

# Radio devices to disable on connect.

#DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
#DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
#DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"

# Radio devices to enable on disconnect.

#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""

# Radio devices to enable/disable when docked.

#DEVICES_TO_ENABLE_ON_DOCK=""
#DEVICES_TO_DISABLE_ON_DOCK=""

# Radio devices to enable/disable when undocked.

#DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
#DEVICES_TO_DISABLE_ON_UNDOCK=""
[vagrant@voidlinux ~]$ 

バッテリ使用時と、AC電源接続時で、異なるプロファイルをカスタマイズできます:

→予想していましたが、バーグラフに変化はありません:

-

余計に負荷が増えたかな。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -----

12-2. 「TLP」の停止と削除:

-

runit での「サービス」の使い方の勉強になりました:

-


1). サービスの確認:

$ sudo sv status tlp
:
run: tlp: (pid 667) 72s; run: log: (pid 666) 72s

→実行中です:

-


2). 一時的にサービスを停止

$ sudo sv down tlp

サービスを監視している runsv プロセスに、サービスを停止するよう指示します

-

サービスの確認:
$ sudo sv status tlp
:
down: tlp: 14s, normally up; run: log: (pid 666) 124s

-


3). 停止したサービスの再開:

$ sudo sv up tlp

-

サービスの確認:
$ sudo sv status tlp
:
run: tlp: (pid 2844) 21s; run: log: (pid 666) 177s

-


4). 再起動後も自動的に起動しないようにしたい場合

-


4a). サービスのディレクトリに、down という名前の空ファイルを作成する場合:

-

ファイルの確認:
$ sudo ls -1p /etc/sv/tlp/
:
finish
log/
run
supervise

-

確認:
$ sudo sv status tlp
:
run: tlp: (pid 2844) 1485s; run: log: (pid 666) 1641s

-

起動の禁止:

空の「down」ファイルを作成:

$ sudo touch /etc/sv/tlp/down

-

確認:
$ sudo sv status tlp
:
run: tlp: (pid 2844) 1535s, normally down; run: log: (pid 666) 1691s

→「tlp」はサービス名です:

-

再起動:

[vagrant@voidlinux ~]$ sudo reboot
[vagrant@voidlinux ~]$ Connection to 127.0.0.1 closed by remote host.
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

$ vagrant status
:
Current machine states:
default                   running (virtualbox)

-

$ vagrant ssh
:
Last login: Wed Oct 22 00:44:29 2025 from 10.0.2.2
[vagrant@voidlinux ~]$

-

$  sudo sv status tlp
:
down: tlp: 49s; run: log: (pid 653) 49s

→停止しています:

-


4b). サービスへのシンボリックリンクを削除する場合:

確認:

$ ls /var/service/
:
NetworkManager  agetty-tty3  agetty-tty6  elogind  tlp
agetty-tty1     agetty-tty4  dbus         lightdm  udevd
agetty-tty2     agetty-tty5  dhcpcd       sshd     vboxservice

-

$ ls -l /var/service/ | grep tlp
:
lrwxrwxrwx 1 root root 11 10月 21 22:57 tlp -> /etc/sv/tlp

-

$ ls /etc/sv/tlp
:
down  finish  log  run  supervise

-

リンクを削除:
$ sudo rm /var/service/tlp

→「tlp」はサービス名です:

-

確認:
$ ls /etc/sv/tlp
down  finish  log  run  supervise

→実体あり:

-

$ ls -l /var/service/ | grep tlp
$

→リンクなし:

-


5). 「TLP」の削除:

$ sudo xbps-remove tlp
:
Name Action    Version           New version            Download size
tlp  remove    1.8.0_1           -                      - 

-

確認:
$ ls /etc/sv/tlp
down

→追加した「down」ファイルがあったので、「tlp」フォルダが削除されず残りました:

-

フォルダの削除:
$ sudo rm -r /etc/sv/tlp

-

確認:

$ ls /etc/sv/tlp
:
ls: '/etc/sv/tlp' にアクセスできません: そのようなファイルやディレクトリはありません

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- -

12-3. 「Powertop」を使った設定:

-

「Powertop」は、電力消費を測定し、最小化するためのユーティリティです:

「TLP」と併用とか、「TLP」の代替として使用できます:

-


1). 「powertop」をインストール:

$ sudo xbps-install -S powertop
:
Name     Action    Version           New version            Download size
powertop install   -                 2.15_2                 235KB 

-


2). システム起動時に「自動チューニングを適用する」設定にします:

$ sudo nano /etc/rc.local

↓ 下記の行を追記:

powertop --auto-tune

-


3). 確認:

$ cat /etc/rc.local
#!/bin/sh
# Default rc.local for void; add your custom commands here.
#
# This is run by runit in stage 2 before the services are executed
# (see /etc/runit/2).
powertop --auto-tune

-


4). 再起動:

[vagrant@voidlinux ~]$ exit
ログアウト
ubn@ubnbox:~/ダウンロード/vm/void$

-

$ vagrant halt
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

$ vagrant up

→予想していましたが、バーグラフに変化はありません:

-

余計に負荷が増えたかな。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- --

12-4. 「Powertop」の停止と削除:

-

サービスではないので、単に削除するだけです:

-


1). 「powertop」の停止:

-

(1). 設定フィルから、「powertop」の行を削除するか、コメント化:
$ sudo nano /etc/rc.local

↓ 下記の行を削除、もしくは、行頭に「#」を付けてコメントにします:

powertop --auto-tune

-

(2). 確認:
$ cat /etc/rc.local
#!/bin/sh
# Default rc.local for void; add your custom commands here.
#
# This is run by runit in stage 2 before the services are executed
# (see /etc/runit/2).

和訳:

void のデフォルトの「rc.local」には、カスタム コマンドを追加します。
これは、サービスが実行される前の「ステージ 2」で、runit によって実行されます。
(/etc/runit/2 を参照)

-

(3). 参考: 「runit」のしくみ:

確認:

$ ls -1p /etc/runit/
:
1
2
3
core-services/
crypt.awk
ctrlaltdel
functions
reboot
runsvdir/
shutdown.d/
stopit

-

$ cat /etc/runit/1
#!/bin/sh
# vim: set ts=4 sw=4 et:

PATH=/usr/bin:/usr/sbin

. /etc/runit/functions

msg "Welcome to Void!"

[ -r /etc/rc.conf ] && . /etc/rc.conf

# Start core services: one-time system tasks.
detect_container
for f in /etc/runit/core-services/*.sh; do
    [ -r $f ] && . $f
done

msg "Initialization complete, running stage 2..."

-

$ cat /etc/runit/2
#!/bin/sh
# vim: set ts=4 sw=4 et:

PATH=/usr/bin:/usr/sbin

runlevel=default
for arg in $(cat /proc/cmdline); do
    if [ -d /etc/runit/runsvdir/"$arg" ]; then
        echo "Runlevel detected: '$arg' (via kernel cmdline)"
        runlevel="$arg"
    fi
done

[ -x /etc/rc.local ] && /etc/rc.local

runsvchdir "${runlevel}"
mkdir -p /run/runit/runsvdir
ln -s /etc/runit/runsvdir/current /run/runit/runsvdir/current

exec env - PATH=$PATH \
    runsvdir -P /run/runit/runsvdir/current 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'

-

$ cat /etc/runit/3
#!/bin/sh
# vim: set ts=4 sw=4 et:

PATH=/usr/bin:/usr/sbin

. /etc/runit/functions
detect_container
[ -r /etc/rc.conf ] && . /etc/rc.conf
echo
for f in /etc/runit/shutdown.d/*.sh; do
    [ -r $f ] && . $f
done

ランレベルに応じたスクリプトみたい:

-

(4). 再起動:
[vagrant@voidlinux ~]$ exit
ログアウト
ubn@ubnbox:~/ダウンロード/vm/void$

-

$ vagrant halt
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

$ vagrant up

-


2). 「powertop」の削除:

$ sudo xbps-remove powertop
:
Name     Action    Version           New version            Download size
powertop remove    2.15_2            -                      - 

-

再起動:
[vagrant@voidlinux ~]$ exit
ログアウト
ubn@ubnbox:~/ダウンロード/vm/void$

-

$ vagrant halt
==> default: Attempting graceful shutdown of VM...
ubn@ubnbox:~/ダウンロード/vm/void$ 

-

$ vagrant up

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ---

13. 気づいたこと:

-


1). 以前に、「Xfce」のイメージからインストールした「Void Linux」は:

→なぜか、システムの起動も、Firefox ブラウザの起動も遅かったです:

→「Guest Additions」をインストールしたら、「解像度の自動調整」も、「クリップボードの共有」機能も使えませんでした:

-


2). 今回、Vagrant で作成した「Void Linux」は:

- (ホストOS の端末で)ssh 接続するので、「クリップボードの共有」機能は(そもそも)要りません:

- (成功率の高い)プラグインの機能で「Guest Additions」が自動インストールされたからか、  
 「解像度の自動調整」も、「クリップボードの共有」機能も、「共有フォルダ」の機能も使えます:

- そして、「システムの起動」も、「Firefox ブラウザの起動」も「3~4 秒」で立ち上がります。速くなりました:

-


3). それらの違いは、

- UEFI 立ち上げだったのが、BIOS 立ち上げです:
- コンソール画面までのインストールで、ssh 接続で、「Xfce」を手動で(パッケージ少なめで)インストールしました:
- 成功率の高い「プラグイン」機能で、「Guest Additions」が自動インストールされました:
- もしかしたら、「VirtualBox 7.2.2」にアップしたことも影響(不具合の改善?)したかも:

→余計なものをインストールしていないことと、「Guest Additions」がうまくインストールされたことが大きいかも:

-


4). 気になるのは、「仮想マシン」画面の右下の「赤いバーが振れっ放し」なこと:

→「負荷が高い」状態みたい。対処療法ですが、「項番 10.」で、少電力の設定を追加しました:

-


5). 「項番 4).」の「CPU 高負荷」の原因を調べてみる:

-

(1). htop をインストール:
$ sudo xbps-install -S htop
:
ERROR: Package `htop' already installed.

→インストール済でした:

-

(2). 「htop」または「top」を実行:

CPU使用率が高いプロセスがリストの上位に表示されます:

-

$ top

「q」で終了:

-

$ htop

「q」で終了:

-

(3).どのプロセス(例:firefoxdbus-daemon)が CPU を最も消費しているかを確認:

アイドル時でも CPU 使用率が高い場合、バックグラウンドで不要なサービスが動作している可能性があります

「VBoxService」や「VBoxClient」が負荷が高いみたい:

→「%CPU」の値を見ると、大したことはありません。それほど、異常というわけではないみたい:

これが「Guest Additions」のクライアントが正常に動いている証拠かも:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----

14. 追記: システムの起動と、「Firefox」ブラウザの立ち上げが遅くなる、原因が判明しました:

-

こちら」を参照:

-

今回は、「Vagrant」でインストールしたため、たまたま、

(1). 「仮想マシン」の設定が「3D アクセラレーションを有効化」のチェックが外れていて、「VMSVGA」以外の設定だったから:

-

また、「Guest Additions」が有効になったのは、その後、

(2). GUI 表示させるため、設定を変更したから:
(3). つまり、たまたま(エラーを回避する)条件が重なったわけです:

-

これらの条件をクリアして、「仮想マシン」を作成するには、工夫が必要です:

-

-


まとめ

今回は、前回の〈H175-8〉でインストールした、最新の「Vagrant 2.4.9」で、最新の「VirtualBox 7.2.2」の「仮想マシン」が作成できるか確認しました。

-

この組み合わせだと、スムーズに移行でき、正常に動作しました。

-

仮想マシン」に使った「Void Linux」は、「コンソール」画面の「ログイン待ち」までなら、あっという間に、起動され、

その環境で、「Void Linux」に「デスクトップ環境」をインストールしたところ、
「デスクトップ」表示や、「Firefox」の起動は、あっという間で、素早く立ち上がりました:

また、プラグインで自動でインストールされた「Guest Additions」の機能も有効です:

-

Vagrant」で仮想マシンを作成したことで(たまたま、エラー条件をすり抜け)、使いやすい環境が作成できました。

-

-

その後ですが、 前回遅かった原因が判明しました。

-

せっかく原因がわかったので、それを加味して、「デスクトップ環境」なしの iso イメージで、「Void Linux」と「デスクトップ環境」をインストールして、「Guest Additions」の機能が有効にできないか、(以降の投稿で)試してみたいと思います。

-

-

-


-

-

    目次

-

「投稿の先頭 へ」

-

-


-

「この目次 の先頭へ」

「本編の目次 に戻る」

-

「Xubuntu 24.04 LTS」に、「VirtualBox 7.2.2」と「Vagrant 2.4.9」をインストール〈H175-8〉

登録日: 2025-10-19 更新日: 2025-10-19

前回、「Xubuntu 24.04 LTS」に「VirtualBox 7.1.10」と「Vagrant 2.4.7」をインストールしました:

-

今回、現時点で最新の「VirtualBox 7.2.2」と「Vagrant 2.4.9」をインストールして、うまく動くか確認しました:

-

その備忘録です。

-

-

使用したPC は、以前に購入した ミニPC「MINISFORUM NAB5」で、Linux マシンとして運用中です。
プロセッサは「Core i5-12450H」で、メモリ 16GB、SSD 512GB です。

-

(注)リンクを戻るときはブラウザの左上の「←」をクリック
Android スマホであれば「ホーム」ボタン隣の「<」をタップ

-

-


目次

-

今回の作業:

1. 「VirtualBox」のインストール状況を確認:

2. 「仮想マシン」の整理:

3. 「VirtualBox」のインストール準備:

4.  最新の「VirtualBox 7.2.2」をダウンロード:

5. 「VirtualBox 7.2.2」をインストール:

6. 「VirtualBox Extension Pack」をインストール:

7.  最新の「Vagrant 2.4.9」をダウンロードしてインストール:

8.  Vagrant に「vagrant-vbguest」プラグインをインストール:

9.  Vagrant の動作を確認:

-

「まとめ へ」

「目次詳細 へ」

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - -

Xubuntu 24.04 LTS の立ち上げ:

-

VirtualBox マネージャを起動:

左側に「アイコン」(ボタン)が縦に並びます:

-

「ホーム」ボタン:(デフォルト)

VirtualBox マネージャの左側に縦にボタン(アイコン)が並ぶデザインに変わりました:

-

仮想マシンボタン:

→今までと同じ画面です:

-

「機能拡張」ボタン:

-

「メディア」ボタン:

-

「ネットワーク」ボタン:

-

クラウドボタン:

-

「リリース」ボタン:

-

機能が使いやすくなった印象です:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - --

現在のOS のバージョンを表示:

-

2025-10-19 現在

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ホストOS : 「Xubuntu 24.04.2 LTS」

カーネル:

$ uname -r
6.8.0-85-generic

→安定志向なので、更新は少なめです:

-

リリース:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

→LTS 版の更新(ポイントリリース)は、ほぼ 6ヶ月ごとです:

-

x11」と「Wayland」のどちらで動作しているか確認:
$ echo $XDG_SESSION_TYPE
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ---

Xubuntu」について:

-

Ubuntu の公式フレーバー(性格の違う兄弟?)です

Ubuntu ベースの、軽量な「Xfce」デスクトップ環境です。

個人的には使い慣れた環境です。
安定していることと、カスタマイズしやすく、自分にとって使い勝手の良い環境を再現しやすいのが利点です。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----

VirtualBox」について:

-

VirtualBox 」は、Oracle が開発している「仮想マシン」を構築するためのソフトウェアです。

-

  • 「VirtalBox」は「仮想的なパソコン」(仮想デバイス)を実現するソフトウェアです。別のパソコンに「Linux」をインストールするのと変わりません。

  • 仮想マシンを使うことで、ハードウェアで問題になりそうなPC でも、最新のLinux ディストリビューションをインストールできる可能性が高くなります。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - -----

Vagrant」について:

-

公式サイト:

Vagrant by HashiCorp

-

Vagrant」 (ベイグラント) は、「仮想マシン」の管理をしやすくするための「フロントエンド」のソフトウェアです:

仮想マシン」の管理を「vagrant コマンド」で行います:
複数の「仮想マシン」の環境(ベンダーと言います)に対応しており、 ベンダー指定を省略した時のデフォルトは「VirtualBox」です。

-

例えば、「VirtualBox」の場合は、
vagrant コマンド」の実行で、「VirtualBox」が内蔵する「VBoxManage」コマンドを発行して、「仮想マシン」の制御を行っています。

つまり、「VirtualBox」がインストールされていないと使えません。
また、「Vagrant」は、仮想環境を統一するのに便利なので、共同作業の多い「ソフト開発」でよく使われています。

-

個人的にはいろいろなOS にトライしており、ssh 接続よりも、GUI をよく使っていて、 GUI で使うときに便利になる、Guest Additions のインストールを手動で行うのですが、 その都度環境が違うので、よく失敗します。

-

なので、Guest Additions を(ほぼ 100% の成功率で)仮想マシンに自動インストールしてくれる、「vagrant plugin」機能を使うために、「Vagrant」を使っています。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- -

1. 「VirtualBox」のインストール状況を確認:

-


1). 現在のインストール状況を確認:

$ apt search virtualbox | grep 済
:
virtualbox-7.1/now 7.1.10-169112~Ubuntu~noble amd64 [インストール済み、ローカル]

→「ローカル」の表示は、.deb ファイルからインストールされているということです

-

パッケージ名が「virtualbox-7.1」でインストールされています:

-


2). インストールされている「VirtualBox」の詳細バージョンをコマンドで確認:

$ VBoxManage --version
:
7.1.10r169112

-


3). 「VirtualBox マネージャ」を起動して、作成された「仮想マシン」をGUI で確認:

-

コマンドでも確認できます:
$ ls -1p ~/'VirtualBox VMs'/
:
Void-Linux/
'Void-Linux の原本3'/

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- --

2. 事前に、不要な「仮想マシン」を整理:

-

ディスクの空きを増やすため、いくつかの「仮想マシン」を削除しました:

もし、必要な「仮想マシン」があれば、削除の必要はありません。

-

ただし、vagrant で管理されている場合は、今回は vagrant のバージョンをアップするので、「仮想マシン」を(制御ファイルを含めて)再作成する必要がある(?)かもしれません。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ---

2-1. Vagrant で管理されている「仮想マシン」を削除:

-

操作例です。各々の環境で異なります。

-


1). 現在の「仮想マシン」の確認:

$ vagrant global-status
==> vagrant: A new version of Vagrant is available: 2.4.9 (installed version: 2.4.7)!
==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html
id       name   provider state  directory                           
--------------------------------------------------------------------
There are no active Vagrant environments on this computer! Or,
you haven't destroyed and recreated Vagrant environments that were
started with an older version of Vagrant.

→「Vagrant」の最新バージョンがあるとの通知が表示されました:

ここでは、Vagrant で管理されている「仮想マシン」はなしです:

-


3). 不要な「Box」の削除:

確認:

$ vagrant box list
xubuntu2504-4 (virtualbox, 0)

-

削除:

$ vagrant box remove xubuntu2504-4
Removing box 'xubuntu2504-4' (v0) with provider 'virtualbox'...

-

確認:

$ vagrant box list
There are no installed boxes! Use `vagrant box add` to add some.

-


4). 不要な「作業フォルダ」の削除:

個人的に管理しやすいように、「作業フォルダ」を置くフォルダを決めています:

-

作業フォルダ名の確認:

$ ls -1 ~/ダウンロード/vm/
:
box-share
xubuntu2504-4

-

削除1:

$ rm -r ~/ダウンロード/vm/xubuntu2504-4

-

削除2:

$ rm -r ~/ダウンロード/vm/box-share

-

確認:

$ ls -1 ~/ダウンロード/vm/
$

-


5). 作成されている「仮想マシン」を確認:

$ ls -lA ~/'VirtualBox VMs'
:
drwxrwxr-x 3 ubn ubn 4096 10月 16 07:19  Void-Linux
drwx------ 2 ubn ubn 4096 10月 16 07:20 'Void-Linux の原本3'

Vagrant で管理されている「仮想マシン」はありません:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----

2-2. VirtualBox マネージャで管理している「仮想マシン」を削除:

-

操作例です。各々の環境で異なります。

-


1). VirtualBox マネージャにて、不要な「仮想マシン」を削除:

VirtualBox マネージャにて、左の一覧から該当の「仮想マシン」を右クリック→「除去」

→「すべてのファイルを削除」

-


2). VirtualBox マネージャを起動して、確認:

→ 2つのみ残っています:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- -----

3. 「VirtualBox」のインストール準備:

-


1). システム更新:

$ sudo apt update
$ sudo apt upgrade
:
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。

→「アップグレード:」の行が、すべて 0 かを確認:

-


2). 「dkms」のインストール:

「.deb」ファイルから(最新の)「VirtualBox」をインストールしたい場合に、パッケージ名「dkms」をインストールしておきます:

カーネルの更新があったときに自動で依存が解決(システム更新に、カーネルのビルドに必要なカーネルヘッダー等が追加)されます:

$ sudo apt install dkms
:
dkms はすでに最新バージョン (3.0.11-1ubuntu13) です。

-

注意: パッケージ名は似ていますが、違う環境に間違えてインストールすると、正しく機能しません:
  • 「.deb」ファイルから(最新の)「VirtualBox」をインストールしたい場合に、
     →パッケージ名「dkms」をインストールしておきます:

  • apt コマンドで(最新ではないけど問題の少ない)「VirtualBox」をインストールする場合は、
     →パッケージ名「virtualbox-dkms」をインストールしておきます:

-


3). 再起動:

「端末」以外のすべてのウィンドウを閉じてから、

$ reboot

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- -

4. 使用できる「Virtualbox」の最新バージョンを確認:

-

1). Ubuntu の(開発)「コード名」を確認:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble          ←(コード名)
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

Xubuntu は「Ubuntu」が元(デスクトップ環境が異なるだけ)なので、「Ubuntu」と同じイメージファイルを使います:

-

使用しているホストOS の種類とリリース番号によって、ダウンロードするファイルを選びます:

-

2). ブラウザで「virtualbox」の最新版を確認:

Index of /virtualbox/

→「virtualbox」の最新リリースは「7.2.2」です。

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- --

5. 最新の「virtualbox 7.2.2」をダウンロード:

-

1). ファイルのダウンロード:

ダウンロードサイト:

Index of /virtualbox/7.2.2

-

 →ファイルを「~/ダウンロード/virtualbox/」フォルダに移動:

-

 →ファイルを「~/ダウンロード/virtualbox/」フォルダに移動:

-

 表示される内容から抜粋:

a7f5904e35b3c34c000f74e0364f1d1c0efdb126a4d3c4a264244959711c7f42 *Oracle_VirtualBox_Extension_Pack-7.2.2-170484.vbox-extpack

2e5f48404328476f15dd35b7bde710b2a58e5e64bfa7fa78b64970336ba13aac *virtualbox-7.2_7.2.2-170484~Ubuntu~noble_amd64.deb

-

2). ファイルの確認:

$ cd ~/ダウンロード/virtualbox/
$ ls -1
:
Oracle_VirtualBox_Extension_Pack-7.2.2-170484.vbox-extpack
virtualbox-7.2_7.2.2-170484~Ubuntu~noble_amd64.deb

-

3). ファイルの「チェックサム」を確認:

VirtualBox」:
$ sha256sum virtualbox-7.2_7.2.2-170484~Ubuntu~noble_amd64.deb
:
2e5f48404328476f15dd35b7bde710b2a58e5e64bfa7fa78b64970336ba13aac  virtualbox-7.2_7.2.2-170484~Ubuntu~noble_amd64.deb

-

VirtualBox Extension Pack」:
$ sha256sum Oracle_VirtualBox_Extension_Pack-7.2.2-170484.vbox-extpack
:
a7f5904e35b3c34c000f74e0364f1d1c0efdb126a4d3c4a264244959711c7f42  Oracle_VirtualBox_Extension_Pack-7.2.2-170484.vbox-extpack

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ---

6. 「.deb」ファイルから「VirtualBox」をインストール:

-

こちらは「Xubuntu 24.04 LTS」にて、「virtualbox 7.2.2」をインストールする場合ですが、

違う「.deb」ファイルにすれば、そのバージョンがインストール出来ます:

-

1). インストール:

$ cd ~/ダウンロード/virtualbox/
$ sudo apt install ./virtualbox-7.2_7.2.2-170484~Ubuntu~noble_amd64.deb
注意、'./virtualbox-7.2_7.2.2-170484~Ubuntu~noble_amd64.deb' の代わりに 'virtualbox-7.2' を選択します
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libqt6help6 libqt6statemachine6 libqt6xml6t64
これを削除するには 'sudo apt autoremove' を利用してください。
以下の追加パッケージがインストールされます:
  libxcb-cursor0
以下のパッケージは「削除」されます:
  virtualbox-7.1
以下のパッケージが新たにインストールされます:
  libxcb-cursor0 virtualbox-7.2
アップグレード: 0 個、新規インストール: 2 個、削除: 1 個、保留: 0 個。
:
virtualbox-7.2 (7.2.2-170484~Ubuntu~noble) を設定しています ...
info: グループ `vboxusers' はシステムグループとしてすでに存在しています。終了し
ます。
:
N: ファイル '/home/ubn/ダウンロード/virtualbox/virtualbox-7.2_7.2.2-170484~Ubuntu~noble_amd64.deb' がユーザ '_apt' からアクセスできないため、ダウンロードは root でサンドボックスを通さずに行われます。 - pkgAcquire::Run (13: 許可がありません)
ubn@ubnbox:~/ダウンロード/virtualbox$ 

-


2). インストールされたか確認:

$ apt search virtualbox | grep 済
:
virtualbox-7.2/now 7.2.2-170484~Ubuntu~noble amd64 [インストール済み、ローカル]

→「ローカル」の表示に注目:

-

パッケージ名が「virtualbox-7.2」でインストールされました:

-


3). コマンドでバージョンを確認:

$ VBoxManage --version
:
7.2.2r170484
→上記に、エラーメッセージが含まれていなければ、「VirtualBox マネージャ」が使える状態です:

つまり、Vagrant仮想マシンを作成して立ち上げできます:

-

参考: もし、上記で、エラーメッセージが含まれている場合の対応は:

→「こちら」を参照:

-


4). 再起動:

「端末」画面以外を閉じてから、

$ reboot

-


5). ログイン後、デスクトップ画面が表示:

-


6). 「VirtualBox」を起動して確認:

メニュー →「システム」→「Oracle VirtualBox

→正常に立ち上がりました:

-

ヘルプ表示を確認:

ヘルプ →「VirtualBox について」:

-

VirtualBox グラフィカルユーザーインターフェース
バージョン 7.2.2 r170484 (Qt6.8.0 on xcb)
Copyright © 2025 Oracle and/or its affiliates.

→「閉じる」

-

VirtualBox」マネージャを画面右上の「x」で閉じました:

-


7). 任意: 「VirtualBox」の「USB 機能」を使いたい場合の確認:

→「こちら」を参照:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----

7. 「VirtualBox Extension Pack」をインストール:

-

virtualbox 7.2.2」をインストールした場合です:

-

続けて、機能拡張パッケージをインストールしました。

インストールされている VirtualBox のバージョンと同じバージョンの「拡張パック」が必要です:

作業は任意です。

-

拡張パックで提供される追加機能:

→リモートで使うなら必要だけど、必要がなければ要らない機能です。

-

1). ファイルマネージャで、「~/ダウンロード/virtualbox/」フォルダを開きます:

フォルダ名は任意なので変わります。

-

2). ダウンロードした、緑色で四角いボックスのアイコンの「Oracle_VirtualBox_Extension_Pack-7.2.2-170484.vbox-extpack」をダブルクリック:

virtualbox」(「VirtualBox」マネージャ)をインストールしたことで使える機能です:

-

3). 「VirtualBox」マネージャが起動されて、ダイアログが表示:

→「アップグレード」が表示されていれば、「アップグレード」をクリック:

→「インストール」が表示されていれば、「インストール」をクリック:

-

4). ライセンス画面が表示:

一番下までスクロール:

→「同意します」をクリック

→パスワード入力:

-

5). 「VirtualBox」マネージャの画面に戻りました:

-

6). 「機能拡張」がインストールされたか確認:

左側の 3つ目の「機能拡張」アイコンをクリック

-

「機能拡張」がインストールされたか確認できます:

-

参考: もし、以前の「7.1.10」の「機能拡張」が残ったままだったら、

「7.1.10」をクリック→「アンインストール」をクリック

→「除去」

→「パスワード」入力

-

7). 左側の 1つ目の「ホーム」アイコンをクリック

→元の画面に戻りました:

-

8). 左側の 2つ目の「仮想マシン」アイコンをクリック

→いつも使っている画面です:

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- -----

8. 最新の「Vagrant 2.4.9」をインストール:

-

公式サイト:

github hashicorp/vagrant

-

最新の「Vagrant 2.4.9」をインストールする場合です:

違う「.deb」ファイルにすれば、そのバージョンがインストール出来ます:

-


1). 「Vagrant 2.4.9」のダウンロード:

ダウンロードサイト:

vagrant_2.4.9

-

vagrant_2.4.9-1_amd64.deb

→ダウンロードしたファイルを「~/ダウンロード/virtualbox」フォルダに移動(任意):

-


2). チェックサムのダウンロード:

「[vagrant_2.4.9_SHA256SUMS[(https://releases.hashicorp.com/vagrant/2.4.9/vagrant_2.4.9_SHA256SUMS)」

→ダウンロードしたファイルを「~/ダウンロード/virtualbox」に移動(任意):

-


3). ダウンロードしたチェックサムの「書類ファイル」をダブルクリック:

表示の中から、チェックサムを抜粋:

42d830d05e6e9e647f8a5c854d9f5295e319dac74edd37d54b97b4f29cbbd70d  vagrant_2.4.9-1_amd64.deb

-


4). ファイルの確認:

$ cd ~/ダウンロード/virtualbox
$ ls -1p
:
Oracle_VirtualBox_Extension_Pack-7.2.2-170484.vbox-extpack
vagrant_2.4.9-1_amd64.deb
vagrant_2.4.9_SHA256SUMS
virtualbox-7.2_7.2.2-170484~Ubuntu~noble_amd64.deb

-


5). ダウンロードしたファイルのチェックサムを確認:

$ sha256sum vagrant_2.4.9-1_amd64.deb
:
42d830d05e6e9e647f8a5c854d9f5295e319dac74edd37d54b97b4f29cbbd70d  vagrant_2.4.9-1_amd64.deb

-


6). すでに「Vagrant」、および、そのプラグインをインストールしていたら、完全削除が必要です:

「上書きインストール」を行なうと、依存関連のエラーでプラグインがインストールできませんでした:

-

プラグインを削除した後に、「Vagrant」と設定ファイルを含めての削除が必要です:

-

(1). 「vagrant」がインストールされているか確認:
$ apt list vagrant
:
vagrant/now 2.4.7-1 amd64 [インストール済み、ローカル]

-

(2). インストールされているプラグインを確認:
$ vagrant plugin list
vagrant-vbguest (0.32.0, global)

プラグインはひとつのみインストールされています:

-

(3). インストールされているプラグインを削除:
$ vagrant plugin uninstall vagrant-vbguest
:
Uninstalling the 'vagrant-vbguest' plugin...
Successfully uninstalled micromachine-3.0.0
Successfully uninstalled vagrant-vbguest-0.32.0

-

(4). インストールされているプラグインを確認:
$ vagrant plugin list
:
No plugins installed.

プラグインはなし:

-

(5). 「vagrant」を完全に削除:
$ sudo apt purge vagrant
以下のパッケージは「削除」されます:
  vagrant*
アップグレード: 0 個、新規インストール: 0 個、削除: 1 個、保留: 0 個。
この操作後に 274 MB のディスク容量が解放されます。
続行しますか? [Y/n] 

→Enter

(データベースを読み込んでいます ... 現在 251198 個のファイルとディレクトリがイン
ストールされています。)
vagrant (2.4.7-1) を削除しています ...
dpkg: 警告: vagrant の削除中、ディレクトリ '/opt' が空でないため削除できませんで
した

-

(6). 「/opt」フォルダを確認:
$ ls -A /opt
firefox

→「firefox」は別件につき、問題なし

-

(7). 「vagrant」が削除されたか確認:
$ apt list vagrant
$

→なし:

-

(8). 念の為、一度再起動:

「端末」以外の画面を閉じてから、

$ reboot

-


7). 「.deb」ファイルから「Vagrant」をインストール:

$ cd ~/ダウンロード/virtualbox/
$ sudo apt install ./vagrant_2.4.9-1_amd64.deb
:
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libqt6help6 libqt6statemachine6 libqt6xml6t64
これを削除するには 'sudo apt autoremove' を利用してください。
以下のパッケージが新たにインストールされます:
  vagrant
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。

→「新たにインストールされます:」であることを確認:

-


8). インストールされたか確認:

$ apt list vagrant
:
vagrant/now 2.4.9-1 amd64 [インストール済み、ローカル]

→「ローカル」の表示に注目:

-


9). バージョンを確認:

$ vagrant --version
:
Vagrant 2.4.9

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -

9. 「vagrant-vbguest」プラグインをインストール:

-

ホストOS 側の「Vagrant」のインストールをしたら、「vagrant-vbguest」プラグインをインストールしておくと、

vagrant up」や「vagrant reload」時、及び「vagrant vbguest」実行時に

「Guest Additions」のバージョンを自動でチェックして、 自動で「Guest Additions」をインストールしてくれます

-

手動だと半分しかうまく行かなかった「Guest Additions」のインストールがほぼ成功するのが利点:

-


1). 「vagrant-vbguest」プラグインを確認:

$ vagrant plugin list
:
No plugins installed.

プラグインなし:

エラーの表示はありません:

-

参考: 先にプラグインを削除せずに、「vagrant」を再インストールすると、ここでエラーが出る場合があり、面倒なことになります:

-


2). 「vagrant-vbguest」プラグインのインストール:

$ vagrant plugin install vagrant-vbguest
:
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Fetching micromachine-3.0.0.gem
Fetching vagrant-vbguest-0.32.0.gem
Installed the plugin 'vagrant-vbguest (0.32.0)'!

→赤い警告が表示されなければ OK:

プラグイン自体のバージョンは上がっていません

-


3). ホストOS を再起動:

「端末」以外のすべてのウィンドウを閉じてから、

$ reboot

-

-


- --- - --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- --

10. 「Vagrant」の動作を確認:

-

Vagrant 2.4.9」を確認するには、「仮想マシン」をイチから作ってみないと、テストになりません:

-


1). vagrantプラグインを確認:

$ vagrant plugin list
:
vagrant-vbguest (0.32.0, global)

-


2). 登録された「Box」を確認:

$ vagrant box list
:
There are no installed boxes! Use `vagrant box add` to add some.

→なし

-


3). 作成された「仮想マシン」を確認:

$ vagrant global-status
:
id       name    provider   state    directory                           
-------------------------------------------------------------------------

vagrant で管理されている「仮想マシン」なし

-


4). 「Vagrant 2.4.9」で、「仮想マシン」を作成して、動作を確認:

-

→次に投稿する、〈H175-9〉にて、動作を確認しました:
Vagrant」で「Void Linux」の「仮想マシン」を作成:

→OK

-

-


まとめ

今回は、「Xubuntu 24.04.3 LTS」に、最新の「VirtualBox 7.2.2」と「Vagrant 2.4.9」をインストールしました。

-

VirtualBox 7.2.2」は、機能がわかりやすい画面のデザインに変わり、そこで確認できる項目も増えています:

少しずつ、進歩しています。

-

また、バージョンアップで問題となる、最新の「Vagrant 2.4.9」を使い、最新の「VirtualBox 7.2.2」の「仮想マシン」が作成できるかは、次の「投稿」で正常に動くことを確認しました。

この組み合わせだとスムーズに移行できるので、オススメかも。

-

-

-


-

-

    目次

-

「投稿の先頭 へ」

-

-


-

「この目次 の先頭へ」

「本編の目次 に戻る」

-

「Void Linux」の「xbps-src」にて、アプリを移植1〈H179-2〉

登録日: 2025-10-17 更新日: 2025-11-07

前回は、 「VirtualBox 7.1.10」の仮想マシンに、「Void Linux」(Xfce) を iso イメージからインストールしました:

-

「Void Linux」を「仮想マシン」として使うと、速い?と聞いていた、システムや Firefox ブラウザの起動が、なぜか普通より遅いです。(追記: 原因が判明しました)

ですが、アプリの開発環境としては、「クローン」(仮想マシンのコピー)が使えるので、「すぐに元の環境に戻せる」利点が活きてきます。

-

今回は、その「Void Linux」の「仮想マシン」に、アプリの移植(ソースをダウンロード、ビルド、配置して、パッケージ化する)作業を半自動化してくれる、「xbps-src」のビルド環境をセットアップしました。

そして、いくつかの「アプリ」で試して、

他の Linux ディストリビューションの同様のツール(ビルド環境?)に比べて、 「Void Linux」の「xbps-src」のどこが優秀なのか、確認しました:

ちなみに、ソースの修正は自己責任です。

-

その備忘録です。

-

-

使用したPC は、新しく購入した ミニPC「MINISFORUM NAB5」です。
プロセッサは「Core i5-12450H」で、メモリ 16GB、SSD 512GB です。

-

(注)リンクを戻るときはブラウザの左上の「←」をクリック
Android スマホであれば「ホーム」ボタン隣の「<」をタップ

-

-


目次

-

今回の作業:

-

  1.  作業前に、「Void Linux」の仮想マシンのクローンを作成:

  2. 「xbps-src」のビルド環境をセットアップ:

  3. 「FeatherPad」アプリを、そのまま「パッケージ化」:

  4.  アプリ名が小文字の「featherpad」アプリを新規作成し、ヘルプを xbps-src の備忘録にして「パッケージ化」:

  5. 「四川省」 (kshisen) ゲームを、移植してそのまま「パッケージ化」:

  6. 「四川省」 (kshisen) ゲームを、起動メニューを日本語化して「パッケージ化」:

-

参考になりそうな作業:

  1. 「featherpad」アプリで、「パッケージ化」にトライした履歴:

  2. 「四川省」 (kshisen) ゲームで、「パッケージ化」にトライした履歴:

  3. 「xbps-src」の「ヘルプ」を表示:

  4. 「xbps-src」で、アプリを「パッケージ化」する手順:

  5. 「xbps-src」で、patch を作る手順:

  6. 「xbps-src」のテンプレートファイルを「Haiku OS」のレシピファイルと比較:

  7. 「xbps-src」にて、いくつかのアプリの「テンプレート」を抜粋:

  8.  最新の「Firefox」のESR 版をダウンロードしてインストール:

  9.   パッケージ管理を行う「XBPS」の使い方:

  10.  XBPS を使いやすくするため、XBPS の「エイリアス」を作成:

  11.  作成した、XBPS の「エイリアス」を使ってみる:

  12.  「エイリアス」を使わずに、XBPS を実行してみる:

-

「まとめ へ」

「目次詳細 へ」

-

-


- --- - --- - --- - --- - --- - --- - --- -

ホストOS の「Xubuntu 24.04.3 LTS」を立ち上げ:

-

仮想マシンの「Void Linux」(Xfce) を起動:

-

カスタマイズした画面:

前回の投稿の「項番 9.」で、色々とカスタマイズしています:

-

デスクトップ環境が同じ「Xfce」であれば、「Debian」でも「Void Linux」でも見た目もGUI での使い勝手も同じようにカスタマイズできます:

-

大きな違いは、アプリのインストールに使う、「パッケージ管理コマンド」(xbps)が異なることと、

そして、今回の「xbps-src」のビルド環境が使えることです:

-

-


- --- - --- - --- - --- - --- - --- - --- --

VirtualBox」について:

-

VirtualBox 」は、Oracle(オラクル)社が開発している「仮想マシン」を構築するためのソフトウェアです。

-

-

-


- --- - --- - --- - --- - --- - --- - --- ---

Xubuntu」について:

-

Ubuntu の公式フレーバー(性格の違う兄弟?)です

Xubuntu」(ズブントゥ)は、 Ubuntu ベースの、軽量な「Xfce」デスクトップ環境です。

Ubuntu ベースにつき、多くのノウハウ、情報等があること、および問題の少ない「x11」で動いていることが強みです。

-

個人的には使い慣れた環境です。
カスタマイズが色々とできるので、自分にとって使い勝手の良い環境を作れるのが利点です。

-

-


- --- - --- - --- - --- - --- - --- - --- ----

「Void Linux」について:

-


1). 公式サイト:

The Void (Linux) distribution

-

英語のみのサイトです:

-

「Void Linux」は、独立してボランティアのみで開発された、ローリングリリース安定版で提供されている、汎用 Linux オペレーティングシステムです:

-

抜粋:

Void の「パッケージマネージャ」と「ビルドシステム」はゼロから書かれています:

ソフトウェアは「バイナリパッケージ」で提供されるか、「XBPS ソースパッケージコレクション」の助けを借りて「ソース」から直接ビルドされます。

-

このディストリビューションを使う利点のひとつは、優れた「パッケージ管理」です:

 →ソースからのビルドを楽しめます:

-


2). runit:

runit を「init システム」および「サービススーパーバイザー」として使用しています。

シンプルさを好む開発者も多いみたい:

-

ただし、ソースからビルドする場合に、「systemd」に依存してるアプリは、うまくビルドできなかったり、ビルドできても動かないかも:

-


3). C ライブラリの多様性( 2つの選択肢):

Void Linux は、「musl」GNU libc」の両方の実装をサポートします。

-

→それぞれの利点があるので、それぞれの Live イメージが提供されています:

-

「musl」だと、「GNU libc」よりもリポジトリに登録されてるアプリが(同じか)少ない? 可能性があります:

また、ソースからビルドするにしても、動くかはビルドしてみないとわかりません:

ただし、「xbps-src」のsrcpkgs ディレクトリには、「musl」に対応させたパッケージの「テンプレート」が置かれているので、移植するときは参考になります:

もし動けば、コンパクトで、速くなる?かも:

-

両方の「仮想マシン」を作成して、試してみるのもアリ:

-


4). XBPS:

XBPS(X Binary Package System)パッケージマネージャー:

-

XBPS 0.60.5_1(2025年9月19日 現在)

XBPS は「パッケージマネージャ」で、二条項 BSD ライセンスでゼロから書かれています。

→提供と改善がしやすいように、開発途中で、最もゆるいライセンス形式に変更されたようです:

-


5). xbps-src:

xbps-src は「xbps パッケージビルダー」(ビルドシステム)で、二条項 BSD ライセンスでゼロから書かれています。

-

参考:

-

(1). Void Linux は、XBPS パッケージマネージャのテストディストリビューションとして、
NetBSD の開発者である Juan Romero Pardines によって2008年に作成されたみたい。

-

(2). 「xbps-src」に影響を与えた?かもしれない、「pkgsrc」について:

「pkgsrc」は FreeBSDports システムから派生したもので、 はじめは NetBSD 専用として開発されていました。その後、 多くののプラットフォーム(Linux を含む)に対応しています。

参考:

Chapter 1. pkgsrc とは何か

-


6). 二条項 BSD ライセンス:

OS や付属するアプリの配布や改善がしやすいように、「旧 BSD ライセンス(四条項 BSD ライセンス)」から「第三条」、「第四条」を削除して、制限をゆるくしたライセンスが採用されています:

参考:

BSD 2-Clause License

-

-


現在のOS のバージョンを表示:

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ホストOS : 「Xubuntu 24.04.3 LTS」

2025-10-17 現在

-

カーネル:
$ uname -r
:
6.8.0-85-generic

→LTS版は安定志向なので、更新の回数は少なめです:

-

リリース:
$ cat /etc/lsb-release
:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

→LTS 版の更新(ポイントリリース)は、6ヶ月前後で、
 今は「24.04.3」にアップされています

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
:
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ゲストOS : 「Void Linux

2025-10-17 現在

-

カーネル:
$ uname -r
6.12.52_1

Ubuntu よりも進んでいます:

-

リリース:
$ cat /etc/os-release
:
NAME="Void"
ID="void"
PRETTY_NAME="Void Linux"
HOME_URL="https://voidlinux.org/"
DOCUMENTATION_URL="https://docs.voidlinux.org/"
LOGO="void-logo"
ANSI_COLOR="0;38;2;71;128;97"

DISTRIB_ID="void"

→ローリングリリースです:

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-


- --- - --- - --- - --- - --- - --- - --- -----

(前回の続き:)

-

-


- --- - --- - --- - --- - --- - --- - --- ----- -

1. 作業前に、「Void Linux」の仮想マシンのクローンを作成:

-

まずは、失敗してもすぐに戻せるように、「クローン」(仮想マシンのコピー)を作成しました:

-

ディスクの空きが許せば、各ポイントでクローンを作成したいところですが、
サイズが大きいので、せいぜい 2つかな。

-

仮想マシンのショートカット(差分)を作るやり方もありますが、 管理が面倒なので、個人的には使っていません。

もし、ディスクの空きが少なく、使うときは、(わけがわからなくなるので)ひとつだけ、にするのがポイント:

-


1). 「仮想マシン」のクローンを作成:

-

(1). 「仮想マシン」の電源オフ:

-

(2). Virtualbox マネージャにて操作:

-

(3). 「仮想マシン」の「Void-Linux」を右クリック→「クローン」

-

名前: 「Void-Linux の原本1」

→「完了」

-

コピーが終わるまで待ちます:

-

(4).「Void-Linux の原本1」にて、「説明」をクリックして、コメントを追記:

-


2). 「Void-Linux の原本1」はさわらずに、「Void-Linux」を選んで、

→「起動」をクリック:

-


3). ログイン画面が表示:

-


4). デスクトップ画面が表示:

-


5). Ctrl+Alt+T で「端末」を起動:

→ログイン画面よりも画面が広がったことに注目:

こちらが設定の「ディスプレイ」で設定している解像度(1600x900)です:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- --

2. 「xbps-src」のビルド環境をセットアップ:

-

Void Linux にて、公式リポジトリにないソフトウェアを
「ソースからビルドして、インストール」するには、「xbps-src」スクリプト)ツールを使います:

セットアップに失敗した場合は、「void-packages」フォルダを削除して、やり直せます:

-

参考:

Github に置かれた 2つの説明書:

-

「Void Linux」のリポジトリには、「XBPSソースパッケージコレクション」が含まれており、それを使って、Void Linux 配布用のバイナリパッケージがビルドされています:

-

リポジトリに含まれている「xbps-src」スクリプトを使うと、

「ソースを取得」→「コンパイル」→「コンパイル」したファイルを「DestDir」に配置でき、

「xbps-install」および「xbps-query」コマンドで、インストールまたはクエリできる、

「XBPS」バイナリパッケージを生成できます。

-


1). システム更新:

$ sudo xbps-install -Su

-

カーネルの更新があったので、再起動:
$ sudo reboot

-


2). 「xbps-src」で使われるツールがあるか確認:

-

(1). 必要なツール:
GNU bash
xbps >= 0.56
git
common POSIX utilities included by default in almost all UNIX systems
curl
flock - util-linux
bsdtar or GNU tar
install - GNU coreutils
objcopy、objdump、strip、: binutils

→これらのツールの多くは、Void Linux の基本的な「base-system」パッケージなどに含まれていますが、 足りないパッケージがあるかも:

-

(2). 試しに、インストールされているか、いくつかを確認:
$ xbps-query -l | grep -e binutils -e curl -e git
:
ii binutils-2.44_2                           GNU binary utilities
ii binutils-doc-2.44_2                       GNU binary utilities - info files
ii binutils-libs-2.44_2                      GNU binary utilities - shared libraries
ii curl-8.16.0_1                             Client that groks URLs
ii libcurl-8.16.0_1                          Multiprotocol file transfer library

→「git」がインストールされていません:

-

(3). 「git」がインストールされていないことを確認:
$ xbps-query -s git
$

-

(4). リポジトリを確認:
$ xbps-query -Rs git | grep Tool
:
[-] etckeeper-1.18.23_1                   Tools to store /etc in a git, mercurial, or darcs repository
[-] git-2.51.0_1                          Git Tree History Storage Tool
[-] git-all-2.51.0_1                      Git Tree History Storage Tool - meta-package for complete Git installation
[-] git-cvs-2.51.0_1                      Git Tree History Storage Tool - CVS support
[-] git-gui-2.51.0_1                      Git Tree History Storage Tool - GUI tool
[-] git-libsecret-2.51.0_1                Git Tree History Storage Tool - libsecret credential helper
[-] git-mediate-1.1.0_1                   Tool to help resolving git conflicts
[-] git-netrc-2.51.0_1                    Git Tree History Storage Tool - netrc credential helper
[-] git-scalar-2.51.0_1                   Tool for managing large Git repositories
[-] git-svn-2.51.0_1                      Git Tree History Storage Tool - Subversion support

→多いので絞り込み:

-

(5). 「git」のインストール:
$ sudo xbps-install -S git
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...

Name                Action    Version           New version            Download size
perl-Digest-HMAC    install   -                 1.04_1                 4354B 
perl-Authen-SASL    install   -                 2.1800_1               24KB 
perl-Convert-BinHex install   -                 1.125_3                21KB 
perl-IO-stringy     install   -                 2.113_2                27KB 
perl-TimeDate       install   -                 2.33_2                 25KB 
perl-MailTools      install   -                 2.21_3                 45KB 
perl-MIME-tools     install   -                 5.515_1                114KB 
perl-Net-SSLeay     install   -                 1.94_2                 282KB 
perl-URI            install   -                 5.21_1                 57KB 
perl-IO-Socket-SSL  install   -                 2.095_1                167KB 
perl-Net-SMTP-SSL   install   -                 1.04_3                 3123B 
git                 install   -                 2.51.0_1               9119KB 

-

(6). 「git」がインストールされたか確認:
$ xbps-query -l | grep -e binutils -e curl -e git
:
ii binutils-2.44_2                           GNU binary utilities
ii binutils-doc-2.44_2                       GNU binary utilities - info files
ii binutils-libs-2.44_2                      GNU binary utilities - shared libraries
ii curl-8.16.0_1                             Client that groks URLs
ii git-2.51.0_1                              Git Tree History Storage Tool
ii libcurl-8.16.0_1                          Multiprotocol file transfer library

-

$ xbps-query -s git
:
[*] git-2.51.0_1 Git Tree History Storage Tool

→インストールされました:

-


3). 作業フォルダの作成:

$ mkdir -p ~/git/

-


4). 「void-packages」の git リポジトリをクローン(ローカルにコピー):

$ cd ~/git/
$ git clone https://github.com/void-linux/void-packages.git --depth=10

→「--depth=10」を付けて、ダウンロードする履歴の数を制限しました:

すべての履歴をダウンロードしても、スキルがないので利用できず、時間とディスク容量が無駄です:

-


5). 参考: 「--depth=10」を付けたときの、ディスク容量:

-

(1). 「--depth=10」を付けないで、clone した場合:
$ df | grep -e 使用 -e sda
:
ファイルシス   1K-ブロック     使用  使用可 使用% マウント位置
/dev/sda2         24592720 14160792 9157356   61% /
/dev/sda1          1046508      152 1046356    1% /boot/efi

→「61%」

ダウンロードだけでなく、チェックもかかるので、時間がかかりました:

-

(2). フォルダを削除:
$ sudo rm -R void-packages
パスワード: 
$ 

-

初期のサイズ:

$ df | grep -e 使用 -e sda
:
ファイルシス   1K-ブロック     使用  使用可 使用% マウント位置
/dev/sda2         24592720 13436104 9882044   58% /
/dev/sda1          1046508      152 1046356    1% /boot/efi

→「58%」

-

(3). 「--depth=10」を付けて、clone した場合:
$ df | grep -e 使用 -e sda
:
ファイルシス   1K-ブロック     使用  使用可 使用% マウント位置
/dev/sda2         24592720 13592516 9725632   59% /
/dev/sda1          1046508      152 1046356    1% /boot/efi

→「59%」

あっという間に終わりました:

-

(4). 結果を見たいので、「tree」ツールをインストール:
$ sudo xbps-install tree
:
Name Action    Version           New version            Download size
tree install   -                 2.2.1_1                45KB 

-

(5). tree の結果が大きいので、ファイルに出力:
$ pwd
/home/user/git
$ tree -a >~/ドキュメント/tree.md

-

(6). tree の実行結果の確認:
$ less ~/ドキュメント/tree.md

→q で表示終了:

-


6). 「xbps-src」をセットアップ:

$ cd ~/git/void-packages/
$ ./xbps-src binary-bootstrap

→バイナリパッケージからの「ブートストラップ」は、最初のビルド時に自動で行われますが、手動で行っておくのが確実です:

:
77 downloaded, 77 installed, 0 updated, 77 configured, 0 removed, 0 on hold.
=> xbps-src: installed base-chroot successfully!
=> xbps-src: reconfiguring base-chroot...
glibc-locales: configuring ...
Generating GNU libc locales...
  C.UTF-8... done.
  en_US.UTF-8... done.
glibc-locales: configured successfully.
ca-certificates: configuring ...
ca-certificates: configured successfully.
=> xbps-src: removing autodeps, please wait...
=> xbps-src: cleaning up masterdir...
[user@user-pc void-packages]$ 

glibcロケールが英語に設定されました:

完了:

-


7). 「制限付き」とマークされた、配布に制限のあるパッケージもビルドできるように設定ファイルに追加:

-

(1). 作業前の確認:
$ cd ~/git/void-packages/

-

$ ls -1p etc
:
defaults.conf
defaults.virtual
xbps.d/

-

(2). 「~/git/void-packages/etc/conf」に設定を追加:
$ cd ~/git/void-packages/
$ echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf

-

$ ls -1p etc
:
conf    ←(新規作成)
defaults.conf
defaults.virtual
xbps.d/

-

(3). 確認:
$ cat ~/git/void-packages/etc/conf
XBPS_ALLOW_RESTRICTED=yes

→和訳: 「XBPS_制限付き許可」=はい

-


8). 再起動:

$ sudo reboot

-

確認:
$ cd ~/git/void-packages/

-

$ ls -1p
:
CONTRIBUTING.md
COPYING
Manual.md
README.md
common/
etc/
hostdir/
masterdir-x86_64/
srcpkgs/
xbps-src

-

$ ls -1p hostdir/
:
binpkgs/
repocache-x86_64/
sources/

-

$ ls masterdir-x86_64
:
bin       destdir  home  lib32  mnt   root  sys  var
boot      dev      host  lib64  opt   run   tmp  void-packages
builddir  etc      lib   media  proc  sbin  usr

-

$ ls masterdir-x86_64/destdir/
$ 

-

$ ls masterdir-x86_64/builddir/
$

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ---

3. 「featherpad」アプリを「パッケージ化」する場合:

-

トライした履歴は「項番 21.」を参照:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----

3-1. 「FeatherPad」アプリを、そのまま「パッケージ化」:

-


1). ビルド環境に移動:

$ cd ~/git/void-packages/

-


2). 「テンプレート」ファイルを確認:

$ cat ~/git/void-packages/srcpkgs/FeatherPad/template
# Template file for 'FeatherPad'
pkgname=FeatherPad
version=1.6.2
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="libX11-devel libXext-devel qt6-svg-devel hunspell-devel"
short_desc="Lightweight Qt6 plain-text editor for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/tsujan/FeatherPad"
changelog="https://github.com/tsujan/FeatherPad/raw/master/ChangeLog"
distfiles="https://github.com/tsujan/FeatherPad/archive/V${version}.tar.gz"
checksum=9753796b2a525a4d6b13696681e9fbb094edcc20e8aadffcd5bb6fe22d0a5fdb

→「distfiles=」の ${version} に「version=」の値が入ります:

-


3). パッケージ化:

$ cd ~/git/void-packages/
$ ./xbps-src pkg FeatherPad
:
=> Registering new packages to /host/binpkgs
index: added `FeatherPad-1.6.2_1' (x86_64).
index: 1 packages registered.
=> FeatherPad-1.6.2_1: removing autodeps, please wait...
=> FeatherPad-1.6.2_1: cleaning build directory...
=> FeatherPad: removing files from destdir...
[user@user-pc void-packages]$ 

→完了:

パッケージは「hostdir/binpkgs」に生成されます:

-


4). すでにインストールしている「FeatherPad」を削除:

ギリギリまで使いました:

-

$ sudo xbps-remove FeatherPad
:
Name       Action    Version       New version        Download size
FeatherPad remove    1.6.2_1       -                  - 

→設定ファイルは残ります:

-


5). 「パッケージ化」されたパッケージを、インストール:

今回は、制限のない、通常のパッケージです:

$ sudo xbps-install --repository hostdir/binpkgs FeatherPad
:
Name       Action    Version       New version        Download size
FeatherPad install   -             1.6.2_1            - 

-


6). インストールされたか確認:

$ xbps-query -s FeatherPad
:
[*] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-

実行ファイルの場所:

$ which featherpad
/usr/bin/featherpad

→小文字です:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- -----

3-2. アプリ名が小文字の「featherpad」アプリを新規作成し、ソースを修正して「パッケージ化」:

-

「FeatherPad」アプリはそのままで、小文字に変えた「featherpad」アプリを「新規作成」しました:

「ヘルプ」を日本語化する代わりに、役に立つ「xbps-src」の「備忘録」を表示するようにしました:

ちなみに、「備忘録」はテキストファイルなので、運用中に簡単に修正できます:

-


1). フォルダを作成:

$ cd ~/git/void-packages/
$ sudo mkdir -p srcpkgs/featherpad/patches/

-


2). 「テンプレート」ファイルを作成:

$ sudo featherpad ~/git/void-packages/srcpkgs/featherpad/template

↓ すべて貼り付け:

# Template file for 'featherpad'
pkgname=featherpad
version=1.6.2
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="libX11-devel libXext-devel qt6-svg-devel hunspell-devel"
short_desc="Lightweight Qt6 plain-text editor for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/tsujan/FeatherPad"
changelog="https://github.com/tsujan/FeatherPad/raw/master/ChangeLog"
distfiles="https://github.com/tsujan/FeatherPad/archive/V${version}.tar.gz"
checksum=9753796b2a525a4d6b13696681e9fbb094edcc20e8aadffcd5bb6fe22d0a5fdb

→Ctrl+S で保存:

-


3). 「パッチ」ファイルを作成 1:

「help」を新規作成するために、「help」を削除:

-

$ sudo featherpad ~/git/void-packages/srcpkgs/featherpad/patches/01.help-del.patch

↓ すべて貼り付け:

--- a/featherpad/data/help   2025-10-11 15:08:34.023423019 +0900
+++ b/featherpad/data/help  1970-01-01 09:00:00.000000000 +0900
@@ -1,292 +0,0 @@
-***************
-*   General   *
-***************
-
-FeatherPad is a single-instance application by default; all its windows share the same configuration and the same process, which will terminate only if all windows are closed.
-
-However, if FeatherPad is started with the command-line option "--standalone" or "-s", it will have a single window with a separate process, independently of other FeatherPad windows.
-
-Rarely, the standalone mode may be needed. For example, if you want to use FeatherPad as the "git" editor, you will need "featherpad -s" as the editor command because "git" does not work correctly with single-instance editors.
-
-Use the standalone mode with care. If a standalone window is opened alongside other windows, any change in configuration, recent files, etc., which may have been made in those windows, will not be reflected by it, and if it is the last closed window, it will overwrite those changes.
-
-The standalone mode is also an exception to the window/tab managing rules explained in this document.
-
-Enter "featherpad --help" in a terminal emulator to see all command-line options.
-
-NOTE: FeatherPad makes use of D-Bus to have a single process. Therefore, in (non-Linux) systems without D-Bus, it is always in the standalone mode, which means that its windows do not know about each other.
-
-*********************
-*   Drag-and-Drop   *
-*********************
-
-Files can be dragged and dropped into FeatherPad windows.
-
-Also, tabs can be dragged from a window and dropped into another window or outside all FeatherPad windows. In the first case, the dropped tab will appear after the previously active tab; in the second case, a new window containing the dropped tab will be created, i.e. the tab will be detached.
-
-************
-*   Tabs   *
-************
-
-Tabs can be reordered or detached by the mouse.
-
-If there is more than one tab, each one will have a right-click menu for closing its right or left tabs. With more than one tab, it is also possible to detach the active tab by clicking the related item on the File menu or with Ctrl+T.
-
-If a file is opened in a tab, the right-click menu of that tab will also contain two items for copying the name and path of the file as well as an item for opening its containing folder with the default file manager.
-
-For users' comfort, double clicking on an empty area of the tab-bar creates a new tab.
-
-There are (customizable) shortcuts for switching tabs in various ways (see the File menu), but Ctrl+Tab is not one of them because the Tab key is reserved for text editing (see Keyboard Shortcuts, near the end of this document).
-
-***********************
-*   File Management   *
-***********************
-
-Under X11, if there is a FeatherPad window on the current virtual desktop or viewport, so that more than half of its width as well as its height is visible, files will be opened as new tabs in it; otherwise, a new window will be created. Also, when the window on the current desktop/viewport has a modal dialog, another window is created.
-
-In this way, FeatherPad is aware of X11 virtual desktops under most Linux desktop environments, although there are exceptions (like Enlightenment).
-
-Files are always opened after the active tab unless it is empty, in which case the first file will be opened in it. If a single file is opened, its tab will be activated, but in the case of multiple files, the active tab will not change.
-
-If a file is opened multiple times, its second (third,…) instance will be uneditable by default and will have a light yellow or dark red background, depending on whether the default or the dark color scheme is used. To make it editable, click on the newly created 'Edit' button on the toolbar or the 'Edit' menu. After that, these two buttons will disappear again.
-
-If the opened file is a symbolic link (symlink), the context menu of its tab will have two extra items for copying its target path and opening its target inside the current window.
-
-Executable script files could be run from inside FeatherPad if the corresponding option is enabled in the Preferences dialog. Then also a Run button will appear on the toolbar and the File menu whenever needed. If no terminal command is used to run them, their output and error messages will be shown by a popup dialog.
-
-FeatherPad remembers recently modified or opened files, depending on which option is enabled in the Preferences dialog. It can also open the files of the last window on a session startup. However, it has a more advanced session manager, which provides the user with options for saving a session and restoring or removing saved sessions at any time and without limit.
-
-***********************************
-*   Sessions and Side-Pane Mode   *
-***********************************
-
-Sessions can be saved and opened by using the Session Manager dialog. As mentioned above, there is no limit to the number of stored sessions. Each session can have any name and consist of any number of files. All files of a session are opened in the current FeatherPad window, and their cursor positions are remembered.
-
-FeatherPad also has a side-pane mode, which can be enabled either temporarily or with startup. It is most suitable for working with sessions because its file list is alphabetically ordered and can be filtered. Each pane item has a right-click menu, which contains menu-items for various jobs when there is more than one page. Items can also be removed by middle-clicking without being selected.
-
-The side-pane mode does not have features provided by tabs — for example, tab drag-and-drop is missing from it — and conversely — for example, tabs are not sorted and cannot be filtered — but the side-pane and tab modes can be used interchangeably by means of the Side-Pane menu-item, its toolbar button or its shortcut (Ctrl+Alt+P by default), and also by middle-clicking an empty space inside the tab-bar or side-pane.
-
-To focus the side-pane when another widget has the focus, press Ctrl+Escape. To return the focus to the editor's main view from the side-pane or anywhere else, press the Escape key.
-
-*****************
-*   Encodings   *
-*****************
-
-FeatherPad tries to guess encodings when opening files. Although it often guesses them right, there is no exact way for that. Therefore, there are some encodings in the Options menu. If you choose one, the text could be saved with it by using the item "Save with Encoding" on the File menu. By default, all texts are saved with UTF-8, which covers all alphabets.
-
-As Qt6 has removed the support for the legacy encodings, they are also removed from FeatherPad. Usually, you do not need to worry about encodings; nowadays, UTF-8 is the standard and is used everywhere.
-
-*****************************
-*   Programming Languages   *
-*****************************
-
-The programming language of a file is detected based on its mime type or name, and its syntax will be highlighted if the syntax highlighting is enabled and supports the language in question.
-
-If a text has no programming language or its syntax is not supported, only its hyperlinks/URLs will be highlighted, and it will be possible to open them by right clicking them and activating the related menu-item or by pressing the Control key, moving the cursor over them, and clicking them while the cursor is like a pointing hand.
-
-If the option "Preferences → Text → Support syntax override" is enabled and checked, a language button will be added to the status bar for overriding the original syntax or lack of it. Reloading a document restores its original syntax.
-
-There are also options in the Preferences dialog for showing whitespaces (spaces, tabs), line and document ends, and vertical position lines when syntax highlighting is enabled (by default or temporarily).
-
-The colors of syntax highlighting can be customized in "Preferences → Syntax Colors". Each syntax color may have different meanings in different programming languages, but only the most important meanings are mentioned. The color value of whitespaces can be changed in the same place.
-
-*******************************
-*   Searching and Replacing   *
-*******************************
-
-In FeatherPad, searching and replacing are done by separate widgets for the user to be able to search one string and replace another. Moreover, a separate replacement widget may prevent an unintentional replacement.
-
-To remove the yellow highlights after finishing a search, you could
-
-* Click on the 'Clear' icon of the search entry, or
-* Press Ctrl+K while the search entry has focus, or
-* Empty the search entry and press Enter or F3 in it, or
-* Hide the search bar by focusing it (with Ctrl+F) and then, pressing Ctrl+F (again).
-
-Each search entry has a search history which can be shown as a popup list by clicking its arrow or by pressing Ctrl+Up/Down when it has focus. The topmost item shows the most recent searched text. When the entry has focus, Up and Down arrow keys as well as PageUp and PageDown keys can be used for selecting history items without showing the popup list: Up and Down change the selection by one item, while PageUp and PageDown select the topmost (most recent) and bottommost (oldest) items respectively.
-
-FeatherPad can use a shared history for all search entries, whether they are in the same window or in different windows of the same FeatherPad process. By default, each search entry has a separate history but that can be changed by checking "Preferences → Window → Use a shared search history".
-
-The shared search history starts with every session and is forgotten as soon as the session ends (i.e., when all windows are closed — there is no point in remembering the search history indefinitely).
-
-The 'Replace' docked window respects the settings for 'Match Case', 'Whole Word' and 'Regular Expression' on the search bar (in the last case, the matching text should be a regular expression, while the replacing text is always an ordinary string, although capturing groups like "\1", "\2",… are supported in it). It can be detached from and reattached to the main window at top or bottom. To remove the green highlights after replacing text, you could either hide/close the 'Replace' docked window or do as in the case of removing yellow search highlights.
-
-The 'Replace' docked window is never shown without the search bar because the settings of the latter are needed by the former.
-
-Pressing the Escape key is the easiest way of focusing the editor's main view, without changing anything else.
-
-NOTE: The Escape key never clears the search/replacement entry because the user might want to resume searching/replacing later. To clear the search/replacement entry when it is focused, press Ctrl+K.
-
-******************************
-*   Selection Highlighting   *
-******************************
-
-If "Preferences → Text → Selection highlighting" is checked, all case-sensitive and whole matches of the selected text will be highlighted by a light blue color (or dark blue when the dark color scheme is used). The selected text does not need to be a whole string but the highlighted matches are always whole strings.
-
-The selection highlighting can be used for finding nearby whole strings quickly. It is separate from the (yellow) search highlighting and can be used besides it.
-
-***********************
-*   Going to A Line   *
-***********************
-
-The Jump bar can be shown by clicking its item on the toolbar or the Search menu. Jumping will happen after pressing Enter while the Jump spinbox is active. If the checkbox beside it is checked, all the text between the text cursor and the target line will be selected.
-
-******************
-*   Status Bar   *
-******************
-
-The status bar not only shows information about the opened file but can also contain other widgets when certain properties are enabled in the Preferences dialog. You could also hide it in the Preferences dialog, in which case, the item "Document Properties" will appear on the File menu and could show it temporarily.
-
-***********************
-*   Wheel Scrolling   *
-***********************
-
-If the cursor is inside the text view, the speed of (mouse) wheel scrolling will be normal. If, in addition, the Shift key is pressed, the text will scroll one line per wheel turn.
-
-"Inertial" scrolling can be enabled in the Text section of the Preferences dialog. It creates a kind of inertia with wheel scrolling when the cursor is inside the text view.
-
-For fast wheel scrolling, put the cursor on the vertical scrollbar. Then, each step of wheel turn moves the view by one page. If the Shift key is also pressed, the view will be moved by half the page.
-
-Also, see the section "Keyboard Shortcuts" → "Scrolling", below.
-
-********************
-*   Text Tabbing   *
-********************
-
-A single text line could be tabbed by the Tab key and untabbed by Shift+Tab (which is also called "BackTab") if the cursor is at its start. If multiple lines are (partially) selected, Tab and BackTab will affect all of them, regardless of the cursor position.
-
-If Ctrl+Tab is used, the tabulation will be done by 4 spaces instead of a tab (the number of spaces can be changed in the Preferences dialog). This is sometimes called "soft tab".
-
-In FeatherPad, "hard" and "soft" tabs are not mutually exclusive because some texts may need one and some the other.
-
-With Ctrl+Meta+Tab, the text will be tabbed by 2 spaces, while Shift+Meta+Tab is for 2-space untabbing as far as possible.
-
-All text tabs of a document can be converted to spaces (soft tabs) by using the menu item "Text Tabs to Spaces" in the right-click menu or the "Edit" menu. This conversion is done based on the value of Preferences → Text → Text tab size, which is 4 by default. The document needs to be saved after the conversion.
-
-************************
-*   Column Selection   *
-************************
-
-A text column can be selected, starting from the current text cursor, by holding Shift+Ctrl and pressing the left mouse button anywhere inside the text, such that the positions of the current text cursor and the press point become two diagonal corners of the column.
-
-If the left mouse button is kept pressed and Shift+Ctrl is still held, moving the mouse will change the column, until the left mouse button is released.
-
-A column is deselected when the text cursor is moved in any way (e.g. by arrow keys, or by clicking anywhere without holding Shift+Ctrl) and on some other occasions, but it is kept intact on right clicking. With a selected column, the items "Cut", "Copy", "Paste" and "Delete" in the right-click and Edit menus work on that column. Column pasting may be a little confusing at first, but it can be used for pasting a copied column on another.
-
-If a character is typed when a column is selected, that character is inserted before it for all of its rows, without deselecting it. This property can be used, e.g., for commenting out multiple lines of codes together. Also, Backspace moves the whole column backward by removing the characters that immediately precede it, and the Delete key deletes the column.
-
-However, the Enter and BackTab keys do not make sense with a column, and so, they simply deselect it and do their normal jobs at the cursor position (to untab multiple lines, select them in the usual way and press the BackTab key, as explained in the section "Text Tabbing", above).
-
-NOTE: Column selection is useful only with unwrapped lines, although it is possible with wrapped lines too. Also, it may seem counter-intuitive with non-monospace fonts, with multi-character or double-width graphemes, or where hard tabs are used instead of soft tabs, because it is based on the number of characters, not their widths.
-
-********************
-*   Auto-Bracket   *
-********************
-
-With "auto-bracketing" enabled in Preferences, if a left parenthesis, brace, square bracket or double-quote is typed, a right parenthesis, brace, square bracket or double-quote will respectively be inserted after it and the cursor will be moved between them, provided that the next character is not a letter or number. (Although double-quote is not a bracket and has identical left and right signs, it is included in this.)
-
-Also, if any part of the text is selected from end to start, typing of a left parenthesis, brace, etc. will add a right one after the selection end, so that the selection will be put inside parentheses, braces, etc.
-
-For user convenience, if Enter/Return is pressed after a text selection is auto-bracketed by parentheses "(...)" or braces "{...}", the bracketed text will be put below the left bracket and above the right one.
-
-The same holds for RTL (right-to-left) texts but with right and left reversed.
-
-****************************
-*   Ellipsis and Em Dash   *
-****************************
-
-With the corresponding option enabled in Preferences and under proper circumstances, a triple period is replaced by an ellipsis ("…") and a double hyphen by an em dash (long dash, "—") while the user is typing.
-
-The proper circumstances depend on the pressed key and, maybe, what comes before those characters. For example, in the case of a triple period, the Space or Enter/Return key should be pressed and the triple period should not follow a period. Double hyphens are not replaced in programming languages because they may have special meanings.
-
-Some other strings may also be replaced appropriately in non-programming languages, e.g., "->", ">=" and "<=" may be changed to "→", "≥" and "≤" respectively. The existence of these characters are guaranteed by all good fonts.
-
-**********************
-*   Spell Checking   *
-**********************
-
-For spell checking, a Hunspell dictionary should be first added to Preferences → Text → Hunspell dictionary path (a Hunspell dictionary has the suffix ".dic" and should be accompanied by an affix file with the suffix ".aff"). Spell checking can be done by F2, but its shortcut can be customized.
-
-If "Ignore All" is clicked, all instances of the word will be ignored during the current check. If you know that the word is correct, you could click "Add To Dictionary" and it will be saved for all checks. If "Correct All" is clicked, other instances of the word will be corrected in the same way when reached during the current check.
-
-**************************
-*   Keyboard Shortcuts   *
-**************************
-
-To change a customizable shortcut, double click it and press your chosen shortcut inside the shortcut editor of the Preferences dialog. To clear a shortcut, use a modifier key (like Shift). To cancel, press the Escape key before the shortcut loses focus.
-
-All shortcuts, except for the extra ones below, can be found on menus or as tooltips, and many of them can be customized in the Preferences dialog.
-
-NOTE: Text editing shortcuts may be different for non-Linux OS's.
-
-Useful Extra (Hidden) Shortcuts:
-=================================
-
-Window:
-*********
-Escape              Focus the editor's main view without changing anything else
-Ctrl+Escape         Focus the side-pane if existing
-F11                 (Un-)Fullscreen
-
-Zooming:
-**********
-Ctrl+=              Zoom in (also Ctrl++ or Ctrl + mouse wheel)
-Ctrl+-              Zoom out (also Ctrl + mouse wheel)
-Ctrl+0              Reset zooming
-
-Running a process:
-********************
-Ctrl+E              Run the executable file opened in this tab (only if enabled in Preferences)
-Ctrl+Alt+E          Exit (kill) the above process immediately
-
-Scrolling:
-***********
-Shift+Mouse Wheel     If cursor is inside view, scroll up/down by one wrapped line;
-                      if cursor is on vertical scrollbar, scroll up/down by half the page
-Alt+Mouse Wheel       If cursor is inside view, scroll horizontally when horizontal
-                      scrollbar is visible (which may happen when wrapping is disabled)
-Ctrl+Up/Down          Scroll up/down by one wrapped line without moving text cursor
-Ctrl+PageUp/PageDown  Scroll up/down by one page without moving text cursor
-
-Moving text cursor:
-********************
-Home                Go to to the line start plus the indentation
-End                 Go to to the line end
-Ctrl+Home           Go to to the text start
-Ctrl+End            Go to to the text end
-Right/Left          Move the cursor one character to the right/left
-Ctrl+Right/Left     Move the cursor one word to the right/left
-Up/Down             Go to the same position in the previous/next wrapped line
-Shift+Up/Down       Go to the same position in the previous/next wrapped line while selecting text
-Meta+Up/Down        Go to the same position in the previous/next (real) line
-Meta+Shift+Up/Down  Go to the same position in the previous/next (real) line while selecting text
-PageUp/PageDown     Go to the same position in the previous/next page
-
-Text tabulation:
-*****************
-Tab                 Ordinary text tabulation (its length can be changed in Preferences)
-Shift+Tab           BackTab (the reverse of Tab)
-Ctrl+Tab            4-space text tabulation (can be changed in Preferences)
-Ctrl+Meta+Tab       2-space text tabulation
-Shift+Meta+Tab      2-space BackTab, as far as possible
-
-Text editing:
-**************
-Insert              Toggle overwrite mode
-Backspace           Delete to the left of the text cursor
-Ctrl+Backspace      Delete to the the start of the word
-Delete              Delete to the right of the text cursor (the opposite of Backspace)
-Ctrl+Delete         Delete to the end of the word (the opposite of Ctrl+Backspace)
-Ctrl+K              Delete to the end of the line (when the editor has focus)
-Ctrl+Shift+Up/Down  Move the current line or selected lines upward/downward
-Shift+Enter         Insert newline with the non-letter prefix of the current line
-                    (to write code comments or lists easily, for example)
-
-***********************
-*   Multiple Clicks   *
-***********************
-
-Double click          Select a whole word
-Ctrl + Double click   Select between spaces
-Triple click          Select a line without its leading and trailing whitespaces
-Ctrl + Triple click   Select a whole line plus its trailing newline if any

→Ctrl+S で保存:

-


4). 「パッチ」ファイルを作成 2:

「help」を "別の内容" で、新規作成:

ちなみに、下記の内容を変更するときは、行頭の「+」と、「行数」を変えてはいけません:

-

$ sudo featherpad ~/git/void-packages/srcpkgs/featherpad/patches/02.help-translation-jp.patch

↓ すべて貼り付け:

--- a/featherpad/data/help   1970-01-01 09:00:00.000000000 +0900
+++ b/featherpad/data/help  2025-10-11 23:47:17.689850053 +0900
@@ -0,0 +1,457 @@
+ sudo featherpad /usr/share/featherpad/help
+
+################################################################
+######### 「xbps-src」の使い方 ################################
+
+
+1). <パッケージ名> をビルドして、パッケージ化:
+
+$ cd ~/git/void-packages/
+$ ./xbps-src pkg <パッケージ名>
+
+
+2). パッケージ化した <パッケージ名> をインストール:
+
+$ sudo xbps-install --repository hostdir/binpkgs <パッケージ名>
+
+
+3). インストールされたか確認:
+
+$ xbps-query -Rs <パッケージ名>
+
+
+-
+
+##################################################################
+######### 「xbps-src」の「ヘルプ表示」(和訳)####################
+
+$ cd ~/git/void-packages/
+$ ./xbps-src --help
+
+---------------------------------------------------------------
+$ xbps-src [オプション] <ターゲット> [引数]
+---------------------------------------------------------------
+
+-
+
+##################################################################
+(1). ターゲットの説明: (1つだけが指定できます)
+
+-
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+binary-bootstrap
+ ホストリポジトリから <masterdir> にブートストラップパッケージを、インストールします。  
+ オプションの  '-A <arch>' フラグが設定されている場合、このアーキテクチャから  
+ ブートストラップパッケージとその必要な XBPS ユーティリティがインストールされます。  
+ <masterdir> は、chroot 操作のために初期化されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+bootstrap
+ ソースからブートストラップパッケージを <masterdir> にビルドして、インストールします。  
+ オプションの '-A <arch>' フラグが設定されている場合、このアーキテクチャから  
+ ブートストラップパッケージとその必要な XBPS ユーティリティをビルドして、インストール
+ します。
+ <masterdir> は、chroot 操作のために初期化されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+bootstrap-update
+ XBPS 設定ファイルの登録リポジトリから利用可能な、最新のバージョンでブートストラップ
+ パッケージを更新します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+consistency-check
+ すべてのパッケージで一貫性チェックを、実行します
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+chroot
+ <masterdir> の chroot に、入ります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+clean-repocache
+ <hostdir>/repocache から時代遅れのパッケージを、削除します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+fetch <パッケージ名>
+ パッケージのソースファイルを、ダウンロードします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+extract <パッケージ名>
+ パッケージのソースファイルを、ビルドディレクトリに展開します。
+ デフォルトは、<masterdir>/builddir に設定されます。
+
+ →「hostdir/sources/」ディレクトリにダウンロードはされませんが、
+ ビルドディレクトリ「masterdir-x86_64/builddir/」に、ソースが展開されます:
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+patch <パッケージ名>
+ パッケージソースにパッチを当て、設定とビルドのために  
+ パッケージを準備するために必要な、他の操作を実行します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+configure <パッケージ名>
+ パッケージを構成します(Fetch + Extract + Patch + Configure)
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+build <パッケージ名>
+ パッケージのソースをビルドします(Fetch + Extract + Patch + Configure + Build)
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+check <パッケージ名>
+ パッケージのソースをビルドした後に、パッケージのチェックを実行します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+install <パッケージ名>
+ ターゲットのパッケージを <destdir> にインストールしますが、  
+ 検査目的なので、バイナリパッケージのビルドをせず、ビルドディレクトリも削除しません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+pkg <パッケージ名>
+ <パッケージ名> のバイナリパッケージ、およびすべての必要な依存関係をビルドして、
+ パッケージ化します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+clean [パッケージ名]
+ 自動で依存関係を削除し、<masterdir>/builddir および <masterdir>/destdir を
+ クリーンアップします。
+ もし、<パッケージ名> が指定されている場合は、<masterdir>/destdir のパッケージ
+ ファイルと <masterdir>/buiddir のビルドディレクトリが削除されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+list
+  chroot される <masterdir>  にインストールされたパッケージの一覧を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+remove <パッケージ名>
+  <destdir> からターゲットパッケージを削除します。  
+  ビルドテンプレートと <パッケージ名>-<version> が一致していない場合は、何も
+ 削除されません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+remove-autodeps
+  自動的にインストールされたすべてのパッケージの依存関係を削除します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+purge-distfiles
+  <hostdir>/sources の、すべての時代遅れの distfiles を削除します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show <パッケージ名>
+  指定されたパッケージの情報を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-avail <パッケージ名>
+    特定のアーキテクチャ用にパッケージをビルドできる場合は「0」を返します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-build-deps <パッケージ名>
+    <パッケージ名> に必要なビルドの依存関係を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-check-deps <パッケージ名>
+    <パッケージ名> に必要なチェックの依存関係を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-deps <パッケージ名>
+    <パッケージ名> の必要な ランタイムの依存関係を表示します。
+ パッケージは DestDir にインストールする必要があります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-files <パッケージ名>
+ <パッケージ名> によってインストールされたファイルを表示します。  
+ パッケージは DestDir にインストールする必要があります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-hostmakedepends <パッケージ名>
+ <パッケージ名>の必要なホストビルド依存関係を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-makedepends <パッケージ名>
+ <パッケージ名> の必要なターゲットビルド依存関係を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-options <パッケージ名>
+ <パッケージ名>による利用可能なビルドオプションを表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-shlib-provides <パッケージ名>
+ <パッケージ名> の提供された shlibs のリストを表示します。
+ パッケージは DestDir にインストールする必要があります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-shlib-requires <パッケージ名>
+ <パッケージ名>に必要なshlibsのリストを表示します。
+ パッケージは DestDir にインストールする必要があります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-var <var>
+ xbps-src で定義されている場合、<var> の値を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-repo-updates
+ XBPS リポジトリの時代遅れのパッケージのリストを表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-sys-updates
+ システム内の時代遅れのパッケージのリストを表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-local-updates
+ ローカルリポジトリの時代遅れのパッケージのリストを表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+sort-dependencies <pkg> <pkgN+1> ...
+ 追加の引数として、指定されたパッケージのリストが与えられた場合、  
+ ソートされた依存関係リストが 標準出力 に返されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-bulk
+ 時代遅れのシステムリポジトリ内のすべてのパッケージを再ビルドします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-sys
+ 時代遅れのシステム内のすべてのパッケージを再ビルドし、それらを更新します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-local
+ 時代遅れのローカルリポジトリのすべてのパッケージを再ビルドします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-check <パッケージ名>
+ 新しいリリースについて、<パッケージ名> の上流サイトをチェックします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-hash-cache
+ 既存のソース distfiles で、ハッシュキャッシュを更新します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+zap
+ ccache、distcc および host ディレクトリが保存された、masterdir を削除します。
+
+
+-
+
+################################################################
+(2). オプションの説明:
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-1  
+ ターゲットパッケージの依存関係が欠けている場合は、それらをビルドせずに、失敗
+ します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-A <ホスト>
+ 指定のホストマシンを使用します。
+ masterdir-<ホスト> がまだ存在しない場合は自動的に作成されます。
+
+ 一部のホストマシンは、プロセッサによってネイティブにサポートされていない場合、
+  qemu-user と binfmt-support を必要とする場合があります。
+
+サポートされているホスト:
+
+   aarch64-musl
+   aarch64
+   armv5te-musl
+   armv5te
+   armv5tel-musl
+   armv5tel
+   armv6hf-musl
+   armv6hf
+   armv6l-musl
+   armv6l
+   armv7hf-musl
+   armv7hf
+   armv7l-musl
+   armv7l
+   i686-musl
+   i686
+   mips-musl
+   mipsel-musl
+   mipselhf-musl
+   mipshf-musl
+   ppc-musl
+   ppc
+   ppc64-musl
+   ppc64
+   ppc64le-musl
+   ppc64le
+   ppcle-musl
+   ppcle
+   riscv64-musl
+   riscv64
+   x86_64-musl
+   x86_64
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-a  <ターゲット>
+指定されたターゲットマシンのパッケージをクロスコンパイルします。
+
+サポートされているターゲット:
+
+   aarch64-musl
+   aarch64
+   armv5te-musl
+   armv5te
+   armv5tel-musl
+   armv5tel
+   armv6hf-musl
+   armv6hf
+   armv6l-musl
+   armv6l
+   armv7hf-musl
+   armv7hf
+   armv7l-musl
+   armv7l
+   i686-musl
+   i686
+   mips-musl
+   mipsel-musl
+   mipselhf-musl
+   mipshf-musl
+   ppc-musl
+   ppc
+   ppc64-musl
+   ppc64
+   ppc64le-musl
+   ppc64le
+   ppcle-musl
+   ppcle
+   riscv64-musl
+   riscv64
+   x86_64-musl
+   x86_64
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-b
+ 壊れているとマークされている、nocross、またはアーチで除外されている場合でも、
+ パッケージをビルドします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-c  <configuration>
+ <configuration> が指定されている場合、etc/conf.<configuration> は、主要な
+ 構成ファイル名として使用されます。
+ etc/conf が存在しない場合にのみ試行されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-C  
+ インストールが成功した後、ビルドディレクトリ、自動依存関係、パッケージ用の
+ destdir を削除しません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-E
+ ターゲットパッケージのリポジトリに、バイナリパッケージが存在する場合は、
+ それをビルドせず、すぐに終了します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-f  
+ 正常に実行された場合でも、指定されたステージ(構成/ビルド/インストール/パッケージ化)
+ を実行します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-G  Enable XBPS_USE_GIT_REVS(詳細については、etc/defaults.conf を参照してください)
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-g
+ デバッグシンボルを備えた -dbg パッケージのビルドを有効にします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-H  <hostdir>
+ unset がデフォルトで、「void-packages/hostdir」がある場合に、
+ <masterdir>/host にマウントされる、バインドされるディレクトリへの絶対パスを指定。
+ host ディレクトリには、リモートリポジトリからダウンロードされたバイナリパッケージ、
+ ソース、パッケージの依存関係が保存されています。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-h
+ 使い方を表示。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-I  
+ ソースを展開/読み込むのに役立つ必要な依存関係を無視します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-i 
+ xbps-src の内部エラーを致命的なエラーにしません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-j  
+ パッケージをビルドするときに使用する並列ビルドジョブ(プロセッサ)の数を指定。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-L
+ ASCII の色を無効にします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-m  <masterdir>
+ unset がデフォルトで「void-packages/masterdir-<host>」がある場合に、
+ masterdir として使用するディレクトリへの絶対パスを指定。
+ masterdir は、パッケージを構築/保存/コンパイルする、メインとなるディレクトリです。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-N
+ リモートリポジトリの使用を無効にして、依存関係を解決します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-o  <opt,~opt2,...>
+ パッケージビルドオプションを有効または(`~` を付けて)無効にします。
+ 「etc/conf」がすでにいくつかを指定している場合、それはマージされています。
+ 依存関係をビルドする必要がある場合、これらのオプションを継承する場合、
+ これらのオプションはビルド内のすべてのパッケージに適用されることに注意
+ してください。
+
+ 'show-options' target でサポートされているオプションを表示できます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-p  <variable,variable2,...>
+ ターゲットを表示するには、デフォルトの変数に加えて指定された変数を表示します。
+ 変数は分割され、各単語はデフォルトで別々の行で表示されます。
+ 値全体を 1行で表示するには、asterisk を変数名に追加します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-Q  
+ ターゲットパッケージのみのチェックステージを実行します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-K  
+ 長いテストでチェックステージを実行します。
+ -Q とは異なり、これはビルドされた依存関係のチェックステージも実行されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-q  
+ xbps-src の情報出力をしません。(ビルド出力は引き続き表示されます)
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-r  <repo>
+ 代替ローカルリポジトリを使用して、生成されたバイナリパッケージを保存します。
+ unset がデフォルトで <hostdir>/binpkgs になります。
+
+ もし、set の場合、binpkgs は <hostdir>/binpkgs/<repo> に保存されます。
+ また、この代替リポジトリは、他のリポジトリよりも優先度の高い順序で依存関係を
+ 解決するためにも使用されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-s  
+ いくつかの警告をエラーにします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-t  
+ 現在のものを汚さないように、一時的な masterdir を作成します。
+ 既存の masterdir には、最初に binary-bootstrap を完全に入力する必要があることに
+ 注意してください。
+
+ ターゲットが終了すると、この一時的な masterdir は削除されます。
+ このフラグには xbps-uchroot(1) が必要であり、 overlayfs をサポートしていない
+ ファイルシステムでは機能しません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-v  
+ 詳細なメッセージを表示します(update-check のみに影響します)。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-V  
+ xbps のバージョンを表示して、終了します。
+
+-
+
+##################################################################
+

→Ctrl+S で保存:

-


5). 「パッチ」ファイルを作成 3:

「デスクトップファイル」の修正:

-

$ sudo featherpad ~/git/void-packages/srcpkgs/featherpad/patches/03.featherpad-desktop.patch

↓ すべて貼り付け:

--- a/featherpad/data/featherpad.desktop 2025-10-11 15:08:34.023423019 +0900
+++ b/featherpad/data/featherpad.desktop    2025-10-11 16:17:35.175545023 +0900
@@ -1,5 +1,5 @@
 [Desktop Entry]
-Name=FeatherPad
+Name=featherpad
 GenericName=Text Editor
 GenericName[cs]=Textový editor
 GenericName[da]=Tekstredigering

→Ctrl+S で保存:

-


6). 確認:

$ cd ~/git/void-packages/
$ ls -1p srcpkgs/featherpad/patches/
:
01.help-del.patch
02.help-translation-jp.patch
03.featherpad-desktop.patch

-


7). 「パッケージ化」:

$ cd ~/git/void-packages/
$ ./xbps-src pkg featherpad

-


8). すでにインストールしている「FeatherPad」を削除:

ギリギリまで使いました:

-

$ sudo xbps-remove FeatherPad
:
Name       Action    Version       New version        Download size
FeatherPad remove    1.6.2_1       -                  - 

→設定ファイルは残ります:

-

もしくは、
「featherpad」をインストールしていた場合は、

$ sudo xbps-remove featherpad

-


9). 「パッケージ化」されたパッケージを、インストール:

$ sudo xbps-install --repository hostdir/binpkgs featherpad
:
Name       Action    Version       New version        Download size
featherpad install   -             1.6.2_1            - 

-


10). インストールされたか確認:

$ xbps-query -s featherpad
:
[*] featherpad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

→行の先頭が [*] であれば、インストール済です:

-


11). アプリを起動して、動作確認:

メニュー→「アクセサリー」→「featherpad」

-

ヘルプを表示させると、「xbps-src」の「備忘録」が表示されました:

-

参考:

先頭行に書かれているコマンドで、ヘルプの修正が可能です:

 sudo featherpad /usr/share/featherpad/help

→誤っているところの修正や、見やすくするための修正だけでなく、個人の「備忘録」として書き換えても OK:

「マークダウン」ではなく、単なる「テキストファイル」です:

書き換えた内容は、別のファイルに保存しておくと安心です:

-

もしくは、「パッチ」ファイルを修正して「パッケージ化」し直し、アプリに反映させても OK :

$ sudo featherpad ~/git/void-packages/srcpkgs/featherpad/patches/02.help-translation-jp.patch

→パッチの内容を変更するときは、行頭の「+」と、ファイルの「行数」を変えてはいけません:
 ハマります:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- -

4. 「四川省」 (kshisen) ゲームを移植する場合:

-

ホームページ:

https://apps.kde.org/kshisen/

-

トライした履歴は「項番 22.」を参照:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- --

4-1. 「四川省」 (kshisen) ゲームを、移植してそのまま「パッケージ化」:

-


1). 「kshisen」パッケージのフォルダを作成:

$ cd ~/git/void-packages/srcpkgs/
$ sudo mkdir -p kshisen

-


2). 「テンプレート」ファイルを作成: 

$ sudo featherpad ~/git/void-packages/srcpkgs/kshisen/template
# Template file for 'kshisen'
pkgname=kshisen
version=25.08.1
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="gettext extra-cmake-modules ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"
short_desc="Shisen-Sho is a solitaire-like game"
maintainer="Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/kshisen/"
changelog="https://invent.kde.org/games/kshisen/-/blob/master/ChangeLog"
distfiles="https://invent.kde.org/games/kshisen/-/archive/v${version}/kshisen-v${version}.tar.gz"
checksum=3dfc9498c7899cf6f35f42f7fbf0c4f9b53605e6fc95bad040d2b8f9827c359d

→Ctrl+S で保存:

-


3). 「kshisen」ゲームの「パッケージ化」:

$ cd ~/git/void-packages/
$ ./xbps-src pkg kshisen
:
=> Creating kshisen-25.08.1_1.x86_64.xbps for repository /host/binpkgs ...
=> kshisen-25.08.1_1: running post-pkg hook: 00-register-pkg ...
=> Registering new packages to /host/binpkgs
index: added `kshisen-25.08.1_1' (x86_64).
index: 2 packages registered.
=> kshisen-25.08.1_1: removing autodeps, please wait...
=> kshisen-25.08.1_1: cleaning build directory...
=> kshisen: removing files from destdir...
[user@user-pc void-packages]$ 

→「パッケージ化」が完了しました:

-


4).すでに、 flatpak でインストールされている「kshisen」ゲームを削除:

-

(1). 削除:
$ flatpak uninstall org.kde.kshisen

-

(2). 確認:
$ flatpak list | grep org.kde.kshisen
$ 

-


5). パッケージ化された「kshisen」ゲームをインストール:

$ sudo xbps-install --repository hostdir/binpkgs kshisen
:
Name    Action    Version       New version        Download size
kshisen install   -             25.08.1_1          - 

-


6). インストールされたか確認:

下記のようにしないと表示されません:

$ xbps-query -s kshisen
:
[*] kshisen-25.08.1_1 Shisen-Sho is a solitaire-like game

→行頭が [*] であれば、インストールされています:

-


7). 「kshisen」ゲームを起動して、動作を確認:

「アプリケーション」→「ゲーム」→「Shisen-Sho」

-

実行時の画面:

2回以内の折れで、同じパイを消して行きます。パイが無くなると重力で落ちます。

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ---

4-2. 「四川省」 (kshisen) ゲームを、ソースを修正して「パッケージ化」:

-

アプリの起動メニューを日本語化しました:

-

項番 4-1.」を実施した後に行いました:

-


1). パッチのフォルダを作成:

$ cd ~/git/void-packages/
$ sudo mkdir -p srcpkgs/kshisen/patches/

-


2). パッチを作成:

$ sudo featherpad ~/git/void-packages/srcpkgs/kshisen/patches/01.kshisen-desktop.patch

↓ すべて貼り付け:

--- a/org.kde.kshisen.desktop    2025-10-15 19:30:58.512373693 +0900
+++ b/org.kde.kshisen.desktop   2025-10-15 19:35:15.331386199 +0900
@@ -35,7 +35,7 @@
 Name[id]=Shisen-Sho
 Name[is]=Shisen-Sho
 Name[it]=Shisen-Sho
-Name[ja]=Shisen-Sho
+Name[ja]=Shisen-Sho 四川省
 Name[ka]=Shisen-Sho
 Name[kk]=Сисен-сё
 Name[km]=Shisen-Sho

→Ctrl+S で保存:

-

確認:

$ ls -1p ~/git/void-packages/srcpkgs/kshisen/patches/
:
01.kshisen-desktop.patch

-


3). パッケージ化:

$ cd ~/git/void-packages/
$ ./xbps-src pkg kshisen
:
=> Creating kshisen-25.08.1_1.x86_64.xbps for repository /host/binpkgs ...
=> kshisen-25.08.1_1: running post-pkg hook: 00-register-pkg ...
=> Registering new packages to /host/binpkgs
index: added `kshisen-25.08.1_1' (x86_64).
index: 3 packages registered.
=> kshisen-25.08.1_1: removing autodeps, please wait...
=> kshisen-25.08.1_1: cleaning build directory...
=> kshisen: removing files from destdir...
[user@user-pc void-packages]$ 

-


4). すでにインストールしている「kshisen」アプリを削除:

$ sudo xbps-remove kshisen
:
Name    Action    Version           New version            Download size
kshisen remove    25.08.1_1         -                      - 

-

確認:

$ xbps-query -Rs kshisen
$

-


5). パッケージ化された「kshisen」アプリをインストール:

$ sudo xbps-install --repository hostdir/binpkgs kshisen
:
Name    Action    Version           New version            Download size
kshisen install   -                 25.08.1_1              - 

-

確認:

$ xbps-query -s kshisen
:
[*] kshisen-25.08.1_1 Shisen-Sho is a solitaire-like game

-


6). 「kshisen」アプリを起動して、動作確認:

「アプリケーション」→「ゲーム」→「Shisen-Sho 四川省

→起動メニューが日本語化されました:

-

実行時の画面:

2回以内の折れで、同じパイを消して行きます。パイが無くなると重力で落ちます。

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----

21. 参考: 「featherpad」アプリで、「パッケージ化」にトライした履歴:

-

手順の確認に行った作業なので、こちらの作業は要りません:

-

「featherpad」アプリは、リポジトリからインストールできるので、「xbps-src」に「ソースファイル」が存在します:

-

「featherpad」アプリは何回か、ソースからビルドしたことがあるので、最初に「xbps-src」でビルドを試すには、ピッタリだと思います:

それに「Void Linux」で、大文字を含む「パッケージ名」なのが気になるので、ちょうど良いかも:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- -----

21-1. 「FeatherPad」アプリで、依存パッケージを確認:

-


1). アプリを検索:

$ xbps-query -Rs featherpad
:
[*] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

→インストール済です:

大文字が含まれた「パッケージ名」に注目:

ちなみに、言語パッケージが分離されていないバージョンです:

-


2). パッケージの「ホームページ」を表示:

$ xbps-query FeatherPad -p homepage
:
https://github.com/tsujan/FeatherPad

→小文字では(パッケージ名が一致しないので)表示されません:

-


3). ホームページにある、 FeatherPad/INSTALL で依存を確認:

-

Debian-based systems:

 * cmake
 * g++ >= 12
 * libx11-dev and libxext-dev (for X11)
 * qt6-base-dev (for Qt6)
 * qt6-svg-dev (for hard-coded SVG icons)
 * libhunspell-dev (for spell checking)
 * qt6-base-dev-tools (for localization)

-

Arch-based systems:

 * cmake
 * gcc (or gcc-multilib for multilib systems)
 * libx11 and libxext (for X11)
 * qt6-base (for Qt6)
 * qt6-svg (for hard-coded SVG icons)
 * hunspell (for spell checking)
 * qt6-tools (for localization)

-

Red Hat based systems like Fedora:

 * cmake
 * gcc-c++
 * libX11-devel
 * libXext-devel
 * qt6-qtbase-devel
 * qt6-qtsvg-devel
 * hunspell-devel
 * qt6-qttools-devel

-

「Void Linux」での「パッケージ名」の付け方は、Arch 系に近いです:

Arch 系の依存パッケージまで書いているアプリは少ないと思います:

書かれていたら、参考にできます:

-


4). Arch 系の依存を参考に、パッケージを検索してみる:

ヒット数が多いので、絞り込んで表示:

-

$ xbps-query -Rs cmake | grep '] cmake'
:
[-] cmake-4.1.0_1                      Cross-platform, open-source build system ★
[-] cmake-extras-1.9_1                 Add-ons for CMake build tools from UBPorts
[-] cmake-gui-4.1.0_1                  Cross-platform, open-source build system
[-] cmake-language-server-0.1.11_1     CMake LSP Implementation
[-] cmake-vala-1_2                     Vala CMake modules
[-] cmakelang-0.6.13_2                 Source code formatter for cmake listfiles

-

$ xbps-query -Rs gcc | grep '] gcc'
:
[*] gcc-14.2.1+20250405_2                 GNU Compiler Collection ★
[-] gcc-ada-14.2.1+20250405_2             GNU Compiler Collection - Ada compiler frontend
[-] gcc-fortran-14.2.1+20250405_2         GNU Compiler Collection - Fortran compiler frontend
[-] gcc-go-14.2.1+20250405_2              GNU Compiler Collection - Go compiler frontend
[-] gcc-go-tools-14.2.1+20250405_2        GNU Compiler Collection - Go tools
[-] gcc-multilib-14.2.1+20250405_1        GNU Compiler Collection (multilib files)
[-] gcc-objc-14.2.1+20250405_2            GNU Compiler Collection - Objective-C support
[-] gcc-objc++-14.2.1+20250405_2          GNU Compiler Collection - Objective-C++ support
[-] gcc-objc-multilib-14.2.1+20250405_1   GNU Objective-C compiler (multilib files)
[-] gccmakedep-1.0.3_4                    Program calls 'gcc -M' to output makefile rules

-

$ xbps-query -Rs qt6-base | grep '] qt6-base'
:
[-] qt6-base-6.8.2_5                 Cross-platform application and UI framework (QT6) ★
[-] qt6-base-devel-6.8.2_5           Cross-platform application and UI framework (QT6) - Development files ★
[-] qt6-base-doc-6.8.2_5             Cross-platform application and UI framework (QT6) - Documentation
[-] qt6-base-private-devel-6.8.2_5   Cross-platform application and UI framework (QT6) - private development files
[-] qt6-base-32bit-6.8.2_5           Cross-platform application and UI framework (QT6) (32bit)
[-] qt6-base-devel-32bit-6.8.2_5     Cross-platform application and UI framework (QT6) - Development files (32bit)
[-] qt6-base-private-devel-32bit-6.8.2_5 Cross-platform application and UI framework (QT6) - private development files (32bit)

-

$ xbps-query -Rs qt6-svg | grep '] qt6-svg'
:
[*] qt6-svg-6.8.2_1         Cross-platform application and UI framework (QT6) - qt6-svg component ★
[-] qt6-svg-devel-6.8.2_1   Cross-platform application and UI framework (QT6) - qt6-svg component - development files ★
[-] qt6-svg-32bit-6.8.2_1   Cross-platform application and UI framework (QT6) - qt6-svg component (32bit)
[-] qt6-svg-devel-32bit-6.8.2_1 Cross-platform application and UI framework (QT6) - qt6-svg component - development files (32bit)

-

$ xbps-query -Rs qt6-tools | grep '] qt6-tools'
:
[-] qt6-tools-6.8.2_1                 Cross-platform application and UI framework (QT6) - qt6-tools component ★
[-] qt6-tools-devel-6.8.2_1           Cross-platform application and UI framework (QT6) - qt6-tools component - development files ★
[-] qt6-tools-private-devel-6.8.2_1   Cross-platform application and UI framework (QT6) - qt6-tools component - private development files
[-] qt6-tools-32bit-6.8.2_1           Cross-platform application and UI framework (QT6) - qt6-tools component (32bit)
[-] qt6-tools-devel-32bit-6.8.2_1     Cross-platform application and UI framework (QT6) - qt6-tools component - development files (32bit)
[-] qt6-tools-private-devel-32bit-6.8.2_1 Cross-platform application and UI framework (QT6) - qt6-tools component - private development files (32bit)

-

$ xbps-query -Rs hunspell | grep '] hunspell'
:
[-] hunspell-1.7.2_1               Spell checker and morphological analyzer ★
[-] hunspell-af-25.8.1.1_1         Afrikaans dictionary for hunspell
:
[-] hunspell-devel-1.7.2_1         Spell checker and morphological analyzer - development files ★
[-] hunspell-el_GR-25.8.1.1_1      Greek dictionary for hunspell
[-] hunspell-en-25.8.1.1_1         English dictionary for hunspell
:
[-] hunspell-devel-32bit-1.7.2_1   Spell checker and morphological analyzer - development files (32bit)

→依存する「パッケージ名」があることが確認きました:

-

ソースからビルドするときのように、事前に「依存パッケージ」をインストールしておく必要はありません:

テンプレートファイルを書くための、依存する「パッケージ名」を確認しました。

留意することは、「-devel」が付いた「パッケージ名」にしないとダメなときがあること:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- -

21-2. 「FeatherPad」アプリで、そのまま「パッケージ化」:

-

項番 51.」の手順を参考にしました:

-


1). ビルド環境に移動:

$ cd ~/git/void-packages/

-

$ pwd
/home/user/git/void-packages

-

初期のファイルを確認:

$ ls -1p
CONTRIBUTING.md
COPYING
Manual.md
README.md
common/
etc/
hostdir/   ←パッケージ化のために、ビルド後にインストール(配置)される場所:
masterdir-x86_64/ ←アプリのソースがダウンロードされる場所:
srcpkgs/    ←アプリの「テンプレート」が置かれている場所:
xbps-src

-


2). ビルドしたい「パッケージ」のソースパッケージがあるか確認:

-

(1). 大文字が含まれていることを加味して、検索:
$ cd ~/git/void-packages/
$ ls srcpkgs | grep eather
FeatherPad
font-weather-icons
gnome-weather
libgweather
libgweather-devel
libmateweather
libmateweather-devel
weather
xfce4-weather-plugin

→大文字でヒット:

-

(2). ビルドを指示する「template」ファイルの内容を確認:

というか、「アプリ」のフォルダにあるのは「template」ファイルがひとつだけです:

$ cat ~/git/void-packages/srcpkgs/FeatherPad/template
# Template file for 'FeatherPad'
pkgname=FeatherPad
version=1.6.2
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="libX11-devel libXext-devel qt6-svg-devel hunspell-devel"
short_desc="Lightweight Qt6 plain-text editor for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/tsujan/FeatherPad"
changelog="https://github.com/tsujan/FeatherPad/raw/master/ChangeLog"
distfiles="https://github.com/tsujan/FeatherPad/archive/V${version}.tar.gz"
checksum=9753796b2a525a4d6b13696681e9fbb094edcc20e8aadffcd5bb6fe22d0a5fdb

→「distfiles=」の ${version} に「version=」の値が入ります:

なので、最小限の修正で、アプリのバージョンアップに対応できます:

-

(3). 上記の簡単な(必要最小限の定義の) [テンプレートファイル だけで、ビルドできることに驚きです:

利点:

- アプリのバージョンは、「template」ファイル内で定義されています:
- 「パッケージ名」のフォルダを作るだけで、アプリの「カテゴリ分け」で悩みません:
- 説明行は長くなりがちですが、「short_desc=」なので、1行で収まります:
- ビルドの指示が「build_style=cmake」だけで(定番の手順が実行される)ことに驚き:
- 依存の書き方は羅列してあるだけで、2行で済んでいます。簡単すぎて、驚き:

依存の書き方:

hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="libX11-devel libXext-devel qt6-svg-devel hunspell-devel"

→よく「cmake」の実行時に必要な「pkg-config」のインストールを忘れてエラーしますが、これだと忘れません:

-

(4). 依存がなければ自動でインストール、もしくは、ソースからビルドされます:

ただし、システムにはインストールされません。ビルドを行う仮想の環境にインストールされます:

事前に依存のインストールが必要でないのでエラーしませんが、その分、時間がかかります:

でも、待つだけなので楽です:

-

(5). ダウンロードする「ソースファイル」の指示:
distfiles= がソースファイルが置かれている場所:  
checksum= がファイルのチェックサム値: (sha256sum)

-

$ sha256sum V1.6.2.tar.gz
9753796b2a525a4d6b13696681e9fbb094edcc20e8aadffcd5bb6fe22d0a5fdb  V1.6.2.tar.gz

-

(6). ダウンロードして展開したソースファイルは、ビルドした後にパッケージ化が完了すると、削除されます:

-

(7). なので、「ソース」を修正して、ビルドしたいときは、「xbps-src」に特別なパラメータを与えて、展開した後、ビルドを止める必要があります:

-

(8). ソースファイルがダウンロードされる場所:
~/git/void-packages/hostdir/sources/FeatherPad-1.6.2/V1.6.2.tar.gz

-


3). パッケージをビルド:

-

(1). ビルドして、パッケージの作成まで行う、指示:

「cmake-bootstrap-4.1.0_1」のダウンロードとビルドがあったので、(待っていただけですが)思ったより、時間がかかりました:

-

$ cd ~/git/void-packages/
$ ./xbps-src pkg FeatherPad
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
x86_64-repodata: 10KB [avg rate: 183MB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2022KB [avg rate: 1867KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
x86_64-repodata: 899KB [avg rate: 11GB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> FeatherPad-1.6.2_1: removing autodeps, please wait...
=> FeatherPad-1.6.2_1: building with [cmake] for x86_64...
   [host] qt6-tools-6.8.2_1: found (https://repo-default.voidlinux.org/current)
   [host] qt6-base-devel-6.8.2_5: found (https://repo-default.voidlinux.org/current)
   [host] pkg-config-0.29.2_3: found (https://repo-default.voidlinux.org/current)
   [host] cmake-bootstrap-4.1.0_1: not found
   [host] ninja-1.13.1_1: found (https://repo-default.voidlinux.org/current)
   [target] libX11-devel-1.8.12_2: found (https://repo-default.voidlinux.org/current)
   [target] libXext-devel-1.3.6_1: found (https://repo-default.voidlinux.org/current)
   [target] qt6-svg-devel-6.8.2_1: found (https://repo-default.voidlinux.org/current)
   [target] hunspell-devel-1.7.2_1: found (https://repo-default.voidlinux.org/current)
=> cmake-bootstrap-4.1.0_1: building with [cmake] (dependency of FeatherPad) for x86_64...
   [host] samurai-1.2_1: found (https://repo-default.voidlinux.org/current)
=> cmake-bootstrap-4.1.0_1: installing host dependencies: samurai-1.2_1 ...
=> cmake-bootstrap-4.1.0_1: running do-fetch hook: 00-distfiles ...
=> cmake-bootstrap-4.1.0_1: fetching distfile 'cmake-4.1.0.tar.gz' from 'https://www.cmake.org/files/v4.1/cmake-4.1.0.tar.gz'...
cmake-4.1.0.tar.gz: [11MB 0%] 54MB/s ETA: 00m00s
cmake-4.1.0.tar.gz: [11MB 6%] 17KB/s ETA: 10m37s
cmake-4.1.0.tar.gz: [11MB 7%] 17KB/s ETA: 10m37s
cmake-4.1.0.tar.gz: [11MB 7%] 17KB/s ETA: 10m40s

→「cmake-bootstrap」を作成するための「cmake」がなかったので、ソースをダウンロードしてビルドされています:

ダウンロードに時間がかかります

ダウンロード後は、速すぎて、記録できず:

「cmake-bootstrap-4.1.0_1」がビルドされ、パッケージ化されました:

:
=> cmake-bootstrap-4.1.0_1: running post-install hook: 99-pkglint-warn-cross-cruft ...
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 03-rewrite-python-shebang ...
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 04-generate-provides ...
   cmake-4.1.0_1
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 04-generate-runtime-deps ...
   SONAME: libstdc++.so.6 <-> libstdc++>=4.4.0_1
   SONAME: libm.so.6 <-> glibc>=2.41_1
   SONAME: libgcc_s.so.1 <-> libgcc>=4.4.0_1
   SONAME: libc.so.6 <-> glibc>=2.41_1
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 05-generate-32bit-runtime-deps ...
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 06-verify-python-deps ...
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 90-set-timestamps ...
=> cmake-bootstrap-4.1.0_1: setting mtimes to Fri Oct  3 09:30:25 PM UTC 2025
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 99-pkglint-subpkgs ...
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 99-pkglint ...
=> cmake-bootstrap-4.1.0_1: running pre-pkg hook: 999-collected-rdeps ...
   libstdc++>=4.4.0_1 glibc>=2.41_1 libgcc>=4.4.0_1 
=> cmake-bootstrap-4.1.0_1: running do-pkg hook: 00-gen-pkg ...
=> Creating cmake-bootstrap-4.1.0_1.x86_64.xbps for repository /host/binpkgs/bootstrap ...
=> cmake-bootstrap-4.1.0_1: running post-pkg hook: 00-register-pkg ...
=> Registering new packages to /host/binpkgs/bootstrap
index: added `cmake-bootstrap-4.1.0_1' (x86_64).
index: 1 packages registered.
=> cmake-bootstrap-4.1.0_1: removing autodeps, please wait...
=> cmake-bootstrap-4.1.0_1: cleaning build directory...
=> cmake-bootstrap: removing files from destdir...

=> FeatherPad-1.6.2_1: installing host dependencies: 
qt6-tools-6.8.2_1 qt6-base-devel-6.8.2_5 pkg-config-0.29.2_3 ninja-1.13.1_1 cmake-bootstrap-4.1.0_1 ...
:
=> FeatherPad-1.6.2_1: running do_install ...
[1/2] Creating fpad as a symlink to featherpad
[1/2] Install the project...
-- Install configuration: "None"
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_ar_DZ.qm

: 省略

-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_ja.qm ★
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_ka.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_ko.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_lt.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_nb_NO.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_nl.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_pl.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_pt.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_pt_BR.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_ru.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_si.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_sk_SK.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_sl.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_sv.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_tr.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_uk.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_zh_CN.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/translations/featherpad_zh_TW.qm
-- Installing: /destdir/FeatherPad-1.6.2/usr/bin/featherpad ★
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/applications/featherpad.desktop ★
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/metainfo/featherpad.metainfo.xml
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/icons/hicolor/scalable/apps/featherpad.svg
-- Installing: /destdir/FeatherPad-1.6.2/usr/share/featherpad/help ★
-- Installing: /destdir/FeatherPad-1.6.2/usr/bin/fpad
=> FeatherPad-1.6.2_1: running post-install hook: 00-compress-info-files ...
=> FeatherPad-1.6.2_1: running post-install hook: 00-fixup-gir-path ...
=> FeatherPad-1.6.2_1: running post-install hook: 00-libdir ...
=> FeatherPad-1.6.2_1: running post-install hook: 00-uncompress-manpages ...
=> FeatherPad-1.6.2_1: running post-install hook: 01-remove-misc ...
=> FeatherPad-1.6.2_1: running post-install hook: 02-remove-libtool-archives ...
=> FeatherPad-1.6.2_1: running post-install hook: 02-remove-perl-files ...
=> FeatherPad-1.6.2_1: running post-install hook: 02-remove-python-bytecode-files ...
=> FeatherPad-1.6.2_1: running post-install hook: 03-remove-empty-dirs ...
=> WARNING: FeatherPad-1.6.2_1: removed empty dir: /usr/lib
=> FeatherPad-1.6.2_1: running post-install hook: 04-create-xbps-metadata-scripts ...
   Added trigger 'gtk-icon-cache' for the 'INSTALL' script.
   Added trigger 'update-desktopdb' for the 'INSTALL' script.
   Added trigger 'gtk-icon-cache' for the 'REMOVE' script.
   Added trigger 'update-desktopdb' for the 'REMOVE' script.
=> FeatherPad-1.6.2_1: running post-install hook: 05-generate-gitrevs ...
=> FeatherPad-1.6.2_1: running post-install hook: 06-strip-and-debug-pkgs ...
   Stripped position-independent executable: /usr/bin/featherpad
=> FeatherPad-1.6.2_1: running post-install hook: 10-pkglint-devel-paths ...
=> FeatherPad-1.6.2_1: running post-install hook: 11-pkglint-elf-in-usrshare ...
=> FeatherPad-1.6.2_1: running post-install hook: 12-rename-python3-c-bindings ...
=> FeatherPad-1.6.2_1: running post-install hook: 13-pkg-config-clean-xbps-cross-base-ref ...
=> FeatherPad-1.6.2_1: running post-install hook: 14-fix-permissions ...
=> FeatherPad-1.6.2_1: running post-install hook: 15-qt-private-api ...
=> FeatherPad-1.6.2_1: running post-install hook: 80-prepare-32bit ...
=> FeatherPad-1.6.2_1: running post-install hook: 98-shlib-provides ...
=> FeatherPad-1.6.2_1: running post-install hook: 99-pkglint-warn-cross-cruft ...
=> FeatherPad-1.6.2_1: running pre-pkg hook: 03-rewrite-python-shebang ...
=> FeatherPad-1.6.2_1: running pre-pkg hook: 04-generate-provides ...
   cmd:featherpad-1.6.2_1
=> FeatherPad-1.6.2_1: running pre-pkg hook: 04-generate-runtime-deps ...
   SONAME: libQt6Svg.so.6 <-> qt6-svg>=6.8.1_1
   SONAME: libQt6PrintSupport.so.6 <-> qt6-printsupport>=6.8.1_1
   SONAME: libX11.so.6 <-> libX11>=1.2_1
   SONAME: libhunspell-1.7.so.0 <-> libhunspell1.7>=1.7.0_1
   SONAME: libQt6Widgets.so.6 <-> qt6-widgets>=6.8.1_1
   SONAME: libQt6Gui.so.6 <-> qt6-gui>=6.8.1_1
   SONAME: libQt6DBus.so.6 <-> qt6-dbus>=6.8.1_1
   SONAME: libQt6Core.so.6 <-> qt6-core>=6.8.1_1
   SONAME: libstdc++.so.6 <-> libstdc++>=4.4.0_1
   SONAME: libm.so.6 <-> glibc>=2.41_1
   SONAME: libgcc_s.so.1 <-> libgcc>=4.4.0_1
   SONAME: libc.so.6 <-> glibc>=2.41_1
=> FeatherPad-1.6.2_1: running pre-pkg hook: 05-generate-32bit-runtime-deps ...
=> FeatherPad-1.6.2_1: running pre-pkg hook: 06-verify-python-deps ...
=> FeatherPad-1.6.2_1: running pre-pkg hook: 90-set-timestamps ...
=> FeatherPad-1.6.2_1: setting mtimes to Fri Oct  3 09:30:25 PM UTC 2025
=> FeatherPad-1.6.2_1: running pre-pkg hook: 99-pkglint-subpkgs ...
=> FeatherPad-1.6.2_1: running pre-pkg hook: 99-pkglint ...
=> FeatherPad-1.6.2_1: running pre-pkg hook: 999-collected-rdeps ...
   qt6-svg>=6.8.1_1 qt6-printsupport>=6.8.1_1 libX11>=1.2_1 libhunspell1.7>=1.7.0_1 qt6-widgets>=6.8.1_1 qt6-gui>=6.8.1_1 qt6-dbus>=6.8.1_1 qt6-core>=6.8.1_1 libstdc++>=4.4.0_1 glibc>=2.41_1 libgcc>=4.4.0_1 
=> FeatherPad-1.6.2_1: running do-pkg hook: 00-gen-pkg ...
=> Creating FeatherPad-1.6.2_1.x86_64.xbps for repository /host/binpkgs ...
=> FeatherPad-1.6.2_1: running post-pkg hook: 00-register-pkg ...
=> Registering new packages to /host/binpkgs ★
index: added `FeatherPad-1.6.2_1' (x86_64).
index: 1 packages registered.
=> FeatherPad-1.6.2_1: removing autodeps, please wait...
=> FeatherPad-1.6.2_1: cleaning build directory...
=> FeatherPad: removing files from destdir...
[user@user-pc void-packages]$ 

→ソースからビルドされ、パッケージ化用の destdir ディレクトリ配下にインストールして配置後、 /host/binpkgs 配下にパッケージが作成され、パッケージ化用の destdir ディレクトリがクリア(削除)されました:

-

(2). ビルド中に cmake がないので、自動でインストールされましたが、システムには、インストールされていません:
$ xbps-query -Rs cmake:
:
[-] cmake-4.1.0_1                      Cross-platform, open-source build system
[-] cmake-extras-1.9_1                 Add-ons for CMake build tools from UBPorts
[-] cmake-gui-4.1.0_1                  Cross-platform, open-source build system
[-] cmake-language-server-0.1.11_1     CMake LSP Implementation
[-] cmake-vala-1_2                     Vala CMake modules
[-] cmakelang-0.6.13_2                 Source code formatter for cmake listfiles
[-] corrosion-0.5.2_1                  Tool for integrating Rust into an existing CMake project
[-] extra-cmake-modules-6.18.0_1       Extra modules and scripts for CMake
[-] gccmakedep-1.0.3_4                 Program calls 'gcc -M' to output makefile rules
[-] meson-cmake-wrapper-0.3.4_7        Build system wrapper that provides Meson integration in CMak...
[-] python3-scikit-build-core-0.11.6_1 Python CMake adaptor and API for plugins

-

(3). ちなみに、通常のリポジトリに、下記のパッケージはありません:
$ xbps-query -Rs cmake-bootstrap
$ 

→「xbps-src」を使った、ビルド時に使われるツールのようです:

たぶん、テンプレートファイルに「build_style=cmake」の指定があると、ビルドされると思われます:

-


4). ビルド後のパッケージについて:

-

(1). 通常のパッケージは「hostdir/binpkgs」に生成されます:

初めてのビルドなので、作成されるパッケージは「FeatherPad-1.6.2_1.x86_64.xbps」がひとつだけのはずでしたが、

bootstrap/ に「cmake-bootstrap-4.1.0_1.x86_64.xbps」が作成されました:

-

$ pwd
/home/user/git/void-packages
$ ls -l hostdir/binpkgs/
:
-rw-r--r-- 1 user user 958664 10月  4 23:59 FeatherPad-1.6.2_1.x86_64.xbps
drwxr-xr-x 2 user user   4096 10月  4 23:49 bootstrap
-rw-rw-r-- 1 user user    862 10月  4 23:59 x86_64-repodata

-

(2). 「hostdir/binpkgs/bootstrap」にもパッケージが生成されました:
$ ls -l hostdir/binpkgs/bootstrap/
:
-rw-r--r-- 1 user user 11252481 10月  4 23:49 cmake-bootstrap-4.1.0_1.x86_64.xbps
-rw-rw-r-- 1 user user      720 10月  4 23:49 x86_64-repodata

→今後、「cmake」を使うビルドがあったときは、ここからインストールされ、ビルドの時間が短縮されると思います:

-

(3). 制限のあるパッケージの場合は、「hostdir/binpkgs/nonfree」に生成されます:

今回はなし:

-


5). すでにインストールしている「FeatherPad」を削除:

「FeatherPad」は見やすいので、ギリギリまで使いました:

-

$ sudo xbps-remove FeatherPad
:
Name       Action    Version       New version        Download size
FeatherPad remove    1.6.2_1       -                  - 

→設定ファイルは残ります:

-


6). 「パッケージ化」されたパッケージを、インストール:

ライセンス等の制限があるパッケージなのかで、置かれている場所が異なります:

-

今回は、制限のない、通常のパッケージです:
$ sudo xbps-install --repository hostdir/binpkgs FeatherPad
:
Name       Action    Version       New version        Download size
FeatherPad install   -             1.6.2_1            - 

→Download size に注目:

ダウンロードがないので、サイズの表示はありません:

-


7). インストールされたか確認:

-

下記の、入力の仕方だと、どれも 2つ表示されます:

リモートのリポジトリにあるパッケージに、「パッケージ化」されたパッケージが追加されて表示:

$ xbps-query --repository hostdir/binpkgs FeatherPad -s
:
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-

$ xbps-query -s --repository hostdir/binpkgs FeatherPad
:
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-

$ xbps-query -s FeatherPad --repository hostdir/binpkgs
:
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-

$ xbps-query -Rs FeatherPad --repository hostdir/binpkgs
:
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-

表示がひとつの入力の仕方:
$ xbps-query -s FeatherPad
:
[*] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-

$ xbps-query -Rs FeatherPad
:
[*] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-

実行ファイルの場所:

$ which FeatherPad
which: no FeatherPad in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin)

→実行ファイル名は、パッケージ名と同じではありません:

-

$ which featherpad
/usr/bin/featherpad

→小文字です:

-

通常は、ソースをビルドしてインストールすると「/usr/local/bin/」 に配置されます: 「パッケージ化」されたものをインストールすると、「/usr/bin/」に配置されます:

今回は、パッケージ名を変えていますが、インストール時に配置される実行ファイル名は同じ「featherpad」でした。 なので、パッケージ名を変えての共存はできません:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- --

21-3. 「featherpad」アプリで、アプリ名を小文字に変えて「パッケージ化」:

-

「FeatherPad 1.6.2」で気づいたところ:

  • パッケージ名が「FeatherPad」で、大文字が含まれており、コマンドによっては対象から漏れることがあります:

-

→「FeatherPad」はさわらずに、パッケージ名を小文字にした「featherpad」パッケージを別に作成しました:

-


1). パッケージ名が小文字の「featherpad」フォルダを、別に作成:

「FeatherPad/」フォルダをコピーして作成:

$ cd ~/git/void-packages/srcpkgs/
$ sudo cp -r FeatherPad featherpad

-

確認1:

$ ls FeatherPad/
:
template

-

確認2:

$ ls featherpad/
:
template

-


2). 「featherpad」フォルダの「テンプレート」ファイルを修正:

「パッケージ名」を小文字に修正:

$ sudo featherpad ~/git/void-packages/srcpkgs/featherpad/template

↓ 先頭の 2行(コメント行と、pkgname= 行)を「featherpad」に修正:

# Template file for 'featherpad'
pkgname=featherpad
version=1.6.2
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="libX11-devel libXext-devel qt6-svg-devel hunspell-devel"
short_desc="Lightweight Qt6 plain-text editor for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/tsujan/FeatherPad"
changelog="https://github.com/tsujan/FeatherPad/raw/master/ChangeLog"
distfiles="https://github.com/tsujan/FeatherPad/archive/V${version}.tar.gz"
checksum=9753796b2a525a4d6b13696681e9fbb094edcc20e8aadffcd5bb6fe22d0a5fdb

→Ctrl+S で保存:

-


3). 正常にパッケージ化できるか実行:

$ cd ~/git/void-packages/
$ ./xbps-src pkg featherpad
:
=> featherpad-1.6.2_1: running do-pkg hook: 00-gen-pkg ...
=> Creating featherpad-1.6.2_1.x86_64.xbps for repository /host/binpkgs ... ★
=> featherpad-1.6.2_1: running post-pkg hook: 00-register-pkg ...
=> Registering new packages to /host/binpkgs
index: added `featherpad-1.6.2_1' (x86_64).
index: 3 packages registered.
=> featherpad-1.6.2_1: removing autodeps, please wait...
=> featherpad-1.6.2_1: cleaning build directory...
=> featherpad: removing files from destdir...
[user@user-pc void-packages]$ xbps-query -Rs featherpad
[*] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux
[user@user-pc void-packages]$ 

→正常に終了:

-

ダウンロードした「ソース」が置かれている場所:
$ ls -1p hostdir/sources/
:
FeatherPad-1.6.2/
by_sha256/
cmake-bootstrap-4.1.0/
featherpad-1.6.2/   ←(注目)

-

$ ls -1p hostdir/sources/featherpad-1.6.2/
:
V1.6.2.tar.gz
V1.6.2.tar.gz.part

-

パッケージ化された「パッケージ」が置かれている場所:
$ ls -1p hostdir/binpkgs/
:
FeatherPad-1.6.2_1.x86_64.xbps
bootstrap/
featherpad-1.6.2_1.x86_64.xbps   ←(注目)
x86_64-repodata

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ---

21-4. 「featherpad」アプリで、ソースを修正して「パッケージ化」:

-

「ヘルプ」を日本語化する代わりに、役に立つ「xbps-src」の「備忘録」の表示に変えました:

-

「FeatherPad 1.6.2」で気づいたところ:

  • 「Void Linux」のリポジトリでインストールできる「FeatherPad 1.6.2」は、「アプリ」は日本語で表示されますが、「ヘルプ」は英語です

-

以前の (バージョン: 1.4.1)
$ ls -1p /usr/share/featherpad/
:
help
help_ca
help_ja   ←(注目)
help_pt_BR
translations/

→3つの(国の)翻訳された「ヘルプ」が あります:

「ヘルプ」は単なる「テキストファイル」なので、融通が効きます:
 ヘルプの翻訳についてはサイトに記述がありますが、必要ないのか、気付かないのか、翻訳はなかなか増えません。

-

現在の (バージョン: 1.6.2)
$ ls -1p /usr/share/featherpad/
:
help
translations/

→日本語を含む、翻訳された「ヘルプ」が削除されました。
 翻訳された「ヘルプ」は「需要なし」と判断されたのかも:

 現在はソースに「help_ja」を追加しても、インストール時に配置されなくなりました:
 たぶん、プロジェクトファイルの修正が必要:

-


1). 手動で「help_ja」を配置して、「ヘルプ」が翻訳(反映)される機能が残っているか確認:

-

(1). 「help_ja」の作成:
$ echo " ### Help test ###" >~/ドキュメント/help_ja
$ cat ~/ドキュメント/help_ja
 ### Help test ###

-

(2). ファイルの配置先を確認:
$ ls -1p /usr/share/featherpad/
:
help
translations/

-

(3). ファイルを配置:
$ sudo cp ~/ドキュメント/help_ja /usr/share/featherpad/help_ja
$ ls -1p /usr/share/featherpad/
:
help
help_ja
translations/

-

(4). 再起動:
$ sudo reboot

-

(5). featherpad を起動:

-

(6). ヘルプは英語のままで、「help_ja」の内容が表示されません:
以前まで使えていた、ヘルプの「国コード」での切り替えが削除されました:
→ヘルプを日本語化したい場合は、直接「help」を翻訳(上書き)する必要があります:

-


2). どうせ修正するなら、

新しく作成した「featherpad」パッケージの「ヘルプ」を、単に日本語に翻訳するのでなく、
役に立つ「xbps-src」の「備忘録」に変更しました:

-


3). ソースをダウンロード後、修正して、差分(パッチ)を作成します:

一度、「パッケージ化」を行っていれば、ダウンロードした「ソース」は残っているので、作業は要りません:

-

確認:

$ ls -1p ~/git/void-packages/hostdir/sources/featherpad-1.6.2/
:
V1.6.2.tar.gz
V1.6.2.tar.gz.part

-

もし、ダウンロードされていない場合は、下記の「項番 4).」を実行:

-


4). ソースのダウンロード:

すでにダウンロードされていたら作業は要りません:

$ cd ~/git/void-packages/
$ ./xbps-src fetch featherpad
:
=> featherpad-1.6.2_1: running do-fetch hook: 00-distfiles ...
[user@user-pc void-packages]$ 

-

確認:

$ ls -1p ~/git/void-packages/hostdir/sources/featherpad-1.6.2/
:
V1.6.2.tar.gz
V1.6.2.tar.gz.part

→「fetch」の実行で、「V1.6.2.tar.gz.part」が余分に作られました:

-


5). ソースの展開:

$ cd ~/git/void-packages/
$ ./xbps-src extract featherpad
=> featherpad-1.6.2_1: running do-extract hook: 00-distfiles ...
=> featherpad-1.6.2_1: extracting distfile(s), please wait...
[user@user-pc void-packages]$ 

-

確認:

$ cd ~/git/void-packages/
$ ls masterdir-x86_64/builddir/
:
featherpad-1.6.2

→ソースが展開されました:

-

$ ls -1p masterdir-x86_64/builddir/featherpad-1.6.2/
:
CMakeLists.txt
COPYING
ChangeLog
INSTALL
NEWS
README.md
README_OS2.md
cmake/
featherpad/
screenshots/

-

(1). ヘルプの置かれている場所:
$ cd ~/git/void-packages/
$ ls -1p masterdir-x86_64/builddir/featherpad-1.6.2/featherpad/data/
:
featherpad.desktop
featherpad.metainfo.xml
featherpad.svg
featherpad_os2.ico
featherpad_os2.rc
fp.qrc
help     ←(注目)
icons/
translations/

→英語のヘルプのみで、日本語のヘルプがありません:

-

(2). 翻訳ファイルの置かれている場所:
$ ls -p masterdir-x86_64/builddir/featherpad-1.6.2/featherpad/data/translations/
:
featherpad.ts        featherpad_es.ts  featherpad_it.ts     featherpad_ru.ts
featherpad_ar_DZ.ts  featherpad_et.ts  featherpad_ja.ts     featherpad_si.ts
featherpad_bg.ts     featherpad_fa.ts  featherpad_ka.ts     featherpad_sk_SK.ts
featherpad_ca.ts     featherpad_fi.ts  featherpad_ko.ts     featherpad_sl.ts
featherpad_cs.ts     featherpad_fr.ts  featherpad_lt.ts     featherpad_sv.ts
featherpad_cy.ts     featherpad_he.ts  featherpad_nb_NO.ts  featherpad_tr.ts
featherpad_da.ts     featherpad_hi.ts  featherpad_nl.ts     featherpad_uk.ts
featherpad_de.ts     featherpad_hr.ts  featherpad_pl.ts     featherpad_zh_CN.ts
featherpad_el.ts     featherpad_hu.ts  featherpad_pt.ts     featherpad_zh_TW.ts
featherpad_eo.ts     featherpad_id.ts  featherpad_pt_BR.ts

-


6). 差分ファイル(パッチ)を作成するためのフォルダを作成:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/
$ sudo mkdir -p {a,b}

-

(1). 確認:
$ ls -1p
:
CMakeLists.txt
COPYING
ChangeLog
INSTALL
NEWS
README.md
README_OS2.md
a/     ←(注目)
b/     ←(注目)
cmake/
featherpad/
screenshots/

-

(2). 「a」フォルダにソースをコピー:
$ sudo cp -r featherpad a/

-

(3). 「b」フォルダにソースをコピー:
$ sudo cp -r featherpad b/

-

(4). 確認:
$ ls a/featherpad/data/
:
featherpad.desktop       featherpad_os2.ico  help
featherpad.metainfo.xml  featherpad_os2.rc   icons
featherpad.svg           fp.qrc              translations

-

$ ls b/featherpad/data/
:
featherpad.desktop       featherpad_os2.ico  help
featherpad.metainfo.xml  featherpad_os2.rc   icons
featherpad.svg           fp.qrc              translations

→今のところは、同じ内容です:

-


7). 日本語化しても「ヘルプ」は見てもらえない?と思うので、

翻訳した「xbps-src」のヘルプと「備忘録」が表示されるようにしました:

→これなら役立ちます:

-

以前のバージョンだと、ヘルプファイルに国番号が付いていれば、ヘルプを国際化できましたが、その機能が削除されたので、

直接、「help」ファイルを上書きしました:

-


8). 「help」ファイルの削除:

退避しても、パッケージ化が完了すれば削除されます:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/b/featherpad/data/
$ ls
:
featherpad.desktop       featherpad_os2.ico  help
featherpad.metainfo.xml  featherpad_os2.rc   icons
featherpad.svg           fp.qrc              translations

-

削除:

$ sudo rm help 

-


9). 差分(パッチ)の作成1:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/
$ diff -Naur a b > 01.help-del.patch

→「help」を削除するパッチです:

 ファイル名は任意です:

-


10). 違和感がないように、パッチファイルの先頭行を削除:

$ featherpad 01.help-del.patch

↓ 下記の先頭行を削除:

diff -Naur a/featherpad/data/help b/featherpad/data/help

-

確認:

$ cat 01.help-del.patch
--- a/featherpad/data/help   2025-10-11 15:08:34.023423019 +0900
+++ b/featherpad/data/help  1970-01-01 09:00:00.000000000 +0900
@@ -1,292 +0,0 @@
-***************
-*   General   *
-***************
-
-FeatherPad is a single-instance application by default; all its windows share the same configuration and the same process, which will terminate only if all windows are closed.
-
-However, if FeatherPad is started with the command-line option "--standalone" or "-s", it will have a single window with a separate process, independently of other FeatherPad windows.
-
-Rarely, the standalone mode may be needed. For example, if you want to use FeatherPad as the "git" editor, you will need "featherpad -s" as the editor command because "git" does not work correctly with single-instance editors.
-
-Use the standalone mode with care. If a standalone window is opened alongside other windows, any change in configuration, recent files, etc., which may have been made in those windows, will not be reflected by it, and if it is the last closed window, it will overwrite those changes.
-
-The standalone mode is also an exception to the window/tab managing rules explained in this document.
-
-Enter "featherpad --help" in a terminal emulator to see all command-line options.
-
-NOTE: FeatherPad makes use of D-Bus to have a single process. Therefore, in (non-Linux) systems without D-Bus, it is always in the standalone mode, which means that its windows do not know about each other.
-
-*********************
-*   Drag-and-Drop   *
-*********************
-
-Files can be dragged and dropped into FeatherPad windows.
-
-Also, tabs can be dragged from a window and dropped into another window or outside all FeatherPad windows. In the first case, the dropped tab will appear after the previously active tab; in the second case, a new window containing the dropped tab will be created, i.e. the tab will be detached.
-
-************
-*   Tabs   *
-************
-
-Tabs can be reordered or detached by the mouse.
-
-If there is more than one tab, each one will have a right-click menu for closing its right or left tabs. With more than one tab, it is also possible to detach the active tab by clicking the related item on the File menu or with Ctrl+T.
-
-If a file is opened in a tab, the right-click menu of that tab will also contain two items for copying the name and path of the file as well as an item for opening its containing folder with the default file manager.
-
-For users' comfort, double clicking on an empty area of the tab-bar creates a new tab.
-
-There are (customizable) shortcuts for switching tabs in various ways (see the File menu), but Ctrl+Tab is not one of them because the Tab key is reserved for text editing (see Keyboard Shortcuts, near the end of this document).
-
-***********************
-*   File Management   *
-***********************
-
-Under X11, if there is a FeatherPad window on the current virtual desktop or viewport, so that more than half of its width as well as its height is visible, files will be opened as new tabs in it; otherwise, a new window will be created. Also, when the window on the current desktop/viewport has a modal dialog, another window is created.
-
-In this way, FeatherPad is aware of X11 virtual desktops under most Linux desktop environments, although there are exceptions (like Enlightenment).
-
-Files are always opened after the active tab unless it is empty, in which case the first file will be opened in it. If a single file is opened, its tab will be activated, but in the case of multiple files, the active tab will not change.
-
-If a file is opened multiple times, its second (third,…) instance will be uneditable by default and will have a light yellow or dark red background, depending on whether the default or the dark color scheme is used. To make it editable, click on the newly created 'Edit' button on the toolbar or the 'Edit' menu. After that, these two buttons will disappear again.
-
-If the opened file is a symbolic link (symlink), the context menu of its tab will have two extra items for copying its target path and opening its target inside the current window.
-
-Executable script files could be run from inside FeatherPad if the corresponding option is enabled in the Preferences dialog. Then also a Run button will appear on the toolbar and the File menu whenever needed. If no terminal command is used to run them, their output and error messages will be shown by a popup dialog.
-
-FeatherPad remembers recently modified or opened files, depending on which option is enabled in the Preferences dialog. It can also open the files of the last window on a session startup. However, it has a more advanced session manager, which provides the user with options for saving a session and restoring or removing saved sessions at any time and without limit.
-
-***********************************
-*   Sessions and Side-Pane Mode   *
-***********************************
-
-Sessions can be saved and opened by using the Session Manager dialog. As mentioned above, there is no limit to the number of stored sessions. Each session can have any name and consist of any number of files. All files of a session are opened in the current FeatherPad window, and their cursor positions are remembered.
-
-FeatherPad also has a side-pane mode, which can be enabled either temporarily or with startup. It is most suitable for working with sessions because its file list is alphabetically ordered and can be filtered. Each pane item has a right-click menu, which contains menu-items for various jobs when there is more than one page. Items can also be removed by middle-clicking without being selected.
-
-The side-pane mode does not have features provided by tabs — for example, tab drag-and-drop is missing from it — and conversely — for example, tabs are not sorted and cannot be filtered — but the side-pane and tab modes can be used interchangeably by means of the Side-Pane menu-item, its toolbar button or its shortcut (Ctrl+Alt+P by default), and also by middle-clicking an empty space inside the tab-bar or side-pane.
-
-To focus the side-pane when another widget has the focus, press Ctrl+Escape. To return the focus to the editor's main view from the side-pane or anywhere else, press the Escape key.
-
-*****************
-*   Encodings   *
-*****************
-
-FeatherPad tries to guess encodings when opening files. Although it often guesses them right, there is no exact way for that. Therefore, there are some encodings in the Options menu. If you choose one, the text could be saved with it by using the item "Save with Encoding" on the File menu. By default, all texts are saved with UTF-8, which covers all alphabets.
-
-As Qt6 has removed the support for the legacy encodings, they are also removed from FeatherPad. Usually, you do not need to worry about encodings; nowadays, UTF-8 is the standard and is used everywhere.
-
-*****************************
-*   Programming Languages   *
-*****************************
-
-The programming language of a file is detected based on its mime type or name, and its syntax will be highlighted if the syntax highlighting is enabled and supports the language in question.
-
-If a text has no programming language or its syntax is not supported, only its hyperlinks/URLs will be highlighted, and it will be possible to open them by right clicking them and activating the related menu-item or by pressing the Control key, moving the cursor over them, and clicking them while the cursor is like a pointing hand.
-
-If the option "Preferences → Text → Support syntax override" is enabled and checked, a language button will be added to the status bar for overriding the original syntax or lack of it. Reloading a document restores its original syntax.
-
-There are also options in the Preferences dialog for showing whitespaces (spaces, tabs), line and document ends, and vertical position lines when syntax highlighting is enabled (by default or temporarily).
-
-The colors of syntax highlighting can be customized in "Preferences → Syntax Colors". Each syntax color may have different meanings in different programming languages, but only the most important meanings are mentioned. The color value of whitespaces can be changed in the same place.
-
-*******************************
-*   Searching and Replacing   *
-*******************************
-
-In FeatherPad, searching and replacing are done by separate widgets for the user to be able to search one string and replace another. Moreover, a separate replacement widget may prevent an unintentional replacement.
-
-To remove the yellow highlights after finishing a search, you could
-
-* Click on the 'Clear' icon of the search entry, or
-* Press Ctrl+K while the search entry has focus, or
-* Empty the search entry and press Enter or F3 in it, or
-* Hide the search bar by focusing it (with Ctrl+F) and then, pressing Ctrl+F (again).
-
-Each search entry has a search history which can be shown as a popup list by clicking its arrow or by pressing Ctrl+Up/Down when it has focus. The topmost item shows the most recent searched text. When the entry has focus, Up and Down arrow keys as well as PageUp and PageDown keys can be used for selecting history items without showing the popup list: Up and Down change the selection by one item, while PageUp and PageDown select the topmost (most recent) and bottommost (oldest) items respectively.
-
-FeatherPad can use a shared history for all search entries, whether they are in the same window or in different windows of the same FeatherPad process. By default, each search entry has a separate history but that can be changed by checking "Preferences → Window → Use a shared search history".
-
-The shared search history starts with every session and is forgotten as soon as the session ends (i.e., when all windows are closed — there is no point in remembering the search history indefinitely).
-
-The 'Replace' docked window respects the settings for 'Match Case', 'Whole Word' and 'Regular Expression' on the search bar (in the last case, the matching text should be a regular expression, while the replacing text is always an ordinary string, although capturing groups like "\1", "\2",… are supported in it). It can be detached from and reattached to the main window at top or bottom. To remove the green highlights after replacing text, you could either hide/close the 'Replace' docked window or do as in the case of removing yellow search highlights.
-
-The 'Replace' docked window is never shown without the search bar because the settings of the latter are needed by the former.
-
-Pressing the Escape key is the easiest way of focusing the editor's main view, without changing anything else.
-
-NOTE: The Escape key never clears the search/replacement entry because the user might want to resume searching/replacing later. To clear the search/replacement entry when it is focused, press Ctrl+K.
-
-******************************
-*   Selection Highlighting   *
-******************************
-
-If "Preferences → Text → Selection highlighting" is checked, all case-sensitive and whole matches of the selected text will be highlighted by a light blue color (or dark blue when the dark color scheme is used). The selected text does not need to be a whole string but the highlighted matches are always whole strings.
-
-The selection highlighting can be used for finding nearby whole strings quickly. It is separate from the (yellow) search highlighting and can be used besides it.
-
-***********************
-*   Going to A Line   *
-***********************
-
-The Jump bar can be shown by clicking its item on the toolbar or the Search menu. Jumping will happen after pressing Enter while the Jump spinbox is active. If the checkbox beside it is checked, all the text between the text cursor and the target line will be selected.
-
-******************
-*   Status Bar   *
-******************
-
-The status bar not only shows information about the opened file but can also contain other widgets when certain properties are enabled in the Preferences dialog. You could also hide it in the Preferences dialog, in which case, the item "Document Properties" will appear on the File menu and could show it temporarily.
-
-***********************
-*   Wheel Scrolling   *
-***********************
-
-If the cursor is inside the text view, the speed of (mouse) wheel scrolling will be normal. If, in addition, the Shift key is pressed, the text will scroll one line per wheel turn.
-
-"Inertial" scrolling can be enabled in the Text section of the Preferences dialog. It creates a kind of inertia with wheel scrolling when the cursor is inside the text view.
-
-For fast wheel scrolling, put the cursor on the vertical scrollbar. Then, each step of wheel turn moves the view by one page. If the Shift key is also pressed, the view will be moved by half the page.
-
-Also, see the section "Keyboard Shortcuts" → "Scrolling", below.
-
-********************
-*   Text Tabbing   *
-********************
-
-A single text line could be tabbed by the Tab key and untabbed by Shift+Tab (which is also called "BackTab") if the cursor is at its start. If multiple lines are (partially) selected, Tab and BackTab will affect all of them, regardless of the cursor position.
-
-If Ctrl+Tab is used, the tabulation will be done by 4 spaces instead of a tab (the number of spaces can be changed in the Preferences dialog). This is sometimes called "soft tab".
-
-In FeatherPad, "hard" and "soft" tabs are not mutually exclusive because some texts may need one and some the other.
-
-With Ctrl+Meta+Tab, the text will be tabbed by 2 spaces, while Shift+Meta+Tab is for 2-space untabbing as far as possible.
-
-All text tabs of a document can be converted to spaces (soft tabs) by using the menu item "Text Tabs to Spaces" in the right-click menu or the "Edit" menu. This conversion is done based on the value of Preferences → Text → Text tab size, which is 4 by default. The document needs to be saved after the conversion.
-
-************************
-*   Column Selection   *
-************************
-
-A text column can be selected, starting from the current text cursor, by holding Shift+Ctrl and pressing the left mouse button anywhere inside the text, such that the positions of the current text cursor and the press point become two diagonal corners of the column.
-
-If the left mouse button is kept pressed and Shift+Ctrl is still held, moving the mouse will change the column, until the left mouse button is released.
-
-A column is deselected when the text cursor is moved in any way (e.g. by arrow keys, or by clicking anywhere without holding Shift+Ctrl) and on some other occasions, but it is kept intact on right clicking. With a selected column, the items "Cut", "Copy", "Paste" and "Delete" in the right-click and Edit menus work on that column. Column pasting may be a little confusing at first, but it can be used for pasting a copied column on another.
-
-If a character is typed when a column is selected, that character is inserted before it for all of its rows, without deselecting it. This property can be used, e.g., for commenting out multiple lines of codes together. Also, Backspace moves the whole column backward by removing the characters that immediately precede it, and the Delete key deletes the column.
-
-However, the Enter and BackTab keys do not make sense with a column, and so, they simply deselect it and do their normal jobs at the cursor position (to untab multiple lines, select them in the usual way and press the BackTab key, as explained in the section "Text Tabbing", above).
-
-NOTE: Column selection is useful only with unwrapped lines, although it is possible with wrapped lines too. Also, it may seem counter-intuitive with non-monospace fonts, with multi-character or double-width graphemes, or where hard tabs are used instead of soft tabs, because it is based on the number of characters, not their widths.
-
-********************
-*   Auto-Bracket   *
-********************
-
-With "auto-bracketing" enabled in Preferences, if a left parenthesis, brace, square bracket or double-quote is typed, a right parenthesis, brace, square bracket or double-quote will respectively be inserted after it and the cursor will be moved between them, provided that the next character is not a letter or number. (Although double-quote is not a bracket and has identical left and right signs, it is included in this.)
-
-Also, if any part of the text is selected from end to start, typing of a left parenthesis, brace, etc. will add a right one after the selection end, so that the selection will be put inside parentheses, braces, etc.
-
-For user convenience, if Enter/Return is pressed after a text selection is auto-bracketed by parentheses "(...)" or braces "{...}", the bracketed text will be put below the left bracket and above the right one.
-
-The same holds for RTL (right-to-left) texts but with right and left reversed.
-
-****************************
-*   Ellipsis and Em Dash   *
-****************************
-
-With the corresponding option enabled in Preferences and under proper circumstances, a triple period is replaced by an ellipsis ("…") and a double hyphen by an em dash (long dash, "—") while the user is typing.
-
-The proper circumstances depend on the pressed key and, maybe, what comes before those characters. For example, in the case of a triple period, the Space or Enter/Return key should be pressed and the triple period should not follow a period. Double hyphens are not replaced in programming languages because they may have special meanings.
-
-Some other strings may also be replaced appropriately in non-programming languages, e.g., "->", ">=" and "<=" may be changed to "→", "≥" and "≤" respectively. The existence of these characters are guaranteed by all good fonts.
-
-**********************
-*   Spell Checking   *
-**********************
-
-For spell checking, a Hunspell dictionary should be first added to Preferences → Text → Hunspell dictionary path (a Hunspell dictionary has the suffix ".dic" and should be accompanied by an affix file with the suffix ".aff"). Spell checking can be done by F2, but its shortcut can be customized.
-
-If "Ignore All" is clicked, all instances of the word will be ignored during the current check. If you know that the word is correct, you could click "Add To Dictionary" and it will be saved for all checks. If "Correct All" is clicked, other instances of the word will be corrected in the same way when reached during the current check.
-
-**************************
-*   Keyboard Shortcuts   *
-**************************
-
-To change a customizable shortcut, double click it and press your chosen shortcut inside the shortcut editor of the Preferences dialog. To clear a shortcut, use a modifier key (like Shift). To cancel, press the Escape key before the shortcut loses focus.
-
-All shortcuts, except for the extra ones below, can be found on menus or as tooltips, and many of them can be customized in the Preferences dialog.
-
-NOTE: Text editing shortcuts may be different for non-Linux OS's.
-
-Useful Extra (Hidden) Shortcuts:
-=================================
-
-Window:
-*********
-Escape              Focus the editor's main view without changing anything else
-Ctrl+Escape         Focus the side-pane if existing
-F11                 (Un-)Fullscreen
-
-Zooming:
-**********
-Ctrl+=              Zoom in (also Ctrl++ or Ctrl + mouse wheel)
-Ctrl+-              Zoom out (also Ctrl + mouse wheel)
-Ctrl+0              Reset zooming
-
-Running a process:
-********************
-Ctrl+E              Run the executable file opened in this tab (only if enabled in Preferences)
-Ctrl+Alt+E          Exit (kill) the above process immediately
-
-Scrolling:
-***********
-Shift+Mouse Wheel     If cursor is inside view, scroll up/down by one wrapped line;
-                      if cursor is on vertical scrollbar, scroll up/down by half the page
-Alt+Mouse Wheel       If cursor is inside view, scroll horizontally when horizontal
-                      scrollbar is visible (which may happen when wrapping is disabled)
-Ctrl+Up/Down          Scroll up/down by one wrapped line without moving text cursor
-Ctrl+PageUp/PageDown  Scroll up/down by one page without moving text cursor
-
-Moving text cursor:
-********************
-Home                Go to to the line start plus the indentation
-End                 Go to to the line end
-Ctrl+Home           Go to to the text start
-Ctrl+End            Go to to the text end
-Right/Left          Move the cursor one character to the right/left
-Ctrl+Right/Left     Move the cursor one word to the right/left
-Up/Down             Go to the same position in the previous/next wrapped line
-Shift+Up/Down       Go to the same position in the previous/next wrapped line while selecting text
-Meta+Up/Down        Go to the same position in the previous/next (real) line
-Meta+Shift+Up/Down  Go to the same position in the previous/next (real) line while selecting text
-PageUp/PageDown     Go to the same position in the previous/next page
-
-Text tabulation:
-*****************
-Tab                 Ordinary text tabulation (its length can be changed in Preferences)
-Shift+Tab           BackTab (the reverse of Tab)
-Ctrl+Tab            4-space text tabulation (can be changed in Preferences)
-Ctrl+Meta+Tab       2-space text tabulation
-Shift+Meta+Tab      2-space BackTab, as far as possible
-
-Text editing:
-**************
-Insert              Toggle overwrite mode
-Backspace           Delete to the left of the text cursor
-Ctrl+Backspace      Delete to the the start of the word
-Delete              Delete to the right of the text cursor (the opposite of Backspace)
-Ctrl+Delete         Delete to the end of the word (the opposite of Ctrl+Backspace)
-Ctrl+K              Delete to the end of the line (when the editor has focus)
-Ctrl+Shift+Up/Down  Move the current line or selected lines upward/downward
-Shift+Enter         Insert newline with the non-letter prefix of the current line
-                    (to write code comments or lists easily, for example)
-
-***********************
-*   Multiple Clicks   *
-***********************
-
-Double click          Select a whole word
-Ctrl + Double click   Select between spaces
-Triple click          Select a line without its leading and trailing whitespaces
-Ctrl + Triple click   Select a whole line plus its trailing newline if any

-


11). パッチ1 後の「b」フォルダと同期を合わせるため、「a」フォルダの「help」ファイルを削除:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/a/featherpad/data/
$ ls
:
featherpad.desktop       featherpad_os2.ico  help
featherpad.metainfo.xml  featherpad_os2.rc   icons
featherpad.svg           fp.qrc              translations

-

削除:

$ sudo rm help

-


12). 日本語の「ヘルプ」を(別の内容で)新規作成:

「help_ja」が存在する場合は、「help_ja」を修正し、先頭行の行末を「help」から「help_ja」に置き換えてください:

-

$ sudo featherpad ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/b/featherpad/data/help

↓ 下記をすべて貼り付け:

 sudo featherpad /usr/share/featherpad/help

################################################################
######### 「xbps-src」の使い方 ################################


1). <パッケージ名> をビルドして、パッケージ化:

$ cd ~/git/void-packages/
$ ./xbps-src pkg <パッケージ名>


2). パッケージ化した <パッケージ名> をインストール:

$ sudo xbps-install --repository hostdir/binpkgs <パッケージ名>


3). インストールされたか確認:

$ xbps-query -Rs <パッケージ名>


-

##################################################################
######### 「xbps-src」の「ヘルプ表示」(和訳)####################

$ cd ~/git/void-packages/
$ ./xbps-src --help

---------------------------------------------------------------
$ xbps-src [オプション] <ターゲット> [引数]
---------------------------------------------------------------

-

##################################################################
(1). ターゲットの説明: (1つだけが指定できます)

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
binary-bootstrap
 ホストリポジトリから <masterdir> にブートストラップパッケージを、インストールします。  
 オプションの  '-A <arch>' フラグが設定されている場合、このアーキテクチャから  
 ブートストラップパッケージとその必要な XBPS ユーティリティがインストールされます。  
 <masterdir> は、chroot 操作のために初期化されます。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
bootstrap
 ソースからブートストラップパッケージを <masterdir> にビルドして、インストールします。  
 オプションの '-A <arch>' フラグが設定されている場合、このアーキテクチャから  
 ブートストラップパッケージとその必要な XBPS ユーティリティをビルドして、インストール
 します。
 <masterdir> は、chroot 操作のために初期化されます。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
bootstrap-update
 XBPS 設定ファイルの登録リポジトリから利用可能な、最新のバージョンでブートストラップ
 パッケージを更新します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
consistency-check
 すべてのパッケージで一貫性チェックを、実行します

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
chroot
 <masterdir> の chroot に、入ります。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
clean-repocache
 <hostdir>/repocache から時代遅れのパッケージを、削除します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
fetch <パッケージ名>
 パッケージのソースファイルを、ダウンロードします。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
extract <パッケージ名>
 パッケージのソースファイルを、ビルドディレクトリに展開します。
 デフォルトは、<masterdir>/builddir に設定されます。

 →「hostdir/sources/」ディレクトリにダウンロードはされませんが、
 ビルドディレクトリ「masterdir-x86_64/builddir/」に、ソースが展開されます:

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
patch <パッケージ名>
 パッケージソースにパッチを当て、設定とビルドのために  
 パッケージを準備するために必要な、他の操作を実行します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
configure <パッケージ名>
 パッケージを構成します(Fetch + Extract + Patch + Configure)

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
build <パッケージ名>
 パッケージのソースをビルドします(Fetch + Extract + Patch + Configure + Build)

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
check <パッケージ名>
 パッケージのソースをビルドした後に、パッケージのチェックを実行します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
install <パッケージ名>
 ターゲットのパッケージを <destdir> にインストールしますが、  
 検査目的なので、バイナリパッケージのビルドをせず、ビルドディレクトリも削除しません。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
pkg <パッケージ名>
 <パッケージ名> のバイナリパッケージ、およびすべての必要な依存関係をビルドして、
 パッケージ化します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
clean [パッケージ名]
 自動で依存関係を削除し、<masterdir>/builddir および <masterdir>/destdir を
 クリーンアップします。
 もし、<パッケージ名> が指定されている場合は、<masterdir>/destdir のパッケージ
 ファイルと <masterdir>/buiddir のビルドディレクトリが削除されます。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
list
  chroot される <masterdir>  にインストールされたパッケージの一覧を表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
remove <パッケージ名>
  <destdir> からターゲットパッケージを削除します。  
  ビルドテンプレートと <パッケージ名>-<version> が一致していない場合は、何も
 削除されません。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
remove-autodeps
  自動的にインストールされたすべてのパッケージの依存関係を削除します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
purge-distfiles
  <hostdir>/sources の、すべての時代遅れの distfiles を削除します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show <パッケージ名>
  指定されたパッケージの情報を表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-avail <パッケージ名>
    特定のアーキテクチャ用にパッケージをビルドできる場合は「0」を返します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-build-deps <パッケージ名>
    <パッケージ名> に必要なビルドの依存関係を表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-check-deps <パッケージ名>
    <パッケージ名> に必要なチェックの依存関係を表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-deps <パッケージ名>
    <パッケージ名> の必要な ランタイムの依存関係を表示します。
 パッケージは DestDir にインストールする必要があります。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-files <パッケージ名>
 <パッケージ名> によってインストールされたファイルを表示します。  
 パッケージは DestDir にインストールする必要があります。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-hostmakedepends <パッケージ名>
 <パッケージ名>の必要なホストビルド依存関係を表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-makedepends <パッケージ名>
 <パッケージ名> の必要なターゲットビルド依存関係を表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-options <パッケージ名>
 <パッケージ名>による利用可能なビルドオプションを表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-shlib-provides <パッケージ名>
 <パッケージ名> の提供された shlibs のリストを表示します。
 パッケージは DestDir にインストールする必要があります。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-shlib-requires <パッケージ名>
 <パッケージ名>に必要なshlibsのリストを表示します。
 パッケージは DestDir にインストールする必要があります。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-var <var>
 xbps-src で定義されている場合、<var> の値を表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-repo-updates
 XBPS リポジトリの時代遅れのパッケージのリストを表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-sys-updates
 システム内の時代遅れのパッケージのリストを表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
show-local-updates
 ローカルリポジトリの時代遅れのパッケージのリストを表示します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
sort-dependencies <pkg> <pkgN+1> ...
 追加の引数として、指定されたパッケージのリストが与えられた場合、  
 ソートされた依存関係リストが 標準出力 に返されます。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
update-bulk
 時代遅れのシステムリポジトリ内のすべてのパッケージを再ビルドします。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
update-sys
 時代遅れのシステム内のすべてのパッケージを再ビルドし、それらを更新します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
update-local
 時代遅れのローカルリポジトリのすべてのパッケージを再ビルドします。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
update-check <パッケージ名>
 新しいリリースについて、<パッケージ名> の上流サイトをチェックします。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
update-hash-cache
 既存のソース distfiles で、ハッシュキャッシュを更新します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
zap
 ccache、distcc および host ディレクトリが保存された、masterdir を削除します。


-

################################################################
(2). オプションの説明:

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-1  
 ターゲットパッケージの依存関係が欠けている場合は、それらをビルドせずに、失敗
 します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-A <ホスト>
 指定のホストマシンを使用します。
 masterdir-<ホスト> がまだ存在しない場合は自動的に作成されます。

 一部のホストマシンは、プロセッサによってネイティブにサポートされていない場合、
  qemu-user と binfmt-support を必要とする場合があります。

サポートされているホスト:

    aarch64-musl
    aarch64
    armv5te-musl
    armv5te
    armv5tel-musl
    armv5tel
    armv6hf-musl
    armv6hf
    armv6l-musl
    armv6l
    armv7hf-musl
    armv7hf
    armv7l-musl
    armv7l
    i686-musl
    i686
    mips-musl
    mipsel-musl
    mipselhf-musl
    mipshf-musl
    ppc-musl
    ppc
    ppc64-musl
    ppc64
    ppc64le-musl
    ppc64le
    ppcle-musl
    ppcle
    riscv64-musl
    riscv64
    x86_64-musl
    x86_64

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-a  <ターゲット>
指定されたターゲットマシンのパッケージをクロスコンパイルします。

サポートされているターゲット:

    aarch64-musl
    aarch64
    armv5te-musl
    armv5te
    armv5tel-musl
    armv5tel
    armv6hf-musl
    armv6hf
    armv6l-musl
    armv6l
    armv7hf-musl
    armv7hf
    armv7l-musl
    armv7l
    i686-musl
    i686
    mips-musl
    mipsel-musl
    mipselhf-musl
    mipshf-musl
    ppc-musl
    ppc
    ppc64-musl
    ppc64
    ppc64le-musl
    ppc64le
    ppcle-musl
    ppcle
    riscv64-musl
    riscv64
    x86_64-musl
    x86_64

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-b
 壊れているとマークされている、nocross、またはアーチで除外されている場合でも、
 パッケージをビルドします。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-c  <configuration>
 <configuration> が指定されている場合、etc/conf.<configuration> は、主要な
 構成ファイル名として使用されます。
 etc/conf が存在しない場合にのみ試行されます。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-C  
 インストールが成功した後、ビルドディレクトリ、自動依存関係、パッケージ用の
 destdir を削除しません。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-E
 ターゲットパッケージのリポジトリに、バイナリパッケージが存在する場合は、
 それをビルドせず、すぐに終了します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-f  
 正常に実行された場合でも、指定されたステージ(構成/ビルド/インストール/パッケージ化)
 を実行します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-G  Enable XBPS_USE_GIT_REVS(詳細については、etc/defaults.conf を参照してください)

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-g
 デバッグシンボルを備えた -dbg パッケージのビルドを有効にします。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-H  <hostdir>
 unset がデフォルトで、「void-packages/hostdir」がある場合に、
 <masterdir>/host にマウントされる、バインドされるディレクトリへの絶対パスを指定。
 host ディレクトリには、リモートリポジトリからダウンロードされたバイナリパッケージ、
 ソース、パッケージの依存関係が保存されています。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-h
 使い方を表示。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-I  
 ソースを展開/読み込むのに役立つ必要な依存関係を無視します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-i 
 xbps-src の内部エラーを致命的なエラーにしません。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-j  
 パッケージをビルドするときに使用する並列ビルドジョブ(プロセッサ)の数を指定。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-L
 ASCII の色を無効にします。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-m  <masterdir>
 unset がデフォルトで「void-packages/masterdir-<host>」がある場合に、
 masterdir として使用するディレクトリへの絶対パスを指定。
 masterdir は、パッケージを構築/保存/コンパイルする、メインとなるディレクトリです。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-N
 リモートリポジトリの使用を無効にして、依存関係を解決します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-o  <opt,~opt2,...>
 パッケージビルドオプションを有効または(`~` を付けて)無効にします。
 「etc/conf」がすでにいくつかを指定している場合、それはマージされています。
 依存関係をビルドする必要がある場合、これらのオプションを継承する場合、
 これらのオプションはビルド内のすべてのパッケージに適用されることに注意
 してください。

 'show-options' target でサポートされているオプションを表示できます。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-p  <variable,variable2,...>
 ターゲットを表示するには、デフォルトの変数に加えて指定された変数を表示します。
 変数は分割され、各単語はデフォルトで別々の行で表示されます。
 値全体を 1行で表示するには、asterisk を変数名に追加します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-Q  
 ターゲットパッケージのみのチェックステージを実行します。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-K  
 長いテストでチェックステージを実行します。
 -Q とは異なり、これはビルドされた依存関係のチェックステージも実行されます。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-q  
 xbps-src の情報出力をしません。(ビルド出力は引き続き表示されます)

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-r  <repo>
 代替ローカルリポジトリを使用して、生成されたバイナリパッケージを保存します。
 unset がデフォルトで <hostdir>/binpkgs になります。

 もし、set の場合、binpkgs は <hostdir>/binpkgs/<repo> に保存されます。
 また、この代替リポジトリは、他のリポジトリよりも優先度の高い順序で依存関係を
 解決するためにも使用されます。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-s  
 いくつかの警告をエラーにします。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-t  
 現在のものを汚さないように、一時的な masterdir を作成します。
 既存の masterdir には、最初に binary-bootstrap を完全に入力する必要があることに
 注意してください。

 ターゲットが終了すると、この一時的な masterdir は削除されます。
 このフラグには xbps-uchroot(1) が必要であり、 overlayfs をサポートしていない
 ファイルシステムでは機能しません。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-v  
 詳細なメッセージを表示します(update-check のみに影響します)。

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
-V  
 xbps のバージョンを表示して、終了します。

-

##################################################################

→Ctrl+S で保存:

-


13). 差分(パッチ)の作成2:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/
$ diff -Naur a b > 02.help-translation-jp.patch

→「help」を別の内容で、新規作成するパッチです:

 ファイル名は任意です:

-


14). 違和感がないように、パッチファイルの 先頭行を削除:

$ sudo featherpad 02.help-translation-jp.patch

↓ 下記の先頭行を削除:

diff -Naur a/featherpad/data/help b/featherpad/data/help

-

確認:

$ cat 02.help-translation-jp.patch
--- a/featherpad/data/help   1970-01-01 09:00:00.000000000 +0900
+++ b/featherpad/data/help  2025-10-11 23:47:17.689850053 +0900
@@ -0,0 +1,457 @@
+ sudo featherpad /usr/share/featherpad/help
+
+################################################################
+######### 「xbps-src」の使い方 ################################
+
+
+1). <パッケージ名> をビルドして、パッケージ化:
+
+$ cd ~/git/void-packages/
+$ ./xbps-src pkg <パッケージ名>
+
+
+2). パッケージ化した <パッケージ名> をインストール:
+
+$ sudo xbps-install --repository hostdir/binpkgs <パッケージ名>
+
+
+3). インストールされたか確認:
+
+$ xbps-query -Rs <パッケージ名>
+
+
+-
+
+##################################################################
+######### 「xbps-src」の「ヘルプ表示」(和訳)####################
+
+$ cd ~/git/void-packages/
+$ ./xbps-src --help
+
+---------------------------------------------------------------
+$ xbps-src [オプション] <ターゲット> [引数]
+---------------------------------------------------------------
+
+-
+
+##################################################################
+(1). ターゲットの説明: (1つだけが指定できます)
+
+-
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+binary-bootstrap
+ ホストリポジトリから <masterdir> にブートストラップパッケージを、インストールします。  
+ オプションの  '-A <arch>' フラグが設定されている場合、このアーキテクチャから  
+ ブートストラップパッケージとその必要な XBPS ユーティリティがインストールされます。  
+ <masterdir> は、chroot 操作のために初期化されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+bootstrap
+ ソースからブートストラップパッケージを <masterdir> にビルドして、インストールします。  
+ オプションの '-A <arch>' フラグが設定されている場合、このアーキテクチャから  
+ ブートストラップパッケージとその必要な XBPS ユーティリティをビルドして、インストール
+ します。
+ <masterdir> は、chroot 操作のために初期化されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+bootstrap-update
+ XBPS 設定ファイルの登録リポジトリから利用可能な、最新のバージョンでブートストラップ
+ パッケージを更新します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+consistency-check
+ すべてのパッケージで一貫性チェックを、実行します
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+chroot
+ <masterdir> の chroot に、入ります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+clean-repocache
+ <hostdir>/repocache から時代遅れのパッケージを、削除します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+fetch <パッケージ名>
+ パッケージのソースファイルを、ダウンロードします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+extract <パッケージ名>
+ パッケージのソースファイルを、ビルドディレクトリに展開します。
+ デフォルトは、<masterdir>/builddir に設定されます。
+
+ →「hostdir/sources/」ディレクトリにダウンロードはされませんが、
+ ビルドディレクトリ「masterdir-x86_64/builddir/」に、ソースが展開されます:
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+patch <パッケージ名>
+ パッケージソースにパッチを当て、設定とビルドのために  
+ パッケージを準備するために必要な、他の操作を実行します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+configure <パッケージ名>
+ パッケージを構成します(Fetch + Extract + Patch + Configure)
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+build <パッケージ名>
+ パッケージのソースをビルドします(Fetch + Extract + Patch + Configure + Build)
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+check <パッケージ名>
+ パッケージのソースをビルドした後に、パッケージのチェックを実行します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+install <パッケージ名>
+ ターゲットのパッケージを <destdir> にインストールしますが、  
+ 検査目的なので、バイナリパッケージのビルドをせず、ビルドディレクトリも削除しません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+pkg <パッケージ名>
+ <パッケージ名> のバイナリパッケージ、およびすべての必要な依存関係をビルドして、
+ パッケージ化します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+clean [パッケージ名]
+ 自動で依存関係を削除し、<masterdir>/builddir および <masterdir>/destdir を
+ クリーンアップします。
+ もし、<パッケージ名> が指定されている場合は、<masterdir>/destdir のパッケージ
+ ファイルと <masterdir>/buiddir のビルドディレクトリが削除されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+list
+  chroot される <masterdir>  にインストールされたパッケージの一覧を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+remove <パッケージ名>
+  <destdir> からターゲットパッケージを削除します。  
+  ビルドテンプレートと <パッケージ名>-<version> が一致していない場合は、何も
+ 削除されません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+remove-autodeps
+  自動的にインストールされたすべてのパッケージの依存関係を削除します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+purge-distfiles
+  <hostdir>/sources の、すべての時代遅れの distfiles を削除します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show <パッケージ名>
+  指定されたパッケージの情報を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-avail <パッケージ名>
+    特定のアーキテクチャ用にパッケージをビルドできる場合は「0」を返します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-build-deps <パッケージ名>
+    <パッケージ名> に必要なビルドの依存関係を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-check-deps <パッケージ名>
+    <パッケージ名> に必要なチェックの依存関係を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-deps <パッケージ名>
+    <パッケージ名> の必要な ランタイムの依存関係を表示します。
+ パッケージは DestDir にインストールする必要があります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-files <パッケージ名>
+ <パッケージ名> によってインストールされたファイルを表示します。  
+ パッケージは DestDir にインストールする必要があります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-hostmakedepends <パッケージ名>
+ <パッケージ名>の必要なホストビルド依存関係を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-makedepends <パッケージ名>
+ <パッケージ名> の必要なターゲットビルド依存関係を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-options <パッケージ名>
+ <パッケージ名>による利用可能なビルドオプションを表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-shlib-provides <パッケージ名>
+ <パッケージ名> の提供された shlibs のリストを表示します。
+ パッケージは DestDir にインストールする必要があります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-shlib-requires <パッケージ名>
+ <パッケージ名>に必要なshlibsのリストを表示します。
+ パッケージは DestDir にインストールする必要があります。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-var <var>
+ xbps-src で定義されている場合、<var> の値を表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-repo-updates
+ XBPS リポジトリの時代遅れのパッケージのリストを表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-sys-updates
+ システム内の時代遅れのパッケージのリストを表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+show-local-updates
+ ローカルリポジトリの時代遅れのパッケージのリストを表示します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+sort-dependencies <pkg> <pkgN+1> ...
+ 追加の引数として、指定されたパッケージのリストが与えられた場合、  
+ ソートされた依存関係リストが 標準出力 に返されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-bulk
+ 時代遅れのシステムリポジトリ内のすべてのパッケージを再ビルドします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-sys
+ 時代遅れのシステム内のすべてのパッケージを再ビルドし、それらを更新します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-local
+ 時代遅れのローカルリポジトリのすべてのパッケージを再ビルドします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-check <パッケージ名>
+ 新しいリリースについて、<パッケージ名> の上流サイトをチェックします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+update-hash-cache
+ 既存のソース distfiles で、ハッシュキャッシュを更新します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+zap
+ ccache、distcc および host ディレクトリが保存された、masterdir を削除します。
+
+
+-
+
+################################################################
+(2). オプションの説明:
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-1  
+ ターゲットパッケージの依存関係が欠けている場合は、それらをビルドせずに、失敗
+ します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-A <ホスト>
+ 指定のホストマシンを使用します。
+ masterdir-<ホスト> がまだ存在しない場合は自動的に作成されます。
+
+ 一部のホストマシンは、プロセッサによってネイティブにサポートされていない場合、
+  qemu-user と binfmt-support を必要とする場合があります。
+
+サポートされているホスト:
+
+   aarch64-musl
+   aarch64
+   armv5te-musl
+   armv5te
+   armv5tel-musl
+   armv5tel
+   armv6hf-musl
+   armv6hf
+   armv6l-musl
+   armv6l
+   armv7hf-musl
+   armv7hf
+   armv7l-musl
+   armv7l
+   i686-musl
+   i686
+   mips-musl
+   mipsel-musl
+   mipselhf-musl
+   mipshf-musl
+   ppc-musl
+   ppc
+   ppc64-musl
+   ppc64
+   ppc64le-musl
+   ppc64le
+   ppcle-musl
+   ppcle
+   riscv64-musl
+   riscv64
+   x86_64-musl
+   x86_64
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-a  <ターゲット>
+指定されたターゲットマシンのパッケージをクロスコンパイルします。
+
+サポートされているターゲット:
+
+   aarch64-musl
+   aarch64
+   armv5te-musl
+   armv5te
+   armv5tel-musl
+   armv5tel
+   armv6hf-musl
+   armv6hf
+   armv6l-musl
+   armv6l
+   armv7hf-musl
+   armv7hf
+   armv7l-musl
+   armv7l
+   i686-musl
+   i686
+   mips-musl
+   mipsel-musl
+   mipselhf-musl
+   mipshf-musl
+   ppc-musl
+   ppc
+   ppc64-musl
+   ppc64
+   ppc64le-musl
+   ppc64le
+   ppcle-musl
+   ppcle
+   riscv64-musl
+   riscv64
+   x86_64-musl
+   x86_64
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-b
+ 壊れているとマークされている、nocross、またはアーチで除外されている場合でも、
+ パッケージをビルドします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-c  <configuration>
+ <configuration> が指定されている場合、etc/conf.<configuration> は、主要な
+ 構成ファイル名として使用されます。
+ etc/conf が存在しない場合にのみ試行されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-C  
+ インストールが成功した後、ビルドディレクトリ、自動依存関係、パッケージ用の
+ destdir を削除しません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-E
+ ターゲットパッケージのリポジトリに、バイナリパッケージが存在する場合は、
+ それをビルドせず、すぐに終了します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-f  
+ 正常に実行された場合でも、指定されたステージ(構成/ビルド/インストール/パッケージ化)
+ を実行します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-G  Enable XBPS_USE_GIT_REVS(詳細については、etc/defaults.conf を参照してください)
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-g
+ デバッグシンボルを備えた -dbg パッケージのビルドを有効にします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-H  <hostdir>
+ unset がデフォルトで、「void-packages/hostdir」がある場合に、
+ <masterdir>/host にマウントされる、バインドされるディレクトリへの絶対パスを指定。
+ host ディレクトリには、リモートリポジトリからダウンロードされたバイナリパッケージ、
+ ソース、パッケージの依存関係が保存されています。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-h
+ 使い方を表示。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-I  
+ ソースを展開/読み込むのに役立つ必要な依存関係を無視します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-i 
+ xbps-src の内部エラーを致命的なエラーにしません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-j  
+ パッケージをビルドするときに使用する並列ビルドジョブ(プロセッサ)の数を指定。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-L
+ ASCII の色を無効にします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-m  <masterdir>
+ unset がデフォルトで「void-packages/masterdir-<host>」がある場合に、
+ masterdir として使用するディレクトリへの絶対パスを指定。
+ masterdir は、パッケージを構築/保存/コンパイルする、メインとなるディレクトリです。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-N
+ リモートリポジトリの使用を無効にして、依存関係を解決します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-o  <opt,~opt2,...>
+ パッケージビルドオプションを有効または(`~` を付けて)無効にします。
+ 「etc/conf」がすでにいくつかを指定している場合、それはマージされています。
+ 依存関係をビルドする必要がある場合、これらのオプションを継承する場合、
+ これらのオプションはビルド内のすべてのパッケージに適用されることに注意
+ してください。
+
+ 'show-options' target でサポートされているオプションを表示できます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-p  <variable,variable2,...>
+ ターゲットを表示するには、デフォルトの変数に加えて指定された変数を表示します。
+ 変数は分割され、各単語はデフォルトで別々の行で表示されます。
+ 値全体を 1行で表示するには、asterisk を変数名に追加します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-Q  
+ ターゲットパッケージのみのチェックステージを実行します。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-K  
+ 長いテストでチェックステージを実行します。
+ -Q とは異なり、これはビルドされた依存関係のチェックステージも実行されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-q  
+ xbps-src の情報出力をしません。(ビルド出力は引き続き表示されます)
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-r  <repo>
+ 代替ローカルリポジトリを使用して、生成されたバイナリパッケージを保存します。
+ unset がデフォルトで <hostdir>/binpkgs になります。
+
+ もし、set の場合、binpkgs は <hostdir>/binpkgs/<repo> に保存されます。
+ また、この代替リポジトリは、他のリポジトリよりも優先度の高い順序で依存関係を
+ 解決するためにも使用されます。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-s  
+ いくつかの警告をエラーにします。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-t  
+ 現在のものを汚さないように、一時的な masterdir を作成します。
+ 既存の masterdir には、最初に binary-bootstrap を完全に入力する必要があることに
+ 注意してください。
+
+ ターゲットが終了すると、この一時的な masterdir は削除されます。
+ このフラグには xbps-uchroot(1) が必要であり、 overlayfs をサポートしていない
+ ファイルシステムでは機能しません。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-v  
+ 詳細なメッセージを表示します(update-check のみに影響します)。
+
+-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -
+-V  
+ xbps のバージョンを表示して、終了します。
+
+-
+
+##################################################################
+

-


15). パッチ2 後の「b」フォルダと同期を合わせるため、「b」フォルダの「help」ファイルを「a」フォルダにコピー:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/
$ sudo cp b/featherpad/data/help a/featherpad/data/help

-


16). デスクトップファイルの修正:

$ sudo featherpad ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/b/featherpad/data/featherpad.desktop

-

Name=FeatherPad

↓ 修正:

Name=featherpad

→Ctrl+S で保存:

-


17). 差分(パッチ)の作成3:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/
$ diff -Naur a b > 03.featherpad-desktop.patch

→「デスクトップファイル」(メニューの名前)を修正するパッチです:

 ファイル名は任意です:

-


18). 違和感がないように、パッチファイルの 先頭行を削除:

$ sudo featherpad 03.featherpad-desktop.patch

↓ 下記の先頭行を削除:

diff -Naur a/featherpad/data/featherpad.desktop b/featherpad/data/featherpad.desktop

-

確認:

$ cat 03.featherpad-desktop.patch
--- a/featherpad/data/featherpad.desktop 2025-10-11 15:08:34.023423019 +0900
+++ b/featherpad/data/featherpad.desktop    2025-10-11 16:17:35.175545023 +0900
@@ -1,5 +1,5 @@
 [Desktop Entry]
-Name=FeatherPad
+Name=featherpad
 GenericName=Text Editor
 GenericName[cs]=Textový editor
 GenericName[da]=Tekstredigering

-


19). 「テンプレート」ファイルが置かれた「パッケージ」のフォルダに、「patches」という名前のフォルダを作成:

-

テンプレートファイルがあることを確認:
$ cd ~/git/void-packages/srcpkgs/featherpad/
$ ls
:
template

-

フォルダを作成:
$ sudo mkdir -p patches/

-

確認:
$ ls -1p
:
patches/
template

-


20). そのフォルダに、作成した「.patch」ファイルを移動:

$ cd ~/git/void-packages/srcpkgs/featherpad/
$ sudo mv ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/01.help-del.patch patches/01.help-del.patch 

-

$ sudo mv ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/02.help-translation-jp.patch patches/02.help-translation-jp.patch

-

$ sudo mv ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/03.featherpad-desktop.patch patches/03.featherpad-desktop.patch

-

確認:
$ cd ~/git/void-packages/
$ ls -1p srcpkgs/featherpad
:
patches/
template

-

$ ls -1p srcpkgs/featherpad/patches/
:
01.help-del.patch
02.help-translation-jp.patch
03.featherpad-desktop.patch

-


21). 「差分ファイル」の作成に使った「フォルダ」と「ファイル」を削除:

パッケージ化完了時に、作業フォルダが削除されますが、残がいがあると失敗します:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/featherpad-1.6.2/
$ sudo rm -r a/
$ sudo rm -r b/
$ sudo rm 01.help-del.patch
$ sudo rm 02.help-translation-jp.patch
$ sudo rm 03.featherpad-desktop.patch

-


22). クリーン後、「パッケージ化」してみる:

-

クリーン:
$ cd ~/git/void-packages/
$ ./xbps-src clean featherpad
:
=> featherpad-1.6.2_1: cleaning build directory...
[user@user-pc void-packages]$

-

パッケージ化:
$ cd ~/git/void-packages/
$ ./xbps-src pkg featherpad
:
=> Creating featherpad-1.6.2_1.x86_64.xbps for repository /host/binpkgs ...
=> featherpad-1.6.2_1: running post-pkg hook: 00-register-pkg ...
=> Registering new packages to /host/binpkgs
index: added `featherpad-1.6.2_1' (x86_64).
index: 3 packages registered.
=> featherpad-1.6.2_1: removing autodeps, please wait...
=> featherpad-1.6.2_1: cleaning build directory...
=> featherpad: removing files from destdir...
[user@user-pc void-packages]$  

-


23). 既存の「FeatherPad」アプリを削除:

ギリギリまで使いました:

$ sudo xbps-remove FeatherPad
:
Name       Action    Version           New version            Download size
FeatherPad remove    1.6.2_1           -                      - 

-

確認:

$ xbps-query -Rs FeatherPad
:
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-


24). パッケージ化された「featherpad」アプリをインストール:

$ sudo xbps-install --repository hostdir/binpkgs featherpad
:
Name       Action    Version           New version            Download size
featherpad install   -                 1.6.2_1                - 

-

確認:

$ xbps-query -Rs featherpad
:
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-

$ xbps-query -s featherpad
:
[*] featherpad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

-


25). 「featherpad」アプリを起動して、動作確認:

メニュー→「アクセサリー」→「featherpad」

ヘルプで、「xbps-src」のヘルプが表示されました:

-

見やすく修正したいときは、編集できます:

$ sudo featherpad /usr/share/featherpad/help

-

$ which featherpad
/usr/bin/featherpad

-

$ ls /usr/share/featherpad/
help  translations

→やはり、「help-ORG」は消えました:

-


26). リスト表示してみる:

$ cd ~/git/void-packages/
$ ./xbps-src list
ii acl-2.3.2_1                       Access Control List filesystem support
ii attr-2.5.2_2                      Extended attribute support library for ACL support
ii base-chroot-0.67_3                Minimal set of packages required for chroot with xbps-src
ii base-files-0.145_1                Void Linux base system files
ii binutils-2.44_2                   GNU binary utilities
ii binutils-doc-2.44_2               GNU binary utilities - info files
ii binutils-libs-2.44_2              GNU binary utilities - shared libraries
ii bsdtar-3.8.1_1                    BSD utilities using libarchive
ii bzip2-1.0.8_2                     Freely available, patent free, high-quality data compressor
ii c-ares-1.34.5_1                   Library for asynchronous DNS requests
ii ca-certificates-20250419+3.114_1  Common CA certificates for SSL/TLS from Mozilla
ii ccache-4.10.2_1                   Fast C/C++ Compiler Cache
ii chroot-bash-5.3_1                 GNU Bourne Again Shell -- for xbps-src use
ii chroot-distcc-3.4_1               Distributed compilation for faster C/C++ builds -- for xbps-src use
ii chroot-gawk-5.3.2_1               GNU awk utility -- for xbps-src use
ii chroot-git-2.49.0_1               GIT Tree History Storage Tool -- for xbps-src use
ii chroot-grep-3.11_1                GNU grep utility - for use with xbps-src
ii chroot-util-linux-2.40.2_1        Miscellaneous linux utilities -- for xbps-src use
ii coreutils-9.4_3                   GNU core utilities
ii diffutils-3.12_1                  GNU diff utilities
ii file-5.46_2                       File type identification utility
ii findutils-4.10.0_1                GNU Find Utilities
ii gcc-14.2.1+20250405_2             GNU Compiler Collection
ii gcc-ada-14.2.1+20250405_2         GNU Compiler Collection - Ada compiler frontend
ii glibc-2.41_1                      GNU C library
ii glibc-devel-2.41_1                GNU C library - development files
ii glibc-locales-2.41_1              GNU C library - locale data files
ii gmp-6.3.0_1                       Library for arbitrary precision arithmetic
ii gzip-1.14_1                       GNU compression utility (replacement for compress)
ii jansson-2.14.1_1                  Library for encoding, decoding and manipulating JSON data
ii json-c-0.18_1                     JSON implementation in C
ii kernel-libc-headers-6.14_1        Linux API headers for userland development
ii libada-14.2.1+20250405_2          GNU Compiler Collection - Ada library
ii libada-devel-14.2.1+20250405_2    GNU Compiler Collection - Ada library - development files
ii libarchive-3.8.1_1                Library to read/write several different streaming archive formats
ii libatomic-14.2.1+20250405_2       GNU Compiler Collection - Atomics library
ii libatomic-devel-14.2.1+20250405_2 GNU Compiler Collection - Atomics library - development files
ii libcap-2.76_1                     POSIX.1e capabilities suite
ii libcrypto3-3.5.4_1                Toolkit for Secure Sockets Layer and Transport Layer Security - crypto l...
ii libcurl-8.16.0_1                  Multiprotocol file transfer library
ii libdebuginfod-0.192_2             Utilities to handle ELF object files - debuginfod library
ii libelf-0.192_2                    Utilities to handle ELF object files - runtime library
ii libev-4.33_1                      High-performance event loop loosely modelled after libevent
ii libgcc-14.2.1+20250405_2          GNU Compiler Collection - GCC library
ii libgcc-devel-14.2.1+20250405_2    GNU Compiler Collection - GCC library - development files
ii libidn2-2.3.4_1                   Internationalized string handling library
ii liblz4-1.10.0_1                   LZ4 compression library
ii liblzma-5.8.1_1                   XZ-format compression library
ii libmagic-5.46_2                   File type identification library
ii libpsl-0.21.5_1                   Public Suffix List library functions
ii libreadline8-8.2.010_1            GNU Readline Library
ii libssh2-1.11.1_1                  Library implementing the SSH2 protocol
ii libssl3-3.5.4_1                   Toolkit for Secure Sockets Layer and Transport Layer Security - SSL/TLS ...
ii libstdc++-14.2.1+20250405_2       GNU Compiler Collection - Standard C++ Library
ii libstdc++-devel-14.2.1+20250405_2 GNU Compiler Collection - Standard C++ Library - development files
ii libunistring-1.0_1                Library for manipulating Unicode strings and C strings
ii libxbps-0.60.5_1                  XBPS package system utilities - runtime library
ii libxcrypt-compat-4.4.38_1         Modern library for one-way hashing of passwords - legacy compatibility
ii libxxHash-0.8.2_1                 Fast non-cryptographic hashing algorithm - library
ii libzstd-1.5.7_1                   Fast real-time compression algorithm
ii make-4.4.1_1                      GNU Make build tool
ii mpfr-4.2.2_1                      Library for multiple-precision floating-point computations
ii ncurses-6.5_2                     System V Release 4.0 curses emulation library
ii ncurses-base-6.5_2                System V Release 4.0 curses emulation library - base terminfo files
ii ncurses-libs-6.5_2                System V Release 4.0 curses emulation library -- shared libraries
ii nghttp2-1.66.0_1                  HTTP/2 C Library
ii nghttp3-1.10.1_1                  HTTP/3 library written in C
ii ngtcp2-1.16.0_1                   Effort to implement IETF QUIC protocol
ii openssl-3.5.4_1                   Toolkit for Secure Sockets Layer and Transport Layer Security
ii patch-2.7.6_4                     Patch files using diff output
ii public-suffix-2025.03.01_1        Public Suffix List
ii run-parts-5.23.2_1                Run scripts or programs in a directory
ii sed-4.9_1                         The GNU stream editor
ii tzdata-2025b_2                    Time zone and daylight-saving time data
ii xbps-0.60.5_1                     XBPS package system utilities
ii xbps-triggers-0.129_1             XBPS triggers for Void Linux
ii zlib-1.3.1_1                      Compression/decompression Library

chroot して使われる にインストールされているパッケージの一覧を表示:

-

$ xbps-query -l
:
ii AppStream-1.0.4_2                         Tools and libraries to work with AppStream metadata
ii FeatherPad-1.6.2_1                        Lightweight Qt6 plain-text editor for Linux
ii NetworkManager-1.50.0_1                   Network Management daemon
ii SDL2-2.32.8_1                             Simple DirectMedia Layer (version 2)
: 省略

ii zd1211-firmware-1.5_3                     Firmware for the Zydas 1211 wifi cards
ii zix-0.6.2_1                               C library of portability wrappers and data structures
ii zlib-1.3.1_1                              Compression/decompression Library

→多くのパッケージが表示されました:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----

22. 参考: 「四川省」 (kshisen) ゲームで、「パッケージ化」にトライした履歴:

-

手順を確認した作業なので、こちらの作業は要りません:

-

四川省」 (kshisen) ゲームは、「Void Linux」のリポジトリにないので、インストールできません。
 ただし、Flatpak に登録があるので、Flatpak からインストールしました:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- -----

22-1. 「kshisen」アプリの依存パッケージを確認:

-

ホストOS (Xubuntu 24.04 LTS) で、「kshisen」ゲームの情報を確認:

「Void Linux」のリポジトリに登録はありませんが、「Xubuntu 24.04 LTS」には登録されていて、 すでにインストール済です:

-

(1). ホストOS (Xubuntu 24.04 LTS) で、インストールされているか確認:
$ apt list kshisen
:
kshisen/noble,now 4:23.08.5-0ubuntu3 amd64 [インストール済み]

→インストール済です:

こちらに表示されているバージョンは、Ubuntu の .deb パッケージのバージョンなので、無視しました:

-

(2). 「kshisen」ゲームの情報を確認:

表示が言語パッケージで埋もれるので、見やすく修正しました:

-

$ apt info kshisen
Package: kshisen
Version: 4:23.08.5-0ubuntu3
Priority: optional
Section: universe/games
Origin: Ubuntu
Maintainer: Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>  ←(メンテナ)
Original-Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2,333 kB

Depends:           ←(依存)
kdegames-mahjongg-data-kf5
libc6 (>= 2.34)
libkf5configcore5 (>= 5.90.0~)
libkf5configgui5 (>= 5.90.0~)
libkf5configwidgets5 (>= 5.23.0)
libkf5coreaddons5 (>= 5.90.0~)
libkf5crash5 (>= 5.90.0~)
libkf5dbusaddons5 (>= 5.90.0~)
libkf5i18n5 (>= 4.97.0)
libkf5kdegames7 (>= 4:23.08.5~)
libkf5kmahjongglib5 (>= 4:23.08.5~)
libkf5widgetsaddons5 (>= 4.96.0)
libkf5xmlgui5 (>= 5.90.0~)
libqt5core5t64 (>= 5.15.1)
libqt5gui5t64 (>= 5.15.0~) | libqt5gui5-gles (>= 5.15.0~)
libqt5widgets5t64 (>= 5.15.0~)
libstdc++6 (>= 11)

Recommends: khelpcenter      ←(おすすめ)
Breaks: kde-l10n-ja (<< 4:16.04.3-4~)
Replaces: kde-l10n-ja (<< 4:16.04.3-4~)

Homepage: http://games.kde.org/   ←(ホームページ)
Download-Size: 1,113 kB
APT-Manual-Installed: yes
APT-Sources: http://jp.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
Description: Shisen-Sho solitaire game   ←(説明)
 KShisen is a Shisen-Sho game where the player removes adjascent pairs of
 Mahjongg tiles to clear the board.

→こちらに表示されている「依存」のパッケージ名は、Ubuntu でのパッケージ名です:

なので、「Void Linux」でのパッケージ名を探さないといけません:

-

(3). ホームページについて:

Homepage: http://games.kde.org/

https://apps.kde.org/categories/games/

-

https://apps.kde.org/kshisen/

右下の「Browse source code」

-

(4). ライセンス:
GPL-2.0-or-later

-

(5). プロジェクト情報

KShisen

Shisen-Sho is a solitaire-like game played using the standard set of Mahjong tiles

Shisen-Sho is a solitaire-like game

-

(6). ソースコード:

https://invent.kde.org/games/kshisen

水色の「コード」をクリック→

ソースコードをダウンロード(tar.gz)

https://invent.kde.org/games/kshisen/-/archive/master/kshisen-master.tar.gz?ref_type=heads

-

タグ: v25.08.1 指定でダウンロード:
https://invent.kde.org/games/kshisen/-/archive/v25.08.1/kshisen-v25.08.1.tar.gz?ref_type=tags

-

(7). チェックサム:
$ ls -1 ~/ダウンロード/game-kshisen
:
kshisen-v25.08.1
kshisen-v25.08.1.tar.gz

-

$ sha256sum kshisen-v25.08.1.tar.gz
:
3dfc9498c7899cf6f35f42f7fbf0c4f9b53605e6fc95bad040d2b8f9827c359d  kshisen-v25.08.1.tar.gz

-

(8). ChangeLog
https://invent.kde.org/games/kshisen/-/blob/master/ChangeLog

Changes since 1.8.2:

-

(9). 依存パッケージ:

「ソース」をダウンロードして展開後、「CMakeLists.txt」を確認:

-

含まれている、「find_package()」の行を抜粋:
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) ←(確認1)

find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS
    Core
    Gui
)

find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS ←(確認2)
    CoreAddons
    Config
    IconThemes
    ConfigWidgets
    Crash    
    DBusAddons
    DocTools
    I18n
    WidgetsAddons
    XmlGui    
)

find_package(KMahjongglib6 6.0.0 REQUIRED)  ←(確認3)
find_package(KDEGames6 6.0.0 REQUIRED)  ←(確認4)

↓ 上記の依存を見ながら、該当するパッケージを検索:

-

(10). 「Void Linux」で依存パッケージがインストールできるか確認:

-

確認1:
$ ls -1p srcpkgs/ | grep ecm
:
ecm/
ecm-devel

-

確認2:
$ ls -1p srcpkgs/ | grep qt6 | grep core
:
qt6-core
$ ls -1p srcpkgs/ | grep qt6 | grep gui
:
qt6-gui

-

確認3:
$ ls -1p srcpkgs/ | grep kf6-k | grep core
:
kf6-kcoreaddons/
kf6-kcoreaddons-devel
kf6-kconfig/
kf6-kconfig-devel
kf6-kiconthemes/
kf6-kiconthemes-devel
kf6-kconfigwidgets/
kf6-kconfigwidgets-devel
kf6-kcrash/
kf6-kcrash-devel
kf6-kdbusaddons/
kf6-kdbusaddons-devel
kf6-kdoctools/
kf6-kdoctools-devel
kf6-ki18n/
kf6-ki18n-devel
kf6-kwidgetsaddons/
kf6-kwidgetsaddons-devel
kf6-kxmlgui/
kf6-kxmlgui-devel

-

確認4:
$ ls -1p srcpkgs/ | grep libk | grep jongg
:
libkmahjongg/
libkmahjongg-devel
$ ls -1p srcpkgs/ | grep libk | grep game
:
libkdegames/
libkdegames-devel

→わかっている範囲で、すべての依存を確認できました:

 後は、ビルドしてみないと、不足しているパッケージはわかりません:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- -

22-2. 「kshisen」アプリの「xbps-src」の「テンプレート」ファイルを作成:

-

$ cd ~/git/void-packages/

-


1). 「kshisen」パッケージのフォルダを作成:

$ cd ~/git/void-packages/srcpkgs/
$ sudo mkdir -p kshisen

-


2). 「アプリ」のビルドを指示する「template」ファイルを作成:

原案:
$ sudo featherpad ~/git/void-packages/srcpkgs/kshisen/template
# Template file for 'kshisen'
pkgname=kshisen
version=25.08.1
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"
short_desc="Shisen-Sho is a solitaire-like game"
maintainer="Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/kshisen/"
changelog="https://invent.kde.org/games/kshisen/-/blob/master/ChangeLog"
distfiles="https://invent.kde.org/games/kshisen/-/archive/v${version}/kshisen-v${version}.tar.gz"
checksum=3dfc9498c7899cf6f35f42f7fbf0c4f9b53605e6fc95bad040d2b8f9827c359d

「distfiles=」の ${version} に「version=」の値が入ります:

-

→「項番 8-3.」にて、2つほど、依存が足りませんでした:

-


3). 追記: 最終的な「テンプレート」ファイル: ★

$ sudo featherpad ~/git/void-packages/srcpkgs/kshisen/template
# Template file for 'kshisen'
pkgname=kshisen
version=25.08.1
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="gettext extra-cmake-modules ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"
short_desc="Shisen-Sho is a solitaire-like game"
maintainer="Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/kshisen/"
changelog="https://invent.kde.org/games/kshisen/-/blob/master/ChangeLog"
distfiles="https://invent.kde.org/games/kshisen/-/archive/v${version}/kshisen-v${version}.tar.gz"
checksum=3dfc9498c7899cf6f35f42f7fbf0c4f9b53605e6fc95bad040d2b8f9827c359d

「distfiles=」の ${version} に「version=」の値が入ります:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- --

22-3. 「kshisen」アプリの「パッケージ化」を繰り返して、「テンプレート」を修正:

-

「テンプレート」ファイルの原本ができたので、「パッケージ化」を繰り返しながらエラーを解消、

最終的な「テンプレート」ファイルを作成しました:

-


1). 「kshisen」アプリを「パッケージ化」:

$ cd ~/git/void-packages/
$ ./xbps-src pkg kshisen
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> kshisen-25.08.1_1: removing autodeps, please wait...
=> kshisen-25.08.1_1: building with [cmake] for x86_64...
   [host] qt6-tools-6.8.2_1: found (https://repo-default.voidlinux.org/current)
   [host] qt6-base-devel-6.8.2_5: found (https://repo-default.voidlinux.org/current)
   [host] pkg-config-0.29.2_3: found (https://repo-default.voidlinux.org/current)
   [host] cmake-bootstrap-4.1.0_1: found (/host/binpkgs/bootstrap)
   [host] ninja-1.13.1_1: found (https://repo-default.voidlinux.org/current)
   [target] ecm-devel-7.0.6_1: found (https://repo-default.voidlinux.org/current)
   [target] qt6-core-6.8.2_5: found (https://repo-default.voidlinux.org/current)
   [target] qt6-gui-6.8.2_5: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kcoreaddons-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kconfig-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kiconthemes-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kconfigwidgets-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kcrash-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kdbusaddons-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kdoctools-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-ki18n-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kwidgetsaddons-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kxmlgui-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] libkmahjongg-devel-25.04.3_1: found (https://repo-default.voidlinux.org/current)
   [target] libkdegames-devel-24.08.0_1: found (https://repo-default.voidlinux.org/current)
=> kshisen-25.08.1_1: installing host dependencies: qt6-tools-6.8.2_1 qt6-base-devel-6.8.2_5 pkg-config-0.29.2_3 cmake-bootstrap-4.1.0_1 ninja-1.13.1_1 ...
=> kshisen-25.08.1_1: installing target dependencies: ecm-devel-7.0.6_1 qt6-core-6.8.2_5 qt6-gui-6.8.2_5 kf6-kcoreaddons-devel-6.18.0_1 kf6-kconfig-devel-6.18.0_1 kf6-kiconthemes-devel-6.18.0_1 kf6-kconfigwidgets-devel-6.18.0_1 kf6-kcrash-devel-6.18.0_1 kf6-kdbusaddons-devel-6.18.0_1 kf6-kdoctools-devel-6.18.0_1 kf6-ki18n-devel-6.18.0_1 kf6-kwidgetsaddons-devel-6.18.0_1 kf6-kxmlgui-devel-6.18.0_1 libkmahjongg-devel-25.04.3_1 libkdegames-devel-24.08.0_1 ...

→時間がかかりました:

ERROR: Package `qt6-core-6.8.2_5' already installed.
ERROR: Package `qt6-gui-6.8.2_5' already installed.
=> kshisen-25.08.1_1: running do-fetch hook: 00-distfiles ...
=> kshisen-25.08.1_1: fetching distfile 'kshisen-v25.08.1.tar.gz' from 'https://invent.kde.org/games/kshisen/-/archive/v25.08.1/kshisen-v25.08.1.tar.gz'...
kshisen-v25.08.1.tar.gz: [0B 0%] 388KB/s ETA: unknown
kshisen-v25.08.1.tar.gz: [0B 0%] 96KB/s ETA: unknown
kshisen-v25.08.1.tar.gz: [0B 0%] 424KB/s ETA: unknown
kshisen-v25.08.1.tar.gz: 1100KB [avg rate: 710KB/s]
=> kshisen-25.08.1_1: verifying checksum for distfile 'kshisen-v25.08.1.tar.gz'... OK.
=> kshisen-25.08.1_1: running do-extract hook: 00-distfiles ...
=> kshisen-25.08.1_1: extracting distfile(s), please wait...
=> kshisen-25.08.1_1: running do-patch hook: 00-patches ...
=> kshisen-25.08.1_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> kshisen-25.08.1_1: running pre-configure hook: 01-override-config ...
=> kshisen-25.08.1_1: running pre-configure hook: 02-script-wrapper ...
=> kshisen-25.08.1_1: running do_configure ...
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:21 (find_package):
  Could not find a package configuration file provided by "ECM" (requested
  version 6.0.0) with any of the following names:

    ECMConfig.cmake
    ecm-config.cmake

  Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
  to a directory containing one of the above files.  If "ECM" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!

赤色で警告表示:

=> ERROR: kshisen-25.08.1_1: do_configure: 'CFLAGS="-DNDEBUG ${CFLAGS/ -pipe / }" CXXFLAGS="-DNDEBUG ${CXXFLAGS/ -pipe / }" cmake ${cmake_args} ${configure_args} -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ${LIBS:+-DCMAKE_C_STANDARD_LIBRARIES="$LIBS"} ${LIBS:+-DCMAKE_CXX_STANDARD_LIBRARIES="$LIBS"} ${wrksrc}/${build_wrksrc}' exited with 1
=> ERROR:   in do_configure() at common/build-style/cmake.sh:78
[user@user-pc void-packages]$ 

-


2). エラーを抜粋1:

CMake Error at CMakeLists.txt:21 (find_package):
  Could not find a package configuration file provided by "ECM" (requested
  version 6.0.0) with any of the following names:

和訳:

「ECM」(要求バージョン 6.0.0) によって提供された、次のいずれかの名前のパッケージ構成ファイルが見つかりませんでした:

-


3). 「Could not find a package configuration file provided by "ECM" 」で検索:

↓ ヒット:

Could not find a configuration file for package "ECM" that is compatible with requested version 1.5.0

→対応: 「extra-cmake-modules」パッケージをインストール:

-


4). 「extra-cmake-modules」パッケージがインストールできるか確認:

$ xbps-query -Rs extra-cmake-modules
:
[-] extra-cmake-modules-6.18.0_1 Extra modules and scripts for CMake

→OK

-


5). 「テンプレート」ファイルを修正:

$ sudo featherpad ~/git/void-packages/srcpkgs/kshisen/template

-

makedepends="ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"

↓ 置換:

makedepends="extra-cmake-modules ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"

→Ctrl+S で保存:

-


6). 確認:

$ cat ~/git/void-packages/srcpkgs/kshisen/template
# Template file for 'kshisen'
pkgname=kshisen
version=25.08.1
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="extra-cmake-modules ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"
short_desc="Shisen-Sho is a solitaire-like game"
maintainer="Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/kshisen/"
changelog="https://invent.kde.org/games/kshisen/-/blob/master/ChangeLog"
distfiles="https://invent.kde.org/games/kshisen/-/archive/v${version}/kshisen-v${version}.tar.gz"
checksum=3dfc9498c7899cf6f35f42f7fbf0c4f9b53605e6fc95bad040d2b8f9827c359d

-


7). 「kshisen」ゲームの「パッケージ化」をやり直し:

$ cd ~/git/void-packages/
$ ./xbps-src pkg kshisen
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> kshisen-25.08.1_1: removing autodeps, please wait...
=> kshisen-25.08.1_1: building with [cmake] for x86_64...

: 省略

-- Found KF6ConfigWidgets: /usr/lib64/cmake/KF6ConfigWidgets/KF6ConfigWidgetsConfig.cmake (found version "6.18.0")
-- Found KF6Crash: /usr/lib64/cmake/KF6Crash/KF6CrashConfig.cmake (found version "6.18.0")
-- Found KF6DBusAddons: /usr/lib64/cmake/KF6DBusAddons/KF6DBusAddonsConfig.cmake (found version "6.18.0")
-- Found KF6DocTools: /usr/lib64/cmake/KF6DocTools/KF6DocToolsConfig.cmake (found version "6.18.0")
CMake Error at /usr/libexec/xbps-src/share/cmake-4.1/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
  Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE
  GETTEXT_MSGFMT_EXECUTABLE)
Call Stack (most recent call first):
  /usr/libexec/xbps-src/share/cmake-4.1/Modules/FindPackageHandleStandardArgs.cmake:591 (_FPHSA_FAILURE_MESSAGE)
  /usr/libexec/xbps-src/share/cmake-4.1/Modules/FindGettext.cmake:409 (find_package_handle_standard_args)
  /usr/lib64/cmake/KF6I18n/KF6I18nMacros.cmake:5 (find_package)
  /usr/lib64/cmake/KF6I18n/KF6I18nConfig.cmake:48 (include)
  /usr/share/ECM/find-modules/FindKF6.cmake:53 (find_package)
  CMakeLists.txt:45 (find_package)
-- Configuring incomplete, errors occurred!

赤色の警告が表示:

=> ERROR: kshisen-25.08.1_1: do_configure: 'CFLAGS="-DNDEBUG ${CFLAGS/ -pipe / }" CXXFLAGS="-DNDEBUG ${CXXFLAGS/ -pipe / }" cmake ${cmake_args} ${configure_args} -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ${LIBS:+-DCMAKE_C_STANDARD_LIBRARIES="$LIBS"} ${LIBS:+-DCMAKE_CXX_STANDARD_LIBRARIES="$LIBS"} ${wrksrc}/${build_wrksrc}' exited with 1
=> ERROR:   in do_configure() at common/build-style/cmake.sh:78
[user@user-pc void-packages]$ 

-


8). エラーを抜粋2:

CMake Error at /usr/libexec/xbps-src/share/cmake-4.1/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
  Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE
  GETTEXT_MSGFMT_EXECUTABLE)

→「gettext」のインストールが必要:

-


9). 「gettext」がインストールできるか確認:

$ xbps-query -Rs gettext | grep '] gettext'
:
[-] gettext-0.22.5_1                 Internationalized Message Handling Library and tools
[-] gettext-devel-0.22.5_1           Internationalized Message Handling Library and tools - development files
[-] gettext-devel-examples-0.22.5_1  Internationalized Message Handling Library and tools - examples for development
[-] gettext-devel-tools-0.22.5_1     Internationalized Message Handling Library and tools - development tools
[-] gettext-stub-1_2                 Gettext little stub
[-] gettext-stub-devel-1_2           Gettext little stub - development files
[-] gettext-tiny-0.3.2_1             Tiny Internationalized Message Handling Library and tools
[-] gettext-tiny-devel-0.3.2_1       Tiny Internationalized Message Handling Library and tools - development files
[-] gettext-32bit-0.22.5_1           Internationalized Message Handling Library and tools (32bit)
[-] gettext-devel-32bit-0.22.5_1     Internationalized Message Handling Library and tools - development files (32bit)
[-] gettext-stub-32bit-1_2           Gettext little stub (32bit)
[-] gettext-stub-devel-32bit-1_2     Gettext little stub - development files (32bit)
[-] gettext-tiny-devel-32bit-0.3.2_1 Tiny Internationalized Message Handling Library and tools - development files (32bit)

→いっぱい表示されたけど、必要なのは最初のひとつ:

-


10). 「テンプレート」ファイルを修正:

$ sudo featherpad ~/git/void-packages/srcpkgs/kshisen/template

-

makedepends="extra-cmake-modules ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"

↓ 置換:

makedepends="gettext extra-cmake-modules ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"

-


11). 最終的な「テンプレート」ファイル: ★

$ cat ~/git/void-packages/srcpkgs/kshisen/template
# Template file for 'kshisen'
pkgname=kshisen
version=25.08.1
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="gettext extra-cmake-modules ecm-devel qt6-core qt6-gui kf6-kcoreaddons-devel kf6-kconfig-devel kf6-kiconthemes-devel kf6-kconfigwidgets-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kdoctools-devel kf6-ki18n-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel libkmahjongg-devel libkdegames-devel"
short_desc="Shisen-Sho is a solitaire-like game"
maintainer="Kubuntu Developers <kubuntu-devel@lists.ubuntu.com>"
license="GPL-2.0-or-later"
homepage="https://apps.kde.org/kshisen/"
changelog="https://invent.kde.org/games/kshisen/-/blob/master/ChangeLog"
distfiles="https://invent.kde.org/games/kshisen/-/archive/v${version}/kshisen-v${version}.tar.gz"
checksum=3dfc9498c7899cf6f35f42f7fbf0c4f9b53605e6fc95bad040d2b8f9827c359d

-


12). 「kshisen」ゲームの「パッケージ化」をやり直し:

$ cd ~/git/void-packages/
$ ./xbps-src pkg kshisen
=> xbps-src: updating repositories for host (x86_64)...
[*] Updating repository `https://repo-default.voidlinux.org/current/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2024KB [avg rate: 867KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/debug/x86_64-repodata' ...
x86_64-repodata: 900KB [avg rate: 770KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/bootstrap/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
=> xbps-src: updating software in / masterdir...
=> xbps-src: cleaning up / masterdir...
=> kshisen-25.08.1_1: removing autodeps, please wait...
=> kshisen-25.08.1_1: building with [cmake] for x86_64...
   [host] qt6-tools-6.8.2_1: found (https://repo-default.voidlinux.org/current)
   [host] qt6-base-devel-6.8.2_5: found (https://repo-default.voidlinux.org/current)
   [host] pkg-config-0.29.2_3: found (https://repo-default.voidlinux.org/current)
   [host] cmake-bootstrap-4.1.0_1: found (/host/binpkgs/bootstrap)
   [host] ninja-1.13.1_1: found (https://repo-default.voidlinux.org/current)
   [target] gettext-0.22.5_1: found (https://repo-default.voidlinux.org/current)
   [target] extra-cmake-modules-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] ecm-devel-7.0.6_1: found (https://repo-default.voidlinux.org/current)
   [target] qt6-core-6.8.2_5: found (https://repo-default.voidlinux.org/current)
   [target] qt6-gui-6.8.2_5: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kcoreaddons-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kconfig-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kiconthemes-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kconfigwidgets-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kcrash-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kdbusaddons-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kdoctools-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-ki18n-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kwidgetsaddons-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] kf6-kxmlgui-devel-6.18.0_1: found (https://repo-default.voidlinux.org/current)
   [target] libkmahjongg-devel-25.04.3_1: found (https://repo-default.voidlinux.org/current)
   [target] libkdegames-devel-24.08.0_1: found (https://repo-default.voidlinux.org/current)
=> kshisen-25.08.1_1: installing host dependencies: qt6-tools-6.8.2_1 qt6-base-devel-6.8.2_5 pkg-config-0.29.2_3 cmake-bootstrap-4.1.0_1 ninja-1.13.1_1 ...
=> kshisen-25.08.1_1: installing target dependencies: gettext-0.22.5_1 extra-cmake-modules-6.18.0_1 ecm-devel-7.0.6_1 qt6-core-6.8.2_5 qt6-gui-6.8.2_5 kf6-kcoreaddons-devel-6.18.0_1 kf6-kconfig-devel-6.18.0_1 kf6-kiconthemes-devel-6.18.0_1 kf6-kconfigwidgets-devel-6.18.0_1 kf6-kcrash-devel-6.18.0_1 kf6-kdbusaddons-devel-6.18.0_1 kf6-kdoctools-devel-6.18.0_1 kf6-ki18n-devel-6.18.0_1 kf6-kwidgetsaddons-devel-6.18.0_1 kf6-kxmlgui-devel-6.18.0_1 libkmahjongg-devel-25.04.3_1 libkdegames-devel-24.08.0_1 ...
ERROR: Package `qt6-core-6.8.2_5' already installed.
ERROR: Package `qt6-gui-6.8.2_5' already installed.
=> kshisen-25.08.1_1: running pre-configure hook: 00-gnu-configure-asneeded ...
=> kshisen-25.08.1_1: running pre-configure hook: 01-override-config ...
=> kshisen-25.08.1_1: running pre-configure hook: 02-script-wrapper ...
=> kshisen-25.08.1_1: running do_configure ...
-- Could not set up the appstream test. appstreamcli is missing.
-- Found Gettext: /usr/bin/msgmerge (found version "0.22.5")
-- Found KF6I18n: /usr/lib64/cmake/KF6I18n/KF6I18nConfig.cmake (found version "6.18.0")
-- Found KF6WidgetsAddons: /usr/lib64/cmake/KF6WidgetsAddons/KF6WidgetsAddonsConfig.cmake (found version "6.18.0")
-- Found KF6XmlGui: /usr/lib64/cmake/KF6XmlGui/KF6XmlGuiConfig.cmake (found version "6.18.0")
-- Found KF6: success (found suitable version "6.18.0", minimum required is "6.0.0") found components: CoreAddons Config IconThemes ConfigWidgets Crash DBusAddons DocTools I18n WidgetsAddons XmlGui
-- not found icons_at_22px /builddir/kshisen-25.08.1/icons/22-apps-kshisen.png
-- The following OPTIONAL packages have been found:

 * OpenGL
 * XKB (required version >= 0.5.0), XKB API common to servers and clients., <http://xkbcommon.org>
 * WrapVulkanHeaders
 * Qt6DBusTools (required version >= 6.8.2)
 * Qt6CoreTools (required version >= 6.8.2)
 * Qt6GuiTools (required version >= 6.8.2)
 * Qt6WidgetsTools (required version >= 6.8.2)
 * Qt6QmlTools (required version >= 6.8.2)

-- The following REQUIRED packages have been found:

 * ECM (required version >= 6.0.0)
 * Qt6 (required version >= 6.5.0)
 * KF6CoreAddons (required version >= 6.0.0)
 * KF6IconThemes (required version >= 6.0.0)
 * KF6Crash (required version >= 6.0.0)
 * KF6DBusAddons (required version >= 6.0.0)
 * KF6DocTools (required version >= 6.0.0)
 * Gettext
 * KF6I18n (required version >= 6.0.0)
 * KF6XmlGui (required version >= 6.0.0)
 * KF6 (required version >= 6.0.0)
 * Qt6Gui (required version >= 6.5.0)
 * Qt6Core (required version >= 6.7.0)
 * KMahjongglib6 (required version >= 6.0.0)
 * KDEGames6 (required version >= 6.0.0)
 * Qt6Test (required version >= 6.5.0)

-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /builddir/kshisen-25.08.1/build
=> kshisen-25.08.1_1: running pre-build hook: 02-script-wrapper ...
=> kshisen-25.08.1_1: running do_build ...
[1/38] Generating ts...
[2/38] Generating mo...
[3/38] Generating po/de/docs/kshisen/index.cache.bz2
[4/38] Generating po/ca/docs/kshisen/index.cache.bz2
[5/38] Generating po/es/docs/kshisen/index.cache.bz2
[6/38] Generating po/cs/docs/kshisen/index.cache.bz2
[7/38] Generating po/et/docs/kshisen/index.cache.bz2
[8/38] Generating po/it/docs/kshisen/index.cache.bz2
[9/38] Generating po/fr/docs/kshisen/index.cache.bz2
[10/38] Automatic MOC for target movetest
[11/38] Generating po/nl/docs/kshisen/index.cache.bz2
[12/38] Generating po/ja/docs/kshisen/index.cache.bz2
I/O warning : failed to load "/usr/share/kf6/kdoctools/customization/xsl/ja.xml": No such file or directory
No "ja" localization of "footer-doc-comment" exists; using "en".
No "ja" localization of "footer-doc-feedback" exists; using "en".

: 省略

No "ja" localization of "footer-doc-teamname" exists; using "en".
[13/38] Building CXX object src/tests/CMakeFiles/movetest.dir/movetest_autogen/mocs_compilation.cpp.o
[14/38] Automatic MOC for target kshisen
[15/38] Generating ui_settings.h
[16/38] Generating prefs.h, prefs.cpp
[17/38] Automatic RCC for kshisen.qrc
[18/38] Building CXX object src/CMakeFiles/kshisen.dir/kshisen_autogen/mocs_compilation.cpp.o
[19/38] Generating po/pt/docs/kshisen/index.cache.bz2
[20/38] Generating po/ru/docs/kshisen/index.cache.bz2
[21/38] Generating po/pt_BR/docs/kshisen/index.cache.bz2
I/O warning : failed to load "/usr/share/kf6/kdoctools/customization/xsl/pt-BR.xml": No such file or directory
No "pt_br" localization of "footer-doc-comment" exists; using "en".
No "pt_br" localization of "footer-doc-feedback" exists; using "en".

: 省略

No "pt_br" localization of "footer-doc-feedback" exists; using "en".
No "pt_br" localization of "footer-doc-teamname" exists; using "en".
[22/38] Generating po/pl/docs/kshisen/index.cache.bz2
[23/38] Generating po/sl/docs/kshisen/index.cache.bz2
[24/38] Building CXX object src/tests/CMakeFiles/movetest.dir/__/move.cpp.o
[25/38] Building CXX object src/CMakeFiles/kshisen.dir/move.cpp.o
[26/38] Building CXX object src/CMakeFiles/kshisen.dir/kshisen_autogen/EWIEGA46WW/qrc_kshisen.cpp.o
[27/38] Generating po/sv/docs/kshisen/index.cache.bz2
[28/38] Building CXX object src/CMakeFiles/kshisen.dir/debug.cpp.o
[29/38] Generating po/uk/docs/kshisen/index.cache.bz2
[30/38] Generating index.cache.bz2
[31/38] Building CXX object src/CMakeFiles/kshisen.dir/possiblemove.cpp.o
/builddir/kshisen-25.08.1/src/possiblemove.cpp:35:28: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
   35 |     qCDebug(KSHISEN_General) << "isInPath:" << tilePos.x() << "," << tilePos.y();
      |                            ^
/builddir/kshisen-25.08.1/src/possiblemove.cpp:49:36: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro

: 省略

/builddir/kshisen-25.08.1/src/board.cpp:1791:39: warning: ISO C++11 requires at least one argument for the "..." in a variadic macro
 1791 |             qCCritical(KSHISEN_General) << errMessage;
      |                                       ^
[38/38] Linking CXX executable bin/kshisen
=> kshisen-25.08.1_1: skipping check (XBPS_CHECK_PKGS is disabled) ...
=> kshisen-25.08.1_1: running pre-install hook: 00-libdir ...
=> kshisen-25.08.1_1: running pre-install hook: 02-script-wrapper ...
=> kshisen-25.08.1_1: running pre-install hook: 98-fixup-gir-path ...
=> kshisen-25.08.1_1: running do_install ...
[1/3] Generating mo...
[2/3] Generating ts...
[2/3] Install the project...
-- Install configuration: "None"
-- Installing: /destdir/kshisen-25.08.1/usr/bin/kshisen
-- Installing: /destdir/kshisen-25.08.1/usr/share/config.kcfg/kshisen.kcfg
-- Installing: /destdir/kshisen-25.08.1/usr/share/qlogging-categories6/kshisen.categories
-- Installing: /destdir/kshisen-25.08.1/usr/share/icons/hicolor/128x128/apps/kshisen.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/icons/hicolor/64x64/apps/kshisen.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/icons/hicolor/48x48/apps/kshisen.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/icons/hicolor/32x32/apps/kshisen.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/icons/hicolor/22x22/apps/kshisen.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/icons/hicolor/16x16/apps/kshisen.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/sounds/kshisen/tile-fall-tile.ogg
-- Installing: /destdir/kshisen-25.08.1/usr/share/sounds/kshisen/tile-touch.ogg
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/en/kshisen/index.cache.bz2
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/en/kshisen/index.docbook
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/en/kshisen/gameboard.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/en/kshisen/kshisen-configuration.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/applications/org.kde.kshisen.desktop
-- Installing: /destdir/kshisen-25.08.1/usr/share/metainfo/org.kde.kshisen.appdata.xml
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ga
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ga/LC_MESSAGES
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ga/LC_MESSAGES/kshisen.mo

: 省略

-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ja
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ja/LC_MESSAGES
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ja/LC_MESSAGES/kshisen.mo ★
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/br
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/br/LC_MESSAGES
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/br/LC_MESSAGES/kshisen.mo

: 省略

-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ar
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ar/LC_MESSAGES
-- Installing: /destdir/kshisen-25.08.1/usr/share/locale/ar/LC_MESSAGES/kshisen.mo
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/ca/kshisen/index.cache.bz2
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/ca/kshisen/index.docbook
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/ca/kshisen/gameboard.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/ca/kshisen/kshisen-configuration.png

: 省略

-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/ja/kshisen/index.cache.bz2 ★
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/ja/kshisen/index.docbook
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/ja/kshisen/kshisen-configuration.png

: 省略

-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/uk/kshisen/index.cache.bz2
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/uk/kshisen/index.docbook
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/uk/kshisen/gameboard.png
-- Installing: /destdir/kshisen-25.08.1/usr/share/doc/HTML/uk/kshisen/kshisen-configuration.png
=> kshisen-25.08.1_1: running post-install hook: 00-compress-info-files ...
=> kshisen-25.08.1_1: running post-install hook: 00-fixup-gir-path ...
=> kshisen-25.08.1_1: running post-install hook: 00-libdir ...
=> kshisen-25.08.1_1: running post-install hook: 00-uncompress-manpages ...
=> kshisen-25.08.1_1: running post-install hook: 01-remove-misc ...
=> kshisen-25.08.1_1: running post-install hook: 02-remove-libtool-archives ...
=> kshisen-25.08.1_1: running post-install hook: 02-remove-perl-files ...
=> kshisen-25.08.1_1: running post-install hook: 02-remove-python-bytecode-files ...
=> kshisen-25.08.1_1: running post-install hook: 03-remove-empty-dirs ...
=> WARNING: kshisen-25.08.1_1: removed empty dir: /usr/lib
=> kshisen-25.08.1_1: running post-install hook: 04-create-xbps-metadata-scripts ...
   Added trigger 'gtk-icon-cache' for the 'INSTALL' script.
   Added trigger 'update-desktopdb' for the 'INSTALL' script.
   Added trigger 'gtk-icon-cache' for the 'REMOVE' script.
   Added trigger 'update-desktopdb' for the 'REMOVE' script.
=> kshisen-25.08.1_1: running post-install hook: 05-generate-gitrevs ...
=> kshisen-25.08.1_1: running post-install hook: 06-strip-and-debug-pkgs ...
   Stripped position-independent executable: /usr/bin/kshisen
=> kshisen-25.08.1_1: running post-install hook: 10-pkglint-devel-paths ...
=> kshisen-25.08.1_1: running post-install hook: 11-pkglint-elf-in-usrshare ...
=> kshisen-25.08.1_1: running post-install hook: 12-rename-python3-c-bindings ...
=> kshisen-25.08.1_1: running post-install hook: 13-pkg-config-clean-xbps-cross-base-ref ...
=> kshisen-25.08.1_1: running post-install hook: 14-fix-permissions ...
mode of '/destdir/kshisen-25.08.1/usr/share/applications/org.kde.kshisen.desktop' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
=> kshisen-25.08.1_1: running post-install hook: 15-qt-private-api ...
=> kshisen-25.08.1_1: running post-install hook: 80-prepare-32bit ...
=> kshisen-25.08.1_1: running post-install hook: 98-shlib-provides ...
=> kshisen-25.08.1_1: running post-install hook: 99-pkglint-warn-cross-cruft ...
=> kshisen-25.08.1_1: running pre-pkg hook: 03-rewrite-python-shebang ...
=> kshisen-25.08.1_1: running pre-pkg hook: 04-generate-provides ...
   cmd:kshisen-25.08.1_1
=> kshisen-25.08.1_1: running pre-pkg hook: 04-generate-runtime-deps ...
   SONAME: libKMahjongg6.so.6 <-> libkmahjongg>=24.08.2_1
   SONAME: libKDEGames6.so.6 <-> libkdegames>=24.02.0_1
   SONAME: libKF6Crash.so.6 <-> kf6-kcrash>=6.0.0_1
   SONAME: libKF6DBusAddons.so.6 <-> kf6-kdbusaddons>=6.0.0_1
   SONAME: libKF6XmlGui.so.6 <-> kf6-kxmlgui>=6.0.0_1
   SONAME: libKF6IconThemes.so.6 <-> kf6-kiconthemes>=6.0.0_1
   SONAME: libKF6ConfigWidgets.so.6 <-> kf6-kconfigwidgets>=6.0.0_1
   SONAME: libKF6I18n.so.6 <-> kf6-ki18n>=6.0.0_1
   SONAME: libKF6WidgetsAddons.so.6 <-> kf6-kwidgetsaddons>=6.0.0_1
   SONAME: libQt6Widgets.so.6 <-> qt6-widgets>=6.8.1_1
   SONAME: libKF6ConfigGui.so.6 <-> kf6-kconfig>=6.0.0_1
   SONAME: libKF6ConfigCore.so.6 <-> kf6-kconfig>=6.0.0_1
   SONAME: libKF6CoreAddons.so.6 <-> kf6-kcoreaddons>=6.0.0_1
   SONAME: libQt6Gui.so.6 <-> qt6-gui>=6.8.1_1
   SONAME: libQt6Core.so.6 <-> qt6-core>=6.8.1_1
   SONAME: libstdc++.so.6 <-> libstdc++>=4.4.0_1
   SONAME: libm.so.6 <-> glibc>=2.41_1
   SONAME: libc.so.6 <-> glibc>=2.41_1
=> kshisen-25.08.1_1: running pre-pkg hook: 05-generate-32bit-runtime-deps ...
=> kshisen-25.08.1_1: running pre-pkg hook: 06-verify-python-deps ...
=> kshisen-25.08.1_1: running pre-pkg hook: 90-set-timestamps ...
=> kshisen-25.08.1_1: setting mtimes to Fri Oct 10 11:24:06 AM UTC 2025
=> kshisen-25.08.1_1: running pre-pkg hook: 99-pkglint-subpkgs ...
=> kshisen-25.08.1_1: running pre-pkg hook: 99-pkglint ...
=> kshisen-25.08.1_1: running pre-pkg hook: 999-collected-rdeps ...
   libkmahjongg>=24.08.2_1 libkdegames>=24.02.0_1 kf6-kcrash>=6.0.0_1 kf6-kdbusaddons>=6.0.0_1 kf6-kxmlgui>=6.0.0_1 kf6-kiconthemes>=6.0.0_1 kf6-kconfigwidgets>=6.0.0_1 kf6-ki18n>=6.0.0_1 kf6-kwidgetsaddons>=6.0.0_1 qt6-widgets>=6.8.1_1 kf6-kconfig>=6.0.0_1 kf6-kcoreaddons>=6.0.0_1 qt6-gui>=6.8.1_1 qt6-core>=6.8.1_1 libstdc++>=4.4.0_1 glibc>=2.41_1 
=> kshisen-25.08.1_1: running do-pkg hook: 00-gen-pkg ...
=> Creating kshisen-25.08.1_1.x86_64.xbps for repository /host/binpkgs ...
=> kshisen-25.08.1_1: running post-pkg hook: 00-register-pkg ...
=> Registering new packages to /host/binpkgs
index: added `kshisen-25.08.1_1' (x86_64).
index: 2 packages registered.
=> kshisen-25.08.1_1: removing autodeps, please wait...
=> kshisen-25.08.1_1: cleaning build directory...
=> kshisen: removing files from destdir...
[user@user-pc void-packages]$ 

→「パッケージ化」が完了しました:

-


13).重複するので、 flatpak でインストールされている「kshisen」ゲームを削除:

-

(1). 「Application ID」を確認:
$ flatpak search kshisen
:
Name    Description                        Application ID  Version    Branch Remotes
KShisen Shisen-Sho Mahjongg-like Tile Game org.kde.kshisen 1.11.25082 stable flathub

-

(2). 「kshisen」がインストールされているか確認:
$ flatpak list | grep org.kde.kshisen
:
KShisen org.kde.kshisen 1.11.25081  stable  system

-

(3). 「kshisen」の削除:
$ flatpak uninstall org.kde.kshisen

-

(4). 削除されたことを確認:
$ flatpak list | grep org.kde.kshisen
$ 

-


14). パッケージ化された「kshisen」ゲームをインストール:

$ sudo xbps-install --repository hostdir/binpkgs kshisen
:
Name    Action    Version       New version        Download size
kshisen install   -             25.08.1_1          - 

-


15). インストールされたか確認:

$ xbps-query -Rs kshisen
$ 

-

下記のようにしないと表示されません:

$ xbps-query -s kshisen
:
[*] kshisen-25.08.1_1 Shisen-Sho is a solitaire-like game

-


16). 「kshisen」ゲームを起動して、動作を確認:

「アプリケーション」→「ゲーム」→「Shisen-Sho 四川省

2 回以内の折れで、同じパイを消して行きます。パイが無くなると重力で落ちます。

→OK

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ---

22-4. 「kshisen」ゲームを、ソースを修正して「パッケージ化」:

-

アプリ起動のメニューを日本語化しました:

-

「kshisen」で気づいたところ:

アプリの起動のメニューが日本語化されていません:

-


1). ソースをダウンロード後、修正して、差分(パッチ)を作成:

一度、「パッケージ化」を行っていれば、ダウンロードした「ソース」は残っているので、作業は要りません:

-

確認:

$ cd ~/git/void-packages/
$ ls -1p hostdir/sources/kshisen-25.08.1/
:
kshisen-v25.08.1.tar.gz

→ありました:

-

もし、ダウンロードされていない場合は、下記の「項番 4).」を実行:

-


2). ソースのダウンロード:

すでにダウンロードされていたら作業は要りません:

$ cd ~/git/void-packages/
$ ./xbps-src fetch kshisen
:
=> kshisen-25.08.1_1: running do-fetch hook: 00-distfiles ...
[user@user-pc void-packages]$ 

-

確認:

$ ls -1p ~/git/void-packages/hostdir/sources/kshisen-25.08.1/
:
kshisen-v25.08.1.tar.gz

-


3). ソースの展開:

$ cd ~/git/void-packages/
$ ./xbps-src extract kshisen
:
=> kshisen-25.08.1_1: running do-fetch hook: 00-distfiles ...
=> kshisen-25.08.1_1: running do-extract hook: 00-distfiles ...
=> kshisen-25.08.1_1: extracting distfile(s), please wait...
[user@user-pc void-packages]$ 

-

確認:

$ cd ~/git/void-packages/
$ ls -1p masterdir-x86_64/builddir/
:
kshisen-25.08.1/

→ソースが展開されました:

-


4). 「デスクトップファイル」の置かれている場所:

$ ls -1p masterdir-x86_64/builddir/kshisen-25.08.1/
:
CMakeLists.txt
CMakePresets.json
CMakePresets.json.license
ChangeLog
Doxyfile
Doxyfile.includePrivate
LICENSES/
Mainpage.dox
Messages.sh
TODO
doc/
icons/
logo.png
org.kde.kshisen.appdata.xml
org.kde.kshisen.desktop   ←(デスクトップファイル)
po/
snapcraft.yaml
sounds/
src/

→ソースの直下に置かれています:

-


5). 差分ファイル(パッチ)を作成するためのフォルダを作成:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/kshisen-25.08.1/
$ sudo mkdir -p {a,b}

-

(1). 確認:
$ ls -1p
:
CMakeLists.txt
CMakePresets.json
CMakePresets.json.license
ChangeLog
Doxyfile
Doxyfile.includePrivate
LICENSES/
Mainpage.dox
Messages.sh
TODO
a/     ←(注目)
b/     ←(注目)
doc/
icons/
logo.png
org.kde.kshisen.appdata.xml
org.kde.kshisen.desktop
po/
snapcraft.yaml
sounds/
src/

-

(2). 「a」フォルダにソースをコピー:
$ sudo cp org.kde.kshisen.desktop a/

-

(3). 「b」フォルダにソースをコピー:
$ sudo cp org.kde.kshisen.desktop b/

-

(4). 確認:
$ ls a/
:
org.kde.kshisen.desktop

-

$ ls b/
:
org.kde.kshisen.desktop

→今のところは、同じ内容です:

-


6). 「デスクトップファイル」の修正:

メニューの日本語化:

$ sudo featherpad ~/git/void-packages/masterdir-x86_64/builddir/kshisen-25.08.1/b/org.kde.kshisen.desktop

-

Name[ja]=Shisen-Sho

↓ 修正:

Name[ja]=Shisen-Sho 四川省

→Ctrl+S で保存:

-

ちなみに、「GenericName[ja]=四川省マージャン牌ゲーム」が日本語で登録されていますが、
メニューには現れません:

-


7). 差分(パッチ)の作成:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/kshisen-25.08.1/
$ diff -Naur a b > 01.kshisen-desktop.patch

-


8). 差分(パッチ)の先頭行を削除:

$ sudo featerpad 01.kshisen-desktop.patch

↓ 下記の先頭行を削除:

diff -Naur a/org.kde.kshisen.desktop b/org.kde.kshisen.desktop

-


9). 確認:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/kshisen-25.08.1/
$ cat 01.kshisen-desktop.patch
--- a/org.kde.kshisen.desktop    2025-10-15 19:30:58.512373693 +0900
+++ b/org.kde.kshisen.desktop   2025-10-15 19:35:15.331386199 +0900
@@ -35,7 +35,7 @@
 Name[id]=Shisen-Sho
 Name[is]=Shisen-Sho
 Name[it]=Shisen-Sho
-Name[ja]=Shisen-Sho
+Name[ja]=Shisen-Sho 四川省
 Name[ka]=Shisen-Sho
 Name[kk]=Сисен-сё
 Name[km]=Shisen-Sho

-


10). パッチのフォルダを作成:

$ cd ~/git/void-packages/
$ sudo mkdir -p srcpkgs/kshisen/patches/

-


11). 作成したパッチを、パッチのフォルダに移動:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/kshisen-25.08.1/
$ sudo mv 01.kshisen-desktop.patch ~/git/void-packages/srcpkgs/kshisen/patches/01.kshisen-desktop.patch

-

確認:

$ ls -1p
:
CMakeLists.txt
CMakePresets.json
CMakePresets.json.license
ChangeLog
Doxyfile
Doxyfile.includePrivate
LICENSES/
Mainpage.dox
Messages.sh
TODO
a/
b/
doc/
icons/
logo.png
org.kde.kshisen.appdata.xml
org.kde.kshisen.desktop
po/
snapcraft.yaml
sounds/
src/

-

$ ls -1p ~/git/void-packages/srcpkgs/kshisen/patches/
:
01.kshisen-desktop.patch

-


12). パッチを実行してみる:

$ cd ~/git/void-packages/
$ ./xbps-src patch kshisen
:
=> kshisen-25.08.1_1: running do-patch hook: 00-patches ...
=> kshisen-25.08.1_1: patching: 01.kshisen-desktop.patch.
[user@user-pc void-packages]$ 

-


13). 「デスクトップファイル」が変更されたか確認:

$ cat ~/git/void-packages/masterdir-x86_64/builddir/kshisen-25.08.1/org.kde.kshisen.desktop | grep ja
Name[ja]=Shisen-Sho 四川省
GenericName[ja]=四川省マージャン牌ゲーム

→OK

-

ちなみに、「GenericName[ja]=四川省マージャン牌ゲーム」が日本語で登録されていますが、
メニューには現れません:

-


14). 「差分ファイル」の作成に使った「フォルダ」と「ファイル」を削除:

パッケージ化完了時に、作業フォルダが削除されますが、残がいがあると失敗します:

$ cd ~/git/void-packages/masterdir-x86_64/builddir/kshisen-25.08.1/
$ sudo rm -r a/
$ sudo rm -r b/

-


15). クリーン後、「パッケージ化」してみる:

-

クリーン:
$ cd ~/git/void-packages/
$ ./xbps-src clean kshisen
:
=> kshisen-25.08.1_1: cleaning build directory...
[user@user-pc void-packages]$ 

-


16). パッケージ化:

$ cd ~/git/void-packages/
$ ./xbps-src pkg kshisen
:
=> Registering new packages to /host/binpkgs
index: added `kshisen-25.08.1_1' (x86_64).
index: 3 packages registered.
=> kshisen-25.08.1_1: removing autodeps, please wait...
=> kshisen-25.08.1_1: cleaning build directory...
=> kshisen: removing files from destdir...
[user@user-pc void-packages]$ 

-


17). すでにインストールしている「kshisen」アプリを削除:

$ sudo xbps-remove kshisen
:
Name    Action    Version           New version            Download size
kshisen remove    25.08.1_1         -                      - 

-

確認:

$ xbps-query -Rs kshisen
$

-


18). パッケージ化された「kshisen」アプリをインストール:

$ sudo xbps-install --repository hostdir/binpkgs kshisen
:
Name    Action    Version           New version            Download size
kshisen install   -                 25.08.1_1              - 

-

確認:

$ xbps-query -s kshisen
:
[*] kshisen-25.08.1_1 Shisen-Sho is a solitaire-like game

-


19). 「kshisen」アプリを起動して、動作確認:

「アプリケーション」→「ゲーム」→「Shisen-Sho 四川省

→起動メニューが日本語化されました:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----

30. 参考: 「xbps-src」の「ヘルプ」を表示:

-

「xbps-src」スクリプトで利用できる、すべてのターゲットとオプションを表示:

-


1). 「xbps-src」の「ヘルプ表示」:

スクリプトの実行:

$ cd ~/git/void-packages/
$ ./xbps-src --help

-

和訳:

xbps-src [オプション] <ターゲット> [引数]
(1). ターゲット: (1つだけが指定できます)

-

binary-bootstrap
 ホストリポジトリから <masterdir> にブートストラップパッケージを、インストールします。  
 オプションの  '-A <arch>' フラグが設定されている場合、このアーキテクチャから  
 ブートストラップパッケージとその必要な XBPS ユーティリティがインストールされます。  
 <masterdir> は、chroot 操作のために初期化されます。

bootstrap
 ソースからブートストラップパッケージを <masterdir> にビルドして、インストールします。  
 オプションの '-A <arch>' フラグが設定されている場合、このアーキテクチャから  
 ブートストラップパッケージとその必要な XBPS ユーティリティをビルドして、インストール
 します。
 <masterdir> は、chroot 操作のために初期化されます。

bootstrap-update
 XBPS 設定ファイルの登録リポジトリから利用可能な、最新のバージョンでブートストラップ
 パッケージを更新します。

consistency-check
 すべてのパッケージで一貫性チェックを、実行します

chroot
 <masterdir> の chroot に、入ります。

clean-repocache
 <hostdir>/repocache から時代遅れのパッケージを、削除します。

fetch <パッケージ名>
 パッケージのソースファイルを、ダウンロードします。

extract <パッケージ名>
 パッケージのソースファイルを、ビルドディレクトリに展開します。
 デフォルトは、<masterdir>/builddir に設定されます。

patch <パッケージ名>
 パッケージソースにパッチを当て、設定とビルドのために  
 パッケージを準備するために必要な、他の操作を実行します。

configure <パッケージ名>
 パッケージを構成します(Fetch + Extract + Patch + Configure)

build <パッケージ名>
 パッケージのソースをビルドします(Fetch + Extract + Patch + Configure + Build)

check <パッケージ名>
 パッケージのソースをビルドした後に、パッケージのチェックを実行します。

install <パッケージ名>
 ターゲットのパッケージを <destdir> にインストールしますが、  
 検査目的なので、バイナリパッケージのビルドをせず、ビルドディレクトリも削除しません。

pkg <パッケージ名>
 <パッケージ名> のバイナリパッケージ、およびすべての必要な依存関係をビルドして、
 パッケージ化します。

clean [パッケージ名]
 自動で依存関係を削除し、<masterdir>/builddir および <masterdir>/destdir を
 クリーンアップします。
 もし、<パッケージ名> が指定されている場合は、<masterdir>/destdir のパッケージ
 ファイルと <masterdir>/buiddir のビルドディレクトリが削除されます。

list
  インストールされたパッケージを <masterdir> にリストします。

remove <パッケージ名>
  <destdir> からターゲットパッケージを削除します。  
  ビルドテンプレートと <パッケージ名>-<version> が一致していない場合は、何も
 削除されません。

remove-autodeps
  自動的にインストールされたすべてのパッケージの依存関係を削除します。

purge-distfiles
  <hostdir>/sources の、すべての時代遅れの distfiles を削除します。

show <パッケージ名>
  指定されたパッケージの情報を表示します。

show-avail <パッケージ名>
    特定のアーキテクチャ用にパッケージをビルドできる場合は「0」を返します。

show-build-deps <パッケージ名>
    <パッケージ名> に必要なビルドの依存関係を表示します。

show-check-deps <パッケージ名>
    <パッケージ名> に必要なチェックの依存関係を表示します。

show-deps <パッケージ名>
    <パッケージ名> の必要な ランタイムの依存関係を表示します。
 パッケージは DestDir にインストールする必要があります。

show-files <パッケージ名>
 <パッケージ名> によってインストールされたファイルを表示します。  
 パッケージは DestDir にインストールする必要があります。

show-hostmakedepends <パッケージ名>
 <パッケージ名>の必要なホストビルド依存関係を表示します。

show-makedepends <パッケージ名>
 <パッケージ名> の必要なターゲットビルド依存関係を表示します。

show-options <パッケージ名>
 <パッケージ名>による利用可能なビルドオプションを表示します。

show-shlib-provides <パッケージ名>
 <パッケージ名> の提供された shlibs のリストを表示します。
 パッケージは DestDir にインストールする必要があります。

show-shlib-requires <パッケージ名>
 <パッケージ名>に必要なshlibsのリストを表示します。
 パッケージは DestDir にインストールする必要があります。

show-var <var>
 xbps-src で定義されている場合、<var> の値を表示します。

show-repo-updates
 XBPS リポジトリの時代遅れのパッケージのリストを表示します。

show-sys-updates
 システム内の時代遅れのパッケージのリストを表示します。

show-local-updates
 ローカルリポジトリの時代遅れのパッケージのリストを表示します。

sort-dependencies <pkg> <pkgN+1> ...
 追加の引数として、指定されたパッケージのリストが与えられた場合、  
 ソートされた依存関係リストが 標準出力 に返されます。

update-bulk
 時代遅れのシステムリポジトリ内のすべてのパッケージを再ビルドします。

update-sys
 時代遅れのシステム内のすべてのパッケージを再ビルドし、それらを更新します。

update-local
 時代遅れのローカルリポジトリのすべてのパッケージを再ビルドします。

update-check <パッケージ名>
 新しいリリースについて、<パッケージ名> の上流サイトをチェックします。

update-hash-cache
 既存のソース distfiles で、ハッシュキャッシュを更新します。

zap
 ccache、distcc および host ディレクトリが保存された、masterdir を削除します。
(2). オプション:

-1  
 ターゲットパッケージの依存関係が欠けている場合は、それらをビルドせずに、失敗
 します。

-

-A <ホスト>
 指定のホストマシンを使用します。
 masterdir-<ホスト> がまだ存在しない場合は自動的に作成されます。

 一部のホストマシンは、プロセッサによってネイティブにサポートされていない場合、
  qemu-user と binfmt-support を必要とする場合があります。

サポートされているホスト:

    aarch64-musl
    aarch64
    armv5te-musl
    armv5te
    armv5tel-musl
    armv5tel
    armv6hf-musl
    armv6hf
    armv6l-musl
    armv6l
    armv7hf-musl
    armv7hf
    armv7l-musl
    armv7l
    i686-musl
    i686
    mips-musl
    mipsel-musl
    mipselhf-musl
    mipshf-musl
    ppc-musl
    ppc
    ppc64-musl
    ppc64
    ppc64le-musl
    ppc64le
    ppcle-musl
    ppcle
    riscv64-musl
    riscv64
    x86_64-musl
    x86_64

-

-a  <ターゲット>
指定されたターゲットマシンのパッケージをクロスコンパイルします。

サポートされているターゲット:

    aarch64-musl
    aarch64
    armv5te-musl
    armv5te
    armv5tel-musl
    armv5tel
    armv6hf-musl
    armv6hf
    armv6l-musl
    armv6l
    armv7hf-musl
    armv7hf
    armv7l-musl
    armv7l
    i686-musl
    i686
    mips-musl
    mipsel-musl
    mipselhf-musl
    mipshf-musl
    ppc-musl
    ppc
    ppc64-musl
    ppc64
    ppc64le-musl
    ppc64le
    ppcle-musl
    ppcle
    riscv64-musl
    riscv64
    x86_64-musl
    x86_64

-

-b
 壊れているとマークされている、nocross、またはアーチで除外されている場合でも、
 パッケージをビルドします。

-c  <configuration>
 <configuration> が指定されている場合、etc/conf.<configuration> は、主要な
 構成ファイル名として使用されます。
 etc/conf が存在しない場合にのみ試行されます。

-C  
 インストールが成功した後、ビルドディレクトリ、自動依存関係、パッケージ用の
 destdir を削除しません。

-E
 ターゲットパッケージのリポジトリに、バイナリパッケージが存在する場合は、
 それをビルドせず、すぐに終了します。

-f  
 正常に実行された場合でも、指定されたステージ(構成/ビルド/インストール/パッケージ化)
 を実行します。

-G  Enable XBPS_USE_GIT_REVS(詳細については、etc/defaults.conf を参照してください)

-g
 デバッグシンボルを備えた -dbg パッケージのビルドを有効にします。

-H  <hostdir>
 unset がデフォルトで、「void-packages/hostdir」がある場合に、
 <masterdir>/host にマウントされる、バインドされるディレクトリへの絶対パスを指定。
 host ディレクトリには、リモートリポジトリからダウンロードされたバイナリパッケージ、
 ソース、パッケージの依存関係が保存されています。

-h
 使い方を表示。

-I  
 ソースを展開/読み込むのに役立つ必要な依存関係を無視します。

-i 
 xbps-src の内部エラーを致命的なエラーにしません。

-j  
 パッケージをビルドするときに使用する並列ビルドジョブ(プロセッサ)の数を指定。

-L
 ASCII の色を無効にします。

-m  <masterdir>
 unset がデフォルトで「void-packages/masterdir-<host>」がある場合に、
 masterdir として使用するディレクトリへの絶対パスを指定。
 masterdir は、パッケージを構築/保存/コンパイルする、メインとなるディレクトリです。

-N
 リモートリポジトリの使用を無効にして、依存関係を解決します。

-o  <opt,~opt2,...>
 パッケージビルドオプションを有効または(`~` を付けて)無効にします。
 「etc/conf」がすでにいくつかを指定している場合、それはマージされています。
 依存関係をビルドする必要がある場合、これらのオプションを継承する場合、
 これらのオプションはビルド内のすべてのパッケージに適用されることに注意
 してください。

 'show-options' target でサポートされているオプションを表示できます。

-p  <variable,variable2,...>
 ターゲットを表示するには、デフォルトの変数に加えて指定された変数を表示します。
 変数は分割され、各単語はデフォルトで別々の行で表示されます。
 値全体を 1行で表示するには、asterisk を変数名に追加します。

-Q  
 ターゲットパッケージのみのチェックステージを実行します。

-K  
 長いテストでチェックステージを実行します。
 -Q とは異なり、これはビルドされた依存関係のチェックステージも実行されます。

-q  
 xbps-src の情報出力をしません。(ビルド出力は引き続き表示されます)

-r  <repo>
 代替ローカルリポジトリを使用して、生成されたバイナリパッケージを保存します。
 unset がデフォルトで <hostdir>/binpkgs になります。

 もし、set の場合、binpkgs は <hostdir>/binpkgs/<repo> に保存されます。
 また、この代替リポジトリは、他のリポジトリよりも優先度の高い順序で依存関係を
 解決するためにも使用されます。

-s  
 いくつかの警告をエラーにします。

-t  
 現在のものを汚さないように、一時的な masterdir を作成します。
 既存の masterdir には、最初に binary-bootstrap を完全に入力する必要があることに
 注意してください。

 ターゲットが終了すると、この一時的な masterdir は削除されます。
 このフラグには xbps-uchroot(1) が必要であり、 overlayfs をサポートしていない
 ファイルシステムでは機能しません。

-v  
 詳細なメッセージを表示します(update-check のみに影響します)。

-V  
 xbps のバージョンを表示して、終了します。

-


2). 使用される「ディレクトリ」について:

$ cd ~/git/void-packages/
$ ls -1p
:
CONTRIBUTING.md
COPYING
Manual.md
README.md
common/
etc/
hostdir/
masterdir-x86_64/
srcpkgs/
xbps-src

-

(1). <masterdir> は、「masterdir-<ホスト>」なので、今回は「masterdir-x86_64」になります:
masterdir は、パッケージ化(構築/保存/コンパイル)に使われる、メインとなるディレクトリです:
$ cd ~/git/void-packages/
$ ls masterdir-x86_64
:
bin       destdir  home  lib32  mnt   root  sys  var
boot      dev      host  lib64  opt   run   tmp  void-packages
builddir  etc      lib   media  proc  sbin  usr

-

(2). <hostdir>/binpkgs に、生成されたバイナリパッケージ(ビルドしてパッケージ化されたパッケージ)が保存されます:
$ ls -1p ~/git/void-packages/hostdir/
:
binpkgs/
repocache-x86_64/
sources/

-

「hostdir/binpkgs/」フォルダ:

$ ls -l ~/git/void-packages/hostdir/binpkgs/
:
-rw-r--r-- 1 user user 958664 10月  4 23:59 FeatherPad-1.6.2_1.x86_64.xbps
drwxr-xr-x 2 user user   4096 10月  4 23:49 bootstrap
-rw-rw-r-- 1 user user    862 10月  4 23:59 x86_64-repodata

-

「hostdir/binpkgs/bootstrap/」フォルダ:

$ ls -l ~/git/void-packages/hostdir/binpkgs/bootstrap/
:
-rw-r--r-- 1 user user 11252481 10月  4 23:49 cmake-bootstrap-4.1.0_1.x86_64.xbps
-rw-rw-r-- 1 user user      720 10月  4 23:49 x86_64-repodata

-

「hostdir/sources/」フォルダ:

$ ls -1p ~/git/void-packages/hostdir/sources/
:
FeatherPad-1.6.2/
by_sha256/
cmake-bootstrap-4.1.0/

-

ソースファイル1:

$ ls -1p ~/git/void-packages/hostdir/sources/FeatherPad-1.6.2/
:
V1.6.2.tar.gz

-

ソースファイル2:

$ ls ~/git/void-packages/hostdir/sources/cmake-bootstrap-4.1.0/
:
cmake-4.1.0.tar.gz

→「cmake-bootstrap-4.1.0」=「cmake-4.1.0」のようです:

-

チェックサムの格納:

$ ls -1p ~/git/void-packages/hostdir/sources/by_sha256/
:
81ee8170028865581a8e10eaf055afb620fa4baa0beb6387241241a975033508_cmake-4.1.0.tar.gz
9753796b2a525a4d6b13696681e9fbb094edcc20e8aadffcd5bb6fe22d0a5fdb_V1.6.2.tar.gz

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- -----

31. 参考: 「xbps-src」で、アプリを「パッケージ化」して、インストールする手順:

-


1). ビルドしたい「パッケージ」のソースパッケージが「xbps-src」にあるか確認:

$ cd ~/git/void-packages/
$ ls srcpkgs | grep <パッケージ名>

-


2). パッケージをビルドして「パッケージ化」:

$ cd ~/git/void-packages/
$ ./xbps-src pkg <パッケージ名>

-


3). 「パッケージ化」にて、

-

(1). 通常のパッケージは「hostdir/binpkgs」に生成されます:

-

(2). 制限のあるパッケージの場合は、「hostdir/binpkgs/nonfree」に生成されます:

-

(3). ビルドされたパッケージを指定してインストールできます:

-


4). ビルドされたパッケージを、インストール:

-

(1). 通常のパッケージの場合:
$ sudo xbps-install --repository hostdir/binpkgs <パッケージ名>

-

もしくは、

-

(2). ライセンス等で制限があるパッケージの場合:
$ sudo xbps-install --repository hostdir/binpkg/nonfrees <パッケージ名>

-


5). インストールされたか確認:

$ xbps-query -s <パッケージ名>

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- -

32. 参考:「xbps-src」で使う「patch」を作る手順:

-

「xbps-src」スクリプトの中で、自動でソースファイルを修正するには、「patch」の機能を使います:

-


1). パッチファイルの作成手順:

「git 環境」でなく、手動で差分を作成する場合:

-

(1). 元のソースを「a」という名前のフォルダに、変更されたソースを「b」という名前のフォルダに保存します。

-

(2). 差分(パッチ)の作成:
diff -Naur a b > 01.fixes.patch

→ファイル名は任意ですが、意味があり、

複数のパッチが置かれている場合、数字やアルファベット順にパッチが当たります:

なので、ファイル名の先頭に「2桁の数字」を付けて、パッチの当たる順番を指定しています:

-

まとめて「差分」を作ると作業は楽ですが、

それよりも、ステップごとに修正後、差分を作り、
「a」と「b」の内容を同じにしてから、次のステップに進み、
修正して、差分を作ることで、

後からでも、わかりやすい(ちょっとしたことなら修正できる)「パッチ」ファイルを作れます:

-

(3). テンプレートファイルが置かれた「パッケージ」のフォルダに、「patches」という名前のフォルダを作成:

これがポイントみたい。たぶん、パッチファイルに「.patch」拡張子は要らないかも。

-

(4). そのフォルダに、作成した「.patch」ファイルを移動:

「パッケージ化」する前に、作成に使ったフォルダを削除しないとエラーするので、どうせなので、「コピー」よりも「移動」にすると工数が減らせます:

-

(5). xbps-src は、パッケージがビルドされるたびに、パッチファイルでパッチコマンドを実行します。

つまり、「テンプレート」の中で、パッチをしなさいという指示は必要ありません。
パッチファイルを置くだけで、パッチが当たります。

-


2). パッチファイルを使っている例を見てみる:

-

(1). patch ファイルが置かれた「フォルダ」を検索:
$ sudo find / -name patches
:
/home/user/git/void-packages/srcpkgs/lxdm/patches
:
省略

-

「lxdm」アプリを例として、見てみます:

$ ls -1p ~/git/void-packages/srcpkgs/lxdm/
:
INSTALL
files/
patches/
template

→「テンプレート」と「パッチ」以外に、「ファイル」(中身はスクリプト)や「スクリプト」も置けるみたい:

-

パッチのフォルダを確認:

$ ls -1 ~/git/void-packages/srcpkgs/lxdm/patches/
:
default-PATH.patch
default-config.patch
execinfo.patch
fix-msghdr-usage.patch

→「patches」フォルダの中に、複数の「.patch」ファイルが置かれています:

名前の付け方は任意ですが、(さりげなく、順番が指示されています)
アルファベット順とか、大文字が先とか、パッチの当たる順番があります:

2桁の「数字」を頭に付けると、自由な名前で、順番を調整できます:

-

(2). 「lxdm」アプリに対するパッチ1:
$ cat ~/git/void-packages/srcpkgs/lxdm/patches/default-PATH.patch
From e46c33735f81ca5607247fd0690ebbe9f1565708 Mon Sep 17 00:00:00 2001
From: Piotr Wójcik <chocimier@tlen.pl>
Date: Tue, 8 Oct 2019 19:32:15 +0200
Subject: [PATCH] tweak default PATH


diff --git a/src/lxdm.c b/src/lxdm.c
index a37f051..8a0e6c6 100644
--- a/src/lxdm.c
+++ b/src/lxdm.c
@@ -1399,7 +1399,7 @@ void lxdm_do_login(struct passwd *pw, char *session, char *lang, char *option)
    if( G_UNLIKELY(path) && path[0] ) /* if PATH is specified in config file */
        env=g_environ_setenv(env, "PATH", path, TRUE); /* override current $PATH with config value */
    else /* don't use the global env, they are bad for user */
-       env=g_environ_setenv(env, "PATH", "/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin", TRUE); /* set proper default */
+       env=g_environ_setenv(env, "PATH", "/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", TRUE); /* set proper default */
    g_free(path);
    /* optionally override $LANG, $LC_MESSAGES, and $LANGUAGE */
    if( lang && lang[0] )
-- 
2.23.0

→最終行に git のバージョン表示があるので、git 環境で修正してコミット後、
「git format-patch -1」で差分を作成したみたい:

「-1」はコミット数(最新のコミットを 1つ)、つまり、パッチのファイル数です:

通常、コミット名をファイル名にして、サブとしてファイルが分離されますが、ファイル名は後で修正できます:

-

(3). 「lxdm」アプリに対するパッチ2:
$ cat ~/git/void-packages/srcpkgs/lxdm/patches/default-config.patch
--- a/data/lxdm.conf.in  2013-08-30 17:56:16.097006000 +0200
+++ b/data/lxdm.conf.in 2013-09-04 01:54:12.942117085 +0200
@@ -23,7 +23,7 @@
 
 [server]
 ## arg used to start xserver, not fully function
-# arg=/usr/bin/X -background vt1
+arg=/usr/bin/X -background vt1
 # uncomment this if you really want xserver listen to tcp
 # tcp_listen=1
 # uncoment this if you want reset the xserver after logou
@@ -34,7 +34,7 @@
 gtk_theme=Clearlooks
 
 ## background of the greeter
-bg=/usr/share/backgrounds/default.png
+#bg=/usr/share/void-artwork/splash.png
 
 ## if show bottom pane
 bottom_pane=1
--- a/data/lxdm.in  2013-08-30 17:56:16.097006000 +0200
+++ b/data/lxdm.in  2013-09-04 01:57:56.950799946 +0200
@@ -1,21 +1,13 @@
 #!/bin/sh
 
-[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
-
-if [ -z "$LANG" -a -e /etc/sysconfig/language ]; then
-   . /etc/sysconfig/language
-   if [ -n "$RC_LANG"]; then
-       LANG=$RC_LANG
-   fi
+if [ -r /etc/profile.d/locale.sh ]; then
+   . /etc/profile.d/locale.sh
 fi
 
 if [ -n "$LANG" ]; then
    export LANG
 fi
 
-[ -f /etc/sysconfig/desktop ] && . /etc/sysconfig/desktop
-[ -f /etc/sysconfig/windowmanager ] && . /etc/sysconfig/windowmanager
-
 if [ -n "$DEFAULT_WM" ]; then
    PREFERRED=$DEFAULT_WM
 fi
--- a/data/Xsession 2013-08-30 17:56:16.097006000 +0200
+++ b/data/Xsession 2013-09-04 01:58:19.941348762 +0200
@@ -9,6 +9,8 @@
    LXSESSION=/usr/bin/startlxde
 fi
 
+[ -f /etc/profile ] && . /etc/profile
+[ -f ~/.profile ] && . ~/.profile
 [ -f /etc/xprofile ] && . /etc/xprofile
 [ -f ~/.xprofile ] && . ~/.xprofile

→a b のフォルダに置いた 3つのファイルを修正後、まとめて、手動で「diff -Naur a b > default-config.patch」で差分を作成したようです。作業は楽ですが、行が長くなると見づらくて、ちょっとした修正もしづらくなります:

他の(git で作成した)パッチと違和感がないように、先頭行と途中の(先頭)行は削除しています:

-

(4). その他の情報:
$ ls -1p ~/git/void-packages/srcpkgs/lxdm/
:
INSTALL
files/
patches/
template

→ファイルやフォルダを見ると、「xbps-src」には、「パッチ」以外の機能も持っているみたい:

-

「INSTALL」スクリプトの内容:
$ cat ~/git/void-packages/srcpkgs/lxdm/INSTALL
# Set correct permissions for LXDM.

case ${ACTION} in
post)
    chown root:lxdm etc/lxdm/lxdm.conf
    [ ! -d var/lib/lxdm ] && mkdir -p var/lib/lxdm
    chown -R root:lxdm var/lib/lxdm
    ;;
esac

-

「files」フォルダ:
$ ls -1p ~/git/void-packages/srcpkgs/lxdm/files/
:
lxdm/
lxdm.pam

-

$ ls -1p ~/git/void-packages/srcpkgs/lxdm/files/lxdm/
:
run

-

「run」スクリプトの内容:
$ cat ~/git/void-packages/srcpkgs/lxdm/files/lxdm/run
:
#!/bin/sh
exec 2>&1
exec lxdm

→起動を行うスクリプトみたい:

-

「lxdm.pam」ファイルの内容:
$ cat ~/git/void-packages/srcpkgs/lxdm/files/lxdm.pam
:
#%PAM-1.0
auth        include     system-login
-auth       optional    pam_gnome_keyring.so
account     include     system-login
password    include     system-login
session     include     system-login
-session    optional    pam_gnome_keyring.so auto_start

-

「テンプレート」ファイルの内容:
$ cat ~/git/void-packages/srcpkgs/lxdm/template
# Template file for 'lxdm'
pkgname=lxdm
version=0.5.3
revision=5
build_style=gnu-configure       ←(ビルドスタイル)
configure_args="--disable-consolekit --with-pam --enable-gtk3"  ←(パラメータの付加)
hostmakedepends="automake gettext-devel libtool pkg-config intltool"
makedepends="pam-devel gtk+3-devel iso-codes"
conf_files="                    ←(見やすく書けます)
    /etc/lxdm/LoginReady
    /etc/lxdm/PostLogin
    /etc/lxdm/PostLogout
    /etc/lxdm/PreLogin
    /etc/lxdm/PreReboot
    /etc/lxdm/PreShutdown
    /etc/lxdm/Xsession
    /etc/lxdm/lxdm.conf
    /etc/pam.d/lxdm"
short_desc="GUI login manager for LXDE"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://lxde.org"
distfiles="${SOURCEFORGE_SITE}/lxdm/lxdm-${version}.tar.xz"
checksum=4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f
system_groups="lxdm"   ←★

pre_configure() {     ←★
    autoreconf -fi
}
pre_build() {       ←★
    sed -i 's,@DATADIRNAME@,share,g' -i po/Makefile
}
post_install() {      ←★
    vsv lxdm
    # Use our own pam file.
    rm -f ${DESTDIR}/etc/pam.d/lxdm
    vinstall ${FILESDIR}/lxdm.pam 644 etc/pam.d lxdm
    # use tty7 for X without systemd
    sed -i 's,vt1,vt7,g' ${DESTDIR}/etc/lxdm/lxdm.conf
    sed -i 's,/usr/sbin,/usr/bin,g' ${DESTDIR}/usr/bin/lxdm
    vmkdir var/lib/lxdm
    echo 'GDK_CORE_DEVICE_EVENTS=true' > ${DESTDIR}/var/lib/lxdm/.pam_environment
}
→「build_style=gnu-configure」の場合のテンプレートファイルです:

システムで使われるアプリなので、いつものアプリのビルドよりも、ちょっと複雑です:

ちなみに、優先度は、「★」→「パラメータの付加」→「ビルドスタイル」の順で、上書きされるみたい:

つまり、「★」と「パラメータの付加」は省略すると、「ビルドスタイル」のデフォルトが取られます:

「ビルドスタイル」を省略した場合は、「★」で、パッケージ化までの手順を書く必要があります:

なので、「ビルドスタイル」は指定して、細かく指示したいところだけ、「パラメータの付加」、もしくは「★」で書くと、その他のパッケージ化等の手順を書かなくて済みます:

-

→パッチについての指示は書かれていません。ファイルが存在すると、自動でパッチが当たるようです:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- --

33. 参考:「xbps-src」のテンプレートファイルを「Haiku OS」のレシピファイルと比較:

-

こちらの作業は要りません:

-

「Void Linux」でビルドの指示に使われる「テンプレート」ファイルは、
Haiku OS」では「レシピファイル」と呼ばれます。

この機能を持つビルド環境?の「Haikuports」が提供されたことで、飛躍的に「Haiku OS」で使えるアプリが増えました(感謝 !!)

ですが、

「レシピファイル」を作るのは面倒で、とても大変です:
複雑なのは、「Haiku OS」が(Linux の発展前に作られた OS で)Linux ではないことも影響してます:

-

Haiku OSでアプリの移植を一度でも経験した後に、「Void Linuxの「xbps-src」のテンプレートファイルを見ると、その「必要最小限の簡潔さ」に驚きます:

- アプリの「カテゴリ分け」は行わないので、「カテゴリ分け」で悩むことはありません:
- 「パッケージ名」は、バージョンを気にせずに名前を付けられます:
- コメント行は、短い行のみ許されるので、書くのが楽です: 
- 「依存の書き方」は、ほぼ羅列するだけです:
- 「ビルドの手順」は、「代表の名前」を指示するだけです:
- 依存の「共有ファイル」で、必要な「バージョン」が移植されているか、気にする必要はありません:

→「Void Linux」でアプリの移植が進んでいるのは、Linux のアプリを Linux に移植していることと、簡潔な「テンプレートファイル」を使ってビルドできる設計になっているから、だと思います:

-


1). 「Haiku OS」のレシピファイル:

「Haiku」にて「FeatherPad」を「1.1.0」にバージョンアップ〈H136-7〉 より:

Haiku OS」に「featherpad-1.1.0」を移植したときの、「レシピファイル」と「付属ファイル」です:

-

(1). レシピファイル「featherpad-1.1.0.recipe」:

ファイル名にアプリの「バージョン」情報が含まれており、それは必須です:

-

> cat ~/Git/haikuports/app-editors/featherpad/featherpad-1.1.0.recipe
SUMMARY="A lightweight Qt5 plain-text editor for Linux"
DESCRIPTION="FeatherPad (by Pedram Pourang, a.k.a. Tsu Jan \
<tsujan2000@gmail.com>) is a lightweight Qt5 plain-text editor for Linux. \
It is independent of any desktop environment and has:
* Drag-and-drop support, including tab detachment and attachment;
* X11 virtual desktop awareness (using tabs on current desktop but opening \
a new window on another);
* An optionally permanent search-bar with a different search entry for each tab;
* Instant highlighting of found matches when searching;
* A docked window for text replacement;
* Support for showing line numbers and jumping to a specific line;
* Optional selection highlighting;
* Automatic detection of text encoding as far as possible and optional \
saving with encoding;
* Syntax highlighting for common programming languages;
* Ability to open URLs with appropriate applications;
* Session management;
* Side-pane mode;
* Auto-saving;
* Spell checking with Hunspell;
* Printing;
* Text zooming;
* Appropriate but non-interrupting prompts; and
* Other features that can be found in its settings, \
on its menus or when it is actually used."
HOMEPAGE="https://github.com/tsujan/FeatherPad"
COPYRIGHT="2016, 2018 Pedram Pourang"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/tsujan/FeatherPad/archive/refs/tags/V$portVersion.tar.gz"
CHECKSUM_SHA256="82bd94996f0d7be23be1b150a22d88b9c0b19c9852d5c2c7388e61ea9e05be03"
SOURCE_FILENAME="FeatherPad-$portVersion-tar.gz"
SOURCE_DIR="FeatherPad-$portVersion"
ADDITIONAL_FILES="featherpad.rdef.in"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
    featherpad$secondaryArchSuffix = $portVersion
    app:FeatherPad$secondaryArchSuffix = $portVersion
    "

REQUIRES="
    haiku$secondaryArchSuffix
    lib:libGL$secondaryArchSuffix
    lib:libhunspell_1.7$secondaryArchSuffix
    lib:libQt5Core$secondaryArchSuffix
    lib:libQt5Gui$secondaryArchSuffix
    lib:libQt5Network$secondaryArchSuffix
    lib:libQt5PrintSupport$secondaryArchSuffix
    lib:libQt5Svg$secondaryArchSuffix
    lib:libQt5Widgets$secondaryArchSuffix
    lib:libz$secondaryArchSuffix
    "

BUILD_REQUIRES="
    haiku${secondaryArchSuffix}_devel
    devel:libGL$secondaryArchSuffix
    devel:libhunspell_1.7$secondaryArchSuffix
    devel:libQt5Core$secondaryArchSuffix
    devel:libQt5Gui$secondaryArchSuffix
    devel:libQt5Network$secondaryArchSuffix
    devel:libQt5PrintSupport$secondaryArchSuffix
    devel:libQt5Svg$secondaryArchSuffix
    devel:libQt5Widgets$secondaryArchSuffix
    devel:libz$secondaryArchSuffix
    "

BUILD_PREREQUIRES="
    cmd:find
    cmd:g++$secondaryArchSuffix
    cmd:ld$secondaryArchSuffix
    cmd:lrelease$secondaryArchSuffix >= 5
    cmd:make
    cmd:pkg_config$secondaryArchSuffix
    cmd:cmake
    "

BUILD()
{
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX:PATH="$appsDir/FeatherPad" \
        -DCMAKE_BUILD_TYPE=Release

    make $jobArgs
}

INSTALL()
{
    cd build
    make install

    mv $appsDir/FeatherPad/featherpad \
        $appsDir/FeatherPad/FeatherPad

    local APP_SIGNATURE="application/x-vnd.featherpad"
    local MAJOR="`echo "$portVersion" | cut -d. -f1`"
    local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
    local MINOR="`echo "$portVersion" | cut -d. -f3`"
    sed \
        -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
        -e "s|@MAJOR@|$MAJOR|" \
        -e "s|@MIDDLE@|$MIDDLE|" \
        -e "s|@MINOR@|$MINOR|" \
        $portDir/additional-files/featherpad.rdef.in > featherpad.rdef

    addResourcesToBinaries featherpad.rdef $appsDir/FeatherPad/FeatherPad
    addAppDeskbarSymlink $appsDir/FeatherPad/FeatherPad "FeatherPad"
}

→「Haiku」では、レシピファイルのインデントは「タブ」を使うのがルールです:

ただし、ブラウザで表示すると「タブ」が「スペース」に変換されます

-

Haiku」のレシピファイルは、「依存の定義」が簡単とは言えないし、「ビルドの手順」も定義が必要で、人によって書かれている手順が異なります。そして、多くのシステム変数が使われています。学習が必要です:

また、ここで、アプリの「説明行」がやたら長いのが目立ちます:

-

ちなみに、「INSTALL()」行の後半の文字列の操作は、リソースの定義を行う、下記の「追加ファイル」に、バージョン情報を渡すための処理です。面倒ですね:

-

(2). 追加ファイルの「featherpad.rdef.in」:

FeatherPad の実行ファイルに、ファイル属性として組み込むリソース(アイコン情報)の定義です:

Haiku OS」で、FeatherPad のアイコンファイルがそのまま使えないので、ファイル属性として組み込む準備です:

-

これ以外に(「Haiku OS」でも動くように、ソースの一部を修正する)「.patchs」ファイルの定義があったりします:

これらは、「Haiku OS」が Linux ではないから必要になるファイルです:

-

> cat ~/Git/haikuports/app-editors/featherpad/additional-files/featherpad.rdef.in
resource app_flags B_MULTIPLE_LAUNCH;

resource ("QT:QPA_FLAGS") "Q_REF_TO_ARGV | Q_REF_TO_FORK";

resource app_version {
    major  = @MAJOR@,
    middle = @MIDDLE@,
    minor  = @MINOR@,

    variety = B_APPV_FINAL,
    internal = 0,

    short_info = "FeatherPad",
    long_info = "Lightweight Qt5 text editor"
};

resource app_signature "application/x-vnd.featherpad";

resource file_types message {
        "types" = "text/x-source-code",
        "types" = "text/x-makefile",
        "types" = "text/x-jamfile",
        "types" = "text/html",
        "types" = "text/xml",
        "types" = "text/plain",
        "types" = "text/rtf"
};

resource vector_icon {

    $"6E6369661A05FE0382848103696B670387898603A7A8A603B3B4B203B4B4B303"
    $"A2A39F05F903D2D9E105FA034D76A303C8CACA03878F92038EA8C40393999A03"
    $"AFBCC803090B0C03A0A29E03A4A7A403A9ABA7038B8D8903888A850397999503"
    $"D2D5CE035B5E592408052020CBFA20CBFACBFA20CBFA20200211B85BB5ACB855"
    $"B453B768B5A6B48BB593B57EB59AB48BB593B493B613B493B613B493B613B40E"
    $"B623B40EB623B403BD19B40DCB04B406C40FB40DCB04B46CCACFB46CCACFBBF7"
    $"CB0BCB12CACEC387CB00CB12CACECB70CB03CB70CB03CB78C40ECB70B626CB7C"
    $"BD19CB70B626CAEBB60FCAEBB60FCAEBB60FCAEFB593CAEFB593C9FDB59AC722"
    $"B5ACC817B5A6C726B453C518B5904DB406C49AB53AC32BB523C31DB3CFC1DDB5"
    $"D6BFE0B56043B3B4BEFCB4E7BD43B5A6BDB1B3F7BC80B456BA66B590BB4FB484"
    $"BA91B4060207B85BB5ACB87CB65CB855B453BA66B590BA91B406BB4FB484BD43"
    $"B5A6BC80B456BD43B5A6BD31B60CBD31B60CBD08B6C1BCC0B82DBCE9B777BB87"
    $"B887BA61B6A2BAF6B77BBAAAB7E6B8B2B7BFB99FB8D5B899B70D000ABD43B5A6"
    $"BD43B5A6BDB1B3F7BFE0B560BEFCB4E743B3B4C32BB523C1DDB5D6C31CB60CC2"
    $"CAB7D4C300B6F3C2B7B760C27BB5FDC28FB674C227B6C4C1A4B861C1EFB796C0"
    $"6FB83EBFA7B61CC00DB70FBF98B736BDF0B87BBF00B81BBD8BB7B9BD31B60C3A"
    $"B6E1BD31B60CBD43B5A6BD43B5A6BD43B5A60003BE15B5B3BE15B5B3BDBAB64D"
    $"BE09B788BDB6B6EABF40B7E5BE15B5B3BF75B501BE15B5B30202C0ACB5B345B5"
    $"1EC025B64AC175B788C095B7BCC1EBB6F00204B493B613B500BC33B55DB632B7"
    $"BCB690B6F3B670B6DCB697B51AB6B5B5FAB69EB4F5BCA925C892B53AC29FB3B8"
    $"C28B0204C837B676C8EFB688C90DB60ACAEBB60FCA04B626CA8CBC27CA8FC871"
    $"CBACC26ECA30C28BCA63B6BBCA94BCA0C9ABB69E0206C32BB523C31CB60CC31D"
    $"B3CFC518B590C49AB53A4DB406C722B5ACC726B453C702B65BC6CAB7BBC6E5B7"
    $"0AC5D7B8D5C51EB6A3C4D9B7E5C4BBB768C2CAB7D4C342B906C300B6F30205B4"
    $"8BB593B48BB593B57EB59AB85BB5ACB768B5A6B87CB65CB8B2B7BFB899B70DB8"
    $"63B757B7BCB690B810B6F3B6F3B670B493B613B55DB632B493B6130205C722B5"
    $"ACC702B65BC817B5A6CAEFB593C9FDB59ACAEFB593CAEBB60FCAEBB60FCA04B6"
    $"26C837B676C90DB60AC796B6AFC6CAB7BBC73AB747C6E5B70A0202BE15B5B3BD"
    $"BAB64DBF75B501BE09B788BF40B7E5BDB6B6EA0202C0ACB5B3C025B64A45B51E"
    $"C175B788C1EBB6F0C095B7BC0206B40EB623B403BD19B40EB623B493B613B493"
    $"B613B500BC3325C892B3B8C28BB50AC92CB51ECA61B516C9C7B4F3CA7DB46CCA"
    $"CF24CAB4B46CCACFB40DCB04B40DCB04B406C40F0206CAEBB60FCA8CBC27CAEB"
    $"B60FCB70B626CB70B626CB7CBD19CB70CB03CB78C40ECB70CB03CB12CACECB12"
    $"CACECAE5CAB4CA5DCA61CA8ACA7DCA6AC9BBCA8FC871CA7CC917CBACC26E0212"
    $"BCC0B82DBB87B887BCE9B777BD31B60CBD08B6C13AB6E1BDF0B87BBD8BB7B9BD"
    $"8FB8B5BCC8B927BD2BB8EDBC51B959BB6731BBDCB98F32BA16B72DBA42B77FB9"
    $"0AB72DBA42B73BBAB8B73BBAB8B7E8BAE1B9F7BB5BB947BB33B904BB92B730BC"
    $"4FB6A3BA94B79BBC58B8D4BC74B86CBC6AB878BCC6B76FBD46B755BCB5B7DA40"
    $"B71CC4C9B747C25AB6DEC56CB670C6B3B6A7C60DB627C77D25C892B5F0C85FB5"
    $"3AC29FB51AB6B5B4F5BCA9B5FAB69EB7BCB690B6DCB697B810B6F3B8B2B7BFB8"
    $"63B757B99FB8D5BA61B6A2BAAAB7E6BAF6B77B0205BFA7B61CBF98B736C00DB7"
    $"0FC1A4B861C06FB83EC1A4B861C188B8BBC188B8BBBFF2B8DEBCC8B927BE5DB9"
    $"0ABD2BB8EDBDF0B87BBD8FB8B5BF00B81B0016C1A4B861C1A4B861C1EFB796C2"
    $"7BB5FDC227B6C4C28FB674C2CAB7D4C2B7B760C342B906C51EB6A3C4BBB768C4"
    $"D9B7E5C6CAB7BBC5D7B8D5C73AB747C837B676C796B6AFC8EFB688CA63B6BBC9"
    $"ABB69ECA94BCA0CA8FC871CA30C28BC41FC832B73CC84BBDACC875B73CC84BB7"
    $"07C7EDB707C7EDB81DC733B8BBC4BAB868C5EAB98AC47FBB2BC40EBA5BC442BD"
    $"59C420C1B3C41FBF85C424C18DC3FCC11FC390C144C3B5BFD5C2A3BC57C314BD"
    $"DFC353BDB5C29EBF8FC09BBEF0C20DBFA8BF35C12DBE38C367BF55C27ABD3BC5"
    $"18BB37C384BBC2C68EBB42C97FBB3DC806BB44C8FCBAEAC7EABA5BC876BA9BC5"
    $"E6B979C188B8BBC3C7B891C188B8BBC1A4B861C1A4B861C1A4B8610004C4C9BC"
    $"F1C4C9BCF1C49DBD2EC41CBDE4C447BDA7C55CBDF5C7E0BDE4C69FBDF5C76DBC"
    $"83C4C9BCF1C5E9BCDBC4C9BCF10407FA3EC29EC323C29BC3A6C29EC428C29EC4"
    $"28C40BC428C853C42AC6E7C42AC853C42AC856C3A6C853C323C853C323C6E6C3"
    $"23C29EC323C40AC323C29EC3230203B9C3C539BB2BC52CB9C3C579B9C5C63DB9"
    $"C5C5FDBB42C629BDFDC53D3AC703BC93C52E0212BCC8B927BC51B959BE5DB90A"
    $"C188B8BBBFF2B8DEC3C7B891C7EABA5BC5E6B979C73633C518BB37C5CDBAFFC3"
    $"84BBC2C12DBE38C27ABD3BC367BF55BF8FC09BBFA8BF35BEF0C20DBC57C314BD"
    $"B5C29EBC32C334BBC2C390BBE7C372BB9CC3B0BB2BC40EBB51C3EFBA5BC442B8"
    $"BBC4BAB98AC47FB988C123BF04BC52BCF5BF21BB87BDECB71CC4C9B91CC18BB7"
    $"47C25AB76FBD46B7DA40B80FBD83B92FBE39B898BDECB93EBDA4B92DBC79B93E"
    $"BD0F30BC32B9F7BB5BB9C5BBA2BA5BBB1EBAEDBA66BAADBACABB0CBA3EBB6731"
    $"BB49B9EEBBDCB98F0203B72DBA42B86DBA48B77FB90ABB673132BA16BB49B9EE"
    $"BAEDBA66BB0CBA3EB9ADBA520204B72DBA42B72DBA42B86DBA48BAEDBA66B9AD"
    $"BA52BAADBACAB9F7BB5BBA5BBB1EB947BB33B73BBAB8B7E8BAE1B73BBAB80203"
    $"C7EABA5BC73633C876BA9BC97FBB3DC8FCBAEAC806BB44C518BB37C68EBB42C5"
    $"CDBAFF0204B730BC4FB79BBC58B6A3BA94B9F7BB5BB904BB92B9C5BBA2B92DBC"
    $"7930BC32B92DBC79B8D4BC74B8D4BC74B86CBC6A0204B8D4BC74B878BCC6B8D4"
    $"BC74B92DBC79B92DBC79B93EBD0FB92FBE39B93EBDA4B898BDECB76FBD46B80F"
    $"BD83B755BCB50205B71CC4C9B6DEC56CB91CC18BBF04BC52BB87BDECBCF5BF21"
    $"B8BBC4BAB988C123B868C5EAB707C7EDB81DC733B6E1C79EB670C6B329C702B6"
    $"A7C60D0203C4C9BCF1C49DBD2EC5E9BCDBC7E0BDE4C76DBC83C69FBDF5C41CBD"
    $"E4C55CBDF5C447BDA70203BBC2C390BD8CC3A2BBE7C372BC57C314BC32C334BD"
    $"DFC353C11FC390BFD5C2A3BF55C3970204C29EC323C29EC323C40AC323C853C3"
    $"23C6E6C323C853C323C856C3A6C856C3A6C66CC3A6C29BC3A6C485C3A6C29BC3"
    $"A60204BB2BC40EBD59C420BB51C3EFBBC2C390BB9CC3B0BD8CC3A2C11FC390BF"
    $"55C397C144C3B5C1B3C41FC18DC3FCBF85C4240204C29BC3A6C29BC3A6C485C3"
    $"A6C856C3A6C66CC3A6C856C3A6C853C42AC853C42AC6E7C42AC29EC428C40BC4"
    $"28C29EC4280203B9C3C539B9C3C579BB2BC52CBDFDC53DBC93C52E3AC703B9C5"
    $"C63DBB42C629B9C5C5FD020725C892B50AC92CB5F0C85FB670C6B3B627C77D29"
    $"C702B707C7EDB6E1C79EB707C7EDB73CC84BB73CC84BBDACC875CA8FC871C41F"
    $"C832CA7CC917CA5DCA61CA6AC9BBC347CA6AB51ECA61BC34CA77B516C9C70204"
    $"B46CCACFBBF7CB0B24CAB4B51ECA61B4F3CA7DBC34CA77CA5DCA61C347CA6ACA"
    $"8ACA7DCB12CACECAE5CAB4C387CB001E0A00020001000A010102000A02030304"
    $"05000A020106000A020107000A030108000A040109000A04010A000A05010B00"
    $"0A06010C000A07010D000A07010E000A08010F000A090110000A0A0411121314"
    $"000A0B0115000A0C0116000A0D0117000A0E0118000A0F0119000A10011A000A"
    $"11011B000A12011C000A13011D000A14011E000A15011F000A160120000A1701"
    $"21000A180122000A19012300"
};

Haiku の画像ツールを使い、アイコンの「ベクターデータ」をコード化して、貼り付けました:

できるだけデータが小さくなるように画像を加工しましたが、あまり減っていません:

-


2). 「Void Linux」の「xbps-src」のテンプレートファイル:

「FeatherPad」アプリのテンプレートファイルです:

$ cat ~/git/void-packages/srcpkgs/FeatherPad/template
# Template file for 'FeatherPad'
pkgname=FeatherPad
version=1.6.2
revision=1
build_style=cmake
hostmakedepends="qt6-tools qt6-base-devel pkg-config"
makedepends="libX11-devel libXext-devel qt6-svg-devel hunspell-devel"
short_desc="Lightweight Qt6 plain-text editor for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/tsujan/FeatherPad"
changelog="https://github.com/tsujan/FeatherPad/raw/master/ChangeLog"
distfiles="https://github.com/tsujan/FeatherPad/archive/V${version}.tar.gz"
checksum=9753796b2a525a4d6b13696681e9fbb094edcc20e8aadffcd5bb6fe22d0a5fdb

→「distfiles=」の ${version} に、自動で「version=」の値が入ります:

たったこれだけの(最低限の)指示で、ソースをビルド後、「パッケージ化」までが完了します:

「項番 1).」の「Haiku OS」に比べると雲泥の差で、「驚き」です:

-

たぶん、比較するなら、Linux 上のツールにすべきでしょうが、それでも、

アプリを移植するスピードは格段に違うし、これなら「ちょっと移植してみるかな」と思わせます:

-

-


- --- - --- - --- - --- - --- - --- - --- ----- ----- ----- ----- ----- ---

34. 参考: 「xbps-src」にて、いくつかのアプリの「テンプレート」を抜粋:

-

「srcpkgs/」から、いくつかの「テンプレート」ファイルを抜粋しました:

「テンプレート」ファイルの作成で悩んだときの参考になればと思います:

-

アプリによって、簡単なものから、複雑なものまであります。奥は深いです:

-

抽出に使ったやり方:

$ cd ~/git/void-packages
$ sudo grep -ril "configure" srcpkgs/

-

$ sudo grep -ril "qmake" srcpkgs/

-

$ sudo grep -ril "meson" srcpkgs/

-


1). 「build_style=gnu-configure」

-

(1). 「vice」
$ cat srcpkgs/vice/template
# Template file for 'vice'
pkgname=vice
version=3.9
revision=1
build_style=gnu-configure
configure_args="--enable-cpuhistory --enable-x64 --disable-pdf-docs
 --libdir=/usr/lib$XBPS_TARGET_WORDSIZE $(vopt_enable sdl2 sdlui2)
 $(vopt_with sdl2 sdlsound) $(vopt_enable gtk3 native-gtk3ui)
 $(vopt_enable gtk3 desktop-files) $(vopt_with gtk3 pulse)
 $(vopt_enable ffmpeg external-ffmpeg)"
hostmakedepends="pkg-config flex dos2unix xa perl glib-devel xdg-utils"
makedepends="zlib-devel readline-devel libpng-devel glew-devel alsa-lib-devel
 libcurl-devel libevdev-devel $(vopt_if sdl2 SDL2_mixer-devel) $(vopt_if sdl2 SDL2-devel)
 $(vopt_if gtk3 gtk+3-devel) $(vopt_if gtk3 pulseaudio-devel)
 $(vopt_if ffmpeg ffmpeg6-devel)"
short_desc="Emulator for C64, C128, CBM-II, PET, VIC20, Plus4 and C16"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://vice-emu.sourceforge.net/"
changelog="https://vice-emu.sourceforge.io/NEWS"
distfiles="${SOURCEFORGE_SITE}/vice-emu/releases/vice-${version}.tar.gz"
checksum=40202b63455e26b87ecc63eb5a52322c6fa3f57cab12acf0c227cf9f4daec370

# Package build options
build_options="sdl2 gtk3 ffmpeg"
build_options_default="gtk3 ffmpeg"

desc_option_ffmpeg="Support video recording via FFmpeg"

export XDG_DATA_DIRS=$DESTDIR/usr/share

post_patch() {
    vsed -i src/arch/gtk3/data/unix/Makefile.in \
        -e 's/\$(XDG_DESKTOP_MENU) install/$(XDG_DESKTOP_MENU) install --mode system/'
}

pre_install() {
    # required for xdg-desktop-menu to work
    vmkdir usr/share/applications
    vmkdir usr/share/desktop-directories
}

-

(2). 「strongswan」
$ cat srcpkgs/strongswan/template
# Template file for 'strongswan'
pkgname=strongswan
version=6.0.2
revision=1
build_style=gnu-configure
# tpm support waits on libtss2
configure_args="--disable-static --enable-blowfish --enable-curl --enable-md4
 --enable-eap-radius --enable-eap-mschapv2 --enable-eap-md5
 --enable-eap-identity --enable-eap-dynamic --enable-led --enable-ha --enable-dhcp
 --enable-mediation --disable-soup --enable-chapoly --enable-nm --enable-stroke
 --enable-pkcs11 --with-capabilities=libcap"
hostmakedepends="pkg-config automake flex bison python3"
makedepends="libldns-devel unbound-devel libcurl-devel
 NetworkManager-devel openssl-devel libcap-devel"
depends="iproute2 sqlite"
checkdepends="iana-etc"
conf_files="/etc/strongswan.conf /etc/strongswan.d/*.conf /etc/strongswan.d/charon/*.conf
 /etc/swanctl/swanctl.conf"
short_desc="IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.strongswan.org/"
changelog="https://raw.githubusercontent.com/strongswan/strongswan/master/NEWS"
distfiles="https://download.strongswan.org/strongswan-${version}.tar.bz2"
checksum=b8bfc897b84001fd810a281918d6c9ce37503cae0f41b39c43d4aba0201277cf
make_dirs="/etc/swanctl/conf.d 0755 root root
 /etc/swanctl/x509 0755 root root
 /etc/swanctl/x509ca 0755 root root
 /etc/swanctl/x509aa 0755 root root
 /etc/swanctl/x509ocsp 0755 root root
 /etc/swanctl/x509crl 0755 root root
 /etc/swanctl/x509ac 0755 root root
 /etc/swanctl/rsa 0750 root root
 /etc/swanctl/ecdsa 0750 root root
 /etc/swanctl/pkcs8 0750 root root
 /etc/swanctl/pkcs12 0750 root root
 /etc/swanctl/private 0750 root root
 /etc/swanctl/pubkey 0755 root root"

post_install() {
    vsv strongswan
}

-

(3). 「xterm」
$ cat srcpkgs/xterm/template
# Template file for 'xterm'
pkgname=xterm
version=402
revision=1
build_style=gnu-configure
configure_args="--enable-wide-chars --enable-88-color --enable-broken-osc
 --enable-256-color --enable-luit --enable-paste64 --enable-ansi-color
 --enable-mini-luit --enable-readline-mouse --enable-broken-st
 --enable-narrowproto --libdir=/etc --enable-load-vt-fonts
 --with-app-defaults=/usr/share/X11/app-defaults --enable-i18n
 --disable-full-tgetent --disable-imake --enable-doublechars
 --enable-freetype --enable-tcap-query --enable-logging --enable-dabbrev
 --with-pkg-config=yes --enable-exec-xterm --with-utempter
 --with-xterm-kbs=DEL --enable-backarrow-is-erase --enable-sixel-graphics"
hostmakedepends="pkg-config"
makedepends="libXaw-devel libXft-devel libutempter-devel libxkbfile-devel
 ncurses-devel"
short_desc="X Terminal Emulator"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT, X11"
homepage="https://invisible-island.net/xterm/"
changelog="https://invisible-island.net/xterm/xterm.log.html"
distfiles="https://invisible-mirror.net/archives/xterm/xterm-${version}.tgz"
checksum=5260c5793cd564c69e53ef6f528c00af066ae67b42d02137fb7ef8fafe70bb7a

CFLAGS="-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700"

post_install() {
    for f in {u,}xterm.desktop; do
        vinstall $f 644 usr/share/applications
    done

    vlicense COPYING
}

-


2). 「build_style=meson」

-

(1). 「yaru」
$ cat srcpkgs/yaru/template
# Template file for 'yaru'
pkgname=yaru
version=25.10.1
revision=1
build_style=meson
configure_args="-Dxfwm4=true"
hostmakedepends="glib-devel sassc pkg-config inkscape"
makedepends="gtk+3-devel libglib-devel"
short_desc="Default Ubuntu 18.10+ theme"
maintainer="mobinmob <mobinmob@disroot.org>"
license="GPL-3.0-or-later, CC-BY-SA-4.0"
homepage="https://github.com/ubuntu/yaru"
changelog="https://raw.githubusercontent.com/ubuntu/yaru/master/debian/changelog"
distfiles="https://github.com/ubuntu/yaru/archive/$version.tar.gz"
checksum=e718058726fc0b5f2dc10de6142ea86c57ca46072c1fe59c8699d8b3dd7316b5

-

(2). 「zim-tools」
$ cat srcpkgs/zim-tools/template
# Template file for 'zim-tools'
pkgname=zim-tools
version=3.5.0
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="libzim-devel xapian-core-devel icu-devel
 gumbo-parser-devel docopt.cpp-devel file-devel Mustache zlib-devel"
checkdepends="gtest-devel"
short_desc="Various ZIM command line tools"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="http://www.openzim.org"
changelog="https://raw.githubusercontent.com/openzim/zim-tools/main/ChangeLog"
distfiles="https://github.com/openzim/zim-tools/archive/refs/tags/${version}.tar.gz"
checksum=43c9049e61165c63a763fbad72ef758051dcad24f84ae1ab2876e9520c753f03
make_check=no # Tests are broken upstream, see https://github.com/openzim/zim-tools/issues/345

libzim-tools_package() {
    metapackage=yes
    short_desc+=" - transitional dummy package"
    depends="${sourcepkg}>=${version}_${revision}"
}

zimwriterfs_package() {
    metapackage=yes
    short_desc+=" - transitional dummy package"
    depends="${sourcepkg}>=${version}_${revision}"
}

-

(3). 「xfce4-terminal」
$ cat srcpkgs/xfce4-terminal/template
# Template file for 'xfce4-terminal'
pkgname=xfce4-terminal
version=1.1.5
revision=1
build_style=meson
hostmakedepends="gettext pkg-config libxslt glib-devel docbook-xsl"
makedepends="exo-devel vte3-devel gtk-layer-shell-devel libglib-devel gtk+3-devel
 pcre2-devel libxfce4ui-devel libxfce4util-devel xfconf-devel libX11-devel"
depends="desktop-file-utils hicolor-icon-theme gsettings-desktop-schemas"
short_desc="Modern terminal emulator primarly for the Xfce desktop environment"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://docs.xfce.org/apps/xfce4-terminal/start"
changelog="https://gitlab.xfce.org/apps/xfce4-terminal/-/raw/master/NEWS"
distfiles="https://archive.xfce.org/src/apps/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=3c5b1d3a01a9a113852ac0f77d1c85bf3a356b43de33ec805b21ceca7d6f0a63

-


3). 「build_style=cmake」

-

(1). 「rpi-imager」
$ cat srcpkgs/rpi-imager/template
# Template file for 'rpi-imager'
pkgname=rpi-imager
version=1.8.5
revision=1
build_wrksrc=src
build_style=cmake
configure_args="-DENABLE_TELEMETRY=OFF -DENABLE_CHECK_VERSION=OFF"
hostmakedepends="qt5-host-tools qt5-qmake"
makedepends="qt5-devel qt5-declarative-devel qt5-svg-devel qt5-tools-devel
 libcurl-devel libarchive-devel gnutls-devel"
depends="qt5-quickcontrols2 qt5-svg util-linux"
short_desc="Raspberry Pi Imaging Utility"
maintainer="Adam Gausmann <adam@gaussian.dev>"
license="Apache-2.0"
homepage="https://github.com/raspberrypi/rpi-imager"
distfiles="https://github.com/raspberrypi/rpi-imager/archive/v${version}.tar.gz"
checksum=443e2ca2132067cc67038c82d890f70fd744da2503588852f014435dd11fb786

pre_configure() {
    ln -sf /bin/true $XBPS_WRAPPERDIR/lsblk
}

-

(2). 「texworks」
$ cat srcpkgs/texworks/template
# Template file for 'texworks'
pkgname=texworks
version=0.6.6
revision=4
build_style=cmake
configure_args="-DTW_BUILD_ID=Void -DWITH_LUA=ON -DWITH_PYTHON=ON
 -DDESIRED_QT_VERSION:STRING=5"
hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
makedepends="lua53-devel python3-devel qt5-tools-devel qt5-script-devel
 qt5-declarative-devel poppler-qt5-devel hunspell-devel"
depends="hunspell dejavu-fonts-ttf"
short_desc="TeX editor"
maintainer="Bosco <jboscogg@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.tug.org/texworks"
distfiles="https://github.com/texworks/texworks/archive/release-${version}.tar.gz"
checksum=c0742fd76de0cacdd52bbf406788a4fe30ee281df2cf085531d98ee4b7f9b72f
# Tests require xserver
make_check=no

-

(3). 「wsjtx」
$ cat srcpkgs/wsjtx/template
# Template file for 'wsjtx'
pkgname=wsjtx
version=2.7.0
revision=3
build_wrksrc=wsjtx
build_style=cmake
configure_args="-DRIGCTLCOM_EXE= -DRIGCTL_EXE= -DRIGCTLD_EXE=
 -DBoost_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include"
hostmakedepends="pkg-config gcc-fortran ruby-asciidoctor asciidoc qt5-qmake
 qt5-host-tools"
makedepends="boost-devel-minimal libboost_log_setup libboost_log
 libboost_filesystem libboost_thread
 fftw-devel libgomp-devel hamlib-devel libusb-devel qt5-devel
 qt5-multimedia-devel qt5-tools-devel qt5-serialport-devel qt5-plugin-mysql
 qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds"
depends="qt5-plugin-sqlite"
short_desc="Weak-signal Amateur Radio communication program"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-3.0-or-later"
homepage="https://wsjt.sourceforge.io/wsjtx.html"
changelog="https://wsjt.sourceforge.io/Release_Notes.txt"
distfiles="${SOURCEFORGE_SITE}/wsjt/wsjtx-${version}/wsjtx-${version}.tgz"
checksum=3788f5df636af792514609ec2b4abe58477aa5f0ad32cb826424866fc21cec93

post_extract() {
    bsdtar xf src/wsjtx.tgz
    sed -i 's/ -Werror / /' wsjtx/CMakeLists.txt
}

post_install() {
    rm ${DESTDIR}/usr/share/man/man1/rigctl{,d,com}-wsjtx.1.gz
}

-

(4). 「xpdf」
$ cat srcpkgs/xpdf/template
# Template file for 'xpdf'
pkgname=xpdf
version=4.05
revision=2
build_style=cmake
configure_args="-DSYSTEM_XPDFRC=/etc/xpdfrc"
conf_files="/etc/xpdfrc"
hostmakedepends="qt5-host-tools qt5-qmake"
makedepends="freetype-devel qt5-devel libpaper-devel zlib-devel libpng-devel cups-devel"
depends="gsfonts qt5-svg"
short_desc="Viewer for Portable Document Format (PDF) files"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later"
homepage="http://www.xpdfreader.com/"
distfiles="https://dl.xpdfreader.com/xpdf-${version}.tar.gz"
checksum=92707ed5acb6584fbd73f34091fda91365654ded1f31ba72f0970022cf2a5cea

-


4). 「build_style=qmake」

-

(1). 「wkhtmltopdf」
$ cat srcpkgs/wkhtmltopdf/template
# Template file for 'wkhtmltopdf'
pkgname=wkhtmltopdf
version=0.12.6
revision=1
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
configure_args="INSTALLBASE=/usr"
makedepends="qt5-xmlpatterns-devel qt5-svg-devel qt5-webkit-devel"
depends="qt5-svg"
short_desc="Convert HTML to PDF using Webkit"
maintainer="Piraty <mail@piraty.dev>"
license="LGPL-3.0-or-later"
homepage="https://wkhtmltopdf.org"
distfiles="https://github.com/wkhtmltopdf/wkhtmltopdf/archive/${version}.tar.gz"
checksum=adcced78492e7366d940c66a1327a85d3ae8c45190f486f545fdaa84cac662f0

libwkhtmltopdf_package() {
    short_desc+=" - runtime library"
    pkg_install() {
        vmove "usr/lib/*.so.*"
    }
}

wkhtmltopdf-devel_package() {
    short_desc+=" - development files"
    depends="${sourcepkg}>=${version}_${revision}"
    pkg_install() {
        vmove usr/include
        vmove usr/lib/*.so
    }
}

-

(2). 「zrandr」
$ cat srcpkgs/zrandr/template
# Template file for 'zrandr'
pkgname=zrandr
version=0.3.2
revision=1
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="qt5-devel"
depends="desktop-file-utils hicolor-icon-theme xrandr"
short_desc="Simple Qt5 front end for xrandr"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://github.com/fralonra/zrandr"
distfiles="https://github.com/fralonra/zrandr/archive/v${version}.tar.gz"
checksum=04ba7dabbec63f3946ee4e1c8970f90a731928017d930c39ad21119775061a51

pre_configure() {
    lrelease -verbose zrandr.pro
}

do_install() {
    vbin zrandr
    vinstall build/zrandr.desktop 644 usr/share/applications

    for _i in 16 64 128 256; do
        vinstall build/icons/zrandr-${_i}x${_i}.png 644 usr/share/icons/hicolor/${_i}x${_i}/apps zrandr.png
    done

    for prog in zrandr; do
        vinstall build/icons/${prog}.svg 644 usr/share/icons/hicolor/scalable/apps ${prog}.svg
    done
}

-

(3). 「qxmledit」
$ cat srcpkgs/qxmledit/template
# Template file for 'qxmledit'
pkgname=qxmledit
version=0.9.18
revision=1
build_style=qmake
configure_args="QXMLEDIT_INST_DATA_DIR=/usr/share/qxmledit
 QXMLEDIT_INST_DIR=/usr/bin
 QXMLEDIT_INST_DOC_DIR=/usr/share/doc/qxmledit
 QXMLEDIT_INST_LIB_DIR=/usr/lib
 QXMLEDIT_INST_TRANSLATIONS_DIR=/usr/share/qxmledit/translations
 QXMLEDIT_INST_INCLUDE_DIR=/usr/include/qxmledit"
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="glu-devel qt5-devel qt5-declarative-devel qt5-scxml-devel
 qt5-script-devel qt5-svg-devel qt5-xmlpatterns-devel"
short_desc="Simple XML Editor"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="LGPL-2.0-or-later, Zlib"
homepage="https://qxmledit.org/"
distfiles="https://github.com/lbellonda/qxmledit/archive/${version}.tar.gz"
checksum=6966c286b71239304c5038b419ae67dd2492c235c024186e7dd581fef1dad29f

post_install() {
    vlicense external/qwtplot3d/license.txt
    vinstall install_scripts/environment/desktop/QXmlEdit.appdata.xml 644 usr/share/appdata/
    vinstall install_scripts/environment/desktop/QXmlEdit.desktop 644 usr/share/applications/
    vinstall src/images/icon.svg 644 usr/share/pixmaps qxmledit.svg
    vman install_scripts/environment/man/qxmledit.1
}

qxmledit-devel_package() {
    short_desc+=" - development files"
    depends="${sourcepkg}>=${version}_${revision}"
    pkg_install() {
        vmove usr/include
        vmove "usr/lib/*.so"
    }
}

-

(4). 「wpa-cute」
$ cat srcpkgs/wpa-cute/template
# Template file for 'wpa-cute'
pkgname=wpa-cute
version=0.8.6
revision=1
build_wrksrc="src"
build_style=qmake
hostmakedepends="qt5-host-tools qt5-qmake"
makedepends="qt5-devel qt5-svg-devel"
depends="wpa_supplicant qt5-svg"
short_desc="Graphical wpa_supplicant front end"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/loh-tar/wpa-cute"
distfiles="https://github.com/loh-tar/wpa-cute/archive/v${version}.tar.gz"
checksum=475ed1899ab76cf8478d057130e6f4766bc30e318631511a14ca8f3df0cf88e8

do_install() {
    vbin wpa-cute
    vman "${wrksrc}/doc/wpa-cute.8"
    vinstall icons/wpa_gui.svg 644 /usr/share/pixmaps
    vinstall wpa-cute.desktop 644 /usr/share/applications
    vlicense "${wrksrc}/COPYING"
}

-

-


5). 「qtchooser」について調べてみる:

-

「qtchooser」が含まれるテンプレートを検索:

$ sudo grep -ril "qtchooser" srcpkgs/
:
srcpkgs/qt5/template
srcpkgs/qtchooser/template
srcpkgs/qtcreator/template

-

(1). 「qt5」
$ cat srcpkgs/qt5/template

→参考にするには、デカすぎ:

$ head srcpkgs/qt5/template -n 20
# Template file for 'qt5'
#
# revbump libqtxdg after bumping patch version
pkgname=qt5
version=5.15.11+20231124
revision=5
# commit 4765fa1df7a837db9c1f89c4da0dd76b74bb5fab
# base repo: https://invent.kde.org/qt/qt/qt5
metapackage=yes
hostmakedepends="cmake clang17 flex perl glib-devel pkg-config
 python3 re2c ruby which"
makedepends="clang17-devel SDL2-devel Vulkan-Headers alsa-lib-devel double-conversion-devel
 eudev-libudev-devel ffmpeg6-devel freetds-devel glib-devel gst-plugins-base1-devel
 gtk+3-devel icu-devel libXv-devel libbluetooth-devel libcap-devel
 libinput-devel libmng-devel libmariadbclient-devel libproxy-devel
 libvpx-devel libwebp-devel libxkbcommon-devel
 libxslt-devel libxml2-devel cups-devel minizip-devel
 opus-devel pciutils-devel pcre2-devel postgresql-libs-devel
 protobuf-devel pulseaudio-devel tslib-devel openssl-devel
 unixodbc-devel xcb-util-image-devel xcb-util-keysyms-devel
[user@user-pc void-packages]$ 

-

(2). 「qtchooser」
$ cat srcpkgs/qtchooser/template
# Template file for 'qtchooser'
pkgname=qtchooser
reverts=20150315_2
version=66
revision=3
build_style=gnu-makefile
make_install_args="INSTALL_ROOT=\${DESTDIR}"
short_desc="Qt4/Qt5 version chooser"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only, GPL-3.0-only"
homepage="https://www.qt.io/"
distfiles="https://download.qt.io/official_releases/qtchooser/qtchooser-${version}.tar.xz"
checksum=b22c21df135d48fc775d26d771170c2c70555704d4625605383be2cd149c7cea
CXXFLAGS=" -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64"

# XBPS_DISTFILES_MIRROR+=" https://master.qt.io/official_releases/qtchooser"

do_build() {
    make LFLAGS="$LDFLAGS"
}

do_check() {
    # uses qmake managed by qtchooser: dependency loop
    :
}

post_install() {
    vmkdir etc/xdg/qtchooser
    vinstall ${FILESDIR}/4.conf 644 etc/xdg/qtchooser
    vinstall ${FILESDIR}/5.conf 644 etc/xdg/qtchooser
    ln -sf 5.conf ${DESTDIR}/etc/xdg/qtchooser/default.conf
}

-

(3). 「qtcreator」
$ cat srcpkgs/qtcreator/template
# Template file for 'qtcreator'
pkgname=qtcreator
version=15.0.0
revision=2
build_style=cmake
configure_args="$(vopt_bool qbs BUILD_QBS) -DWITH_DOCS=ON -DBUILD_WITH_PCH=OFF"
hostmakedepends="clang llvm perl pkg-config python3 which
 qt6-base qt6-tools qtchooser qt6-shadertools qt6-declarative-host-tools"
makedepends="qt6-declarative-private-devel qt6-base-private-devel
 qt6-quick3d-private-devel qt6-svg-devel qt6-plugin-odbc qt6-plugin-sqlite
 qt6-plugin-pgsql qt6-plugin-mysql qt6-qt5compat-devel libsecret-devel
 qt6-serialport-devel qt6-shadertools-devel qt6-charts-private-devel
 qt6-tools-private-devel clang llvm clang-tools-extra"
depends="qt6-plugin-sqlite mesa-dri"
short_desc="Cross-platform IDE for Qt developers"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-3.0-or-later, custom:QtCompany-GPL-Exception-1.0"
homepage="https://wiki.qt.io/Category:Tools::QtCreator"
changelog="https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changelog/changes-${version}.md"
distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/qt-creator-opensource-src-${version}.tar.xz"
checksum=23b1c6b478ca760997ecddd4c728f0da280b0696008a9bddd9a1068f16d48f72
replaces="qtcreator-data>=0"
python_version=3

build_options="qbs"
desc_option_qbs="Build vendored Qbs"

if [ -z "$CROSS_BUILD" ] && [ "$XBPS_TARGET_WORDSIZE" != 32 ]; then
    makedepends+=" qt6-tools-private-devel python3-BeautifulSoup4 python3-lxml
     qt6-base-doc"
    build_options_default="qbs"
fi

if [ "$XBPS_WORDSIZE$XBPS_WORDSIZE" = "64$XBPS_TARGET_WORDSIZE" ]; then
    makedepends+=" qt6-webengine-devel"
fi
# broken="with Qt6-6.7.2"

post_install() {
    # Install the license with the annotation for
    # the Qt Company GPL Exception 1.0
    vlicense LICENSE.GPL3-EXCEPT
}

qtcreator-full_package() {
    short_desc+=" - full Qt5 dependencies (transitional dummy package)"
    depends="qtcreator-qt5>=${version}_${revision}"
    metapackage=yes
}

qtcreator-qt5_package() {
    short_desc+=" - full Qt5 dependencies"
    depends="${sourcepkg}>=${version}_${revision} base-devel
 qt5-3d-devel qt5-charts-devel qt5-connectivity-devel qt5-datavis3d-devel
 qt5-declarative-devel qt5-gamepad-devel qt5-location-devel qt5-lottie-devel
 qt5-multimedia-devel qt5-networkauth-devel qt5-purchasing-devel qt5-quickcontrols
 qt5-quickcontrols2-devel qt5-remoteobjects-devel qt5-script-devel qt5-scxml-devel
 qt5-sensors-devel qt5-serialbus-devel qt5-serialport-devel
 qt5-speech-devel qt5-styleplugins-devel qt5-svg-devel
 qt5-tools-devel qt5-virtualkeyboard-devel qt5-wayland-devel qt5-webchannel-devel
 qt5-webglplugin-devel qt5-webkit-devel qt5-websockets-devel qt5-webview-devel
 qt5-x11extras-devel qt5-xmlpatterns-devel qt5-host-tools qt5-doc
 qt5-examples qt5-imageformats qt5-graphicaleffects qt5-translations
 qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds"
    # Not for big endian targets and not if word sizes of host and target differ
    if [ "$XBPS_TARGET_ENDIAN" = "le" -a "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then
        # qt5-webengine cannot be built for armv5tel
        case "$XBPS_TARGET_MACHINE" in
            armv5tel*) ;;
            *) depends+=" qt5-webengine-devel" ;;
        esac
    fi
    metapackage=yes
}

qtcreator-qt6_package() {
    short_desc+=" - full Qt6 dependencies"
    depends="${sourcepkg}>=${version}_${revision} base-devel
 qt6-3d-devel qt6-charts-devel qt6-concurrent qt6-connectivity-devel
 qt6-declarative-devel qt6-location-devel qt6-lottie-devel qt6-multimedia-devel
 qt6-networkauth-devel qt6-qt5compat-devel qt6-remoteobjects-devel qt6-scxml-devel
 qt6-sensors-devel qt6-serialport-devel qt6-shadertools-devel qt6-svg-devel
 qt6-tools-devel qt6-virtualkeyboard-devel qt6-wayland-devel qt6-webchannel-devel
 qt6-websockets-devel qt6-tools qt6-designer qt6-imageformats qt6-translations
 qt6-plugin-mysql qt6-plugin-odbc qt6-plugin-pgsql qt6-plugin-sqlite qt6-base-doc"
    # Not for big endian targets and not if word sizes of host and target differ
    if [ "$XBPS_TARGET_ENDIAN" = "le" -a "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then
        if [ "$XBPS_TARGET_WORDSIZE" != 32 ]; then
            depends+=" qt6-webengine-devel"
        fi
    fi
    metapackage=yes
}

-

-


まとめ

今回は、「Void Linux」に、アプリの移植(ソースのダウンロード、ビルド、パッケージ化する)作業を半自動化して楽にする、「xbps-src」のビルド環境をセットアップしました:

-

「面倒なビルド作業が楽」、「すぐにクリーンできる」ことで、アプリで気になるところがあれば、ソースを修正してみようかなと思わせる、それに集中できる、気軽な「環境」を提供してくれるのが「xbps-src」だと思います。

「xbps-src」のビルド環境を使えるだけで、「Void Linux」を選ぶ価値はありそう:

-

仮想マシン」を使う利点は、クローンが使えるので「環境をすぐに元に戻せる」ことがありますが、 「./xbps-src clean [パッケージ名]」が使えるので、クローンで戻すことはありませんでした。

-

もうひとつの利点は、「仮想マシン」であれば、「musl」GNU libc」の両方の「仮想マシン」を作成できるので、すぐに比較できることです:

アプリの速度の比較もですが、「xbps-src」を使ってのアプリの移植がどうなるか、楽しめそう。そして勉強になります。

同じアプリを移植してみれば、どちらにするか悩んでいるときの参考になります。

それだけでなく、まず、GNU libc」で動くテンプレートを作成して、次に「musl」で動くテンプレートに修正するというやり方をすれば、移植作業がやりやすくなると思います。

-

-

もし、移植した成果を「xbps-src」のリポジトリ等にアップしたい場合は:

「アプリ」のソースの修正があれば(移植でなく改変になるので)削除してアップします:
通常、「アプリ」のソースの修正(改変)を上げるときは、アプリの本家に「プルリクエスト」します:

-

-


-

-

    目次

-

「投稿の先頭 へ」

-

-


-

「この目次 の先頭へ」

「本編の目次 に戻る」

-

「VirtualBox 7.1.10」に、「Void Linux」(Xfce) をインストール〈H179〉

登録日: 2025-10-03 更新日: 2025-10-22

今回は、 「VirtualBox 7.1.10」に、「Void Linux」(Xfce) を iso イメージからインストールしました:

-

「Void Linux」はコミュニティで独自に開発された Linux ディストリビューションです:

まったく触ったことがないので、どのようなものか楽しみです:

-

その備忘録です。

-

-

使用したPC は、新しく購入した ミニPC「MINISFORUM NAB5」です。
プロセッサは「Core i5-12450H」で、メモリ 16GB、SSD 512GB です。

-

(注)リンクを戻るときはブラウザの左上の「←」をクリック
Android スマホであれば「ホーム」ボタン隣の「<」をタップ

-

-


目次

-

今回の作業:

-

  1. 「ゲストOS」のISO イメージをダウンロード:

  2. 「仮想マシン」の作成:

  3. 「Void Linux」の「Xfce」をインストール:

  4. 「日本のミラー」を「西欧のミラー」に変更:

  5.  システム更新:

  6. 「日本語フォント」のインストール:

  7.  キーボードレイアウトを「日本語キーボード」に修正:

  8.  日本語入力:

  9.  デスクトップとパネルの設定:

  10.  フォントのインストール:

  11.  アプリ のインストール:

  12.  ゲームのインストール:

  13. 「仮想マシン」で使ってみて、気になるところ:

  14. 「仮想マシン」で使うと、システムの起動と「Firefox」ブラウザの立ち上げが遅くなる、原因が判明:

-

参考になりそうな作業:

  1.  キーボードレイアウトを「日本語キーボード」に修正:

  2. 「VirtualBox Guest Additions」のインストール:

  3. 「Guest Additions」の削除:

  4. 「Void Linux」で、「リポジトリ」を追加してみる:

  5. 「runit」を使った、サービス管理:

  6. 「flatpak」でアプリをインストールしてみる:

  7.  最新に近い「Firefox」を「flatpak」でインストール:

  8.  最新の「Firefox」のESR 版をダウンロードしてインストール:

  9.   パッケージ管理を行う「XBPS」の使い方:

  10.  XBPS を使いやすくするため、XBPS の「エイリアス」を作成:

  11.  作成した、XBPS の「エイリアス」を使ってみる:

  12.  「エイリアス」を使わずに、XBPS を実行してみる:

-

「まとめ へ」

「目次詳細 へ」

-

-


- --- - --- - --- - --- - --- - --- - --- -

ホストOS の「Xubuntu 24.04.3 LTS」を立ち上げ:

-

仮想マシンの「Void Linux」(Xfce) を起動:

-

パネルを画面の下に移動:

項番 9.」で、色々とカスタマイズ:

-

右の時計にマウスを置くと、「年月日と曜日」が表示するようにしました:

-

「アプリケーション」メニューは使いやすいし、ショートカットキーでアプリを起動するように設定したので、パネルにランチャーは登録していません:

-

デスクトップ環境が同じ「Xfce」だと、同じようなカスタマイズをすれば、「Debian」でも、「Void Linux」でも、見た目もGUI での使い勝手も同じです:

大きな違いは、アプリのインストールに使う、「パッケージ管理コマンド」が異なることです:

-

-


- --- - --- - --- - --- - --- - --- - --- - -

VirtualBox」について:

-

VirtualBox 」は、Oracle(オラクル)社が開発している「仮想マシン」を構築するためのソフトウェアです。

-

-

-


- --- - --- - --- - --- - --- - --- - --- - --

Xubuntu」について:

-

Ubuntu の公式フレーバー(性格の違う兄弟?)です

Xubuntu」(ズブントゥ)は、 Ubuntu ベースの、軽量な「Xfce」デスクトップ環境です。

Ubuntu ベースにつき、多くのノウハウ、情報等があること、および問題の少ない「x11」で動いていることが強みです。

-

個人的には使い慣れた環境です。
カスタマイズが色々とできるので、自分にとって使い勝手の良い環境を作れるのが利点です。

-

-


- --- - --- - --- - --- - --- - --- - --- - ---

「Void Linux」について:

-


1). 公式サイト:

The Void (Linux) distribution

-

英語のみのサイトです:

-

「Void Linux」は、独立してボランティアのみで開発された、ローリングリリース安定版で提供されている、汎用 Linux オペレーティングシステムです:

-

抜粋:

Void の「パッケージマネージャ」と「ビルドシステム」はゼロから書かれています:

ソフトウェアは「バイナリパッケージ」で提供されるか、「XBPS ソースパッケージコレクション」の助けを借りて「ソース」から直接ビルドされます。

-

このディストリビューションを使う利点のひとつは、優れた「パッケージ管理」です:

 →ソースからのビルドを楽しめます:

-


2). runit:

runit を「init システム」および「サービススーパーバイザー」として使用しています。

シンプルさを好む開発者も多いみたい:

-

ただし、ソースからビルドする場合に、「systemd」に依存してるアプリは、うまくビルドできなかったり、ビルドできても動かないかも:

-


3). C ライブラリの多様性( 2つの選択肢):

Void Linux は、「musl」GNU libc」の両方の実装をサポートします。

-

→それぞれの利点があるので、それぞれの Live イメージが提供されています:

-

「musl」だと、「GNU libc」よりもリポjトリに登録されてるアプリが少ない?だろうし、

ソースからビルドするにしても、動くかはビルドしてみないとわかりません:

もし動けば、コンパクトで、速くなる?かも:

-


4). XBPS:

XBPS(X Binary Package System)パッケージマネージャー:

-

XBPS 0.60.5_1(2025年9月19日 現在)

XBPS は「パッケージマネージャ」で、二条項 BSD ライセンスでゼロから書かれています。

→提供と改善がしやすいように、開発途中で、最もゆるいライセンス形式に変更されたようです:

-


5). xbps-src:

xbps-src は「xbps パッケージビルダー」(ビルドシステム)で、二条項 BSD ライセンスでゼロから書かれています。

-

参考:

-

(1). Void Linux は、XBPS パッケージマネージャのテストディストリビューションとして、
NetBSD の開発者である Juan Romero Pardines によって2008年に作成されたみたい。

-

(2). 「xbps-src」に影響を与えた?かもしれない、「pkgsrc」について:

「pkgsrc」は FreeBSDports システムから派生したもので、 はじめは NetBSD 専用として開発されていました。その後、 多くののプラットフォーム(Linux を含む)に対応しています。

参考:

Chapter 1. pkgsrc とは何か

-


6). 二条項 BSD ライセンス:

OS や付属するアプリの配布や改善がしやすいように、「旧 BSD ライセンス(四条項 BSD ライセンス)」から「第三条」、「第四条」を削除して、制限をゆるくしたライセンスが採用されています:

参考:

BSD 2-Clause License

-

-


現在のOS のバージョンを表示:

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ホストOS : 「Xubuntu 24.04.3 LTS」

2025-10-03 現在

-

カーネル:
$ uname -r
:
6.8.0-84-generic

→LTS版は安定志向なので、更新の回数は少なめです:

-

リリース:
$ cat /etc/lsb-release
:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

→LTS 版の更新(ポイントリリース)は、6ヶ月前後で、
 今は「24.04.3」にアップされています

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
:
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ゲストOS : 「Void Linux

2025-10-03 現在

-

カーネル:
$ uname -r
6.12.48_1

Ubuntu よりも進んでいます:

-

リリース:
$ cat /etc/os-release
:
NAME="Void"
ID="void"
PRETTY_NAME="Void Linux"
HOME_URL="https://voidlinux.org/"
DOCUMENTATION_URL="https://docs.voidlinux.org/"
LOGO="void-logo"
ANSI_COLOR="0;38;2;71;128;97"

DISTRIB_ID="void"

→ローリングリリースです:

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----

1. 「ゲストOS」のISO イメージをダウンロード:

-


1). ダウンロードサイト:

Download Void Linux

-

-


2). Xfce デスクトップ環境の「Live イメージ」をダウンロード:

-

X86_64」タブ

xfce             2025-02-02

右下の「赤色」で囲んだ、

live image glibc」のリンクをクリック

-

→ダウンロードしたファイルを、「~/ダウンロード/void/」フォルダに移動:

-


3). 「チェックサム」をダウンロード:

上部の「緑色」で囲んだ、

checksum file のリンクをクリック:

→ブラウザに表示:

抜粋:

SHA256 (void-live-x86_64-20250202-xfce.iso) = 40ff378e6cbc74680b30eb0af0003af0abc750b2589f18d4733f9f30bcc79d5b

-


4). チェックサムの確認:

ファイルの確認:

$ cd ~/ダウンロード/void
$ ls
void-live-x86_64-20250202-xfce.iso

-

チェックサムの確認:

$ sha256sum void-live-x86_64-20250202-xfce.iso
40ff378e6cbc74680b30eb0af0003af0abc750b2589f18d4733f9f30bcc79d5b  void-live-x86_64-20250202-xfce.iso

→OK

-

-


- --- - --- - --- - --- - --- - --- - --- - -----

2. 「仮想マシン」の作成:

-


1). メニュー→「システム」→「Orcle VM VirtualBox

-

VirtualBox マネージャ」が起動:

→すでに作成した「仮想マシン」があります:

-


2). 右上の水色の「新規」ボタンをクリック:

-


3). 水色の帯の「名前とオペレーティングシステム」:

-

(1). 作成したい「ゲストOS」の名前を入力:
名前:Void-Linux   ←(好みの英字の名前)

-

(2). 問題: 右下に、「完了」ボタンが表示され、「次へ」がありません:

ここで、「完了」ボタンをクリックすると、これ以降の項目が「未設定」になります:

→以降のように、個別に「未設定」の項目を選んで設定しました。

-

(3). ISO イメージファイルを指定:

ISO イメージ: <選択されていません>

右端の「▼」をクリック →その他 →「ダウンロード」→下記のファイルを指定:

「/home/ubn/ダウンロード/void/void-live-x86_64-20250202-xfce.iso」

-

(4). 自動で下記が入力されました:
タイプ:Linux
Subtype: Linux 2.6
バージョン:Linux 2.6 / 3.x / 4.x / 5.x (64-bit)

-

(5). 下記に修正:

一覧に「Void-Linux」の登録はないので、

タイプ:Linux
Subtype: Other Linux
バージョン:Other Linux (64-bit)   ←「変更」

-

(6). 「自動インストールをスキップ」にチェック

→グレー表示でチェックできません:

-


4). 水色の帯の「自動インストール」をクリック:

→グレー表示で選べません。

-

ちなみに、「自動インストール」が使えるのは、 (OS のxml 情報を提供できる)Ubuntu などのメジャーな Linux ディストリビューションのみです:

-

今までの設定:

-


5). まだ設定していない、水色の帯の「ハードウェア」の帯をクリック:

-

(1). メインメモリー:

今回は、メモリ 16GB を分割して、約 8 GB を割当てました:(以前のマシンでは 4 GB の指定)

(バーをクリックしてから、「→」キーで微調整)

7987 MB  ←(メモリに余裕がないときに大きくしすぎると、 ホストOS が不調になります)

-

(2). プロセッサー数:

8 CPU  ←(パソコンのプロセッサによって上限は変わります: 今回は最大 16)
       (以前のマシンでは 2 CPU の指定)

-

(3). 「EFIを有効化(一部のOSのみ)」にチェック:

仮想環境で使うならどちらに設定してもかまいません。

→手持ちのPC が、UEFI 立ち上げなので、
(USB でインストールするときの)実際のOS の動きを確認したいのでチェックしています。

-

OS インストール後は、(パーティションの構成が変わるため)変更できないので注意:

-


6). まだ設定していない、水色の「ハードディスク」の帯をクリック:

-

「仮想ハードディスクを作成する」にチェックされていることを確認:

25.00 GB ←(増やしました)

-

→「完了」

-


7). 仮想マシンの「Void-Linux」が作成されました:

-

下記のように設定値を後から変更できるので、うまく動かないときはリトライできます。

-


8). ★「Guest Additions」をインストールする場合は、「ディスプレイ」の設定を見直します:

設定が異なると、以前は、色々と予期しない問題が発生しました:

-

(1). 「ディスプレイ」をクリック →「スクリーン」タブ

-

(2). 「VMSVGA」に設定:

→デフォルトのままです:

-

(3). 「3D アクセラレーションを有効化」にチェック:

→ビデオメモリーの設定の上限が「128MB」から「256MB」に増えます:

-

(4). ビデオメモリーを「256MB」に変更:
- ビデオメモリー: 16MB           →「256MB」に変更
- グラフィックコントローラー: 「VMSVGA」  →そのまま

-

今までの設定:

-

→OK

-


9). 「システム」→「マザーボード」タブ を確認:

 →ただし、グレー表示で変更できなくなっています

-

今までの設定:

-

→OK

-


10). 画面が最初に戻るので、最終的な設定を確認できます:

→「ストレージ」の項目の、光学ドライブ「void-live-x86_64-20250202-xfce.iso」
 がセットされていることを確認:

-

この CD イメージでライブ立ち上げされます。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- -

3. 「Void Linux」の「Xfce」をインストール:

-


1). 「仮想マシン」を選択して、「起動」(緑色の右矢印)ボタンをクリック:

-


2). 「ブート選択」画面が表示:

→しばらく待つか、Enter

-

(CD-ROM での立ち上げです)

-

UEFI Firmware Settings」メニューが含まれています:

-


3). 「デスクトップ」画面が表示:

Xfce デスクトップ環境です:

-

(1). デスクトップに、「Install」アイコンがありません:

-

(2). ライブ立ち上げ時の解像度を確認:

左上の「Applications」→「Settings」 →「Display」

→「1280x800」です

-

→「Close」

-

(3). Ctrl+Alt+T で、「端末」を起動:
[anon@void-live ~]$
$ pwd
/home/anon
$ uname -r
6.12.11_1

-

(4). ダウンロードサイトからの抜粋:

Live イメージ立ち上げ時、

「anon」(で自動ログイン)または「root」としてログインでき、パスワードは「voidlinux」です:

インストーラーを起動するには、「sudo void-installer」を実行:

-


4). インストーラーの起動:

$ sudo void-installer

→パスワード: voidlinux

-


5). 「Enter the void ...」画面が表示:

→ < OK > が選択されているので、Enter

-


6). 「Void Linux installation menu」画面が表示:

-


7). 「Keyboard」を選んで、Enter

Select your keymap 画面:

「jp106」を選んで、Enter

-


8). 「Network」を選んで、Enter

「Network is working properly!」表示:(和訳: ネットワークは適切に機能しています!)

→ < OK > が選択されているので、Enter

-


9). 「Source」を選んで、Enter

「Select installation source」画面:

「Local Packages from ISO image」を選んで、

→ < OK > が選択されているので、Enter

-


10). 「Mirror」を選んで、Enter

「Void Linux Mirror Selection Wizard」画面:

-

(1). 「Choose a Region」画面:

-

追記: 「日本のミラー」だと不調で使えないので、「項番 4-2.」で修正しました:

なので、「Default」を選んで、「Exit」で抜けられか、試してみて、

もし、ミラーの選択が必要なら、「EU Europe」で、「フィンランド」を選ぶと良いです:

-

「AS Asia」が選ばれています:

→ < OK > が選択されているので、Enter

-

(2). 「Choose a Mirror (Region: Asia)」画面:

下から2つ目、右が「Tokyo, Japan」を選んで、

→ < OK > が選択されているので、Enter

-

補足の説明が表示:

→ < Yes > が選択されているので、Enter

-

リポジトリが登録されている「フォルダ」と「ファイル」の説明です:
/etc/xbps.d/00-repository.main.conf

リポジトリを修正するときは、こちらのファイルの内容を修正します:

-

(3). 「Updating Mirror ...」画面:

→ < OK > が選択されているので、Enter

-


11). 「Hostname 」を選んで、Enter

Set the machine hostname:

「user-pc」を入力して、

→ < OK > が選択されているので、Enter

-


12). 「Locale」を選んで、Enter

「Select your locale」画面:

「j」を押して、

「ja_JP.UTF-8 Japanese (Japan)」を選んで、

→ < OK > が選択されているので、Enter

-


13). 「Timezone」を選んで、Enter

「Select area」画面:

「Asia」を選んで、

→ < OK > が選択されているので、Enter

-

「Select Location (Asia)」画面:

「t」を押して、

「Tokyo」を選んで、

→ < OK > が選択されているので、Enter

-


14). 「RootPassword」を選んで、Enter

-

(1). Enter the root password:

「空白」では次に進まないので、

「任意のパスワード」入力:

(今回はユーザと同じパスワードにしました)

→ < OK > が選択されているので、Enter

-

(2). Enter the root password again:

同じパスワードを入力して、

→ < OK > が選択されているので、Enter

-


15). 「UserAccount」を選んで、Enter

-

(1). Enter a primary login name:

「user」(任意のログインユーザ名)

→ < OK > が選択されているので、Enter

-

(2). Enter a display name for login 'user' :

「user」(表示されるユーザ名、任意)

-

(3). Enter the password for login 'user' :

「任意のパスワード」

-

(4). Enter the password for login 'user' again:

「任意のパスワード」

-

(5). 「Select group menbership for login 'user'」画面:

自動で選択されているので、何もせず、

→ < OK > が選択されているので、Enter

-


16). 「BootLoader」を選んで、Enter

-

(1). 「Select the disk to install the bootloader」画面:

「/dev/sda size:25GB;Sector_size:512」が自動で選ばれているので、

(サイズで判断)

→ < OK > が選択されているので、Enter

-

(2). 「Use a graphical terminal for the boot loader?」表示:

→ < Yes > が選択されているので、Enter

-


17). 「Partition」を選んで、Enter

-

(1). 「Select the disk to partition」画面:

「/dev/sda size:25GB;Sector_size:512」が自動で選ばれているので、

→ < OK > が選択されているので、Enter

-

(2). 「Select the Software for partitioning」画面:

「cfdisk Easy to use」が自動で選ばれているので、

(fdisk ツールを使い、パーティションを分割します)

→ < OK > が選択されているので、Enter

-

(3). 「Modify Partition Table on /dev/sda」画面:

→ < OK > が選択されているので、Enter

-

(4). 「Select label type」画面:

「gpt」が自動で選ばれているので、

→ < OK > が選択されているので、Enter

-

(5). 「Disk: /dev/sda」画面:

「New」が選ばれているので、Enter

-

(6). Partition size: 「25G」が選ばれているので、

「1G」に修正して、Enter

(800 MB ぐらいで良いですが、少ないよりも、大きめが無難)

-

(7). 「Type」の指定:

→ 一番下の「Quit」を「Type」に移動して、Enter

-

(8). Select partition type 画面:

→ 一番上のEFI System」を選んで、Enter

-

(9). 書き込み:

→ 一番下の「Quit」を「Write」に移動して、Enter

→「yes」と入力して、Enter

-

(10). 新規作成:

一番下の「Free space」を選んで、

「New」が選ばれているので、Enter

-

(11). サイズ:

→ Partition size: 残りすべての「24G」が選ばれているので、Enter

-

(12). 書き込み:

一番下の「Quit」を「Write」に移動して、Enter

「yes」と入力して、Enter

-

(13). 終了:

一番下の「Write」を「Quit」に移動して、Enter

-

→「Quit」が選ばれているので、Enter

-


18). 「Filesystems」を選んで、Enter

パーティションを初期化するときの、「ファイルシステム」と「マウントポイント」を指定します:

-

(1). 「Select the partition to edit」画面:

「/dev/sda1 size:1G;fstype:none」

→ 一番下で「Change」が選ばれているので、Enter

-

(2). 「Select the filesystem type for /dev/sda1」画面:

「vfat FAT32を選んで、Enter

-

通常、「EFI System」のパーティションは、どのOS でも認識される「FAT32」でフォーマットしますが、「ext4」も使えます:

また、Windows では「vfat」と呼ばれることがあります:

-

(3). 「Please specity the mount point for /dev/sda1」表示:

「/boot/efiと入力して、Enter

→ 「Yes」が選ばれているので、Enter

-

(4). 「Select the partition to edit」画面:

「/dev/sda2 size:24G;fstype:none」

→ 一番下で「Change」が選ばれているので、Enter

-

(5). 「Select the filesystem type for /dev/sda2」画面:

ext4 Linux ext4 (journal)」を選んで、Enter

-

(6). 「Please specity the mount point for /dev/sda1」表示:

「/」(ルート)を入力して、Enter

→ 「Yes」が選ばれているので、Enter

-

つまり、こちらの「/dev/sda2」の「/」に、「/boot/efi」として「/dev/sda1」がマウントされます:

-

(7). 「Select the partition to edit」画面:

→ 一番下の「Change」「Done」に移動して、Enter

-


19). 「Install」を選んで、

→ < OK > が選択されているので、Enter

-

(1). パーティションが初期化されるので、赤い警告が表示:

→ 「Yes」が選ばれているので、Enter

-

(2). インストール中:

-

(3). 「Select services to enable:」画面:

有効にする「サービス」が自動で選ばれています:

→ < OK > が選択されているので、Enter

-


20). 「インストール完了」画面:

リブートしますか:

→ < Yes > が選択されているので、Enter

-


21). 再起動されました:

-


22). ログイン画面:

-


23). デスクトップ画面:

→日本語が豆腐に化けています:

-

日本語フォントが足りないのですが、

「Void Linux」にて、インストールすべき「パッケージ名」がわかりません:

-


24). CD-ROM アイコンがデスクトップに表示されているので、右クリック→取り外し:

-


25). Ctrl+Alt+T で「端末」を起動:

「@@」を入力

[[

→日本語キーボードの配列ではありません:

-

インストールで「日本語表示」に設定されているので、まずは、日本語表示にしないとメッセージが読めず、作業が進みません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- --

4. システム更新:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ---

4-1. リポジトリの同期で、失敗しました:

-

日本語フォントが豆腐に文字化けするので、「日本語フォント」をリモートリポジトリで検索すると、ヒットしません。

リポジトリを同期すると、失敗しました:

-


リポジトリの同期:

英語表示で、同期:

$ LANG=C sudo xbps-install -S
:
Password: 
[*] Updating repository `https://repo.jing.rocks/voidlinux/current/x86_64-repodata' ...
SSL certificate subject doesn't match host repo.jing.rocks
ERROR: [reposync] failed to fetch file `https://repo.jing.rocks/voidlinux/current/x86_64-repodata': Operation not permitted

「-S」は、大文字のエスです:(Sync)

→最後のエラー行: 「日本のミラー」でファイルの取得に失敗しました:

-

まずは、リポジトリの同期を成功させるのが先決です:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----

4-2. 「日本のミラー」を「西欧のミラー」に変更:

-

インストール時に設定した「日本のミラー」は、不調で使えませんでした:

-


1). リポジトリの設定ファイルの場所を確認:

インストール中に、「フォルダ」と「ファイル」のパスが紹介されています:

-

$ ls /etc/xbps.d/
:
00-repository-main.conf

-


2). リポジトリの設定ファイルの内容を確認:

$ cat /etc/xbps.d/00-repository-main.conf
repository=https://repo.jing.rocks/voidlinux/current

リポジトリは、「日本のミラー」がひとつだけです:

この「日本のミラー」の調子が良くありません。

-


3). ミラーを修正:

$ sudo mousepad /etc/xbps.d/00-repository-main.conf
# repository=https://repo.jing.rocks/voidlinux/current
repository=https://repo-fi.voidlinux.org/current

→「日本のミラー」はコメント化して、確実な「西欧のフィンランド」を追加:

-


4). URL を変更したので、XBPS を新しいミラーと同期:

$ sudo xbps-install -S
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2068KB [avg rate: 796KB/s]

→同期されました:

-


5). 動作確認:

ラインエディタの「nano」がインストールされていなかったので、「nano」で動作を確認:

-

(1). ローカル(のリポジトリ)から検索してみる:
$ xbps-query -s nano
$ 

→(インストールされていないので、)ヒットせず:

-

(2). リモート(のリポジトリ)から検索してみる:
$ xbps-query -Rs nano
:
[-] nano-8.5_1               GNU nano text editor
[-] nanomsg-1.2_1            Simple, high-performance implementation of scalability protocols
[-] nanomsg-devel-1.2_1      Simple, high-performance implementation of scalability protocols - development files
[-] nanovna-saver-0.7.3_1    Tool for reading, displaying and saving data from the NanoVNA
[-] nng-1.5.2_1              Nanomsg next-generation
[-] nng-devel-1.5.2_1        Nanomsg next-generation - development files
[-] python3-nanobind-2.9.2_1 Tiny and efficient C++/Python bindings

→「日本のミラー」が不調なときはヒットしなかったのが、別のミラーに変えたとたん、ヒットするようになりました:

-

アプリの検索は、「大文字」、「小文字」の区別なく、検索されるようです:

-

(3). インストールしてみる:
$ sudo xbps-install nano
:
The 'xbps' package must be updated, please run `xbps-install -u xbps`
→「xbps」自身の更新がある場合は、先に「xbps」を更新する必要があるみたい:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- -----

4-3. システム更新:

-


1). システム更新:

システム更新で「xbps」も一緒に(自動で)更新してくれると思ったけど、

$ sudo xbps-install -Su
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
The 'xbps' package must be updated, please run `xbps-install -u xbps`

→「xbps」は、システム更新で、自動で更新されません。

「xbps」自身の更新は、手動で行う必要があるみたい:

-


2). 「xbps」を手動で更新:

$ sudo xbps-install -u xbps
:
Name    Action    Version           New version            Download size
glibc   update    2.39_4            2.41_1                 8956KB 
libxbps update    0.59.2_3          0.60.5_1               142KB 
xbps    update    0.59.2_3          0.60.5_1               118KB 

Size to download:             9217KB
Size required on disk:          33MB
Space available on disk:        21GB

Do you want to continue? [Y/n] 

→Enter

:
3 downloaded, 0 installed, 3 updated, 3 configured, 0 removed.
[user@user-pc ~]$ 

→「glibc」の更新もありました:

-


3). 動作確認:

-

(1). 「日本語フォント」をリモートから検索してみる:
$ xbps-query -Rs font
:
[-] Fonts-TLWG-0.7.3_1                 Thai fonts TTF
[-] Fonts-TLWG-otf-0.7.3_1             Thai fonts OTF
[-] R-cran-systemfonts-1.0.4_1         System Native Font Handling in R
[-] SDL2_ttf-2.20.2_2                  Use TrueType fonts in your SDL...
[-] SDL2_ttf-devel-2.20.2_2            Use TrueType fonts in your SDL...
[-] SDL_ttf-2.0.11_8                   Use TrueType fonts in your SDL...

: 省略

[-] t1utils-1.42_1                     Type 1 font utilities
[*] terminus-font-4.49.1_1             Clean, fixed width bitmap font
[-] termsyn-font-1.8.7_3               Monospaced font based on termi...
[-] tewi-font-2.0.2_3                  Programming monospace bitmap f...
[-] texlive-fontsextra-2023.66328_1    TeX Live - All sorts of extra ...
[-] texlive-langchinese-2023.66188_1   TeX Live - Fonts and macro pac...
[-] texlive-langcyrillic-2023.64588_1  TeX Live - Fonts and macro pac...
[-] texlive-langgreek-2023.66513_1     TeX Live - Fonts and macro pac...
[-] texlive-langjapanese-2023.66482_1  TeX Live - Fonts and macro pac...
[-] texlive-langkorean-2023.66513_1    TeX Live - Fonts and macro pac...
[-] ttf-bitstream-vera-1.10_2          Bitstream Vera fonts
[-] ttf-ubuntu-font-family-0.83_3      Ubuntu font family
[-] twemoji-15.1.0_1                   Twitter emoji font set in colo...
[-] txtw-0.4_2                         Return the pixel width of the ...
[-] woff2-1.0.2_1                      Web Open Font Format 2 referen...
[-] woff2-devel-1.0.2_1                Web Open Font Format 2 referen...
[-] wqy-microhei-0.2.0.beta_3          Sans-Serif style high quality ...
[-] xfd-1.1.4_1                        Display all the characters in ...
[-] xfontsel-1.1.1_1                   X font selector
[-] xlsfonts-1.0.8_1                   Server font list displayer for X
[-] xorg-fonts-7.6_5                   Modular Xorg Fonts

行頭の説明:

[-] は、インストール未   
[*] は、インストール済

grep で絞り込むときに使えそう:

-

「font」で検索した場合、左のパッケージ名、もしくは、右のコメントのどちらかに「font」の文字列が含まれている行がヒットしています:

つまり、「fonts」として検索すると、ヒットしないフォントが出てきます:

検索キーはできるだけ短くすると良いみたい:

ちなみに、「font*」にして検索したら、「*」は機能せず、「font」で検索されました:

-

検索キーを短くして、多くヒットさせて、それを grep で絞り込むのが良いです:

-

(2). 「日本語フォント」の「noto-fonts-cjk」をリモート(リポジトリ)から検索してみる:
$ xbps-query -Rs noto-fonts-cjk
:
[-] noto-fonts-cjk-1_1                    Google Noto CJK fonts (meta package)
[-] noto-fonts-cjk-sans-2.004_1           Google Noto CJK Fonts - sans serif ...
[-] noto-fonts-cjk-sans-variable-2.004_1  Google Noto CJK Fonts -  variable w...
[-] noto-fonts-cjk-serif-2.003_1          Google Noto CJK Fonts - serif fonts
[-] noto-fonts-cjk-serif-variable-2.003_1 Google Noto CJK Fonts -  variable w...
[-] noto-fonts-cjk-variable-1_1           Google Noto CJK variable weight fon...

「noto-fonts-cjk」はメタパッケージみたい:

→メタパッケージをインストールすると、多くの(不要な)パッケージがインストールされる可能性があります:

-

(3). メタパッケージではない、個別指定で「日本語フォント」をリモートから検索:
$ xbps-query -Rs noto-fonts-cjk-sans
:
[-] noto-fonts-cjk-sans-2.004_1          Google Noto CJK Fonts - sans serif f...
[-] noto-fonts-cjk-sans-variable-2.004_1 Google Noto CJK Fonts -  variable we...

→上記の検索キーで、2つがヒット:

ちなみに、こちらの指定でインストールされるのは、上側の「完全一致」しているパッケージのみです:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- -

5. 「日本語フォント」のインストール:

-


1). 「日本語フォント」の「noto-fonts-cjk-sans」のみをインストール:

インストール時に日本語だと、メッセージが文字化けで意味がわからなくなるので、英語で表示:

$ LANG=C sudo xbps-install noto-fonts-cjk-sans
:
Password: 
1 package will be downloaded:
  noto-fonts-cjk-sans-2.004_1 
1 package will be installed:
  noto-fonts-cjk-sans-2.004_1 

Size to download:               88MB
Size required on disk:         125MB
Space available on disk:        21GB

Do you want to continue? [Y/n] 

→Enter

:
1 downloaded, 1 installed, 0 updated, 1 configured, 0 removed, 0 on hold.
[user@user-pc ~]$ 

→完了:

-


2). ついでに、ラインエディタの「nano」もインストール:

$ LANG=C sudo xbps-install nano
:
Name Action    Version           New version            Download size
nano install   -                 8.5_1                  655KB 

Size to download:              656KB
Size required on disk:        2773KB
Space available on disk:        20GB

Do you want to continue? [Y/n] 

→Enter

:
1 downloaded, 1 installed, 0 updated, 1 configured, 0 removed, 0 on hold.
[user@user-pc ~]$ 

→完了:

-


3). 「日本語表示」になるように、再起動:

$ sudo reboot

-


4). 再起動にて、文字化けせず、ちゃんとした日本語表示になりました:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- --

6. キーボードレイアウトを「日本語キーボード」に修正:

-

問題:「日本語キーボード」で、「@@」で「[[」が入力されます:

「Void Linux」のインストールの中で、「日本語キーボード」を指定しましたが、
ちゃんと設定されていません:

-


1). 設定の確認:

「アプリケーション」→「設定」→「キーボード」→「レイアウト」タブ:

-

-

一番下の「キーボードレイアウト」

英語 (US)

→「日本語キーボード」のレイアウトではありません:

-

一番上の「システムのデフォルトを使用する」のボタンを左(オフ)にします:

「英語 (US)」を選んで、「編集」ボタンをクリック

→「日本語」を選んで、「OK」

-

-

「キーボードレイアウト」

日本語

-

→「閉じる」

-


2). 「端末」にてキー入力を確認:

「@@」と入力:

@@

→OK

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ---

7. ゲストOS に「VirtualBox Guest Additions」をインストール:

-

追記: インストールが成功しても、有効となる機能はありません。なので、こちらの作業は要りません:

将来、機能するようになったときの「参考」に残しました:

-

仮想マシン」として使うなら、画面が広く使え、「クリップボードの共有」機能が使えれば、便利です:

ただし、それらが使えるかは試してみないとわかりません:

-

ゲストOS にて操作します:

-


1). Ctrl+Alt+T で「端末」を起動:

-


2). インストールされているカーネルを確認:

-

「Void Linux」インストール直後のカーネル:

$ uname -r
6.12.43+deb13-amd64

-


3). 「dkms」のパッケージ名が正しいか確認:

$ xbps-query -Rs dkms
:
[-] acpi_call-dkms-1.2.2_1            Kernel module allowing calls to ACPI me...
[-] ddcci-dkms-0.4.3_1                Pair of Linux kernel drivers for DDC/CI...
[-] dkms-3.2.1_1                      Dynamic Kernel Module Support  ←「★」
[-] dpdk-dkms-19.08_6                 Data Plane Development Kit - DKMS kerne...
[-] lttng-modules-dkms-2.13.10_1      LTTng modules provide Linux kernel trac...
[-] openrazer-driver-dkms-3.10.3_1    Kernel driver for Razer devices (DKMS-v...
[-] rtl8812au-dkms-20210820_1         Realtek 8812AU USB WiFi driver (DKMS)
[-] rtl8821au-dkms-20210708_1         Realtek 8811AU/8821AU USB WiFi driver (...
[-] rtl8821cu-dkms-20210916+1_1       Realtek 8811CU/8821CU/8731AU USB WiFi d...
[-] rtl8822bu-dkms-20230424_1         Realtek 8822BU USB WiFi driver (DKMS)
[-] tp_smapi-dkms-0.45_1              IBM ThinkPad hardware functions driver
[-] tuxedo-yt6801-1.0.30tux2_1        Kernel module for Motorcomm YT6801 ethe...
[-] vhba-module-dkms-20250329_1       Virtual (SCSI) HBA module used by cdemu
[-] virtualbox-ose-dkms-7.2.0_1       General-purpose full virtualizer for x8...
[-] virtualbox-ose-guest-dkms-7.2.0_1 General-purpose full virtualizer for x8...
[-] wireguard-dkms-1.0.20220627_1     Fast, modern, secure VPN tunnel (DKMS m...
[-] zfs-2.3.4_1                       Z File System -- userland, pyzfs, and k...
[-] zfs-lts-2.2.8_1                   Z File System -- userland, pyzfs, and k...

→OK

-


4). 「dkms」のインストール:

$ sudo xbps-install dkms
:
パスワード: 
20 packages will be downloaded:
  binutils-doc-2.44_2 binutils-libs-2.44_2 libelf-0.192_2 
  libdebuginfod-0.192_2 binutils-2.44_2 libgcc-14.2.1+20250405_2 
  libgcc-devel-14.2.1+20250405_2 libstdc++-14.2.1+20250405_2 
  libstdc++-devel-14.2.1+20250405_2 libatomic-14.2.1+20250405_2 
  libatomic-devel-14.2.1+20250405_2 kernel-libc-headers-6.14_1 
  glibc-devel-2.41_1 gcc-14.2.1+20250405_2 bc-1.08.2_1 make-4.4.1_1 
  pahole-1.30_1 linux6.12-headers-6.12.47_1 linux-headers-6.12_1 
  dkms-3.2.1_1 
17 packages will be installed:
  binutils-doc-2.44_2 binutils-libs-2.44_2 libdebuginfod-0.192_2 
  binutils-2.44_2 libgcc-devel-14.2.1+20250405_2 
  libstdc++-devel-14.2.1+20250405_2 libatomic-14.2.1+20250405_2 
  libatomic-devel-14.2.1+20250405_2 kernel-libc-headers-6.14_1 
  glibc-devel-2.41_1 gcc-14.2.1+20250405_2 bc-1.08.2_1 make-4.4.1_1 
  pahole-1.30_1 linux6.12-headers-6.12.47_1 linux-headers-6.12_1 
  dkms-3.2.1_1 
3 packages will be updated:
  libelf (0.190_1 -> 0.192_2) libgcc (13.2.0_3 -> 14.2.1+20250405_2) 
  libstdc++ (13.2.0_3 -> 14.2.1+20250405_2) 

Size to download:              107MB
Size required on disk:         386MB
Space available on disk:        20GB

Do you want to continue? [Y/n] 

→Enter

-


5). カーネルのビルドに必要な、「ツール」をインストール:

$ sudo xbps-install gcc
:
パスワード: 
ERROR: Package `gcc' already installed.

→インストール済:

-

$ sudo xbps-install make
:
ERROR: Package `make' already installed.

→インストール済:

-

$ sudo xbps-install perl
:
Name            Action    Version           New version            Download size
libxcrypt       update    4.4.36_3          4.4.38_1               87KB 
libxcrypt-devel install   -                 4.4.38_1               110KB 
perl            install   -                 5.40.2_2               15MB 

→インストールされました:

-


6). 「仮想マシン」の上部バーのメニュー →「デバイス」→「Guest Additions CDイメージの挿入…」

→デスクトップにCD-ROM アイコンが表示されました:

-


7). CD-ROM アイコンをダブルクリックして、「ファイルマネージャ」を起動:

-


8). ファイルマネージャにて、開いたフォルダの空きで、右クリック →「Open Terminal Here」(ここで Terminal を開く)

$ pwd
/run/media/user/VBox_GAs_7.1.10

→マウントされた CDドライブの位置(マウントポイント)になります:

-


9). 「ゲストOS」は「Void Linux」なので、「Linux」のスクリプトを実行します:

-


10). スクリプトの確認:

$ ls *.run
:
VBoxLinuxAdditions-arm64.run  VBoxLinuxAdditions.run

→2つありますが、片方は CPU アーキテクチャが違います:

-


11). スクリプトの 実行:

$ sudo ./VBoxLinuxAdditions.run
パスワード: 
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.1.10 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
grep: warning: stray \ before t
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.12.47_1.
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules and services 7.1.10 r169112 reloaded
VirtualBox Guest Additions: NOTE: you may still consider to re-login if some 
user session specific services (Shared Clipboard, Drag and Drop, Seamless or 
Guest Screen Resize) were not restarted automatically
[user@user-pc VBox_GAs_7.1.10]$ 

→再起動が必要です。

-

「端末」と「ファイルマネージャ」を右上の「x」で閉じました:

-


12). [光学ドライブ]に挿入した、「Guest Additions の CD イメージ(.iso)」を取り外し:

デスクトップに表示されている、CD-ROM アイコンを右クリック→「ボリュームを安全に取り外す」

デスクトップから、CD-ROM アイコンが消えました:

-


13). 「クリップボードの共有」機能を有効化:

バイス →「クリップボードの共有」
→「無効」を「双方向」に変更:

-


14). 「ドラッグ & ドロップ」機能を有効化:

バイス→「ドラッグ & ドロップ」
→「無効」を「双方向」に変更:

-


15). 電源オフ:

「アプリケーション」→「ログアウト」→「シャットダウン」

-


16). 反映させるため、ホストOS「Xubuntu 24.04 LTS」を再起動:

クリップボードの共有」機能は、ホストOS との連携で動作するので、一度ホストOS 側の再起動が必要です。

-


17). 「仮想マシン」を起動:

-


18). ログイン画面:

→パスワード入力

-


19). デスクトップ画面:

-


20). 自動でウィンドウがリサイズされるか確認:

-

残念ながら、リサイズされません:

「アプリケーション」→「設定」→「ディスプレイ」にて、

「1600x900」(フルHD のモニタで、スクロールバーが表示されないサイズ)に変更して、画面を広げました:

-


21). 「クリップボードの共有」機能が使えるか確認:

クリップボードの共有」機能が使えないので、

→ゲストOS とホストOS のデータの受け渡しは、
 Gmail の「下書き」にメモするか、テキストファイルの添付で、交互に受け渡すつもり:

-


22). 「Void Linux」に「Guest Additions」をインストールしても無意味(無効)でした:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----

7-2. 「Guest Additions」の削除:

-

「Void Linux」に「Guest Additions」をインストールしても(すべての機能が)使えないので、削除しました:

-


1). スクリプトの場所を確認:

$ ls /opt
VBoxGuestAdditions-7.1.10

-

$ ls /opt/VBoxGuestAdditions-7.1.10/
LICENSE  bin  init  other  routines.sh  sbin  src  uninstall.sh

-

スクリプトのパスを確認:

$ ls /opt/VBoxGuestAdditions-7.1.10/uninstall.sh
/opt/VBoxGuestAdditions-7.1.10/uninstall.sh

-


2). 「Guest Additions」を削除する、スクリプトを実行:

(削除される)フォルダに移動せずに、スクリプトを実行しているのがポイント:

$ sudo /opt/VBoxGuestAdditions-7.1.10/uninstall.sh
:
Removing installed version 7.1.10 of VirtualBox Guest Additions...

→削除されました:

-


3). 完了したので、再起動:

$ sudo reboot

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- -----

8. 日本語入力:

-

「Void Linux」のインストール直後は、「日本語入力」できません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -

8-1. 「ibus-mozc」は(今のところ)インストールしても、使えませんでした:

-

「Void Linux」のリポジトリには、

ibus-mozc」が登録されていますが、日本語入力で必要な「mozc」のモジュールが一部不足しているので、使えません:

-


1). 「mozc」の中でインストールできるパッケージを確認:

$ xbps-query -Rs mozc
:
[-] emacs-mozc-2.26.4353.100_2  Japanese IME (Open Source version of Google J...
[-] fcitx-mozc-2.28.4800.102_2  Mozc engine for fcitx - Client of the Mozc in...
[-] fcitx5-mozc-2.31.5851.102_2 Mozc engine for fcitx v5
[-] ibus-mozc-2.31.5851.102_2   Mozc engine for IBus - Client of the Mozc inp...
[-] mozc-2.31.5851.102_2        Japanese IME (Open Source version of Google J...
[-] mozc-base-2.31.5851.102_2   Japanese IME (Open Source version of Google J...

-


2). 「ibus-mozc」で不足しているパッケージ:

$ xbps-query -Rs mozc-utils-gui
$
$ xbps-query -Rs mozc-server
$
$ xbps-query -Rs mozc-data
$

ibus-mozc を使うには、上記の 3つのパッケージがリポジトリにありません。不足しています:

「mozc-server」がないのが致命的です:

-

なくても動かすやり方があるのか検索すると…

-

参考:「mozc-server」がなくても、「Emacs の機能として Mozc を利用する」ことは出来るみたい:

(1). 「mozc-utils-emacs」パッケージをインストール: ←(こちらはないので、emacs-mozc をインストールしてどうなるか、試すと良いかも)

(2). ターミナルから Emacs を起動:

(3). Emacs 内で、M-x mozc-mode と入力して Enter キーを押します:

 M は通常、AltキーまたはOptionキー

(4). Emacs 内で Mozc が有効になり、かな漢字入力が可能になります。

→「ibus-mozc」を使うのではなく、Emacs 内で「mozc」を使うやり方です:

Emacs 使いの人には試してみる価値はあるかも:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- --

8-2. 「fcitx5-mozc」であれば、日本語入力に使えます:

-


1). 「fcitx5-mozc」のインストール:

「xbps-install」でアプリのインストールをする場合、複数のアプリが指定できます:

-

検索を行う、「xbps-query」は、アプリの複数指定ができないのが惜しいです:

「apt list」のような、「xbps-list」みたいなコマンドがあれば、同じ文字列を指定して、確認後に実行、実行後に確認、ができます:

-

インストール実行後の確認であれば、「xbps-query -l | grep -e A -e B …」が使えます:

-

$ sudo xbps-install fcitx5 fcitx5-mozc fcitx5-gtk fcitx5-gtk+2 fcitx5-gtk+3 fcitx5-qt fcitx5-configtool
パスワード: 
20 packages will be downloaded:
  fcitx5-5.1.14_1 fcitx5-mozc-2.31.5851.102_2 fcitx5-gtk-5.1.4_1 
  fcitx5-gtk+2-5.1.4_1 fcitx5-gtk+3-5.1.4_1 fcitx5-qt-5.1.10_1 
  kf6-kdbusaddons-6.17.0_1 qt6-sql-6.8.2_5 qt6-declarative-6.8.2_2 
  qt6-wayland-6.8.2_2 kf6-kwindowsystem-6.17.0_1 libshiboken6-6.8.3_2 
  libpyside6-6.8.3_2 kf6-kwidgetsaddons-6.17.0_1 kf6-kitemviews-6.17.0_1 
  fcitx5-qt6-5.1.10_1 fcitx5-configtool-5.1.10_1 
35 packages will be installed:
  xcb-util-keysyms-0.4.1_1 xcb-imdkit-1.0.9_1 fcitx5-5.1.14_1 
  mozc-base-2.31.5851.102_2 fcitx5-mozc-2.31.5851.102_2 
  fcitx5-gtk-5.1.4_1 fcitx5-gtk+2-5.1.4_1 fcitx5-gtk+3-5.1.4_1 
  fcitx5-qt-5.1.10_1 double-conversion-3.3.1_1 libb2-0.98.1_1 
  qt6-core-6.8.2_5 qt6-dbus-6.8.2_5 libmd4c-0.5.2_1 
  xcb-util-image-0.4.1_1 xcb-util-renderutil-0.3.10_1 
  xcb-util-cursor-0.1.4_1 tslib-1.23_1 qt6-network-6.8.2_5 
  qt6-gui-6.8.2_5 kf6-kdbusaddons-6.17.0_1 qt6-widgets-6.8.2_5 
  qt6-sql-6.8.2_5 qt6-declarative-6.8.2_2 qt6-wayland-6.8.2_2 
  kf6-kwindowsystem-6.17.0_1 libshiboken6-6.8.3_2 libpyside6-6.8.3_2 
  kf6-kwidgetsaddons-6.17.0_1 kf6-kitemviews-6.17.0_1 
  fcitx5-qt6-5.1.10_1 fcitx5-configtool-5.1.10_1 

Size to download:               29MB
Size required on disk:         147MB
Space available on disk:        18GB

Do you want to continue? [Y/n] 

→Enter

20 downloaded, 36 installed, 0 updated, 36 configured, 0 removed, 0 on hold.
[user@user-pc ~]$ 

-


2).インストールされたか確認:

$ xbps-query -l | grep fcitx
:
ii fcitx5-5.1.14_1                           Flexible Context-aware Input Tool with eXtension - v5
ii fcitx5-configtool-5.1.10_1                Fcitx v5 - config tool
ii fcitx5-gtk-5.1.4_1                        Fcitx v5 - GTK common
ii fcitx5-gtk+2-5.1.4_1                      Fcitx v5 - GTK+2 IM Modules
ii fcitx5-gtk+3-5.1.4_1                      Fcitx v5 - GTK+3 IM Modules
ii fcitx5-mozc-2.31.5851.102_2               Mozc engine for fcitx v5
ii fcitx5-qt-5.1.10_1                        Flexible Context-aware Input Tool with eXtension v5 - Qt
ii fcitx5-qt6-5.1.10_1                       Flexible Context-aware Input Tool with eXtension v5 - Qt6
ii libfcitx5-5.1.14_1                        Flexible Context-aware Input Tool with eXtension - v5 - libraries

-


3). 「Fcitx5 設定」

「メニュー」→「設定」→「Fcitx5 設定」

または、

$ fcitx5-configtool

-

初回は、「fcitx5を実行する」ボタンが表示されるので、ボタンを押して、起動する必要があります:

-


4). 「Fcitx の設定」画面:

左の「現在の入力メソッド」が、下記であることを確認:

キーボード - 日本語
Mozc

-


5). 設定ファイルの修正:

$ sudo mousepad /etc/environment

↓ ファイルの最後に追記:

export LANG="ja_JP.UTF-8"
export XMODIFIERS="@im=fcitx"
export XMODIFIER="@im=fcitx"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export DefaultIMModule=fcitx

-

確認:

$ cat /etc/environment
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
export LANG="ja_JP.UTF-8"
export XMODIFIERS="@im=fcitx"
export XMODIFIER="@im=fcitx"
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export DefaultIMModule=fcitx

-


6). ログアウト→ログイン:

-


7). デスクトップ画面:

→デスクトップのパネルに「キーボード」アイコンが表示:

-


8). 日本語入力の確認:

テキストエディタ (mousepad) を起動:

-

「半角/全角」キー、もしくは、「Ctrl+スペース」にて、入力切り替え:

デスクトップのパネルの「キーボード」アイコンが日本語のときに消えます(アイコンが表示されないだけみたい)

-

→日本語入力できました:

-


任意: 別々のキーに、日本語オン・オフを割り当て:

パネルの「キーボード」アイコンを右クリック→「設定」→「Fcitx の設定」

→「グローバルオプション」タブ

入力メソッドを有効にする: 右の空きをクリック→「…」→「ひらがな」キーを押します→「ひらがな カタカナ」
入力メソッドを無効にする: 右の空きをクリック→「…」→「無変換」キーを押します→「無変換」

-

→「適用」→「閉じる」

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ---

9. デスクトップやパネルの設定:

-

この辺りは好みなので、使いたい設定だけ行えば OK:

:


1). パネルの「時計」の表示を変更:

パネルの右にある「時計」を右クリック→「プロパティ」

-

時計のオプション:

レイアウト:「日付のみ」に変更:

日付

フォント: 「Sans Bold 11」に変更

フォーマット:「カスタム」に変更

その下の入力欄:「 %H:%M」に変更

→「閉じる」

-

表示を確認:

18:08

-

-


2). パネルの「時計」にマウスを置いたときの、Tips の表示を変更:

パネルの右にある「時計」を右クリック→「プロパティ」

-

外観

ツールチップの形式:

「カスタム」→「%Y年%B%d日 (%a)」に変更:

-

表示を確認:

「時計」にマウスを置くと、年月日曜日を確認できます:

2025年9月19日 (金)

-

-


3). ショートカットキー: ウィンドウ画面をタイル表示:

「グローバルアクション」の定義で、「左のWindows」キーは使われているので、
「左のWindows」キーを使った設定をしても無効です。

なので、代わりに「Ctrl+Shift」キーを使ってみました:

-

ショートカットキーを修正:

「アプリケーション」 →「設定」→「ウィンドウマネージャー」→「キーボード」タブ

-

(1/2 画面で、左に移動)
  • 「ウィンドウを画面左にタイル表示」→「編集」
 「Ctrl+Shift」+ 「←」   表示: Shift + Ctrl + Left

-

(1/2 画面で、右に移動)
  • 「ウィンドウを画面右にタイル表示」→「編集」
 「Ctrl+Shift」+ 「→」   表示: Shift + Ctrl + Right

-

(1/4 画面で、右上に移動)
  • 「ウィンドウを画面右上にタイル表示」→「編集」
 「Ctrl+Shift」+ 「↑」   表示: Shift + Ctrl + Up

-

(1/4 画面で、右下に移動)
  • 「ウィンドウを画面右下にタイル表示」→「編集」
 「Ctrl+Shift」+ 「↓」    表示: Shift + Ctrl + Down

-

→「閉じる」

-

もう一度、同じ組み合わせを押せば、元の位置とサイズに戻ります:

-

-


4). ショートカットキー: 「Windows + Enter」で、「端末」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: exo-open --launch TerminalEmulator
ショートカット: Super+Return    ←(Windows+Enter)

-

→「閉じる」

-

ちなみに、ウィンドウのタイトルバーをダブルクリックすると、全画面表示:

-

-


5). ショートカットキー: 「Windows + T」で、「テキストエディタ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

-

「mousepad」を起動したい場合:

コマンド: mousepad

もしくは、

「featherpad」を起動したい場合:

コマンド: featherpad

-

ショートカット: Super+T    ←(Windows+T)

-

→「閉じる」

-

-


6). ショートカットキー: 「Windows + W」で、「ブラウザ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

-

既存の「firefox」を起動したい場合:

もしくは、

ダウンロードしてインストールした、最新の「firefox」を起動したい場合:

コマンド: firefox

-

ショートカット: Super+W    ←(Windows+W)

-

→「閉じる」

-

-


7). ショートカットキー: 「Windows + N」で、「ファイルマネージャ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: thunar
ショートカット: Super+N    ←(Windows+N)

-

→「閉じる」

-

-


8). ウィンドウのタイトルバーの「巻き上げ」ボタンを移動:

すでに「巻き上げ」ボタンは追加されていますが、ボタンの位置がイマイチなので、左に移動しました:

-

「アプリケーション」→「設定」→「ウィンドウマネージャー」

「スタイル」タブ:

-

ボタンの配置:

右下の「表示する:」にある、「↑」ボタンに注目:

「タイトル」「↑」

↓ マウスでドラッグして、移動:

「↑」「タイトル」

-

→「閉じる」

-

-


9). デスクトップのアイコンを「ゴミ箱」のみにしました:

デスクトップの空きで右クリック→「デスクトップの設定」→「ファイル/ランチャーアイコン」タブ:

-

デフォルトのアイコン:

「ホーム」と「ファイルシステム」のみ、チェックを外しました:

→「閉じる」

-

「ゴミ箱」のみのデスクトップ:

-

-


10). ウィンドウのタイトルバーとウィンドウ枠の「テーマ」を変更:

この辺りは、好みです:

-

「アプリケーション」 →「設定」→「ウィンドウマネージャー」→「スタイル」タブ

-

テーマ

たくさんのテーマが登録されているので、お好きなものを、

微妙に違います:

-

「Smoothwall」に変更した場合:

-

「Wallis」に変更した場合:

-

「Waza」に変更した場合:

→枠なし:

-

→「閉じる」

-

「端末」画面にて、ウィンドウのタイトルバーを確認:

→選択されているウィンドウがわかりやすいし、タイトルバーが細いです:
 色違いのテーマがあると良いかも:

-

-


11). パネルの仮想デスクトップの数「1〜4」を減らしました:

パネルの「仮想デスクトップ」を右クリック→「ワークスペースの設定」→「全般」タブ:

レイアウト

ワークスペースの数: 「4」→「2」に変更:

-

→「閉じる」

-

-


12). パネルの背景色を変更:

この辺りは、好みです:

-

「アプリケーション」 →「設定」→「パネル」→「外観」タブ

全般

ダークモード   右(オン)

→パネルがダークモードになっているので、以下の設定はいらないかも:

-

背景

スタイル: 「なし(システムスタイルを使用)」(黒色)のままか、

-

もしくは、

スタイル: 「単一色」に変更:

配色: 右端をクリック→一番下の「作成した色」の「右から 2つ目の濃い水色」に変更:

→「選択」

-

→「閉じる」

-

パネルを確認:

→パネルの色は、デスクトップの壁紙と色合いが合うものが良さそう:

-

-


13). パネルに「スピーカ」アイコン(音量調整)を追加:

パネルの空きで右クリック→「パネル」→「パネルの設定」→「アイテム」タブ:

左下の「+追加」をクリック→「PulseAudio プラグイン→「+追加」→「閉じる」

-

「PulseAudio プラグインを選んで、右の「上矢印」で、時計の上の、セパレーターの上まで移動:

-

-

→「閉じる」

-

「ゲーム」アプリで、音量調整できるか確認:

「アプリケーション」→「ゲーム」→「Kajongg 中国式四人麻雀」を起動:

「Play」で開始

→牌を捨てるときに英語の音声が出るので、音量調整できるか確認:

-

-


14). 上にあったパネルを画面下に移動:

-

(1). 上のパネルを移動する前に、下のパネルを削除します:

下のパネルの空きで右クリック→「パネル」→「パネルの設定」→一番上に「パネル2」が表示されていることを確認:

右上の「ー」をクリックして、「パネル2」を削除:

-

もし、「パネル2」(ドック)を残したいのであれば、パネルを右か左に移動:

ロックを解除してから、モードを「垂直」に変更して、移動します:

-

(2). 「パネルの設定」画面の、一番上に「パネル1」が表示:

「パネルをロックする」のチェックを外します:

→パネルが赤枠で囲まれ、行頭と行末に「縦棒」が表示されます:

-

(3). マウスでその「縦棒」をつかむと手のひらになるので、そのまま画面下に移動します:

-

(4). 画面下に移動できたら、先ほどの「パネルの設定」画面にて、

「パネルをロックする」にチェックします:

-

→「閉じる」

-

移動後:

-

(5). 参考: もし、パネルを右か左に移動したい場合は、

ロックを解除してから、モードを「垂直」に変更して、移動します:

-

-


15). ファイルマネージャ「thunar」の日付の形式を変更:

こちら」を参照:

-

-


16). パネルの「アプリケーション」メニューの「アプリケーション」文字を変更:

パネルの「アプリケーション」メニューを右クリック→「プロパティ」

-

ボタンタイトル:
「アプリケーション」の文字を →「メニュー」、もしくは「Menu」に変更:

-

-

もしくは、

「アプリケーション」の文字を →「半角スペース」で、クリックできる横幅を調整:

-

→「閉じる」

-

例:「Menu」に設定した場合:

↓ 拡大:

-

-


17). デスクトップにて「単一色」の壁紙を準備して、「壁紙」を設定:

設定で、デスクトップは「単一色」にできますが、ログイン画面は以前に「デスクトップ」の壁紙に設定した壁紙のままです:

-

壁紙は「単一色」でなく、お気に入りの画像でも良いですが、縦横比が問題になるかも:

-

(1). 「壁紙」を準備:

「単一色」のデスクトップのスクリーンショットを撮って、それを加工しました:

-

(2). 準備した「壁紙」をシステムにコピー:
$ sudo cp ~/ダウンロード/bule-screen.jpg /usr/share/backgrounds/xfce/

→デフォルトの「xfce」フォルダに、壁紙が追加されました:

-

(3). デスクトップの空きで、右クリック→「デスクトップの設定…」→「背景」タブ:

デスクトップの壁紙: 追加した「壁紙」を選択:

-

フォルダ: 「Xfce

スタイル: 「無し」  ←(ポイント)

-

→「閉じる」

-

デスクトップの壁紙が、「単一色」になったことを確認:

-

(4). ログアウトして、確認:

-

ログイン画面の壁紙が、「単一色」になったことを確認:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----

10. フォントのインストール:

-

個人的によく使っているフォントを、インストールしました。 インストールは任意です。

-

-


1). 「MiguMix」フォントのインストール:

-

(1). 「MiguMix」フォントがインストールできるか確認:
$ xbps-query -Rs migmix
$

リポジトリになし:

-

(2). ツールのインストール:

「xbps-install」は、複数のパッケージのインストールの指示ができます:

-

$ sudo xbps-install -S dpkg curl
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2086KB [avg rate: 1760KB/s]

Name  Action    Version       New version        Download size
libmd install   -             1.1.0_1            26KB 
dpkg  install   -             1.22.18_1          2399KB 
curl  install   -             8.16.0_1           256KB 

-

インストールされたか確認:
$ xbps-query -l | grep -e dpkg -e curl
:
ii curl-8.16.0_1                   Client that groks URLs
ii dpkg-1.22.18_1                  Debian Package Manager
ii libcurl-8.16.0_1                Multiprotocol file transfer library

→「-e」は grep の連結機能です:

-

(3). 「MigMix」をダウンロード:
$ curl http://archive.ubuntu.com/ubuntu/pool/universe/f/fonts-migmix/fonts-migmix_20200307-1_all.deb --output /tmp/fonts-migmix_20200307-1_all.deb

→「.deb」ファイルを「/tmp/」にダウンロード:

-

(4). 「MigMix」を「dpkg」でインストール:
$ sudo dpkg -i /tmp/fonts-migmix_20200307-1_all.deb
:
パスワード: 
以前に未選択のパッケージ fonts-migmix を選択しています。
(データベースを読み込んでいます ... 現在 0 個のファイルとディレクトリがインストールされています。)
.../fonts-migmix_20200307-1_all.deb を展開する準備をしています ...
fonts-migmix (20200307-1) を展開しています...
fonts-migmix (20200307-1) を設定しています ...

-

(5). dpkg でインストールされた、パッケージ一覧を表示:
$ dpkg -l --no-pager | grep font
:
ii  fonts-migmix  20200307-1   all   High quality Japanese font based on M+ fonts and IPA fonts

grep で余計な行を表示させていません:

-

(6). 「MigMix」パッケージには、次のフォントが含まれています:
- プロポーショナルフォント(ブラウザ用)→ Migu 1P、Migu 1C、MigMix 1P、MigMix 2P
- 等幅フォント(テキストエディタ用)   → Migu 1M、Migu 2M、MigMix 1M、MigMix 2M

-

フォントの横幅が狭いので、狭い画面で多くの情報を表示できるのが利点です:

-

-


2). 「源ノ角ゴシック Code JP」フォントのインストール:

-

(1). ツールのインストール:
$ sudo xbps-install -S wget
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2086KB [avg rate: 1411KB/s]

Name Action    Version           New version            Download size
wget install   -                 1.25.0_1               805KB 

-

(2). 「SourceHanCodeJP.ttc」フォントのダウンロード:
$ mkdir -p ~/ダウンロード/fonts
$ cd ~/ダウンロード/fonts/
$ wget https://github.com/adobe-fonts/source-han-code-jp/releases/download/2.012R/SourceHanCodeJP.ttc

→ダウンロードに時間がかかるので、ネットが空いている時間帯に行うのが良いです:

-

確認:

$ ls -1 ~/ダウンロード/fonts/
SourceHanCodeJP.ttc

-

(3). システム全体で使えるようにインストール:

フォルダの作成:

$ sudo mkdir -p /usr/local/share/fonts/

-

$ cd ~/ダウンロード/fonts/
$ sudo cp SourceHanCodeJP.ttc /usr/local/share/fonts/

-

「源ノ角ゴシック Code JP」フォントは、

英数字と日本語が「2 : 3」の幅の「等幅フォント」です。
日本語と英数字が混在しても、バランスが良く見やすいです;

9 ポイントくらいに小さくすると、見やすくて、多くの情報が表示できます。

「1 : 2」ではないので、「端末」等では使えません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -----

11. アプリのインストール:

-

個人的によく使っているアプリを、インストールしました。 インストールは任意です。

-

-


1). PC の詳細確認に便利な「screenfetch」をインストール:

一度実行したら、後は役に立ちません:

こちらに実行時の表示を載せました。なので、インストールする必要はありません:

-

(1). インストールできるか確認:
$ xbps-query -Rs screenf
[-] screenFetch-3.9.1_2 Bash screenshot information tool

-

(2). インストール:
$ sudo xbps-install -S screenFetch
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2087KB [avg rate: 1159KB/s]

Name        Action    Version       New version        Download size
xdpyinfo    install   -             1.3.4_2            15KB 
screenFetch install   -             3.9.1_2            53KB 

-

(3). PC 使用情報の表示(ロゴ表示なし):
$ screenfetch -n
:
grep: warning: stray \ before "
grep: warning: stray \ before "
 user@user-pc                           ←(ユーザ名@コンピュータ名)
 OS: Void Linux                          ←(ディストリビューション)
 Kernel: x86_64 Linux 6.12.47_1          ←(カーネル)64bit
 Uptime: 45m
 Packages: 659
 Shell: bash
 Resolution: 1280x960                    ←(VertualBox での解像度)★
 DE: Xfce                                 ←(デスクトップは Xfce)
 WM: Xfwm4                               ←(ウィンドウマネージャは Xfwm4)
 WM Theme: Smoothwall                    ←(ウィンドウのテーマ)
 GTK Theme: Adwaita [GTK2]
 Icon Theme: Adwaita
 Font: Sans 10
 Disk: 5.7G / 29G (21%)
 CPU: 12th Gen Intel Core i5-12450H @ 8x 2.496GHz ←(CPU x8)
 GPU: VMware SVGA II Adapter
 RAM: 1234MiB / 7722MiB

-

-


2). 最新の「Firefox」ブラウザのESR 版をインストール:

-

(1). すでに通常版の「Firefox」がインストールされています:
$ firefox --version
Mozilla Firefox 143.0

-

$ which firefox
/usr/bin/firefox

-

$ xbps-query -l | grep firefox
:
ii firefox-143.0_1                Mozilla Firefox web browser

→言語パッケージはインストールされていません:

-

起動して確認:

「アプリケーション」→「インターネット」→「Firefox Web Browser」

-

設定: (Setting...)
言語

「日本語」 表示されていない場合は、言語指定を追加して、変更:

-

フォント

既定のフォント:  →既定「Noto Sans CJK JP」 16

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

(2). 最新の「Firefox」ESR 版をインストール:
→手順は「項番 20.」を参照:

-

今回は、最新版をダウンロードしました:

ダウンロードに時間がかかるので、ネットが空いている時間に行うのが良いです:

-

(3). 任意: 既存の「Firefox」を削除:
$ sudo xbps-remove firefox
:
パスワード:

Name    Action    Version         New version          Download size
firefox remove    143.0_1         -       

-

(4). ゴミの整理:
$ sudo xbps-remove -o

-

(5). 参考: 削除後、Windows+W で「ブラウザ」を起動してみる:
→時間はかかりますが、起動されました:

-

(6). 追記: リポジトリからインストールできる「firefox-esr」を確認したら、
$ xbps-query -Rs firefox-esr
:
[-] firefox-esr-140.2.0_1          Mozilla Firefox web browser - Exte...
[-] firefox-esr-i18n-140.2.0_1     Firefox ESR language packs
:
[-] firefox-esr-i18n-ja-140.2.0_1  Firefox ESR Japanese language pack
→最新に近いバージョンでした:

-

リポジトリからインストールできることを気付いていれば、ダウンロードしてインストールする必要はなかったかも:

ちなみに、現在の最新は「140.3.0_1」です。インストールできるのは「140.2.0_1」なので、ほとんど変わりません:

-

-


3). テキストエディタ「Featherpad」のインストール:

-

(1). インストール失敗:
$ sudo xbps-install -S featherpad
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
ERROR: Package 'featherpad' not found in repository pool.

リポジトリで見つからないみたい:

-

(2). 確認:
$ xbps-query -Rs featherpad
:
[-] FeatherPad-1.6.2_1 Lightweight Qt6 plain-text editor for Linux

→注意: 「パッケージ名」に大文字が含まれています:

ちなみに、言語パッケージがないバージョンのようです:

-

(3). インストールやり直し:
$ sudo xbps-install -S FeatherPad
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name             Action    Version       New version        Download size
qt6-svg          install   -             6.8.2_1            238KB 
qt6-printsupport install   -             6.8.2_5            213KB 
libhunspell1.7   install   -             1.7.2_1            456KB 
FeatherPad       install   -             1.6.2_1            936KB 

→検索でヒットした「パッケージ名」でインストール:

-

(4). バージョンの確認:
$ featherpad --version
FeatherPad 1.6.2

→「実行ファイル名」は今までと同じ、小文字です:

-

(5). 設定は「こちら」を参照:

-

-


4). ファイアウォール「gufw」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs gufw
:
[-] gufw-24.04_2 GTK+ frontend for ufw

-

(2). インストール:
$ sudo xbps-install -S gufw
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2069KB [avg rate: 943KB/s]
13 packages will be downloaded:
  net-tools-2.10_1 ufw-0.36.2_4 bubblewrap-0.11.0_1 
  xdg-dbus-proxy-0.1.6_1 libwoff2common1.0.2-1.0.2_1 
  libwoff2dec1.0.2-1.0.2_1 rav1e-0.6.6_3 libavif-1.3.0_1 
  hyphen-en-25.8.1.1_1 hyphen-2.8.8_4 libmanette-0.2.6_1 
  libwebkit2gtk41-2.46.6_1 gufw-24.04_2 
13 packages will be installed:
  net-tools-2.10_1 ufw-0.36.2_4 bubblewrap-0.11.0_1 
  xdg-dbus-proxy-0.1.6_1 libwoff2common1.0.2-1.0.2_1 
  libwoff2dec1.0.2-1.0.2_1 rav1e-0.6.6_3 libavif-1.3.0_1 
  hyphen-en-25.8.1.1_1 hyphen-2.8.8_4 libmanette-0.2.6_1 
  libwebkit2gtk41-2.46.6_1 gufw-24.04_2 

-

(3). 設定は、「こちら」を参照:

-

(4). ssh 接続して使う場合は、「項番 2)」のファイアウォールの開始: は行いません:

-

-


5). ディスクの管理の「disks」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs gnome-disk
:
[-] gnome-disk-utility-46.1_1 GNOME libraries and applications for dealing wi...

-

(2). インストール:
$ sudo xbps-install -S gnome-disk-utility
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
7 packages will be downloaded:
  gptfdisk-1.0.10_1 parted-3.6_1 libhandy1-1.8.3_1 
  libcracklib-2.10.3_1 cracklib-2.10.3_1 libpwquality-1.4.5_3 
  gnome-disk-utility-46.1_1 
7 packages will be installed:
  gptfdisk-1.0.10_1 parted-3.6_1 libhandy1-1.8.3_1 
  libcracklib-2.10.3_1 cracklib-2.10.3_1 libpwquality-1.4.5_3 
  gnome-disk-utility-46.1_1 

-

(3). 起動:

「アプリケーション」→「アクセサリ」→「ディスク」

-

-

(4). 使い方は、「こちら」を参照:

-

-


6). ディスクのパーティション管理の「gparted」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs gparted
:
[-] gparted-1.7.0_1 Gnome Partition Editor

-

(2). インストール:
$ sudo xbps-install -S gparted
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name      Action    Version       New version        Download size
libsigc++ install   -             2.12.1_1           9.9KB 
glibmm    install   -             2.66.6_1           672KB 
atkmm     install   -             2.28.3_1           80KB 
cairomm   install   -             1.14.5_1           46KB 
pangomm   install   -             2.46.2_1           53KB 
gtkmm     install   -             3.24.8_1           1067KB 
gparted   install   -             1.7.0_1            1912KB 

-

(3). 起動:

「アプリケーション」→「システム」→「Gparted」

-

→「スワップパーティション」があることに注目:

-

(4). 使い方は、「こちら」を参照:

-

-


7). 音楽プレーヤの「audacious」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs audacious
[-] audacious-4.5.1_1            Lightweight, advanced audio player focused o...
[-] audacious-base-4.5.1_1       Lightweight, advanced audio player focused o...
[-] audacious-base-devel-4.5.1_1 Lightweight, advanced audio player focused o...
[-] audacious-devel-4.3.1_1      Lightweight, advanced audio player focused o...
[-] audacious-plugins-4.5.1_1    Plugins for the Audacious media player

-

(2). インストール:
$ sudo xbps-install -S audacious
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
16 packages will be downloaded:
  audacious-base-4.5.1_1 faad2-2.11.2_1 opusfile-0.12_3 
  libsidplayfp-2.3.1_1 libmms-0.6.4_2 neon-0.32.2_2 libcue-2.3.0_1 
  qt6-opengl-widgets-6.8.2_5 minizip-1.3_1 libassimp-5.2.5_2 
  libqt6shadertools-6.8.2_1 qt6-quicktimeline-6.8.2_1 
  qt6-quick3d-6.8.2_1 qt6-multimedia-6.8.2_2 audacious-plugins-4.5.1_1 
  audacious-4.5.1_1 
16 packages will be installed:
  audacious-base-4.5.1_1 faad2-2.11.2_1 opusfile-0.12_3 
  libsidplayfp-2.3.1_1 libmms-0.6.4_2 neon-0.32.2_2 libcue-2.3.0_1 
  qt6-opengl-widgets-6.8.2_5 minizip-1.3_1 libassimp-5.2.5_2 
  libqt6shadertools-6.8.2_1 qt6-quicktimeline-6.8.2_1 
  qt6-quick3d-6.8.2_1 qt6-multimedia-6.8.2_2 audacious-plugins-4.5.1_1 
  audacious-4.5.1_1 

-

(3). インストールされたかの確認:
$ xbps-query -Rs audacious
:
[*] audacious-4.5.1_1            Lightweight, advanced audio player focused o...
[*] audacious-base-4.5.1_1       Lightweight, advanced audio player focused o...
[-] audacious-base-devel-4.5.1_1 Lightweight, advanced audio player focused o...
[-] audacious-devel-4.3.1_1      Lightweight, advanced audio player focused o...
[*] audacious-plugins-4.5.1_1    Plugins for the Audacious media player

-

(4). バージョン:
$ audacious --version
Audacious 4.5.1 (xbps)

-

(5). 起動:

「アプリケーション」→「マルチメディア」→「Audacious

-

(6). 詳細は、「こちら」を参照:

-

-


8). 音楽タグの管理の「EasyTAG」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs easytag
:
[-] easytag-2.4.3_5 GUI audio tag editor

-

(2). インストール:
$ sudo xbps-install -S easytag
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name    Action    Version       New version        Download size
id3lib  install   -             3.8.3_7            111KB 
easytag install   -             2.4.3_5            864KB 

-

(3). バージョン:
$ easytag --version
easytag 2.4.3
Website: https://wiki.gnome.org/Apps/EasyTAG

-

(4). 起動:

「アプリケーション」→「マルチメディア」→「EasyTAG」

-

(5). 詳細は、「こちら」を参照:

-

(6). 「EasyTAG」の活用は、「こちら

たくさんの音楽ファイルを持っていて整理するときに便利です。

-

-


9). 画像加工の「kolourpaint」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs kolou
[-] kolourpaint-24.12.2_1 Free, easy-to-use paint program for KDE

-

(2). インストールで失敗:
$ sudo xbps-install -S kolourpaint
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
libpoppler-25.06.0_1: broken, unresolvable shlib `libgpgmepp.so.6'
volume_key-0.3.12_8: broken, unresolvable shlib `libgpgme.so.11'
ERROR: Transaction aborted due to unresolved shlibs.
[user@user-pc ~]$ 

→ 2つの依存するライブラリが解決できないみたい:

-

(3). アプリの依存を確認:
$ xbps-query -R kolourpaint
:
architecture: x86_64
changelog: https://kde.org/announcements/changelogs/gear/24.12.2/#kolourpaint
filename-sha256: 241c27cc6e1eacc32dd2b8d4292cdfd3e2abdee820878a71802c961b727aa69f
filename-size: 5602KB
homepage: http://www.kolourpaint.org/
installed_size: 9589KB
license: BSD-2-Clause, GPL-2.0-or-later, LGPL-2.1-only, GFDL-1.2-only
maintainer: Piotr Wójcik <chocimier@tlen.pl>
pkgname: kolourpaint
pkgver: kolourpaint-24.12.2_1
provides:
    cmd:kolourpaint-24.12.2_1
repository: https://repo-fi.voidlinux.org/current
run_depends:
    kf6-kguiaddons>=6.0.0_1
    kf6-kio>=6.0.0_1
    kf6-ki18n>=6.0.0_1
    kf6-kwidgetsaddons>=6.0.0_1
    qt6-widgets>=6.8.1_1
    qt6-gui>=6.8.1_1
    kf6-kcoreaddons>=6.0.0_1
    qt6-core>=6.8.1_1
    libstdc++>=4.4.0_1
    glibc>=2.39_1
    kf6-kxmlgui>=6.0.0_1
    qt6-printsupport>=6.8.1_1
    libksane6>=24.02.0_1
    kf6-kconfigwidgets>=6.0.0_1
    kf6-kcrash>=6.0.0_1
    kf6-kconfig>=6.0.0_1
shlib-provides:
    libkolourpaint_lgpl.so.5
shlib-requires:
    libKF6ConfigCore.so.6
    libKF6ConfigGui.so.6
    libKF6ConfigWidgets.so.6
    libKF6CoreAddons.so.6
    libKF6Crash.so.6
    libKF6GuiAddons.so.6
    libKF6I18n.so.6
    libKF6KIOCore.so.6
    libKF6KIOFileWidgets.so.6
    libKF6KIOGui.so.6
    libKF6WidgetsAddons.so.6
    libKF6XmlGui.so.6
    libKSaneWidgets6.so.6
    libQt6Core.so.6
    libQt6Gui.so.6
    libQt6PrintSupport.so.6
    libQt6Widgets.so.6
    libc.so.6
    libm.so.6
    libstdc++.so.6
short_desc: Free, easy-to-use paint program for KDE
source-revisions: kolourpaint:9f7ed336e4f

上記に書かれた依存とは違うので、たぶん、依存の依存かな。

-

(4). 依存の 1つ目がインストールできるか確認:
$ xbps-query -Rs libpoppler
:
[-] libpoppler-25.06.0_2 PDF rendering library - poppler runtime library

→OK

-

(5). 依存の 2つ目がインストールできるか確認:
$ xbps-query -Rs volume_key
:
[-] volume_key-0.3.12_9         Library for manipulating storage volume encry...
[-] volume_key-devel-0.3.12_9   Library for manipulating storage volume encry...
[-] volume_key-python3-0.3.12_9 Library for manipulating storage volume encry...

→OK

-

(6). 2つの依存をインストール:
$ sudo xbps-install -S libpoppler volume_key
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name         Action    Version       New version        Download size
poppler-glib update    25.06.0_1     25.06.0_2          206KB 
libgpgme     update    1.24.1_1      2.0.0_1            147KB 
gpgmepp      update    1.24.1_1      2.0.0_1            147KB 
libpoppler   update    25.06.0_1     25.06.0_2          1310KB 
volume_key   update    0.3.12_8      0.3.12_9           144KB 

-

(7). 「kolourpaint」のインストール:
$ sudo xbps-install -S kolourpaint
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
41 packages will be downloaded:
  kf6-kguiaddons-geo-uri-handler-6.17.0_1 kf6-kguiaddons-6.17.0_1 
  kf6-ki18n-6.17.0_1 qt6-xml-6.8.2_5 kf6-kconfig-6.17.0_1 
  kf6-kcoreaddons-6.17.0_1 kf6-kservice-6.17.0_1 kf6-kcrash-6.17.0_1 
  polkit-qt6-0.200.0_1 kf6-kauth-6.17.0_1 xmlcatmgr-2.2_4 
  docbook-xml-4.5_6 docbook-xsl-1.79.2_3 kf6-karchive-6.17.0_1 
  kf6-kdoctools-6.17.0_1 media-player-info-24_2 kf6-solid-6.17.0_1 
  kf6-knotifications-6.17.0_1 kf6-kcolorscheme-6.17.0_1 
  qt6-qt5compat-6.8.2_2 botan-2.19.5_1 qca-qt6-2.3.8_2 
  kf6-kwallet-6.17.0_2 kf6-kjobwidgets-6.17.0_1 kf6-kcodecs-6.17.0_1 
  kf6-kcompletion-6.17.0_1 libbreeze-icons-6.17.0_1 
  kf6-kiconthemes-6.17.0_1 kf6-kbookmarks-6.17.0_1 kf6-kio-6.17.0_2 
  kf6-kglobalaccel-6.17.0_1 kf6-kconfigwidgets-6.17.0_1 
  kf6-kxmlgui-6.17.0_1 libaspell-0.60.8.1_1 kf6-sonnet-6.17.0_1 
  qt6-speech-6.8.2_2 kf6-ktextwidgets-6.17.0_1 libsane-1.3.1_2 
  ksanecore6-25.08.0_1 libksane6-24.08.0_1 kolourpaint-24.12.2_1 
41 packages will be installed:
  kf6-kguiaddons-geo-uri-handler-6.17.0_1 kf6-kguiaddons-6.17.0_1 
  kf6-ki18n-6.17.0_1 qt6-xml-6.8.2_5 kf6-kconfig-6.17.0_1 
  kf6-kcoreaddons-6.17.0_1 kf6-kservice-6.17.0_1 kf6-kcrash-6.17.0_1 
  polkit-qt6-0.200.0_1 kf6-kauth-6.17.0_1 xmlcatmgr-2.2_4 
  docbook-xml-4.5_6 docbook-xsl-1.79.2_3 kf6-karchive-6.17.0_1 
  kf6-kdoctools-6.17.0_1 media-player-info-24_2 kf6-solid-6.17.0_1 
  kf6-knotifications-6.17.0_1 kf6-kcolorscheme-6.17.0_1 
  qt6-qt5compat-6.8.2_2 botan-2.19.5_1 qca-qt6-2.3.8_2 
  kf6-kwallet-6.17.0_2 kf6-kjobwidgets-6.17.0_1 kf6-kcodecs-6.17.0_1 
  kf6-kcompletion-6.17.0_1 libbreeze-icons-6.17.0_1 
  kf6-kiconthemes-6.17.0_1 kf6-kbookmarks-6.17.0_1 kf6-kio-6.17.0_2 
  kf6-kglobalaccel-6.17.0_1 kf6-kconfigwidgets-6.17.0_1 
  kf6-kxmlgui-6.17.0_1 libaspell-0.60.8.1_1 kf6-sonnet-6.17.0_1 
  qt6-speech-6.8.2_2 kf6-ktextwidgets-6.17.0_1 libsane-1.3.1_2 
  ksanecore6-25.08.0_1 libksane6-24.08.0_1 kolourpaint-24.12.2_1 

Size to download:               28MB
Size required on disk:         128MB
Space available on disk:        17GB

Do you want to continue? [Y/n] 

-

(8). バージョン:
$ kolourpaint --version
kolourpaint 24.12.2

-

(9). 起動:

「アプリケーション」→「グラフィックス」→「KolourPaint」

-

(10). 詳細は、「こちら」を参照:

-

-


10). PDF ビュワー「qpdfview」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs qpdfv
:
[-] qpdfview-0.5.0_1 Tabbed document viewer

-

(2). インストール:
$ sudo xbps-install -S qpdfview
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name              Action    Version     New version           Download size
libdjvulibre      install   -           3.5.29_1              709KB 
qt5-core          install   -           5.15.11+20231124_5    2441KB 
qt5-dbus          install   -           5.15.11+20231124_5    209KB 
qt5-network       install   -           5.15.11+20231124_5    746KB 
qt5-gui           install   -           5.15.11+20231124_5    4090KB 
qt5-xml           install   -           5.15.11+20231124_5    104KB 
poppler-qt5       install   -           25.06.0_1             209KB 
qt5-concurrent    install   -           5.15.11+20231124_5    11KB 
qt5-sql           install   -           5.15.11+20231124_5    102KB 
qt5-plugin-sqlite install   -           5.15.11+20231124_5    29KB 
qt5-widgets       install   -           5.15.11+20231124_5    2652KB 
qt5-printsupport  install   -           5.15.11+20231124_5    197KB 
qt5-svg           install   -           5.15.11+20231124_5    152KB 
qpdfview          install   -           0.5.0_1               843KB 

→インストールされたのは、「qpdfview 0.5.0」です:

-

(3). 起動して確認:

「アプリケーション」→「オフィス」→「qpdfview」を起動:

-

→ヘルプ以外は日本語化されています:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- -

12. ゲームのインストール:

-

個人的によく使っているゲームを、インストールしました。 インストールは任意です。

-

-


1). 「swell-foop」をインストール:

「さめざめ」もどきで、音が出ないのが惜しいです。

-

(1). インストールできるか確認:
$ xbps-query -Rs swell-f
:
[-] swell-foop-48.1_1 GNOME puzzle game where you remove similar objects

→検索する「アプリ名」か「説明文」の、一部がわかれば、ヒットします:

-

(2). インストール:
$ sudo xbps-install -S swell-foop
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
6 packages will be downloaded:
  libxmlb-0.3.22_2 AppStream-1.0.4_2 libadwaita-1.7.5_1 
  libgee-0.20.8_2 libgnome-games-support2-2.0.2_1 swell-foop-48.1_1 
6 packages will be installed:
  libxmlb-0.3.22_2 AppStream-1.0.4_2 libadwaita-1.7.5_1 
  libgee-0.20.8_2 libgnome-games-support2-2.0.2_1 swell-foop-48.1_1 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/org.gnome.SwellFoop.desktop

↓ 行を修正:

Name[ja]=Swell Foop さめざめもどき

-

(4). 起動:

「アプリケーション」→「ゲーム」→「Swell Foop さめざめもどき」

-

実行時の画面:

-

-


2). 「マインスイーパ」のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs kmines
:
[-] kmines-24.08.0_1 Classic Minesweeper game

-

(2). インストール:
$ sudo xbps-install -S kmines
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2070KB [avg rate: 1866KB/s]

Name            Action    Version       New version        Download size
kf6-kdnssd      install   -             6.17.0_1           85KB 
kf6-attica      install   -             6.17.0_1           192KB 
kf6-syndication install   -             6.17.0_1           222KB 
kf6-kpackage    install   -             6.17.0_1           178KB 
kf6-knewstuff   install   -             6.17.0_1           743KB 
libkdegames     install   -             24.08.0_1          9041KB 
kmines          install   -             24.08.0_1          1163KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kmines.desktop

↓ 行を修正:

Name[ja]=KMines マインスイーパ

-

(4). 起動:

「アプリケーション」→「ゲーム」→「KMines マインスイーパ

-

実行時の画面:

-

-


3). 「ソリティア」(クロンダイク)のインストール:

カードゲーム集なので、いくつかのカードゲームで遊べます:

-

(1). インストールできるか確認:
$ xbps-query -Rs aisleriot
:
[-] aisleriot-3.22.35_1 GNOME solitaire card game

-

(2). インストール:
$ sudo xbps-install -S aisleriot
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name      Action    Version       New version        Download size
gc        install   -             8.2.8_1            106KB 
libguile  install   -             3.0.10_1           506KB 
guile     install   -             3.0.10_1           9681KB 
yelp-xsl  install   -             42.4_1             214KB 
yelp      install   -             42.3_1             851KB 
aisleriot install   -             3.22.35_1          9467KB 

-

(3). 起動:

「アプリケーション」→「ゲーム」→「AisleRiot ソリティア

-

実行時の画面:

-

-


4). 「四川省」 (Shisen-Sho) のインストール:

2 回以内の折れで、同じパイを消して行きます。パイが無くなると重力で落ちます。

-

(1). インストールできるか確認:
$ xbps-query -Rs kshisen
$ 

→基本のリポジトリに登録されていません:

-

(2). 他のリポジトリへの登録とか、ソースが登録されているかは未確認:

-

(3). 参考: 実行時の画面:

-

-


5). 「上海」 (KMahjongg) のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs kmahjongg
:
[-] kmahjongg-25.04.3_1          Mahjong Solitaire
[-] libkmahjongg-25.04.3_1       Common code, backgrounds and tile sets for M...
[-] libkmahjongg-devel-25.04.3_1 Common code, backgrounds and tile sets for M...

-

(2). インストール:
$ sudo xbps-install -S kmahjongg
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2070KB [avg rate: 933KB/s]

Name         Action    Version       New version        Download size
libkmahjongg install   -             25.04.3_1          1657KB 
kmahjongg    install   -             25.04.3_1          3838KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kmahjongg.desktop

↓ 行を修正:

Name[ja]=KMahjongg 上海

-

(4). 起動:

「アプリケーション」→「ゲーム」→「KMahjongg 上海」

-

実行時の画面:

-

-


6). 「中国式四人麻雀」 (Kajongg) のインストール:

男女のロボットが、英語の音声付きで相手をしてくれます。中国式麻雀なのが惜しいところ:

-

(1). インストールできるか確認:
$ xbps-query -Rs kajongg
$ 

→基本のリポジトリに登録されていません:

-

(2). 他のリポジトリへの登録とか、ソースが登録されているかは未確認:

-

-

(3). 参考: 実行時の画面:

→牌を捨てるときに、英語の音声が聞けます:

-

-


7). 「フローズン・バブル」 (frozen-bubble) のインストール:

角度を決めてカラーボールを発射して、同じ色が 3個以上くっつくと落っこちます。

すべて落とせばクリア

-

(1). インストールできるか確認:
$ xbps-query -Rs frozen-bubble
$ 

→基本のリポジトリに登録されていません:

-

(2). 他のリポジトリへの登録とか、ソースが登録されているかは未確認:

-

(3). 参考: 実行時の画面:

-

-


8). 「宇宙船スクロールシューティングゲーム」(kobodeluxe) のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs kobodeluxe
:
[-] kobodeluxe-0.5.1_3 Space shooter in 2D

-

(2). インストール:
$ sudo xbps-install -S kobodeluxe
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name         Action    Version       New version        Download size
sdl12-compat install   -             1.2.68_2           - 
SDL_image    install   -             1.2.12_14          29KB 
kobodeluxe   install   -             0.5.1_3            1555KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/kobodl.desktop

↓ 行を追加:

Name[ja]=kobodeluxe 宇宙船スクロールシューティング

-

(4). 起動:

「アプリケーション」→「ゲーム」→「kobodeluxe 宇宙船スクロールシューティング」

-

実行時の画面:

-

キビキビ動きます。速すぎるので難しいです。 レーダーで自分の位置を確認しながら、基地のパイプの先の球体にビームを当てて破壊します。

shift: 前後にビーム
矢印: 方向転換
スペース: 一時停止

-

-


9). LbreakoutHD(ブロックくずし もどき)のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs lbreakout2
:
[-] lbreakout2-2.6.5_2   Breakout-style arcade game
[-] lbreakouthd-1.1.10_1 Scalable 16:9 remake of LBreakout2

→解像度で 2つのアプリに別れています:

-

(2). インストール:
$ sudo xbps-install -S lbreakouthd
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name        Action    Version       New version        Download size
libmikmod   install   -             3.3.11.1_1         95KB 
smpeg2      install   -             2.0.0_6            125KB 
SDL2_mixer  install   -             2.8.1_1            162KB 
SDL2_image  install   -             2.8.8_1            98KB 
SDL2_ttf    install   -             2.20.2_2           34KB 
lbreakouthd install   -             1.1.10_1           3808KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/lbreakouthd.desktop

↓ 行を追加:

Name[ja]=LbreakoutHD ブロックくずし

-

(4). 起動:

「アプリケーション」→「ゲーム」→「LbreakoutHD ブロックくずし」

-

実行時の画面:

-

ラケットで受けている途中で、お宝に気を奪われると、受け損ないます:

→落ちてくるのがお宝と限らないのが面白いところ。 ラケットの幅が広くなるお宝と狭くなるお宝があります。ボールが2個に増えるのもありました。

-

-


10). LTris(テトリス もどき)のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs ltris:
[-] ltris-1.2.6_2 Tetris clone using SDL

-

(2). インストール:
$ sudo xbps-install -S ltris
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2069KB [avg rate: 1064KB/s]

Name      Action    Version       New version        Download size
smpeg     install   -             0.4.5_7            119KB 
SDL_mixer install   -             1.2.12_15          78KB 
ltris     install   -             1.2.6_2            1388KB 

-

(3). メニューの修正:
$ sudo featherpad /usr/share/applications/ltris.desktop

↓ 行を追加:

Name[ja]= LTris テトリス

-

(4). 起動:

「アプリケーション」→「ゲーム」→「LTris2 テトリス

-

実行時の画面:

-

落ちる場所がぼんやりと表示されて親切だけど、落ち方が乱暴なテトリスです。

操作が矢印キーだけなので窮屈です。スペースキーで落とすか、回転してほしいです。

-

-


11). open-invaders(スペースインベーダー もどき)のインストール:

-

(1). インストールできるか確認:
$ xbps-query -Rs open-invaders
$ 

→基本のリポジトリに登録されていません:

-

(2). 他のリポジトリへの登録とか、ソースが登録されているかは未確認:

-

-

(3). 参考: 実行時の画面:

懐かしのアーケードゲームです。キーの反応がイマイチなのがゲーム性を高めています。

-

左 shift: ビーム発射
矢印: 移動
Q: 終了

-

「Void Linux」の基本のリポジトリに登録されていない、「ゲーム」がいくつかあります:

他のリポジトリに登録されているかは未確認:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- --

12-2. インストールできなかったゲームを、「リポジトリの追加」でインストールしてみる:

-

デフォルト以外の、リポジトリを有効化するには、まず対応するパッケージをインストール、その後システムを更新します:

-


1). 「nonfree」リポジトリを有効化:

$ sudo xbps-install void-repo-nonfree
:
Name              Action    Version           New version            Download size
void-repo-nonfree install   -                 9_6                    744B 

-


2). 「multilib」リポジトリを有効化:

$ sudo xbps-install void-repo-multilib
:
1 package will be downloaded:
  void-repo-multilib-6_4 
1 package will be installed:
  void-repo-multilib-6_4 

-


3). 「multilib-nonfree」リポジトリを有効化:

$ sudo xbps-install void-repo-multilib-nonfree
:
1 package will be downloaded:
  void-repo-multilib-nonfree-6_4 
1 package will be installed:
  void-repo-multilib-nonfree-6_4 

-


4). リポジトリの追加を反映させるため、「リポジトリ」を同期:

$ sudo xbps-install -S
:
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2069KB [avg rate: 838KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
x86_64-repodata: 7340B [avg rate: 117MB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
x86_64-repodata: 750KB [avg rate: 632KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...
x86_64-repodata: 15KB [avg rate: -- stalled --]

-


5). インストールできなかった「アプリ」を、インストールできるか確認:

-

(1). 「四川省」 (Shisen-Sho):
$ xbps-query -Rs kshisen
$ 

-

(2). 「中国式四人麻雀」 (Kajongg) :
$ xbps-query -Rs kajongg
$ 

-

(3). 「フローズン・バブル」 (frozen-bubble):
$ xbps-query -Rs frozen-bubble
$ 

-

(4). open-invaders(スペースインベーダー もどき):
$ xbps-query -Rs open-invaders
$ 

-


6). 「リポジトリの追加」では、効果なしでした:

→追加したのが、別の目的のリポジトリだったということ:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ---

12-3. インストールできなかったゲームを、「flatpak」でインストールしてみる:

-

「flatpak」を使えば、(ソースからビルドしなくても)使える「アプリ」を増やせます:

ヒットした「アプリ」のみ載せました:

-


1). Flatpak をインストール:

$ sudo xbps-install -S flatpak
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 2070KB [avg rate: 1163KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/multilib/x86_64-repodata' ...
x86_64-repodata: 750KB [avg rate: 1243KB/s]
[*] Updating repository `https://repo-default.voidlinux.org/current/nonfree/x86_64-repodata' ...

Name    Action    Version           New version            Download size
ostree  install   -                 2025.6_2               570KB 
flatpak install   -                 1.16.1_1               1704KB 

-


2). Flathubリポジトリを追加:

$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
:
Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/user/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

-


3). 再起動:

$ sudo reboot

-


4). ヘルプ表示:

$ flatpak --help

-


5). アプリ名で検索:

$ flatpak search  [アプリ名]

→「Application ID」を確認:

-

事前に、ブラウザで「Flathub アプリストア」を参照しても良いです:

-


6). アプリを「Application ID」で指定して、インストール:

$ flatpak install flathub [Application ID]

-


7). アプリを実行:

$ flatpak run  [Application ID]

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

-


8). インストールできなかった「四川省」 (Shisen-Sho) を「flatpak」でインストールしてみる:

-

(1). 検索:
$ flatpak search KShisen
:
Name        Description                            Application ID      Version        Branch    Remotes
KShisen     Shisen-Sho Mahjongg-like Tile Game     org.kde.kshisen     1.11.25081     stable    flathub

→「org.kde.kshisen」

-

(2). インストール:
$ flatpak install flathub org.kde.kshisen
:
Looking for matches…
Required runtime for org.kde.kshisen/x86_64/stable (runtime/org.kde.Platform/x86_64/6.9) found in remote flathub
Do you want to install it? [Y/n]: 

→Enter

org.kde.kshisen permissions:
    ipc      fallback-x11         pulseaudio           wayland      x11
    dri      file access [1]      dbus access [2]

    [1] xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar, org.kde.KGlobalSettings, org.kde.kconfig.notify,
        org.kde.kdeconnect

        ID                                       Branch          Op     Remote      Download
 1.     org.freedesktop.Platform.GL.default      24.08           i      flathub     < 145.0 MB
 2.     org.freedesktop.Platform.GL.default      24.08extra      i      flathub     < 145.0 MB
 3.     org.freedesktop.Platform.openh264        2.5.1           i      flathub     < 971.4 kB
 4.     org.kde.KStyle.Adwaita                   6.9             i      flathub       < 8.5 MB
 5.     org.kde.Platform.Locale                  6.9             i      flathub     < 409.2 MB
 6.     org.kde.Platform                         6.9             i      flathub     < 388.0 MB
 7.     org.kde.kshisen.Locale                   stable          i      flathub     < 512.1 kB
 8.     org.kde.kshisen                          stable          i      flathub      < 13.2 MB

Proceed with these changes to the system installation? [Y/n]: 

→Enter

:
Installation complete.
[user@user-pc ~]$ 

-

(3). インストール一覧:
$ flatpak list
:
Name                  Application ID                   Version                  Branch      Installation
Freedesktop Platform  org.freedesktop.Platform         freedesktop-sdk-22.08.28 22.08       system
Mesa                  …freedesktop.Platform.GL.default 24.0.9                   22.08       system
Mesa (Extra)          …freedesktop.Platform.GL.default 24.0.9                   22.08-extra system
Mesa                  …freedesktop.Platform.GL.default 25.2.2                   24.08       system
Mesa (Extra)          …freedesktop.Platform.GL.default 25.2.2                   24.08extra  system
openh264              …g.freedesktop.Platform.openh264 2.1.0                    2.2.0       system
openh264              …g.freedesktop.Platform.openh264 2.5.1                    2.5.1       system
Frozen Bubble         org.frozen_bubble.frozen-bubble  2.213                    stable      system
Adwaita theme         org.kde.KStyle.Adwaita                                    6.9         system
KDE Application Plat… org.kde.Platform                                          6.9         system
KShisen               org.kde.kshisen                  1.11.25081               stable      system

-

(4). 実行:
$ flatpak run org.kde.kshisen
Qt: Session management error: Could not open network socket
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
KTranscript: Loaded module: /usr/share/locale/ja/LC_SCRIPTS/ki18n6/ki18n6.js

もしくは、

「アプリケーション」→「ゲーム」→「Shisen-Sho」

-

実行時の画面:

-

(5). メニューの修正:

-

ファイル名の確認:
$ sudo find / -name org.kde.kshisen.desktop
:
/var/lib/flatpak/exports/share/applications/org.kde.kshisen.desktop
/var/lib/flatpak/app/org.kde.kshisen/x86_64/stable/0be04a77b9ac47786c0916dc51490cac39e862e8d0806f29fc01a16042ca6d36/export/share/applications/org.kde.kshisen.desktop
/var/lib/flatpak/app/org.kde.kshisen/x86_64/stable/0be04a77b9ac47786c0916dc51490cac39e862e8d0806f29fc01a16042ca6d36/files/share/applications/org.kde.kshisen.desktop

-

修正:
$ sudo mousepad /var/lib/flatpak/exports/share/applications/org.kde.kshisen.desktop
Name[ja]=Shisen-Sho

↓ 修正:

Name[ja]=Shisen-Sho 四川省

Ctrl+S にて保存:

-

ログアウト→ログイン

-

起動:

「アプリケーション」→「ゲーム」→「Shisen-Sho 四川省

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

-


9). インストールできなかった「フローズン・バブル」 (frozen-bubble) を「flatpak」でインストールしてみる:

-

(1). 検索:
$ flatpak search 'Frozen Bubble'
:
Name         Description                            Application ID                  Version Branch Remotes
Frozen Bubb… An addictive game about frozen bubbles org.frozen_bubble.frozen-bubble 2.213   stable flathub

→「org.frozen_bubble.frozen-bubble」

-

(2). インストール:
$ flatpak install flathub org.frozen_bubble.frozen-bubble
:
Looking for matches…
Required runtime for org.frozen_bubble.frozen-bubble/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/22.08) found in remote flathub
Do you want to install it? [Y/n]: 

→Enter

Info: runtime org.freedesktop.Platform branch 22.08 is end-of-life, with reason:
   org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: applications using this runtime:
   org.frozen_bubble.frozen-bubble

Info: runtime org.freedesktop.Platform.GL.default branch 22.08-extra is end-of-life, with reason:
   org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: applications using this runtime:
   org.frozen_bubble.frozen-bubble

Info: runtime org.freedesktop.Platform.GL.default branch 22.08 is end-of-life, with reason:
   org.freedesktop.Platform 22.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.
Info: applications using this runtime:
   org.frozen_bubble.frozen-bubble

org.frozen_bubble.frozen-bubble permissions:
    ipc    network    pulseaudio    x11   dri

        ID                                       Branch          Op     Remote      Download
 1.     org.freedesktop.Platform.GL.default      22.08           i      flathub     < 148.3 MB
 2.     org.freedesktop.Platform.GL.default      22.08-extra     i      flathub     < 148.3 MB
 3.     org.freedesktop.Platform.Locale          22.08           i      flathub     < 333.0 MB
 4.     org.freedesktop.Platform.openh264        2.2.0           i      flathub     < 944.3 kB
 5.     org.freedesktop.Platform                 22.08           i      flathub     < 216.2 MB
 6.     org.frozen_bubble.frozen-bubble          stable          i      flathub      < 43.9 MB

Proceed with these changes to the system installation? [Y/n]: 

→Enter

:
Installation complete.
[user@user-pc ~]$ 

-

(3). インストール一覧:
$ flatpak list
:
Name                  Application ID                   Version                  Branch      Installation
Freedesktop Platform  org.freedesktop.Platform         freedesktop-sdk-22.08.28 22.08       system
Mesa                  …freedesktop.Platform.GL.default 24.0.9                   22.08       system
Mesa (Extra)          …freedesktop.Platform.GL.default 24.0.9                   22.08-extra system
Mesa                  …freedesktop.Platform.GL.default 25.2.2                   24.08       system
Mesa (Extra)          …freedesktop.Platform.GL.default 25.2.2                   24.08extra  system
openh264              …g.freedesktop.Platform.openh264 2.1.0                    2.2.0       system
openh264              …g.freedesktop.Platform.openh264 2.5.1                    2.5.1       system
Frozen Bubble         org.frozen_bubble.frozen-bubble  2.213                    stable      system
Adwaita theme         org.kde.KStyle.Adwaita                                    6.9         system
KDE Application Plat… org.kde.Platform                                          6.9         system
KShisen               org.kde.kshisen                  1.11.25081               stable      system

-

(4). 実行:
$ flatpak run org.frozen_bubble.frozen-bubble
Qt: Session management error: Could not open network socket
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
KTranscript: Loaded module: /usr/share/locale/ja/LC_SCRIPTS/ki18n6/ki18n6.js
[user@user-pc ~]$ flatpak run org.frozen_bubble.frozen-bubble
        [[ Frozen-Bubble-2.213 ]]

  http://www.frozen-bubble.org/

  Copyright (c) 2000-2012 The Frozen-Bubble Team.

    Artwork: Alexis Younes
             Amaury Amblard-Ladurantie
    Soundtrack: Matthias Le Bidan
    Design & Programming: Guillaume Cottenceau
    Level Editor: Kim and David Joham
    Additional network programming: Mark Glines

  Originally sponsored by Mandriva <http://www.mandriva.com/>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 2, as
  published by the Free Software Foundation.

[SDL Init] [Graphics....libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
......] 
[Sound Init] Ready.
[user@user-pc ~]$ 

-

もしくは、

「アプリケーション」→「ゲーム」→「Frozen Bubble」

-

実行時の画面:

-

(5). メニューの修正:

-

ファイル名の確認:
$ ls -1 /var/lib/flatpak/exports/share/applications/
:
mimeinfo.cache
org.frozen_bubble.frozen-bubble.desktop
org.kde.kshisen.desktop
org.mozilla.firefox.desktop

→デスクトップファイルをカスタマイズ(翻訳)しやすくする?ための、リンクです:

長いフォルダ名の「実体」は別にあります。

-

修正:
$ sudo mousepad /var/lib/flatpak/exports/share/applications/org.frozen_bubble.frozen-bubble.desktop

↓ 翻訳行を 1行 追記:

Name[ja]=Frozen Bubble フローズン・バブル

Ctrl+S にて保存:

-

ログアウト→ログイン

-

起動:

「アプリケーション」→「ゲーム」→「Frozen Bubble フローズン・バブル」

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

-


10). 「flatpak」の使用例:「ソリティア」(クロンダイク)を「flatpak」でインストールしてみる:

すでにリポジトリからインストールしているので、こちらの作業は要りません:

「flatpak」についてより深く学習するための参考です:

-

こちら」の「項番 2).」以降を参照:

-

実行時の画面:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----

12-4. 任意: 「Firefox」を「flatpak」でインストールしてみる:

-

「Void Linux」では、「Firefox」ブラウザをインストールする場合、いくつかの選択肢があります:

リポジトリからインストールする、通常版の「firefox」(143.0_1)    ←(デフォルト)
リポジトリからインストールする、ESR 版の「fire-esr」(140.2.0_1) 
ダウンロードしてインストールする、ESR 版の「Firefox」(140.3.0esr) 
flatpack でインストールする、通常版の「firefox」(143.0.1)

→インストールのやり方が違うだけで、ブラウザとしての機能の差はわずかです:

-

「flatpak」版は、隔離された環境?に作られるので、他の「firefox」と共存できるのが利点です:

惜しいのは、ESR 版がないこと。

-


1). 検索:

$ flatpak search firefox
:
Name            Description                           Application ID         Version     Branch Remotes
Firefox         Fast, Private & Safe Web Browser      org.mozilla.firefox    143.0.1     stable flathub
Add Water       Keep Firefox in fashion               dev.qwery.AddWater     1.2.6       stable flathub
:

-


2). インストール:

$ flatpak install flathub org.mozilla.firefox
:
Looking for matches…
Required runtime for org.mozilla.firefox/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/24.08) found in remote flathub
Do you want to install it? [Y/n]: 

→Enter

org.mozilla.firefox permissions:
    ipc                      network                 cups                      fallback-x11                   pcsc
    pulseaudio               wayland                 x11                       devices                        devel
    file access [1]          dbus access [2]         bus ownership [3]         system dbus access [4]

    [1] /run/.heim_org.h5l.kcm-socket, xdg-download, xdg-run/speech-dispatcher:ro
    [2] org.a11y.Bus, org.freedesktop.FileManager1, org.gtk.vfs.*
    [3] org.mozilla.firefox.*, org.mozilla.firefox_beta.*, org.mpris.MediaPlayer2.firefox.*
    [4] org.freedesktop.NetworkManager


        ID                                        Branch           Op           Remote            Download
 1. [✓] org.freedesktop.Platform.Locale           24.08            i            flathub            10.4 MB / 387.7 MB
 2. [✓] org.freedesktop.Platform                  24.08            i            flathub            63.9 MB / 264.8 MB
 3. [✓] org.mozilla.firefox.Locale                stable           i            flathub            36.5 MB / 36.5 MB
 4. [✓] org.mozilla.firefox                       stable           i            flathub           111.1 MB / 112.3 MB

Installation complete.
[user@user-pc ~]$ 

-


3). インストール一覧から抜粋:

$ flatpak list | grep fire
Firefox org.mozilla.firefox 143.0.1 stable  system

-


4). 実行:

$ flatpak run org.mozilla.firefox

-

もしくは、

「アプリケーション」→「インターネット」→「Firefox

-

「flatpak」版であるかは、ヘルプで確認できます:

-


5). 参考: 「flatpak」版の「firefox」が配置される場所:

$ sudo find / -name firefox
:
/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/e46eff611fe0f37495ff7e3ed73fbb23b9777a364b859159adbb93ee8a527540/files/lib/firefox
/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/e46eff611fe0f37495ff7e3ed73fbb23b9777a364b859159adbb93ee8a527540/files/lib/firefox/firefox
/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/e46eff611fe0f37495ff7e3ed73fbb23b9777a364b859159adbb93ee8a527540/files/bin/firefox
/var/lib/flatpak/app/org.mozilla.firefox/x86_64/stable/e46eff611fe0f37495ff7e3ed73fbb23b9777a364b859159adbb93ee8a527540/files/etc/firefox
/home/user/.cache/mozilla/firefox
/home/user/.mozilla/firefox
/home/user/.var/app/org.mozilla.firefox/config/.mozilla/firefox
/home/user/.var/app/org.mozilla.firefox/cache/mozilla/firefox
/home/user/.var/app/org.mozilla.firefox/.mozilla/firefox

/opt/firefox     ←(ダウンロードしてインストールしたESR 版の「firefox」のファイル)
/opt/firefox/firefox
/usr/local/bin/firefox

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- -----

20. 任意: 最新の「Firefox」のESR 版をインストール:

-

すでに ESR 版の「Firefox」をインストールしていたら、作業は要りません:

Firefox」の ESR 版は、更新回数が減り、ブラウザの動きが軽いので、オススメです:

-

古いバージョンをダウンロードすると、自動で最新まで上がりますが、バージョンは「128.14.0esr」辺りで更新が止まります。

現在、128 から ESR のメジャーバージョン 140 へ移行中のようです。

ESR の旧バージョンをダウンロードした場合、移行期間が終了すると、自動的に新バージョンにアップデートされます。

-

今回は最新をダウンロードして、インストールしました:

-

インストールでの注意点:
  • ファイルの圧縮が「.tar.xz」に変わっているので、解凍する時は注意:

  • 初めての起動で、「イタリア語」に似た言語?で表示された場合は、設定で「日本語」を選べば OK:

-


1). インストールに必要なパッケージがあるか確認:

下記のパッケージがないと、起動時にエラーします:

$ xbps-query -l | grep bzip2
:
ii bzip2-1.0.8_2         Freely available, patent free, high-quality data compressor

-

$ xbps-query -Rs libdbus-glib
$

→なし:

-

$ xbps-query -l | grep wget
:
ii wget-1.25.0_1           GNU wget download utility

-


2). ダウンロードするフォルダを準備:

$ mkdir -p ~/ダウンロード/apps

英語の環境でホームフォルダに「~/Download/」があっても、気にしません。
単に「~/ダウンロード/apps」が作成されるだけです:

-


3). ESR 版の「Firefox」をダウンロード:

ブラウザー: Firefox Extended Support Release
プラットフォーム: Linux 64-bit
言語: Japanese - 日本語

-

2025-09-17 現在:

-

(1). ダウンロード:
$ cd ~/ダウンロード/apps/
$ sudo wget https://archive.mozilla.org/pub/firefox/releases/140.3.0esr/linux-x86_64/ja/firefox-140.3.0esr.tar.xz

-

(2). ダウンロードしたファイルを確認:
$ cd ~/ダウンロード/apps/
$ ls -1
firefox-140.3.0esr.tar.xz

-


4). ダウンロードしたファイルを展開:

-

(1). パス指定が正しいか確認:
$ ls firefox-*.tar.xz
:
firefox-140.3.0esr.tar.xz

-

(2). 展開:
$ tar -xf firefox-*.tar.xz
:
tar (child): xz: exec 不能: そのようなファイルやディレクトリはありません
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

→「xz」というコマンドがないみたい:

-

(3). インストールできるか確認:
$ xbps-query -Rs xz
:
[*] liblzma-5.8.1_1       XZ-format compression library
[-] liblzma-devel-5.8.1_1 XZ-format compression library - development files
[-] pixz-1.0.7_1          A parallel, indexing version of XZ
[-] xz-5.8.1_1            XZ compression utilities
[-] xzoom-0.3_2           Magnify part of X display, with real-time updates

-

(4). インストール:
$ sudo xbps-install -S xz
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

Name Action    Version           New version            Download size
xz   install   -                 5.8.1_1                409KB 

-

(5). 展開のやり直し:
$ tar -xf firefox-*.tar.xz
$

→プロンプトが返るまで時間がかかります。

-

(6). 確認:
$ ls -1
:
firefox
firefox-140.3.0esr.tar.xz

→「firefox」フォルダが作成されました:

-


5). 展開して出来た firefox フォルダを「/opt」に移動:

$ sudo mv firefox /opt

-

確認:
$ ls -1 /opt
:
VBoxGuestAdditions-7.1.10
firefox

-


6). Firefox の実行ファイルへのシンボリックリンクを作成:

$ sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox

-


7). Firefox の「デスクトップファイル」のコピーをダウンロード

$ sudo wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications

-


8). 「仮想マシン」の「Void Linux」を再起動:

一度、再起動しないと ESR 版は起動されませんでした:

-

すべてのウィンドウを閉じてから、

$ sudo reboot

-


9). 「Firefox」の実行ファイルへのパスが見えているか確認:

$ which firefox
:
/usr/local/bin/firefox

-


10). 「Firefox」を起動:

「アプリケーション」→「インターネット」→「Firefox Web Browser」

-

→ブラウザが起動されました:

「日本語」で表示されました:

-


11). バージョンの確認:

-

(1). ブラウザ右上の「横三本線」ボタン(設定)→「ヘルプ」→「Firefoxについて」

「Extended Support Relese」(ESR) の文字列が表示されていることを確認:

(最新をダウンロードしたので、)最新でした:

-

(2). コマンドでの確認:
$ firefox --version
:
Mozilla Firefox 140.3.0esr

→末尾に「esr」が付いていることを確認

最新のバージョンです:

-

(3). もし、最新のバージョンでなければ、ブラウザの起動時に自動で更新されます:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----- -

21. 参考: パッケージ管理に使う、「XBPS」の使い方:

-

参考:

Void LinuxでXBPSパッケージマネージャーを使用する方法

-

Void Linux の「XBPS」は、シンプルで高速な「パッケージ管理」システムです:

-

基本的な 4つのコマンド体型:

xbps-query  : リポジトリとインストールされたパッケージを問い合わせ(検索)
xbps-install : 更新とインストール
xbps-remove  : アンインストール
xbps-src    : サードパーティによって配布されるパッケージをソースアーカイブとしてビルド

-

Void Linux のインストールパッケージは、

特定のソフトウェアを Void システムにインストールするために使用される 1つの「.xbps」ファイル
関連する「.xbps.sig」ファイルで構成されています:

-


基本的な XBPS コマンド:

apt のようなコマンド体型と、Arch Linux のようなオプションの与え方です:

-


(1). システムの更新:

パッケージのリストを更新し、システム全体をアップグレード:

$ sudo xbps-install -Su

-S(--sync): 大文字のエスリポジトリの同期
-u(--update): 小文字のユー、システムの更新

システムに「xbps」パッケージ自体のアップデートが含まれている場合は、
まず、手動で「xbps」パッケージを更新する必要があります。

-


(2). パッケージの検索:

パッケージ名を指定して、リポジトリ内に存在するか検索:

query (クエリ)とは「質問」や「問い」の意味です:

$ xbps-query -Rs [パッケージ名]

-R(--repository): 大文字のアール、リモートリポジトリ(オンライン)から検索
-s(--search): 小文字のエス、文字列が一致する、パッケージ名と説明を検索

-

例: firefoxリポジトリから検索する場合:

$ xbps-query -Rs firefox

-


(3). パッケージのインストール:

パッケージ名を指定してインストール :

$ sudo xbps-install [パッケージ名]

-

例: firefox をインストールする場合:

$ sudo xbps-install -S firefox

-S(--sync)オプションを xbps-install コマンドに渡すことが推奨:

-


(4). パッケージの削除:

パッケージ名を指定して削除:

$ sudo xbps-remove [パッケージ名]

-

例: firefox を削除する場合:

$ sudo xbps-remove firefox

-

依存関係も含めて削除する場合:

$ sudo xbps-remove -R firefox

-R(--recursive): 再帰

-


(5). パッケージの孤立した依存関係を削除:

不要になった孤立したパッケージをクリーンアップ(ゴミの整理):

「sudo apt autoremove」と同じ機能です

$ sudo xbps-remove -o

-o(--remove-orphans): オーファン、孤立、未使用のことで、小文字のオー

-

質問に答えずに削除する場合:

$ sudo xbps-remove -yo

-y(--yes): すべて Yes と応答

-


(6). インストール済みパッケージをリスト表示:

システムにインストールされているすべてのパッケージを表示:

$ xbps-query -l

-l(--list-pkgs): 小文字のエル


(7). 現在、有効なリポジトリの一覧を表示:

リストをクエリするには、-L (--list-repos) オプションを xbps-query コマンドに追加します:

$ xbps-query -L

-L(--list-repos): 大文字のエル

-


(8). パッケージ情報の表示:

インストール済みの特定のパッケージに関する情報を表示:

$ xbps-query -S [パッケージ名]

-S(--show): 大文字のエス、Show information for PKG

デフォルトなので、省略できます:

-


(9). インストール済みのパッケージに含まれる、ファイルの一覧を表示:
$ xbps-query -f [パッケージ名]

-f(---files): 小文字のエフ、Show package files for PKG

-


(10). パッケージリポジトリの有効化:

Void Linux では、デフォルトで利用できるリポジトリ以外に、 「nonfree」や「multilib」などのリポジトリを手動で有効化する必要がある場合があります。

リポジトリを有効化するには、まず対応するパッケージをインストールし、その後システムを更新します。

-

「nonfree」リポジトリを有効化:
$ sudo xbps-install void-repo-nonfree

-

「multilib」リポジトリを有効化:
$ sudo xbps-install void-repo-multilib

-

「multilib-nonfree」リポジトリを有効化:
$ sudo xbps-install void-repo-multilib-nonfree

-

リポジトリの変更を反映してシステムを更新:
$ sudo xbps-install -S

これらのリポジトリには、プロプライエタリなソフトウェアや 32 ビットアプリケーションなどが含まれています。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----- --

22. 任意: XBPS を使いやすくするため、覚えやすい「エイリアス」を作ってみました:

-

パラメータを与えるやり方はすぐに忘れるので、apt に似た、覚えやすくて、思い出しやすい「エイリアス」を作ってみました:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----- ---

22-1. 「エイリアス」の作成:

-


1). エイリアスの定義:

実行時にエイリアスに「sudo」を付けて実行すると、(ローカルに定義した)エイリアスが働きません:

なので、エイリアスの中に「sudo」を含めたので、 実行時に「sudo」を付ける必要はありません:

-

エイリアスで、統一感がなくなったので、

「xbps-install」も「sudo xbps-install -S」のように エイリアス を定義すると、
 sudo を付けなくても良くなりますが、  下記の 2つのエイリアスに影響しそう
 (二重定義、定義のループ?):

-

「xbps-update」
alias xbps-update='sudo xbps-install -S'

-

「xbps-upgrade」
alias xbps-upgrade='sudo xbps-install -u'

-

「xbps-autoremove」
alias xbps-autoremove='sudo xbps-remove -o'

-

alias xbps-search='xbps-query -Rs'

-

「xbps-list」
alias xbps-list='xbps-query -l | grep'

-

すべてを出力するには、「.」か「ii」をコマンドに与えると良いです:

-

「xbps-info」
alias xbps-info='xbps-query -S'

-

「xbps-file」
alias xbps-file='xbps-query -f'

-


2). エイリアスの定義ファイル「~/.bash_aliases」を作成:

$ mousepad ~/.bash_aliases

↓ 以下を入力:

alias xbps-update='sudo xbps-install -S'
alias xbps-upgrade='sudo xbps-install -u'
alias xbps-autoremove='sudo xbps-remove -o'
alias xbps-search='xbps-query -Rs'
alias xbps-list='xbps-query -l | grep'
alias xbps-info='xbps-query -S'
alias xbps-file='xbps-query -f'

-


3). 「~/.bashrc」ファイルに、エイリアスの定義ファイルを読み込むように追記:

「~/.bashrc」は定義が少ないので、エイリアスの定義ファイルは作らずに、直接エイリアスの定義を追記しても良いかも:

-

$ mousepad ~/.bashrc

↓ ファイルの最後に下記を追記:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

もしくは、

source ~/.bash_aliases

-

確認:
$ cat ~/.bashrc
# .bashrc

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

もしくは、

# .bashrc

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

source ~/.bash_aliases

-


4). 再起動:

$ sudo reboot

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----- ----

22-2. 定義した、「エイリアス」を使ってみる:

-


エイリアスを使ってみる:

-

(1). リポジトリの同期:
$ xbps-update
:
パスワード: 
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...

→同期されたリポジトリが表示されました:

-

(2). パッケージの更新:
$ xbps-upgrade
$ 

→更新なし:

-

(3). ゴミの整理:
$ xbps-autoremove
$ 

→ゴミなし:

-

(4). パッケージを検索:
$ xbps-search nano
:
[*] nano-8.5_1               GNU nano text editor
[-] nanomsg-1.2_1            Simple, high-performance implementation of scala...
[-] nanomsg-devel-1.2_1      Simple, high-performance implementation of scala...
[-] nanovna-saver-0.7.3_1    Tool for reading, displaying and saving data fro...
[-] nng-1.5.2_1              Nanomsg next-generation
[-] nng-devel-1.5.2_1        Nanomsg next-generation - development files
[-] python3-nanobind-2.9.2_1 Tiny and efficient C++/Python bindings

→「*」はインストール済みのパッケージです:

-

(5). パッケージがインストールされているか確認:
$ xbps-list nano
:
ii nano-8.5_1              GNU nano text editor

-

(6). 複数のパッケージを指定して、インストールされているか確認:
$ xbps-list -e firefox -e mousepad
:
ii firefox-143.0_1         Mozilla Firefox web browser
ii mousepad-0.6.5_1        Simple text editor for Xfce based on Leafpad

→「-e」は grep の機能です:

xbps-query の複数のアプリを指定できない欠点を、補完できます:

-

(7). パッケージの詳細情報を表示:
$ xbps-info nano
:
architecture: x86_64
changelog: https://git.savannah.gnu.org/cgit/nano.git/plain/NEWS
filename-sha256: c86d4dcf8fc7cde743557e841ac05e2cfe37b936bc9d55528d6674da51c2eb8a
filename-size: 655KB
homepage: https://www.nano-editor.org/  ←(パッケージのホームページ)
install-date: 2025-09-18 18:42 JST     ←(インストール日付)
install-script: 828B
installed_size: 2773KB
license: GPL-3.0-or-later              ←(ライセンス)
maintainer: 0x5c <dev@0x5c.io>
metafile-sha256: 5b67e00398fc8c04813992ec2a2fd7df6c05bf7d207ea85275a63b48e675690a
pkgname: nano                          ←(パッケージ名)
pkgver: nano-8.5_1                     ←(パッケージのバージョン)
provides:                              ←(提供)
    cmd:nano-8.5_1
remove-script: 826B
repository: https://repo-fi.voidlinux.org/current
run_depends:                           ←(実行時の依存)
    libmagic>=5.12_1
    ncurses-libs>=5.8_1
    glibc>=2.41_1
shlib-requires:                        ←(必要なライブラリ?)
    libc.so.6
    libmagic.so.1
    libncursesw.so.6
short_desc: GNU nano text editor       ←(短い説明)
source-revisions: nano:cd6f7952dc1
sourcepkg: nano
state: installed                       ←(インストール済)

-

(8). パッケージの詳細情報から、項目を抜き出して表示:

-p パラメータで、(ひとつ、または複数の)項目を指定して表示できます:

-

バージョンを表示:

$ xbps-info -p pkgver nano
nano-8.5_1

もしくは、

$ xbps-info nano -p pkgver
nano-8.5_1

→こちらの方がわかりやすいかも:

-

パッケージのホームページを表示:

$ xbps-info nano -p homepage
https://www.nano-editor.org/

-

パッケージの依存を表示:

$ xbps-info nano -p run_depends,shlib-requires
:
libmagic>=5.12_1
ncurses-libs>=5.8_1
glibc>=2.41_1
libc.so.6
libmagic.so.1
libncursesw.so.6

-

短い説明を表示:

$ xbps-info nano -p short_desc
GNU nano text editor

-

インストールされているか表示:

$ xbps-info nano -p state
installed

-

インストールされた日付を表示:

$ xbps-info nano -p install-date
2025-09-18 18:42 JST

-

組み合わせて表示:

$ xbps-info nano -p state,install-date
:
installed
2025-09-18 18:42 JST

→これらは、インストールされていないと表示されない項目です:

-

組み合わせて、パッケージの概略を表示:

$ xbps-info nano -p pkgname,pkgver,short_desc
nano
nano-8.5_1
GNU nano text editor

→nano は、インストールされている(ローカルにある)ので情報が表示されました:

-

$ xbps-info vim -p pkgname,pkgver,short_desc
$ 

vim は、インストールされていない(ローカルにない)ので情報が表示されません:

-

$ xbps-info vim -p pkgname,pkgver,short_desc -R
vim
vim-9.1.1215_3
Vim editor (vi clone)

→インストールしていなくても、リモート指定で、表示されました:

-

$ xbps-info -R vim -p pkgname,pkgver,short_desc
vim
vim-9.1.1215_3
Vim editor (vi clone)

→リモート指定は、こちらの方がしっくり来るかも:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----- -----

22-3. 勉強も兼ねて、「エイリアス」を使わずに、XBPS を実行してみる:

-


1). エイリアスを使わずに、実行してみる1:

-

$ xbps-query -R -S vim -p pkgname,pkgver,short_desc
vim
vim-9.1.1215_3
Vim editor (vi clone)

-

もしくは、

$ xbps-query -RS vim -p pkgname,pkgver,short_desc
vim
vim-9.1.1215_3
Vim editor (vi clone)

-

ちなみに、

$ xbps-query -S vim -p pkgname,pkgver,short_desc
$

ここで、「-S」は省略できるみたい:

→コマンドが複雑なので、入力ミスして表示されないのかと、思いがちですが、

インストールされていないので、当然ながら、リモート指定を外すと、表示されません:

-

「項目名」は覚えられないので、

インストールしているアプリ名(例えば mousepadfirefox)を覚えておけば、参考にできますが、これらは依存が多いので、nano をインストールしておくことをオススメします:

-


2). エイリアスを使わずに、実行してみる 2:

-

「-S」を省略して実行:
$ xbps-query nano
:
architecture: x86_64
changelog: https://git.savannah.gnu.org/cgit/nano.git/plain/NEWS
filename-sha256: c86d4dcf8fc7cde743557e841ac05e2cfe37b936bc9d55528d6674da51c2eb8a
filename-size: 655KB
homepage: https://www.nano-editor.org/
install-date: 2025-09-18 18:42 JST
install-script: 828B
installed_size: 2773KB
license: GPL-3.0-or-later
maintainer: 0x5c <dev@0x5c.io>
metafile-sha256: 5b67e00398fc8c04813992ec2a2fd7df6c05bf7d207ea85275a63b48e675690a
pkgname: nano
pkgver: nano-8.5_1
provides:
cmd:nano-8.5_1
remove-script: 826B
repository: https://repo-fi.voidlinux.org/current
run_depends:
libmagic>=5.12_1
ncurses-libs>=5.8_1
glibc>=2.41_1
shlib-requires:
libc.so.6
libmagic.so.1
libncursesw.so.6
short_desc: GNU nano text editor
source-revisions: nano:cd6f7952dc1
sourcepkg: nano
state: installed

-

今度は、

「-s」を指定してみる:
$ xbps-query -s nano
:
[*] nano-8.5_1 GNU nano text editor

「-p」で項目名を指定しなくても、「-s」パラメータで「概略」(状態、バージョン、説明)の表示ができます:

ちなみに、状態の [*] でインストールされていることがわかります:

→「-R」がないので、表示されたということは、インストールされているということ、ですがね。

-

ここで、リモート指定「-R」を付けると:
$ xbps-query -Rs nano

→「nano」以外の、バッケージ名、もしくは、説明に「nano」が含まれるパッケージが表示されます:

つまり、ローカルの場合は、たまたま、「nano」しかインストールしていないので、「nano」だけが表示されたということみたい。複数あれば、複数行が表示されると思います:

-

省略できるパラメータや、便利なパラメータがあるので、覚えておくと良いです:

-

エイリアスがなくても、使っているうちに覚えてしまいそうです(たぶん、すぐに忘れるだろうけど):

-


3). コマンドを忘れても、エイリアスを見れば、コマンドを思い出せるので便利:

エイリアスを使わなくても、コマンドを思い出すためだけに、エイリアスを登録しておいても OK:

$ alias
:
alias ls='ls --color=auto'
alias xbps-autoremove='sudo xbps-remove -o'
alias xbps-file='xbps-query -f'
alias xbps-info='xbps-query -S'
alias xbps-list='xbps-query -l | grep'
alias xbps-search='xbps-query -Rs'
alias xbps-update='sudo xbps-install -S'
alias xbps-upgrade='sudo xbps-install -u'

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----- ----- -

23. 参考: 「runit」を使った、サービス管理:

-

システムやサービスの管理に、多くの Linux ディストリビューション「systemd」が使われていますが、 「Void Linux」では、「runit」が使われています:

-

参考:

Services and Daemons - runit

-

「runit」の利点:
- サービスを同時に並行して開始でき、ブート時間が短縮されます
- サービスが失敗した場合に再起動するなどのシンプルな「サービス管理」機能を提供します
- 「runit」は、システム上のサービスを管理するため、システム全体の安定性が高まります
- 独立したサービスマネージャとして、他の init システムと共に使用することも可能です
- 移植性が高く、Linuxだけでなく、他の Unix 系オペレーティングシステムで動作します
- プロセスのスーパーバイザー:
    init デーモンとして起動され、他のすべてのプロセスを管理・監視する役割があり、
    システムがシャットダウンされるまで起動し続けます

-

「runit」の欠点:
- runit は機能が限定的で、systemd の機能が必要な場面では不足します
- systemd に依存する形でシステムが構築されていると、runit への移行で互換性の問題が生じます
- systemd が提供する詳細なサービス制御、設定、ロギング、ネットワーク管理などの機能はありません

-


1). 参考: 「Void Linux」で現在、有効化されているサービス:

$ ls -l /var/service/
:
lrwxrwxrwx 1 root root 22  2月  2  2025 NetworkManager -> /etc/sv/NetworkManager
lrwxrwxrwx 1 root root 19  9月 19 01:10 agetty-tty1 -> /etc/sv/agetty-tty1
lrwxrwxrwx 1 root root 19  9月 19 01:10 agetty-tty2 -> /etc/sv/agetty-tty2
lrwxrwxrwx 1 root root 19  9月 19 01:10 agetty-tty3 -> /etc/sv/agetty-tty3
lrwxrwxrwx 1 root root 19  9月 19 01:10 agetty-tty4 -> /etc/sv/agetty-tty4
lrwxrwxrwx 1 root root 19  9月 19 01:10 agetty-tty5 -> /etc/sv/agetty-tty5
lrwxrwxrwx 1 root root 19  9月 19 01:10 agetty-tty6 -> /etc/sv/agetty-tty6
lrwxrwxrwx 1 root root 15  2月  2  2025 chronyd -> /etc/sv/chronyd
lrwxrwxrwx 1 root root 12  2月  2  2025 dbus -> /etc/sv/dbus
lrwxrwxrwx 1 root root 15  2月  2  2025 lightdm -> /etc/sv/lightdm
lrwxrwxrwx 1 root root 15  2月  2  2025 polkitd -> /etc/sv/polkitd
lrwxrwxrwx 1 root root 12  2月  2  2025 sshd -> /etc/sv/sshd
lrwxrwxrwx 1 root root 13  9月 19 01:10 udevd -> /etc/sv/udevd

-

サービスの置かれている「ディレクトリ」

つまり、使用(有効に)できる「サービス」です:

$ ls -lp /etc/sv/
:
drwxr-xr-x 3 root root 4096  2月  2  2025 NetworkManager/
drwxr-xr-x 3 root root 4096  9月 19 01:09 acpid/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-console/
drwxr-xr-x 2 root root 4096  2月  2  2025 agetty-generic/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-hvc0/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-hvsi0/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-serial/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-tty1/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-tty2/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-tty3/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-tty4/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-tty5/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-tty6/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-ttyAMA0/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-ttyS0/
drwxr-xr-x 2 root root 4096  9月 19 01:09 agetty-ttyUSB0/
drwxr-xr-x 3 root root 4096  9月 19 01:09 alsa/
drwxr-xr-x 3 root root 4096  2月  2  2025 brltty/
drwxr-xr-x 3 root root 4096  9月 19 01:09 chronyd/
drwxr-xr-x 3 root root 4096  9月 19 01:09 dbus/
drwxr-xr-x 3 root root 4096  2月  2  2025 dhcpcd/
drwxr-xr-x 3 root root 4096  2月  2  2025 dhcpcd-eth0/
drwxr-xr-x 3 root root 4096  2月  2  2025 dmeventd/
drwxr-xr-x 3 root root 4096  2月  2  2025 elogind/
drwxr-xr-x 3 root root 4096  9月 19 01:09 ip6tables/
drwxr-xr-x 3 root root 4096  9月 19 01:09 iptables/
drwxr-xr-x 3 root root 4096  9月 19 01:09 lightdm/
drwxr-xr-x 3 root root 4096  9月 19 01:09 mdadm/
lrwxrwxrwx 1 root root    7  9月 19 01:09 ntpd -> chronyd
drwxr-xr-x 3 root root 4096  9月 19 01:09 polkitd/
drwxr-xr-x 3 root root 4096  9月 19 01:09 sshd/
drwxr-xr-x 2 root root 4096  9月 19 01:09 sulogin/
drwxr-xr-x 3 root root 4096  2月  2  2025 udevd/
drwxr-xr-x 3 root root 4096  9月 21 05:54 ufw/
drwxr-xr-x 3 root root 4096  9月 19 01:09 uuidd/
drwxr-xr-x 3 root root 4096  9月 19 01:09 wpa_supplicant/

-


2). サービスの有効化:

/var/service 下にシンボリックリンクを作成します:

$ sudo ln -s /etc/sv/[サービス名] /var/service/

-

ちなみに、システムが起動していない場合の、サービスの有効化は:

# ln -s /etc/sv/[サービス名] /etc/runit/runsvdir/default/

-


3). サービスの状態を確認:

$ sudo sv status [サービス名]

-

使用例:
$ sudo sv status sshd
run: sshd: (pid 753) 13421s; run: log: (pid 752) 13421s

→デーモン起動と、ログが採られています:

-

サービスのディレクトリ:
$ ls -lp  /var/service/sshd/
:
drwxr-xr-x 2 root root 4096  9月 19 01:09 log/
-rwxr-xr-x 1 root root  156  9月 24  2024 run
lrwxrwxrwx 1 root root   25  5月 25 00:58 supervise -> /run/runit/supervise.sshd

-

sshd デーモン起動の「スクリプト」の確認:
$ cat /var/service/sshd/run
#!/bin/sh
exec 2>&1
ssh-keygen -A >/dev/null 2>&1 # Will generate host keys if they don't already exist
[ -r conf ] && . ./conf
exec /usr/bin/sshd -D $OPTS

コメントの和訳: まだ存在しない場合は、ホストキーを生成します

-

log 起動の「スクリプト」の確認:
$ ls -lp  /var/service/sshd/log/
:
-rwxr-xr-x 1 root root 41  9月 24  2024 run
lrwxrwxrwx 1 root root 29  5月 25 00:58 supervise -> /run/runit/supervise.sshd-log

-

$ cat /var/service/sshd/log/run
#!/bin/sh
exec vlogger -t sshd -p daemon

sshd デーモンのログが採られます:

-


4). サービスの起動:

$ sudo sv up [サービス名]

-


5). サービスの停止:

$ sudo sv down [サービス名]

-


6). サービスの再起動:

$ sudo sv restart [サービス名]

-


7). サービスの無効化:

$ sudo rm /var/service/[サービス名]

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----- ----- --

24. 「仮想マシン」で使ってみて、気になるところ:

-

:


1). 立ち上げにて、ログイン画面が表示されるまで、時間がかかります:

「Void Linux」は「軽い」と言うレビューが多いけど、明らかに「Xubuntu 24.04.03 LTS」よりも「デスクトップ」が表示されるまでが遅いです。

-

「再起動」にかかる時間を測ってみると、
ホストOS 「Xubuntu 24.04.03 LTS」を再起動させると、1分弱で、デスクトップ画面が表示:
ゲストOS 「Debian 13.1」を再起動させると、1分弱で、デスクトップ画面が表示:
ゲストOS 「Void Linux」を再起動させると、1分30秒ほどでデスクトップ画面が表示:

→「Void Linux」のみ起動が遅いです:

-

「Void Linux」の立ち上げ時間の内訳を見ると:
起動から、コンソール画面が表示されるまで、「30」秒
コンソール画面から、「ログイン」画面が表示されるまで、「32」秒
パスワード入力から、「デスクトップ」画面が表示されるまで、「22」秒

→「軽い」と言う多くのレビューは、「テキストベース」での立ち上げのことを言っているのか、 それとも、「仮想マシン」ではない、「実機」にインストールしたときのことを言っているのか、言及されていません:

もしかしたら、Xfce でない、別のデスクトップ環境のことなのかも:

-

起動すれば、動作は軽いし、安定しています:

-

→「Void Linux」を「仮想マシン」で使う?と遅い、(相性が良くない?)のかも:

期待しているサービスが見つからず、リトライしているのかも:

-


2). 「firefox」ブラウザの立ち上げで、時間がかかります:

デフォルトでインストールされている「firefox」も、ダウンロードしてインストールした最新のESR 版の「firefox」も、起動に一息待たされます。flatpak 版もインストールしましたが、似たようなものです:

-

firefox」の起動にかかる時間を測ってみると、
ホストOS 「Xubuntu 24.04.03 LTS」にて、ESR 版の「firefox」を起動させると、2 秒で起動:
ゲストOS 「Debian 13.1」にて、ESR 版の「firefox」を起動させると、8 秒で起動:
ゲストOS 「Void Linux」にて、ESR 版の「firefox」を起動させると、 2秒〜60秒の間で変動して起動:

→「Void Linux」のみ、起動のたびに立ち上げ時間が変動、起動が速いのはマレ:

-

起動すれば、動作は軽いです:

-

→「Void Linux」を「仮想マシン」で使う?と遅い、(相性が良くない?)のかも:

-


3). 「Void Linux」のインストールにて、「パーティション」の作成は手動で行います:

Debian」や「Ubuntu」 のように、自動で作成してくれるモードはありません:

-

UEFI 立ち上げの、パーティションの作成は、Linux 初心者には難しいかも。

-


4). パッケージ管理のコマンドは、パラメータを与えるやり方なので、使わないとすぐに忘れてしまいそう:

-

特に、「xbps-query」とかは、パラメータを与えて動作を指示するので、

「xbps-search」とか「xbps-list」「xbps-info」のように、機能で分けた方が覚えやすそう:

-

query(クエリ)とかは、一般の人には馴染まない言葉です:

自分で、エイリアスを作るのもアリですが、システムでデフォルトで「覚えやすい」エイリアスが定義されていれば、選択肢が広がり、スキル者からも「要らない」という不満が出にくいし、初心者には便利です。

-

個人的には(言語に近く理解しやすい)「apt」や「dnf」のコマンドの方が手軽です:

-

→「項番 22.」で、覚えやすい(思い出しやすい)「エイリアス」を作成してみました:

エイリアスを使わなくても、コマンドを思い出すためだけに、エイリアスを登録しておいても OK:

-


5). 新しいシステム? なのに、システムは「安定」しているし、移植されているパッケージが多い ?、と思ったら、

「Void Linux」は、2008年頃、XBPS 開発のために作られた Linux ディストリビューションで、歴史は古かったようです。納得。

-

ただし、Ubuntu よりも、基本のリポジトリからインストールできる「アプリ」は少なめです:

-


6). 仮想マシンで使う場合、「VirtualBox Guest Additions」が機能しないのはマイナスです:

たぶん、一般的ではない「runit」が「サービス管理」に使われているからだろうと思います:

一般的ではない「runit」なので、Oracle もサポートしてくれないのかも。

-

VirtualBox Guest Additions」はインストール出来ているので、 「Guest Additions」のサービスとのやり取りを「中継するサービス」が準備できれば、動くかもしれませんね。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----- ----- ---

25. 追記:「仮想マシン」で使うと、システムの起動と、「Firefox」ブラウザの立ち上げが遅くなる、原因が判明しました:

-

システム立ち上げ時のエラーが登録されていないか確認したら、エラーがありました:

もっと早く確認しておけば、良かったかも:

-


1). 「dmesg」でエラーを確認:

$ sudo dmesg | less

→エラーがあります:

-


2). エラーを抜粋:

$ sudo dmesg | grep ERROR
:
[    1.584559] vmwgfx 0000:00:02.0: [drm] *ERROR* vmwgfx seems to be running on an unsupported hypervisor.
[    1.584568] vmwgfx 0000:00:02.0: [drm] *ERROR* This configuration is likely broken.
[    1.584570] vmwgfx 0000:00:02.0: [drm] *ERROR* Please switch to a supported graphics device to avoid problems.
[   12.084364] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[   12.084391] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[   96.160295] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[   96.160380] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[   96.249158] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[   96.249194] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[  182.872472] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[  182.872512] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[  214.497951] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.
[  214.498001] [drm:vmw_msg_ioctl [vmwgfx]] *ERROR* Failed to open channel.

最初のエラーの「vmwgfx seems to be running on an unsupported hypervisor」で検索:

→「vmwgfx seems to be running on a unsupported hypervisor」がヒット:

-


3). 「vmwgfx」が使われているのが、問題だったようです:

「vmwgfx」は、VMware のグラフィックスドライバーで、仮想マシンが「VMware」以外、例えば「VirtualBox」などで実行されている場合に、こちらのエラーが発生します。

-


4). 「3Dアクセラレーション」を無効にして、「VBOxSVGA」を選ぶと、エラーが解消:

-

(1). 「VirtualBox マネージャ」を起動して、「Void Linux」を選択:

-

(2). ビデオメモリーを「256MB」→「128MB」に変更:

設定を戻します:

-

(3). 「3D アクセラレーションを有効化」のチェックを外します:

→ビデオメモリーの設定の上限が「256MB」から「128MB」に減ります:

-

(4). グラフィックコントローラー:「VMSVGA」→「VBOxSVGA」に変更:

-

→OK

-

「VBOxSVGA」に変更したことの弊害:

「VMSVGA」にしないと、「Guest Additions」をインストールしても、機能が有効にならない可能性があります:

-


5). 「VirtualBox マネージャ」を一度閉じて、再び起動:

-


6). 仮想マシンの「Void Linux」を起動:

システムの起動と、「Firefox」ブラウザの立ち上げが速くなりました:

ただし、残念ながら、設定を変更して「Guest Additions」をインストールしても、機能は有効になりませんでした:

→「仮想マシン」を作り直す必要があるかも:

-


7). 立ち上げ時のエラーを確認:

$ sudo dmesg | grep ERROR
$ 

→エラーが解消しました:

-

-


まとめ

今回、「VirtualBox 7.1.10」に「Void LinuxXfce をインストールしました。

仮想マシン」で使うと、「Xubuntu 24.04 LTS」よりも起動は遅いし、「Firefox」ブラウザの立ち上げも遅いです。

→追記 3: 「項番 25.」で原因と、対処のしかたが判明しました:

-

追記 1:

Vagrant で作成した「Void Linux」に「Xfce デスクトップ環境」をインストールしたところ、 システムの起動も、「firefox」ブラウザの立ち上げも速くなりました。3〜4秒で立ち上がります。

インストールのやり方で、変わるみたい。Xfce イメージは余計なものが多いのか、 もしかしたら、VirtualBox 7.2.2」にアップ したので、改善(不具合の改善?)されたかも:

どのようにすれば「立ち上げが速くなる」かは、検証が必要みたい:

-

そして、「VirtualBox」では サポートされていない OS だからか 、(追記: 今回の場合は、)「VirtualBox Guest Additions」の機能が使えません。 なので、ホストOS との連携は、やりづらいです。

普通に使うだけなら、「仮想マシン」として使うのはマイナスが多く、(今のところ)あまり オススメできません:

-

追記 2:

「Void Linux」は、「Guest Additions」の成功率が低いようで、 Vagrantプラグイン で自動インストールしてもらったら、それらの機能が使えるようになりました。
インストールできたけど失敗したみたいです。(よくあること)

-

Vagrantプラグインを使うには、公開されている Box を使うか、一度「仮想マシン」を Box 化して、パスワードなしに設定する必要があるので、簡単にできないのがつらいところ。

-

次回の〈H179-2〉で、「xbps-src」によるビルドしての「パッケージ化」をやってみました。個人的なアプリの改善?ができるので、奥が深く、楽しめます。

-

-


-

-

    目次

-

「投稿の先頭 へ」

-

-


-

「この目次 の先頭へ」

「本編の目次 に戻る」

-

「VirtualBox 7.1.10」に、「Debian 13.1 Xfce」(trixie) をネットインストールする場合〈H178-2〉

登録日: 2025-09-17 更新日: 2025-09-17

前回 は、 「VirtualBox 7.1.10」に、「Debian 13.1 Xfce」(trixie) を iso イメージからインストールしました:

-

今回 は、「Debian 13.1 Xfce」をネットインストールして、

iso イメージからのインストールよりも、どれくらい無駄なパッケージが減らせるか、確認してみました。

もしかしたら、インストールの中で「Xfce」デスクトップを選ぶと、あまり変わらないかもしれません。

-

その備忘録です。

-

-

使用したPC は、新しく購入した ミニPC「MINISFORUM NAB5」です。
プロセッサは「Core i5-12450H」で、メモリ 16GB、SSD 512GB です。

-

(注)リンクを戻るときはブラウザの左上の「←」をクリック
Android スマホであれば「ホーム」ボタン隣の「<」をタップ

-

-


目次

-

今回の作業:

-

  1. 「ゲストOS」のISO イメージをダウンロード:

  2. 「仮想マシン」の作成:

  3. 「Debian 13.1」の「Xfce」をネットインストール:

  4. 「VirtualBox Guest Additions」のインストール:

  5.  システム更新:

  6.  日本語入力:

  7.  デスクトップとパネルの設定:

  8.  フォントのインストール:

  9.  アプリ のインストール:

  10.  ゲームのインストール:

  11.  気になるところ:

-

参考になりそうな作業:

  1. 「ネットインストール」の手順:

  2. インストールに使う「仮想マシン」を「クローン」して作成:

  3.  作業前に、「仮想マシン」のクローンを作成:

  4.  最新の「Firefox」ブラウザのESR 版をインストール:

  5.  無駄な「パッケージ」がないか確認:

  6.  すべての「入力メソッド」のインストール状態を確認:

  7.  日本語以外の「ヘルプ」と「言語パッケージ」を削除:

  8.  日本語以外の「フォント」を削除:

  9.  すべての「入力メソッド」を削除:

-

「まとめ へ」

「目次詳細 へ」

-

-


- --- - --- - --- - --- - --- - --- - --- - -

ホストOS の「Xubuntu 24.04.3 LTS」を立ち上げ:

-

仮想マシンの「Debian 13.1 Xfce」を起動:

→「項番 10.」で、色々とカスタマイズ:

-

「アプリケーション」メニューは使いやすいし、ショートカットキーでアプリを起動するように設定したので、パネルにランチャーは登録していません:

-

-


- --- - --- - --- - --- - --- - --- - --- - --

VirtualBox」について:

-

VirtualBox 」は、Oracle(オラクル)社が開発している「仮想マシン」を構築するためのソフトウェアです。

-

-

-


- --- - --- - --- - --- - --- - --- - --- - ---

Xubuntu」について:

-

Ubuntu の公式フレーバー(性格の違う兄弟?)です

Xubuntu」(ズブントゥ)は、 Ubuntu ベースの、軽量な「Xfce」デスクトップ環境です。

Ubuntu ベースにつき、多くのノウハウ、情報等があること、および問題の少ない「x11」で動いていることが強みです。

-

個人的には使い慣れた環境です。
カスタマイズが色々とできるので、自分にとって使い勝手の良い環境を作れるのが利点です。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----

Debian 13 trixie」について:

-

公式サイト:

Debian JP Project

-

Debian (デビアン) は、コミュニティによって作らているオペレーティングシステム (OS) で、利用/配布/改変が「無償で自由」なので、いくつかの Linux ディストリビューションUbuntu、NNLinux 等)のベースとしても使われています:

-

現在の安定版 (stable) は、 Debian GNU/Linux 13 (コードネーム「trixie」) です。
2025年 8月 9日に、リリースされました:

不具合修正やセキュリティアップデートなどをまとめて、定期的に更新(ポイントリリース)が行われます:
→13.1.0(2025年 9月)

-

Debian 13 trixie」の Release-notes からの抜粋:
  • 標準で i386 をサポートしないので、Debian 12 でサポートされていた 32 ビット CPU の多くが動作しません:

 →i386 のシステムを動かしているユーザは、Debian 13 にアップグレードすべきではありません:

  • /boot が大きくなったので、個別のバーティションを作成している場合は、十分な空き領域が必要です:

  • 一時ファイルのディレクトリ /tmp は、メモリ上の「tmpfs」に配置されるようになったので、/tmp を保存先に使用していた場合は運用に注意:

-

-


現在のOS のバージョンを表示:

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ホストOS : 「Xubuntu 24.04.3 LTS」

2025-09-17 現在

-

カーネル:
$ uname -r
:
6.8.0-79-generic

→LTS版は安定志向なので、更新の回数は少なめです:

-

リリース:
$ cat /etc/lsb-release
:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

→LTS 版の更新(ポイントリリース)は、6ヶ月前後で、
 今は「24.04.3」にアップされています

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
:
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ゲストOS : 「Debian 13 (trixie)」

2025-09-17 現在

-

カーネル:
$ uname -r
6.12.43+deb13-amd64

→「amd64」(64bit)であることに注目:

-

リリース:
$ cat /etc/os-release
:
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

→現在のポイントリリースは「13.1」です:

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-


- --- - --- - --- - --- - --- - --- - --- - -----

1. 「ゲストOS」のISO イメージをダウンロード:

-

「netinst」イメージは、インストール中に主なデータをネットワーク経由で入手するので、 最小限のサーバー環境を作りたいときに利用すると、無駄がありません。

-


1). Debian netinstイメージ ダウンロードサイト

-

-

-


2). ダウンロード:

-

2025-09-12 現在:

-

(1). 「ISO イメージ」をダウンロード:

2025年9月6日の登録:

debian-13.1.0-amd64-netinst.iso 06-Sep-2025 821035008

→ダウンロード後、「~/ダウンロード/Debian/」に移動:

-

(2). 「チェックサム」をダウンロード:

SHA256SUMS

→ダウンロード後、ダブルクリックして開きました:

抜粋:

658b28e209b578fe788ec5867deebae57b6aac5fce3692bbb116bab9c65568b3  debian-13.1.0-amd64-netinst.iso

-


3). チェックサムの確認:

ファイルの確認:

$ cd ~/ダウンロード/debian/
$ ls -1
:
debian-13.1.0-amd64-netinst.iso   ←(こちら)
debian-live-13.1.0-amd64-xfce.iso
debian-live-13.1.0-amd64-xfce.iso.packages

-

チェックサムの確認:

$ sha256sum debian-13.1.0-amd64-netinst.iso
:
658b28e209b578fe788ec5867deebae57b6aac5fce3692bbb116bab9c65568b3  debian-13.1.0-amd64-netinst.iso

→OK

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- -

2. 「仮想マシン」の作成:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- --

2-1. 「仮想マシン」を「クローン」して作成する場合:

-

前回、「Debian 13.1」の仮想マシンを作成したら、「仮想マシン」の設定は同じなので、

クローンを作成すれば、作成の手間を減らせます:

-


1). 「仮想マシン」のクローンを作成:

-

(1). 「仮想マシン」の電源オフ:

-

(2). Virtualbox マネージャにて操作:

-

(3). 「仮想マシン」の「Debian13.1」を右クリック→「クローン」

-

名前: 「Debian13.1_net」   ←(好みの英字の名前)

→「完了」

-

コピーが終わるまで待ちます:

-

(4).「Debian13.1_net」を選んで、設定を変更:

-

ストレージ
「[光学ドライブ] 空」をクリック:

-

→「Choose a Disk File...」をクリック:

-

→「debian-13.1.0-amd64-netinst.iso」を選んで、「開く」

-

(5). 最終的な設定を確認:

→「ストレージ」の項目の、光学ドライブdebian-13.1.0-amd64-netinst.iso」
 がセットされていることを確認:

-

この CD イメージでライブ立ち上げされます。

-


2). 「仮想マシン」を選択して、「起動」(緑色の右矢印)ボタンをクリック:

すでに使用されている「仮想マシン」をクローンしたので、ディスク立ち上げになっています:

-


3). 「ブートメニュー」画面が表示:

→すぐに「↓」キーで、一番下の「UEFI Firmware Settings」を選択して、Enter

-

仮想マシン」の設定を「EFI 有効」(UEFI 立ち上げ)にしていないと、上記のメニューは表示されません:

-


4). 「UEFI Firmware Settings」画面が表示:

→「↓」キー数回で、「Boot Manager」を選んで、Enter

-


5). 「Boot Manager」画面が表示:

→2番めの「CD-ROM」を選んで、Enter

-

(CD-ROM での立ち上げになりました)

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ---

2-2. 「仮想マシン」を新規に作成する場合:

-

Debian 13.1」の仮想マシンを作成していないか、削除した場合のやり方です:

-


1). 「仮想マシン」の作成:

-

(1). 作成したい「ゲストOS」の名前は、下記にしました:
名前:Debian13.1_net   ←(好みの英字の名前)

-

(2). iso イメージは、「debian-13.1.0-amd64-netinst.iso」です:

-

(3). 作成手順は、 「こちら」を参照:

-

(4). 最終的な設定を確認:

→「ストレージ」の項目の、光学ドライブdebian-13.1.0-amd64-netinst.iso」
 がセットされていることを確認:

-

この CD イメージでライブ立ち上げされます。

-


2). 「仮想マシン」を選択して、「起動」(緑色の右矢印)ボタンをクリック:

-


3). 「ブートメニュー」画面が表示:

→しばらく待つか、Enter

-

(CD-ROM での立ち上げです)

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----

3. 「Debian 13.1」の「Xfce」をネットインストール:

-

ネットが空いている時間帯に行うのがオススメです:

-


1). 「項番 2.」の続き:

(CD-ROM での立ち上げ)

-


2). 「UEFI Installer menu」画面が表示:

→「Graphical install」(グラフィカル インストール)が選ばれているので、Enter

-


3). 「グラフィカル インストール」画面が表示:

-


4). 「Select a Language」:

-

「Japanese - 日本語」を選択:

-

→右下の「Continue」

-

日本語の表示に変わりました:

-


5). 「場所の選択」:

「日本」を選択:  ←(自動で選択)

-

→右下の「続ける」

-


6). 「キーボードの設定」:

利用するキーマップ:

「日本語」を選択:  ←(自動で選択)

-

→右下の「続ける」

-


7). 「ネットワークの設定」:

-

(1). ホスト名:

→「user-pc」任意

-

→右下の「続ける」

-

(2). ドメイン名:

「.」

何もせずに、そのまま:

-

→右下の「続ける」

-


9). ユーザとパスワードのセットアップ

-

(1). root のパスワード:

-

「空白」

「空白」

何もせずに、そのまま:

-

→右下の「続ける」

-

(2). 新しいユーザの本名(フルネーム):

-

「user」 ←任意

-

→右下の「続ける」

-

(3). あなたのアカウントのユーザ名:

-

「user」 (自動入力) ←任意

-

→右下の「続ける」

-

(4). 新しいユーザのパスワードを選んでください:

→「任意」

-

確認のため、再度パスワードを入力してください:

→「任意」

-

→右下の「続ける」

-


10). ディスクのパーティショニング

-

(1). パーティショニングの方法:

2番めの

ガイド - ディスク全体を使う

-

→右下の「続ける」

-

(2). パーティショニングするディスクの選択:

-

SCSI3 (0,0,0) (sda) - 32.2 GB ATA VBOX   HARDDISK

何もせず、そのまま:

-

→右下の「続ける」

-

(3). パーティショニング機構:

-

すべてのファイルを 1 つのパーティションに   (初心者ユーザには推奨)

-

→右下の「続ける」

-

(4). 今までの設定で作成されるパーティションが表示されるので確認:

スワップを含む、3つのパーティションが作成されます:

-

パーティショニングの終了とディスクへの変更の書き込み

-

→右下の「続ける」

-

(5). ディスクに変更を書き込みますか?

「はい」

-

→右下の「続ける」

-


11). ベースシステムのインストール

→ベースシステムをインストールしています

-


12). パッケージマネージャの設定:

-

(1). 別のインストールメディアを検査しますか?

→「いいえ」

何もせず、そのまま:

-

→右下の「続ける」

-

(2). Debian アーカイブミラーの国:

-

日本   ←自動選択

何もせず、そのまま:

-

→右下の「続ける」

-

(3). Debian アーカイブミラー:

-

一番上の

ded.debian.org   ←自動選択

何もせず、そのまま:

-

→右下の「続ける」

-

(4). HTTP プロキシの情報(なければ空):

-

「空白」

何もせず、そのまま:

-

→右下の「続ける」

-

(5). apt を設定しています:

→時間がかかります:

-


13). ソフトウェアの選択とインストール:

-


14). popularity-contest(人気投票)を設定しています

-

Debian パッケージ利用調査に参加しますか?

→「いいえ」

何もせず、そのまま:

-

→右下の「続ける」

-


15). ソフトウェアの選択

-

デフォルト:

- Debian ディスクトップ環境
- GNOME
- 標準システムユーティリティ

↓ 選択を変更:

- Debian ディスクトップ環境
- Xfce
- 標準システムユーティリティ

GNOME を外すのを忘れずに:

-

最終的なソフトウェアの選択:

-

→右下の「続ける」

-


16). ソフトウェアの選択とインストール:

→時間がかかります:

-


17). インストールの完了

-

再起動するには<続ける>を選択してください。

-

→右下の「続ける」

-


18). 再起動されました:

-


19). 「ブートメニュー」画面:

すぐに画面が変わります:

-


20). ログイン画面:

→ユーザ名、Enter

→パスワード

-


21). デスクトップ画面:

Xfce デスクトップです:

→CD-ROM は取り外されています:

-

画面右下に、入力メソッドの「uim」のアイコンが表示:

-


22). Ctrl+Alt+T で「端末」を起動:

「@@」を入力

@@

→日本語キーボードの配列です:

-

Debian 13.1 Xfce」をネットインストールすると、ちゃんと、「日本語キーボード」の配列になります:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- -----

4. ゲストOS に「VirtualBox Guest Additions」をインストール:

-

仮想マシン」として使うなら、画面が広く使え、「クリップボードの共有」機能も使えるようになるので、

 早めにインストールしました:

-

ゲストOS にて操作します:

-


1). Ctrl+Alt+T で「端末」を起動:

-


2). インストールされているカーネルを確認:

-

インストール直後のカーネル:

$ uname -r
6.12.43+deb13-amd64

-


3). 「dkms」のインストール:

$ sudo apt install dkms
:
Installing:
  dkms

Installing dependencies:
  binutils                   libalgorithm-diff-xs-perl  libhwasan0
  binutils-common            libalgorithm-merge-perl    libitm1
  binutils-x86-64-linux-gnu  libasan8                   liblsan0
  build-essential            libbinutils                libquadmath0
  dpkg-dev                   libc-dev-bin               libsframe1
  fakeroot                   libc6-dev                  libstdc++-14-dev
  g++                        libcc1-0                   libtsan2
  g++-14                     libcrypt-dev               libubsan1
  g++-14-x86-64-linux-gnu    libctf-nobfd0              linux-libc-dev
  g++-x86-64-linux-gnu       libctf0                    make
  gcc                        libdpkg-perl               manpages-dev
  gcc-14                     libfakeroot                patch
  gcc-14-x86-64-linux-gnu    libfile-fcntllock-perl     rpcsvc-proto
  gcc-x86-64-linux-gnu       libgcc-14-dev
  libalgorithm-diff-perl     libgprofng0

提案パッケージ:
  binutils-doc               autoconf              libc-devtools
  gprofng-gui                automake              glibc-doc
  binutils-gold              libtool               git
  menu                       flex                  bzr
  debian-keyring             bison                 libstdc++-14-doc
  debian-tag2upload-keyring  gdb                   make-doc
  g++-multilib               gcc-doc               ed
  g++-14-multilib            gcc-14-multilib       diffutils-doc
  gcc-14-doc                 gcc-14-locales
  gcc-multilib               gdb-x86-64-linux-gnu

Summary:
  Upgrading: 0, Installing: 44, Removing: 0, Not Upgrading: 0

→開発で使われるツール類がインストールされました:

-


4). カーネルのビルドに必要な、「ツール」がインストールされているか確認:

$ apt list gcc make perl
:
gcc/stable,now 4:14.2.0-1 amd64 [インストール済み、自動]
make/stable,now 4.4.1-2 amd64 [インストール済み、自動]
perl/stable,now 5.40.1-6 amd64 [インストール済み]

-


5). 「仮想マシン」の上部バーのメニュー →「デバイス」→「Guest Additions CDイメージの挿入…」

→デスクトップにCD-ROM アイコンが表示されました:

-


6). CD-ROM アイコンをダブルクリックして、「ファイルマネージャ」を起動:

-


7). ファイルマネージャにて、開いたフォルダの空きで、右クリック →「Open Terminal Here」(ここで Terminal を開く)

$ pwd
:
/media/cdrom0

→マウントされた CDドライブの位置(マウントポイント)になります:

パスの表示がいつもと違います:

-


8). 「ゲストOS」は「Debian」なので、「Linux」のスクリプトを実行します:

-


9). スクリプトの確認:

$ ls *.run
:
VBoxLinuxAdditions-arm64.run  VBoxLinuxAdditions.run

→2つありますが、片方は CPU アーキテクチャが違います:

-


10). スクリプトの 実行:

$ sudo ./VBoxLinuxAdditions.run
:
sudo: unable to execute ./VBoxLinuxAdditions.run: Permission denied

→実行できません:

-

パスの表示が違うのが影響しているみたい:

-

シェルを起動してスクリプトを実行したら、実行されました:

$ sudo sh ./VBoxLinuxAdditions.run
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.1.10 Guest Additions for Linux  100%
VirtualBox Guest Additions installer
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel 
6.12.43+deb13-amd64. Please install them and execute
  /sbin/rcvboxadd setup
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules were not reloaded
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
user@user-pc:/media/cdrom0$ 

→再起動が必要です。

-

「端末」と「ファイルマネージャ」を右上の「x」で閉じました:

-


11). [光学ドライブ]に挿入した、「Guest Additions の CD イメージ(.iso)」を取り外し:

デスクトップに表示されている、CD-ROM アイコンを右クリック→「ボリュームを安全に取り外す」

デスクトップから、CD-ROM アイコンが消えました:

-


12). 「クリップボードの共有」機能を有効化:

バイス →「クリップボードの共有」
→「無効」を「双方向」に変更:

-


13). 「ドラッグ & ドロップ」機能を有効化:

バイス→「ドラッグ & ドロップ」
→「無効」を「双方向」に変更:

-


14). 電源オフ:

「アプリケーション」→「ログアウト」→「シャットダウン」

-


15). 反映させるため、ホストOS「Xubuntu 24.04 LTS」を再起動:

クリップボードの共有」機能は、ホストOS との連携で動作するので、一度ホストOS 側の再起動が必要です。

-


16). 「仮想マシン」を起動:

-


17). ログイン画面:

→ユーザ名を入力:

→パスワード入力

-


18). デスクトップ画面:

-


19). 自動でウィンドウがリサイズされるか確認:

-

すでに、クローンで使った「Debian 13.1」の解像度(画面半分の広さ)で表示されました:

VirtualBox」側で解像度は保持されているみたい:

-

画面が広く使えて、「クリップボードの共有」機能も使えるので、便利です:

早めに実施して良かったです。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- -

5. 任意: 作業前に、「仮想マシン」のクローンを作成:

-

こちらの作業は要りません:

色々と削除するので、失敗しても「項番 4.」実施後までに、すぐに戻せるように、クローンを作成しました:

-


1). 「仮想マシン」のクローンを作成:

-

(1). 「仮想マシン」の電源オフ:

-

(2). Virtualbox マネージャにて操作:

-

(3). 「仮想マシン」の「Debian13.1_net」を右クリック→「クローン」

名前: 「Debian13.1_net の原本」

→「完了」

-

コピーが終わるまで待ちます:

-

(4).「Debian13.1_net の原本」はさわらずに、「Debian13.1_net」を選んで、

→「起動」

-


2). デスクトップ画面が表示:

-


3). Ctrl+Alt+T で「端末」を起動:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- --

6. 参考: 無駄な「パッケージ」がないか確認:

-

こちらの作業は要りません:

「ネットインストール」と「iso イメージでインストール」での違いを確認しました:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ---

6-1. 無駄な「ヘルプ」や「言語パッケージ」がないか確認:

-

無駄なパッケージがインストールされていないか、確認しました:

参考:

前回の投稿の「項番 6-2.」にて削除したパッケージ:

-


1). 「libreoffice」: ★最低でもこちらの削除はオススメ

-

(1). 無駄な「ヘルプ」がないか確認:
$ apt list libreoffice-help-* --installed
:
libreoffice-help-common/stable,now 4:25.2.3-2+deb13u2 all [インストール済み、自動]
libreoffice-help-en-us/stable,now 4:25.2.3-2+deb13u2 all [インストール済み、自動]
libreoffice-help-ja/stable,now 4:25.2.3-2+deb13u2 all [インストール済み、自動]

-

(2). 無駄な「言語パッケージ」がないか確認:
$ apt list libreoffice-l10n-* --installed
:
libreoffice-l10n-ja/stable,now 4:25.2.3-2+deb13u2 all [インストール済み、自動]

-

(3). 参考: もし、「日本語化のパッケージ」や「ヘルプ」がない場合は、インストール:
$ sudo apt install libreoffice-l10n-ja libreoffice-help-ja

-

ちなみに、「ヘルプ」パッケージがなくても、オンラインヘルプが使えます:

-


2). 「firefox-esr」:

-

(1). 無駄な「言語パッケージ」がないか確認:
$ apt list firefox-esr-l10n-* --installed
:
firefox-esr-l10n-ja/stable,stable-security,now 128.14.0esr-1~deb13u1 all [インストール済み、自動]

-

(2). 任意: 日本語化の設定が面倒でなければ、下記も削除できます:
$ sudo apt remove firefox-esr-l10n-ja
:
REMOVING:                                                   
  firefox-esr-l10n-ja

→言語パッケージをインストールしなくても、設定で日本語表示できます:

-

確認:

$ apt list firefox* --installed
firefox-esr/stable,now 128.14.0esr-1~deb13u1 amd64 [インストール済み、自動]

→アプリ本体のみになりました:

-


3). 「その他のアプリ」の「言語パッケージ」:

日本語では使われない、スペルチェック等で使われるパッケージです:

「ja」はなし、「en」は除外しています:

-

無駄な「言語パッケージ」がないか確認:
$ sudo apt list aspell-am aspell-ar aspell-ar-large aspell-bg aspell-ca aspell-cs aspell-cy aspell-da aspell-de aspell-el aspell-eo aspell-es aspell-et aspell-eu aspell-fa aspell-fr aspell-ga aspell-gl-minimos aspell-he aspell-hr aspell-hu aspell-is aspell-it aspell-kk aspell-ku aspell-lt aspell-lv aspell-nl aspell-no aspell-pl aspell-pt-br aspell-pt-pt aspell-ro aspell-ru aspell-sk aspell-sl aspell-sv aspell-tl aspell-uk hunspell-ar hunspell-be hunspell-bg hunspell-bs hunspell-ca hunspell-cs hunspell-da hunspell-de-at hunspell-de-ch hunspell-de-de hunspell-el hunspell-en-gb hunspell-eo hunspell-eu hunspell-fr hunspell-fr-classical hunspell-gl hunspell-gu hunspell-hi hunspell-hr hunspell-hu hunspell-id hunspell-is hunspell-it hunspell-kk hunspell-kmr hunspell-ko hunspell-lt hunspell-lv hunspell-ml hunspell-ne hunspell-nl hunspell-pl hunspell-pt-br hunspell-pt-pt hunspell-ro hunspell-ru hunspell-si hunspell-sl hunspell-sr hunspell-sv hunspell-te hunspell-th hunspell-vi hyphen-de hyphen-hr hyphen-hu hyphen-lt manpages-nl myspell-eo myspell-es myspell-et myspell-fa myspell-ga myspell-he myspell-nb myspell-nn myspell-sk myspell-sq myspell-uk mythes-cs mythes-de mythes-de-ch mythes-fr mythes-it mythes-ne mythes-pl mythes-ru mythes-sk  --installed
$

→なし

-

Debian 13.1 Xfce」をネットインストールすると、無駄なパッケージがインストールされません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----

6-2. 日本語以外の、無駄な「フォント」を確認:

-

こちらの作業は要りません:

「ネットインストール」と「iso イメージでインストール」での違いを確認しました:

-

日本語や英語以外の言語も使うなら、作業しません:

-

参考:

前回の投稿の「項番 6-3.」にて削除:

を参考に、無駄な「フォント」がインストールされていないか、確認しました:

-


日本語以外の、無駄な「フォント」を確認:

$ apt list fonts-tlwg-mono fonts-lohit-beng-assamese fonts-tlwg-mono-ttf fonts-lohit-beng-bengali fonts-tlwg-norasi fonts-lohit-deva fonts-tlwg-norasi-ttf fonts-lohit-gujr fonts-tlwg-purisa fonts-lohit-guru fonts-tlwg-purisa-ttf fonts-lohit-knda fonts-tlwg-sawasdee fonts-lohit-mlym fonts-tlwg-sawasdee-ttf fonts-tlwg-typist fonts-sahel-variable fonts-tlwg-typist-ttf fonts-lohit-taml fonts-tlwg-typewriter fonts-lohit-telu fonts-sil-abyssinica fonts-tlwg-typo fonts-sil-andika fonts-tlwg-typo-ttf fonts-thai-tlwg fonts-tlwg-umpush fonts-tlwg-garuda fonts-lohit-taml fonts-tlwg-typewriter fonts-lohit-telu fonts-tlwg-typist fonts-sahel-variable fonts-tlwg-typist-ttf fonts-sil-abyssinica fonts-tlwg-typo fonts-sil-andika fonts-tlwg-typo-ttf fonts-thai-tlwg fonts-tlwg-umpush fonts-tlwg-garuda fonts-tlwg-garuda-ttf fonts-tlwg-waree fonts-tlwg-kinnari fonts-tlwg-waree-ttf fonts-tlwg-kinnari-ttf fonts-ukij-uyghur fonts-tlwg-laksaman fonts-tlwg-laksaman-ttf fonts-tlwg-loma fonts-tlwg-loma-ttf xfonts-thai xfonts-thai-nectec --installed
$

→なし

-

Debian 13.1 Xfce」をネットインストールすると、無駄な「フォント」がインストールされません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- -----

7. 参考: ネットインストールでインストールされた「フォント」を確認:

-

こちらの作業は要りません:

「ネットインストール」と「iso イメージでインストール」での違いを確認しました:

-


1). 「Xfce」のネットインストールで、インストールされている「フォント」を確認:

$ apt list *font* --installed
:
fontconfig-config/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
fontconfig/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
fonts-dejavu-core/stable,now 2.37-8 all [インストール済み、自動]
fonts-dejavu-mono/stable,now 2.37-8 all [インストール済み、自動]
fonts-droid-fallback/stable,now 1:8.1.0r7-1~1.gbp36536b all [インストール済み、自動]
fonts-font-awesome/stable,now 5.0.10+really4.7.0~dfsg-4.1 all [インストール済み、自動]
fonts-ipafont-gothic/stable,now 00303-23 all [インストール済み、自動]
fonts-ipafont-mincho/stable,now 00303-23 all [インストール済み、自動]
fonts-ipafont/stable,now 00303-23 all [インストール済み、自動]
fonts-lato/stable,now 2.015-1 all [インストール済み、自動]
fonts-liberation-sans-narrow/stable,now 1:1.07.6-4 all [インストール済み、自動]
fonts-liberation/stable,now 1:2.1.5-3 all [インストール済み、自動]
fonts-mathjax/stable,now 2.7.9+dfsg-1 all [インストール済み、自動]
fonts-noto-mono/stable,now 20201225-2 all [インストール済み、自動]
fonts-opensymbol/stable,now 4:102.12+LibO25.2.3-2+deb13u2 all [インストール済み、自動]
fonts-quicksand/stable,now 0.2016-2.1 all [インストール済み、自動]
fonts-symbola/stable,now 2.60-2 all [インストール済み、自動]
fonts-unifont/stable,now 1:15.1.01-1 all [インストール済み、自動]
fonts-urw-base35/stable,now 20200910-8 all [インストール済み、自動]
fonts-vlgothic/stable,now 20220612-1 all [インストール済み、自動]
libfont-afm-perl/stable,now 1.20-4 all [インストール済み、自動]
libfontconfig1/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
libfontembed1t64/stable,now 1.28.17-6 amd64 [インストール済み、自動]
libfontenc1/stable,now 1:1.1.8-1+b2 amd64 [インストール済み、自動]
libxfont2/stable,now 1:2.0.6-1+b3 amd64 [インストール済み、自動]
psf-unifont/stable,now 1:15.1.01-1 all [インストール済み、自動]
timgm6mb-soundfont/stable,now 1.3-5 all [インストール済み、自動]
unifont/stable,now 1:15.1.01-1 all [インストール済み、自動]
xfonts-100dpi/stable,now 1:1.0.5 all [インストール済み、自動]
xfonts-75dpi/stable,now 1:1.0.5 all [インストール済み、自動]
xfonts-base/stable,now 1:1.0.5+nmu1 all [インストール済み、自動]
xfonts-encodings/stable,now 1:1.0.4-2.2 all [インストール済み、自動]
xfonts-scalable/stable,now 1:1.0.3-1.3 all [インストール済み、自動]
xfonts-unifont/stable,now 1:15.1.01-1 all [インストール済み、自動]
xfonts-utils/stable,now 1:7.7+7 amd64 [インストール済み、自動]

→「noto」フォントは、「fonts-noto-mono」のみがインストールされています:

-

「日本語フォント」として、下記が入っていました:
fonts-droid-fallback
fonts-ipafont-gothic
fonts-ipafont-mincho
fonts-ipafont
fonts-vlgothic

→「fonts-noto-cjk」をインストールしても良いかも:

-


2). 参考: 前回の iso インストールで、無駄なフォントを削除した後に残った「フォント」:

$ apt list *font* --installed
:
fontconfig-config/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
fontconfig/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
fonts-bpg-georgian/stable,now 2012-5 all [インストール済み、自動]
fonts-culmus/stable,now 0.140-3 all [インストール済み、自動]
fonts-dejavu-core/stable,now 2.37-8 all [インストール済み、自動]
fonts-dejavu-extra/stable,now 2.37-8 all [インストール済み、自動]
fonts-dejavu-mono/stable,now 2.37-8 all [インストール済み、自動]
fonts-dejavu/stable,now 2.37-8 all [インストール済み、自動]
fonts-droid-fallback/stable,now 1:8.1.0r7-1~1.gbp36536b all [インストール済み、自動]
fonts-dzongkha/stable,now 0.3-9 all [インストール済み、自動]
fonts-farsiweb/stable,now 0.4.dfsg-13 all [インストール済み、自動]
fonts-font-awesome/stable,now 5.0.10+really4.7.0~dfsg-4.1 all [インストール済み、自動]
fonts-freefont-ttf/stable,now 20211204+svn4273-2 all [インストール済み、自動]
fonts-ipafont-gothic/stable,now 00303-23 all [インストール済み、自動]
fonts-ipafont-mincho/stable,now 00303-23 all [インストール済み、自動]
fonts-ipafont/stable,now 00303-23 all [インストール済み、自動]
fonts-khmeros/stable,now 5.0-9 all [インストール済み、自動]
fonts-lato/stable,now 2.015-1 all [インストール済み、自動]
fonts-liberation-sans-narrow/stable,now 1:1.07.6-4 all [インストール済み、自動]
fonts-liberation/stable,now 1:2.1.5-3 all [インストール済み、自動]
fonts-mathjax/stable,now 2.7.9+dfsg-1 all [インストール済み、自動]
fonts-noto-cjk-extra/stable,now 1:20240730+repack1-1 all [インストール済み、自動]
fonts-noto-cjk/stable,now 1:20240730+repack1-1 all [インストール済み、自動]
fonts-noto-color-emoji/stable,now 2.048-1 all [インストール済み、自動]
fonts-noto-core/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-extra/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-mono/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-ui-core/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-ui-extra/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-unhinted/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto/stable,now 20201225-2 all [インストール済み、自動]
fonts-opensymbol/stable,now 4:102.12+LibO25.2.3-2+deb13u2 all [インストール済み、自動]
fonts-quicksand/stable,now 0.2016-2.1 all [インストール済み、自動]
fonts-symbola/stable,now 2.60-2 all [インストール済み、自動]
fonts-unikurdweb/stable,now 1.0-6 all [インストール済み、自動]
fonts-urw-base35/stable,now 20200910-8 all [インストール済み、自動]
fonts-vazirmatn-variable/stable,now 33.003-3 all [インストール済み、自動]
fonts-vlgothic/stable,now 20220612-1 all [インストール済み、自動]
libfont-afm-perl/stable,now 1.20-4 all [インストール済み、自動]
libfontconfig1/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
libfontembed1t64/stable,now 1.28.17-6 amd64 [インストール済み、自動]
libfontenc1/stable,now 1:1.1.8-1+b2 amd64 [インストール済み、自動]
libxfont2/stable,now 1:2.0.6-1+b3 amd64 [インストール済み、自動]
timgm6mb-soundfont/stable,now 1.3-5 all [インストール済み、自動]
xfonts-100dpi/stable,now 1:1.0.5 all [インストール済み、自動]
xfonts-75dpi/stable,now 1:1.0.5 all [インストール済み、自動]
xfonts-base/stable,now 1:1.0.5+nmu1 all [インストール済み、自動]
xfonts-encodings/stable,now 1:1.0.4-2.2 all [インストール済み、自動]
xfonts-scalable/stable,now 1:1.0.3-1.3 all [インストール済み、自動]
xfonts-utils/stable,now 1:7.7+7 amd64 [インストール済み、自動]

-

「日本語フォント」として、下記が入っていました:
fonts-droid-fallback
fonts-noto-cjk
fonts-ipafont-gothic
fonts-ipafont-mincho
fonts-ipafont
fonts-vlgothic

→使わないフォントは削除しても良いし、好みのフォントをインストールしても OK

 特に noto フォントには使わないフォントが多く含まれています:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -

8. システム更新:

-


1). リポジトリの同期:

$ sudo apt update
:
ヒット:1 http://security.debian.org/debian-security trixie-security InRelease
ヒット:2 http://deb.debian.org/debian trixie InRelease
ヒット:3 http://deb.debian.org/debian trixie-updates InRelease
パッケージはすべて最新です。                        

→基本のリポジトリのみで、「http://deb.debian.org/debian trixie-backports InRelease」がありません:

-


2). パッケージの更新:

$ sudo apt upgrade
:
Summary:                                                            
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

-


3). 確認:

カーネル:

$ uname -r
6.12.43+deb13-amd64

-

リリース:

$ cat /etc/os-release
:
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

→ポイントリリースは「13.1」です:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- --

9. 日本語入力:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ---

9-1. デフォルトで、「日本語入力」できました:

-


1). デスクトップ画面:

→画面右下に、入力メソッドの「uim」のアイコンが表示:

-


2). 「mousepad」を起動:

アプリケーション→アクセサリー→「mousepad」

右下の「uim」のアイコンが入力メソッドのツールボックスに変わりました:

「あ」が表示:

→日本語入力できました:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----

9-2. 参考: すべての「入力メソッド」のインストール状態を確認:

-

前回、「Debian 13.1 Xfce」をiso イメージでインストールしたところ、

多くの「入力メソッド」が、混在してインストールされていました:

ネットインストールの場合はどうなのか、確認しました:

-


1). 入力メソッドの「uim」を確認:

$ apt list uim*  --installed
:
uim-data/stable,now 1:1.9.6-1 all [インストール済み、自動]
uim-fep/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-gtk2.0-immodule/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-gtk2.0/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-gtk3-immodule/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-gtk3/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-mozc/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み、自動]
uim-plugins/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-qt5-immodule/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-qt5/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-qt6-immodule/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-qt6/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim-xim/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]
uim/stable,now 1:1.9.6-1 amd64 [インストール済み、自動]

→インストールされています:

-


2). 入力メソッドの「fcitx・fcitx5」を確認:

$ apt list fcitx* --installed
$ 

→インストールなし:

-


3). 入力メソッドの「ibus」を確認:

$ apt list ibus* --installed
$

→インストールなし:

-


4). 変換エンジンの「anthy」を確認:

-

(1). 確認:
$ apt list *anthy* --installed
:
anthy-common/stable,now 1:0.4-3 all [インストール済み、自動]
anthy/stable,now 1:0.4-3+b1 amd64 [インストール済み、自動]
libanthy1t64/stable,now 1:0.4-3+b1 amd64 [インストール済み、自動]
libanthyinput0t64/stable,now 1:0.4-3+b1 amd64 [インストール済み、自動]

→一部がインストールされています:

-

依存として、入っているツールを確認:

$ apt list kasumi
:
kasumi/stable,now 2.5+debian2-1 amd64 [インストール済み、自動]

→「anthy」がインストールされているのは、メニューにある、「Anthy 辞書ツール」が共通に使えるからみたい:

-

(2). 「Anthy 辞書ツール」は使わないので、削除する場合:
$ sudo apt remove anthy
:
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  anthy-common  kasumi  libanthy1t64  libanthyinput0t64
これを削除するには 'sudo apt autoremove' を利用してください。

REMOVING:
  anthy

Summary:
  Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0

-

$ sudo apt autoremove

-


5). 変換エンジンの「mozc」を確認:

$ apt list *mozc* --installed
:
mozc-data/stable,now 2.29.5160.102+dfsg-1.4 all [インストール済み、自動]
mozc-server/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み、自動]
mozc-utils-gui/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み、自動]
uim-mozc/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み、自動]

→「uim-mozc」がインストールされています:

設定で使うツールの「mozc-utils-gui」もインストールされています:

-

Debian 13.1 Xfce」をネットインストールすると、無駄なパッケージがインストールされません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -----

10. デスクトップやパネルの設定:

-

この辺りは好みなので、使いたい設定だけ行えば OK:

:


1). パネルの「時計」の表示を変更:

パネルの右にある「時計」を右クリック→「プロパティ」

-

時計のオプション:

レイアウト:「日付のみ」に変更:

日付

フォント: 「Sans Bold 11」に変更

フォーマット:「カスタム」に変更

その下の入力欄:「 %H:%M」に変更

→「閉じる」

-

表示を確認:

13:47

-

-


2). パネルの「時計」にマウスを置いたときの、Tips の表示を変更:

パネルの右にある「時計」を右クリック→「プロパティ」

-

外観

ツールチップの形式:

「カスタム」→「%Y年%B%d日 (%a)」に変更:

-

表示を確認:

「時計」にマウスを置くと、年月日曜日を確認できます:

2025年8月29日 (金)

-

-


3). ショートカットキー: ウィンドウ画面をタイル表示:

「グローバルアクション」の定義で、「左のWindows」キーは使われているので、
「左のWindows」キーを使った設定をしても無効です。

なので、代わりに「Ctrl+Shift」キーを使ってみました:

-

ショートカットキーを修正:

「アプリケーション」 →「設定」→「ウィンドウマネージャー」→「キーボード」タブ

-

(1/2 画面で、左に移動)
  • 「ウィンドウを画面左にタイル表示」→「編集」
 「Ctrl+Shift」+ 「←」   表示: Shift + Ctrl + Left

-

(1/2 画面で、右に移動)
  • 「ウィンドウを画面右にタイル表示」→「編集」
 「Ctrl+Shift」+ 「→」   表示: Shift + Ctrl + Right

-

(1/4 画面で、右上に移動)
  • 「ウィンドウを画面右上にタイル表示」→「編集」
 「Ctrl+Shift」+ 「↑」   表示: Shift + Ctrl + Up

-

(1/4 画面で、右下に移動)
  • 「ウィンドウを画面右下にタイル表示」→「編集」
 「Ctrl+Shift」+ 「↓」    表示: Shift + Ctrl + Down

-

→「閉じる」

-

もう一度、同じ組み合わせを押せば、元の位置とサイズに戻ります:

-

-


4). ショートカットキー: 「Windows + Enter」で、「端末」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: exo-open --launch TerminalEmulator
ショートカット: Super+Return    ←(Windows+Enter)

-

→「閉じる」

-

ちなみに、ウィンドウのタイトルバーをダブルクリックすると、全画面表示:

-

-


5). ショートカットキー: 「Windows + T」で、「テキストエディタ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

-

「mousepad」を起動したい場合:

コマンド: mousepad

もしくは、

「featherpad」を起動したい場合:

コマンド: featherpad

-

ショートカット: Super+T    ←(Windows+T)

-

→「閉じる」

-

-


6). ショートカットキー: 「Windows + W」で、「ブラウザ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

-

既存の少し古い「firefox-esr」を起動したい場合:

コマンド: firefox-esr

もしくは、

ダウンロードしてインストールした、最新の「firefox」を起動したい場合:

コマンド: firefox

-

ショートカット: Super+W    ←(Windows+W)

-

→「閉じる」

-

-


7). ショートカットキー: 「Windows + N」で、「ファイルマネージャ」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: thunar
ショートカット: Super+N    ←(Windows+N)

-

→「閉じる」

-

-


8). ウィンドウのタイトルバーの「巻き上げ」ボタンを移動:

すでに「巻き上げ」ボタンは追加されていますが、ボタンの位置がイマイチなので、左に移動しました:

-

「アプリケーション」→「設定」→「ウィンドウマネージャー」

「スタイル」タブ:

-

ボタンの配置:

右下の「表示する:」にある、「↑」ボタンに注目:

「タイトル」「↑」

↓ マウスでドラッグして、移動:

「↑」「タイトル」

-

→「閉じる」

-

-


9). デスクトップのアイコンを「ゴミ箱」のみにしました:

デスクトップの空きで右クリック→「デスクトップの設定」→「ファイル/ランチャーアイコン」タブ:

-

デフォルトのアイコン:

「ホーム」と「ファイルシステム」のみ、チェックを外しました:

→「閉じる」

-

ちなみに、「項番 8).」で、ウィンドウのタイトルバーの「巻き上げ」ボタンが左に移動しています:

-

「ゴミ箱」のみのデスクトップ:

-

-


10). ウィンドウのタイトルバーのテーマを変更:

この辺りは、好みです:

-

「アプリケーション」 →「設定」→「ウィンドウマネージャー」→「スタイル」タブ

-

テーマ

「Default」→「Doloa」に変更:

-

→「閉じる」

-

「端末」画面にて、ウィンドウのタイトルバーを確認:

→選択されているウィンドウがわかりやすいし、タイトルバーが細いです:
 色違いのテーマがあると良いかも:

-

-


11). パネルの仮想デスクトップの数「1〜4」を減らしました:

パネルの「仮想デスクトップ」を右クリック→「ワークスペースの設定」→「全般」タブ:

レイアウト

ワークスペースの数: 「4」→「2」に変更:

-

→「閉じる」

-

-


12). パネルの背景色を変更:

この辺りは、好みです:

-

「アプリケーション」 →「設定」→「パネル」→「外観」タブ

-

背景

スタイル: 「単一色」に変更:

配色: 「白色」→「1つ目の水色」に変更:

-

→「閉じる」

-

パネルを確認:

→パネルの色を変えると、VirtualBox のパネルとの境がわかりやすくなります:

パネルの色は、デスクトップの壁紙と色合いが合うものが良さそう:

-

→「項番 11).」で、パネルの仮想デスクトップの数を「2」に減らしています:

-

-


13). パネルに「スピーカ」アイコン(音量調整)を追加:

パネルの空きで右クリック→「パネル」→「パネルの設定」→「アイテム」タブ:

左下の「+追加」をクリック→「PulseAudio プラグイン→「+追加」→「閉じる」

-

「PulseAudio プラグインを選んで、右の「上矢印」で、時計の上の、セパレーターの上まで移動:

-

-

→「閉じる」

-

「ゲーム」アプリで、音量調整できるか確認:

「アプリケーション」→「ゲーム」→「Kajongg 中国式四人麻雀」を起動:

「Play」で開始

→牌を捨てるときに英語の音声が出るので、音量調整できるか確認:

-

-


14). 上にあったパネルを画面下に移動:

-

(1). 上のパネルを移動する前に、下のパネルを削除します:

下のパネルの空きで右クリック→「パネル」→「パネルの設定」→一番上に「パネル2」が表示されていることを確認:

右上の「ー」をクリックして、「パネル2」を削除:

-

もし、「パネル2」(ドック)を残したいのであれば、パネルを右か左に移動:

ロックを解除してから、モードを「垂直」に変更して、移動します:

-

(2). 「パネルの設定」画面の、一番上に「パネル1」が表示:

「パネルをロックする」のチェックを外します:

→パネルが赤枠で囲まれ、行頭と行末に「縦棒」が表示されます:

-

(3). マウスでその「縦棒」をつかむと手のひらになるので、そのまま画面下に移動します:

-

(4). 画面下に移動できたら、先ほどの「パネルの設定」画面にて、

「パネルをロックする」にチェックします:

-

→「閉じる」

-

(5). 参考: もし、パネルを右か左に移動したい場合は、

ロックを解除してから、モードを「垂直」に変更して、移動します:

-

移動後:

→「項番 12).」にて、パネルの背景色を変更しています:

-

-


15). ファイルマネージャ「thunar」の日付の形式を変更:

こちら」を参照:

-

-


16). パネルの「アプリケーション」メニューの「アプリケーション」文字を変更:

パネルの「アプリケーション」メニューを右クリック→「プロパティ」

-

-

ボタンタイトル:
「アプリケーション」の文字を →「メニュー」に変更:

もしくは、

「アプリケーション」の文字を →「半角スペース」で、クリックできる横幅を調整:

-

→「閉じる」

-

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- -

11. フォントのインストール:

-

個人的によく使っているフォントを、インストールしました。 インストールは任意です。

-

-


1). 「MiguMix」フォントのインストール:

$ sudo apt install fonts-migmix
:
Installing:
  fonts-migmix

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0

-

次のフォントを含みます:
- プロポーショナルフォント(ブラウザ用)→ Migu 1P、Migu 1C、MigMix 1P、MigMix 2P
- 等幅フォント(テキストエディタ用)   → Migu 1M、Migu 2M、MigMix 1M、MigMix 2M

-

フォントの横幅が細めなので、狭い画面で多くの情報を表示できるのが利点です:

-

-


2). 「源ノ角ゴシック Code JP」フォントのインストール:

-

(1). ツールのインストール:
$ sudo apt install wget
:
Installing:                                                 
  wget

-

(2). フォントのインストール:

こちら」を参照:

ダウンロードに時間がかかるので、ネットが空いている時間に行うのが良いです:

-

英数字と日本語が「2 : 3」の幅の「等幅フォント」です。 日本語と英数字が混在しても、バランスが良く見やすいです;

9 ポイントくらいに小さくすると、見やすくて、多くの情報が表示できます。

「1 : 2」ではないので、「端末」等では使えません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- --

12. アプリのインストール:

-

個人的によく使っているアプリを、インストールしました。 インストールは任意です。

-

-


1). PC の詳細確認に便利な「screenfetch」をインストール:

一度実行したら、後は役に立ちません:

こちらに実行時の表示を載せました。なので、インストールする必要はありません:

-

(1). インストール:
$ sudo apt install screenfetch
:
Installing:                                                 
  screenfetch

Installing dependencies:
  libid3tag0  libimlib2t64  scrot

Summary:
  Upgrading: 0, Installing: 4, Removing: 0, Not Upgrading: 0

→OpenBox で使われる、スクリーンキャプチャの「scrot」が依存でインストールされました:

-

(2). PC 使用情報の表示(ロゴ表示なし):

仮想マシンの「Debian 13.1 Xfce」で実行した場合:

$ screenfetch -n
:
 user@user-pc                              ←(ユーザ名@コンピュータ名)
 OS: Debian 13 trixie                       ←(元のディストリビューション)
 Kernel: x86_64 Linux 6.12.43+deb13-amd64   ←(カーネル)64bit
 Uptime: 4h 29m
 Packages: 1525
 Shell: bash
 Resolution: 954x984                        ←(VertualBox での解像度)★
 DE: Xfce                                   ←(デスクトップは Xfce)★
 WM: Xfwm4                                  ←(ウィンドウマネージャは Xfwm4)★
 WM Theme: Daloa                            ←(ウィンドウのテーマは、Daloa)
 GTK Theme: Xfce [GTK2]
 Icon Theme: Tango
 Font: Sans 10
 Disk: 4.5G / 32G (15%)
 CPU: 12th Gen Intel Core i5-12450H @ 8x 2.496GHz ←(CPU x8)
 GPU: VMware SVGA II Adapter
 RAM: 772MiB / 7725MiB

-

-


2). 最新の「Firefox」ブラウザのESR 版をインストール:

-

(1). すでに少し古いバージョンの「Firefox ESR」がインストールされています:
起動して確認:

「アプリケーション」→「インターネット」→「Firefox ESR」

-

設定: (Setting...)
言語

「日本語」 表示でない場合は、追加して、変更:

-

フォント

既定のフォント:  →既定「VL Gothic」 16

-

(2). 最新の「Firefox」ESR 版をインストール:
→手順は「項番 14.」を参照:

-

今回は、最新版をダウンロードしました:

ダウンロードに時間がかかるので、ネットが空いている時間に行うのが良いです:

-

(3). 任意: 既存の「Firefox ESR」を削除:
$ sudo apt remove firefox-esr firefox-esr-l10n-ja
:
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libevent-2.1-7t64
これを削除するには 'sudo apt autoremove' を利用してください。

REMOVING:
  firefox-esr  firefox-esr-l10n-ja

Summary:
  Upgrading: 0, Installing: 0, Removing: 2, Not Upgrading: 0

-

$ sudo apt autoremove
:
REMOVING:                                                   
  libevent-2.1-7t64

Summary:
  Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0

-

参考: 削除後、Windows+W で「ブラウザ」を起動してみる:
テキストブラウザの「Lynx」が起動し、「端末」に「Lynx」画面が表示:

→スペースキーを数回

→q

本当に終了してもよろしいですか?(y)

→y

-

ショートカットキーに、「コマンド: exo-open --launch WebBrowser」を指定しているからです:

「アプリケーション」→「設定」→「デフォルトアプリケーション」

ウェブブラウザー: Mozilla Firefoxに変更:

-

もしくは、

ショートカットキーにて、「コマンド: firefoxを指定します:

-

-


3). テキストエディタ「Featherpad」のインストール:

-

(1). インストール:
$ sudo apt install featherpad
:
Installing:                                                 
  featherpad

Installing dependencies:
  featherpad-l10n  libqt6printsupport6

Summary:
  Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0

-

(2). バージョン:
$ featherpad --version
FeatherPad 1.6.1

-

(3). 設定は「こちら」を参照:

-

-


4). ファイアウォール「gufw」のインストール:

$ sudo apt install gufw
:
Installing:                                                 
  gufw

Installing dependencies:
  gir1.2-javascriptcoregtk-4.1  iptables   libip6tc2
  gir1.2-webkit2-4.1            libip4tc2  ufw

提案パッケージ:
  firewalld  rsyslog

Summary:
  Upgrading: 0, Installing: 7, Removing: 0, Not Upgrading: 0

-

設定は、「こちら」を参照:

-

ssh 接続して使う場合は、「項番 2)」のファイアウォールの開始: は行いません:

-

-


5). ディスクの管理の「disks」のインストール:

$ sudo apt install gnome-disk-utility
:
Installing:                                                 
  gnome-disk-utility

Installing dependencies:
  cracklib-runtime    libcanberra-gtk3-module  libpwquality-common
  libcanberra-gtk3-0  libcrack2                libpwquality1

Summary:
  Upgrading: 0, Installing: 7, Removing: 0, Not Upgrading: 0

-

起動:

「アプリケーション」→「アクセサリ」→「ディスク」

-

-

使い方は、「こちら」を参照:

-

-


6). ディスクのパーティション管理の「gparted」のインストール:

$ sudo apt install gparted
:
Installing:                                                 
  gparted

Installing dependencies:
  gparted-common      libglibmm-2.4-1t64  libparted-fs-resize0t64
  libatkmm-1.6-1v5    libgtkmm-3.0-1t64   libsigc++-2.0-0v5
  libcairomm-1.0-1v5  libpangomm-1.4-1v5

提案パッケージ:
  dmraid  jfsutils  mtools        reiserfsprogs  xfsprogs  libparted-dev
  gpart   kpartx    reiser4progs  udftools       yelp

Summary:
  Upgrading: 0, Installing: 9, Removing: 0, Not Upgrading: 0

-

起動:

「アプリケーション」→「システム」→「Gparted」

-

→「スワップパーティション」があることに注目:

-

使い方は、「こちら」を参照:

-

-


7). 音楽プレーヤの「audacious」のインストール:

$ sudo apt install audacious
:
Installing:                                                 
  audacious

Installing dependencies:
  audacious-plugins       libcddb2             libopusfile0
  audacious-plugins-data  libcdio-cdda2t64     libqt6multimedia6
  libaudcore5t64          libcue2              libqt6openglwidgets6
  libaudgui6              liblirc-client0t64   libsidplayfp6
  libaudqt3               libmms0              libsndio7.0
  libaudtag3t64           libneon27t64-gnutls

提案パッケージ:
  lirc  sidplayfp  sndiod

Summary:
  Upgrading: 0, Installing: 18, Removing: 0, Not Upgrading: 0

-

バージョン:
$ audacious --version
Audacious 4.4.2 (Debian package)

-

起動:

「アプリケーション」→「マルチメディア」→「Audacious

-

詳細は、「こちら」を参照:

-

-


8). 音楽タグの管理の「EasyTAG」のインストール:

$ sudo apt install easytag
:
Installing:                                                 
  easytag

Installing dependencies:
  docbook-xml   fonts-dejavu-extra  libyelp0        sgml-data  yelp-xsl
  fonts-dejavu  libid3-3.8.3v5      python3-distro  yelp

提案パッケージ:
  docbook           docbook-dsssl  libid3-tools  w3-recs  libxml2-utils
  docbook-defguide  docbook-xsl    perlsgml      opensp

Summary:
  Upgrading: 0, Installing: 10, Removing: 0, Not Upgrading: 0

-

バージョン:
$ easytag --version
easytag 2.4.3
Website: https://wiki.gnome.org/Apps/EasyTAG

-

起動:

「アプリケーション」→「マルチメディア」→「EasyTAG」

-

詳細は、「こちら」を参照:

-

「EasyTAG」の活用は、「こちら

たくさんの音楽ファイルを持っていて整理するときに便利です。

-

-


9). 画像加工の「kolourpaint」のインストール:

$ sudo apt install kolourpaint
:
Installing:                                                 
  kolourpaint

Installing dependencies:
  kactivitymanagerd         libkf6parts6
  kded6                     libkf6runner6
  keditbookmarks            libkf6service-bin
  kio6                      libkf6service-data
  kwallet6                  libkf6service6
  libhfstospell11           libkf6solid-data
  libkf6archive-data        libkf6solid6
  libkf6archive6            libkf6sonnet-data
  libkf6auth-data           libkf6sonnetcore6
  libkf6authcore6           libkf6sonnetui6
  libkf6bookmarks-data      libkf6textwidgets-data
  libkf6bookmarks6          libkf6textwidgets6
  libkf6bookmarkswidgets6   libkf6wallet-data
  libkf6breezeicons6        libkf6wallet6
  libkf6codecs-data         libkf6walletbackend6
  libkf6codecs6             libkf6widgetsaddons-data
  libkf6colorscheme-data    libkf6widgetsaddons6
  libkf6colorscheme6        libkf6windowsystem-data
  libkf6completion-data     libkf6windowsystem6
  libkf6completion6         libkf6xmlgui-data
  libkf6config-bin          libkf6xmlgui6
  libkf6config-data         libkirigami-data
  libkf6configcore6         libkirigami6
  libkf6configgui6          libkirigamidelegates6
  libkf6configwidgets-data  libkirigamidialogs6
  libkf6configwidgets6      libkirigamilayouts6
  libkf6coreaddons-data     libkirigamiplatform6
  libkf6coreaddons6         libkirigamiprimitives6
  libkf6crash6              libkirigamiprivate6
  libkf6dbusaddons-bin      libksane-data
  libkf6dbusaddons-data     libksanecore6-1
  libkf6dbusaddons6         libksanewidgets6-6
  libkf6doctools6           libplasmaactivities6
  libkf6globalaccel-data    libpolkit-qt6-1-1
  libkf6globalaccel6        libqca-qt6-2
  libkf6guiaddons-bin       libqca-qt6-plugins
  libkf6guiaddons-data      libqt6core5compat6
  libkf6guiaddons6          libqt6quickcontrols2-6
  libkf6i18n-data           libqt6quickshapes6
  libkf6i18n6               libqt6quicktemplates2-6
  libkf6i18nqml6            libqt6quickwidgets6
  libkf6iconthemes-bin      libqt6sql6
  libkf6iconthemes-data     libqt6sql6-sqlite
  libkf6iconthemes6         libqt6texttospeech6
  libkf6iconwidgets6        libqt6xml6
  libkf6itemmodels6         libvoikko1
  libkf6itemviews-data      libxcb-res0
  libkf6itemviews6          media-player-info
  libkf6jobwidgets-data     plasma-activities-bin
  libkf6jobwidgets6         qml6-module-org-kde-kirigami
  libkf6kcmutils-bin        qml6-module-qtqml
  libkf6kcmutils-data       qml6-module-qtqml-models
  libkf6kcmutils6           qml6-module-qtqml-workerscript
  libkf6kcmutilscore6       qml6-module-qtquick
  libkf6kcmutilsquick6      qml6-module-qtquick-controls
  libkf6kiocore6            qml6-module-qtquick-layouts
  libkf6kiofilewidgets6     qml6-module-qtquick-shapes
  libkf6kiogui6             qml6-module-qtquick-templates
  libkf6kiowidgets6         qml6-module-qtquick-window
  libkf6notifications-data  sonnet6-plugins
  libkf6notifications6      switcheroo-control
  libkf6parts-data          systemsettings

提案パッケージ:
  voikko-fi  hspell

Summary:
  Upgrading: 0, Installing: 125, Removing: 0, Not Upgrading: 0

-

バージョン:

$ kolourpaint --version
kolourpaint 25.04.0

-

起動:

「アプリケーション」→「グラフィックス」→「KolourPaint」

-

詳細は、「こちら」を参照:

-

-


10). PDF ビュワー「qpdfview」のインストール:

-

(1). インストール:
$ sudo apt install qpdfview
:
Installing:                                                 
  qpdfview

Installing dependencies:
  libpoppler-qt6-3t64  qpdfview-djvu-plugin         qpdfview-ps-plugin
  libqt6concurrent6    qpdfview-pdf-poppler-plugin  qpdfview-translations

Summary:
  Upgrading: 0, Installing: 7, Removing: 0, Not Upgrading: 0

→インストールされたのは、「qpdfview 0.5.0」です:

-

(2). 起動して確認:

「アプリケーション」→「オフィス」→「qpdfview」を起動:

-

→ヘルプ以外は日本語化されています:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ---

13. ゲームのインストール:

-

個人的によく使っているゲームを、インストールしました。 インストールは任意です。

-

-


1). 「swell-foop」をインストール:

「さめざめ」もどきで、音が出ないのが惜しいです。

-

インストール:
$ sudo apt install swell-foop
:
Installing:                                                 
  swell-foop

Installing dependencies:
  libadwaita-1-0  libgnome-games-support-2-4      libxmlb2
  libappstream5   libgnome-games-support-common2
  libgee-0.8-2    libstemmer0d

Summary:
  Upgrading: 0, Installing: 8, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.gnome.SwellFoop.desktop

↓ 行を修正:

Name[ja]=Swell Foop さめざめもどき

-

起動:

「アプリケーション」→「ゲーム」→「Swell Foop さめざめもどき」

-

実行時の画面:

-

-


2). 「マインスイーパ」のインストール:

-

インストール:
$ sudo apt install kmines
:
Installing:                                                 
  kmines

Installing dependencies:
  docbook-xsl        libkf6newstuff-data     libqt6webenginecore6-bin
  isa-support        libkf6newstuffcore6     libqt6webenginewidgets6
  kdoctools6         libkf6newstuffwidgets6  libxapian30
  khelpcenter        libkf6package-data      libxml2-utils
  khelpcenter-data   libkf6package6          qml6-module-org-kde-config
  kpackagetool6      libkf6syndication6      qml6-module-org-kde-kcmutils
  libevent-2.1-7t64  libkf6texttemplate6     qml6-module-org-kde-newstuff
  libkdegames6-6     libqt6positioning6      qml6-module-qtcore
  libkdegames6-i18n  libqt6webchannel6       sse3-support
  libkf6attica6      libqt6webengine6-data
  libkf6configqml6   libqt6webenginecore6

提案パッケージ:
  dbtoepub                | docbook-xsl-doc  libxalan2-java
  docbook-xsl-doc-html    docbook-xsl-saxon  libxslthl-java
  | docbook-xsl-doc-pdf   fop                xalan
  | docbook-xsl-doc-text  libsaxon-java      xapian-tools

Summary:
  Upgrading: 0, Installing: 32, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kmines.desktop

↓ 行を修正:

Name[ja]=KMines マインスイーパ

-

起動:

「アプリケーション」→「ゲーム」→「KMines マインスイーパ

-

実行時の画面:

-

-


3). 「ソリティア」(クロンダイク)のインストール:

カードゲーム集なので、いくつかのカードゲームで遊べます:

-

インストール:
$ sudo apt install aisleriot
:
Installing:                                                 
  aisleriot

Installing dependencies:
  guile-3.0-libs  libgc1

提案パッケージ:
  gnome-cards-data

Summary:
  Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0

-

起動:

「アプリケーション」→「ゲーム」→「AisleRiot ソリティア

-

実行時の画面:

-

-


4). 「四川省」 (Shisen-Sho) のインストール:

2 回以内の折れで、同じパイを消して行きます。パイが無くなると重力で落ちます。

-

インストール:
$ sudo apt install kshisen
:
Installing:                                                 
  kshisen

Installing dependencies:
  kdegames-mahjongg-data-kf6  libkmahjongg6

Summary:
  Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kshisen.desktop

↓ 行を修正:

Name[ja]=Shisen-Sho 四川省

-

起動:

「アプリケーション」→「ゲーム」→「Shisen-Sho 四川省

-

実行時の画面:

-

-


5). 「上海」 (KMahjongg) のインストール:

-

インストール:
$ sudo apt install kmahjongg
:
Installing:                                                 
  kmahjongg

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kmahjongg.desktop

↓ 行を修正:

Name[ja]=KMahjongg 上海

-

起動:

「アプリケーション」→「ゲーム」→「KMahjongg 上海」

-

実行時の画面:

-

-


6). 「中国式四人麻雀」 (Kajongg) のインストール:

男女のロボットが、英語の音声付きで相手をしてくれます。中国式麻雀なのが惜しいところ:

-

  • Python」のバージョンがアップしても、動作に支障はありません。

-

依存の「vorbis-tools」のインストール:
$ sudo apt install vorbis-tools
:
Installing:                                                 
  vorbis-tools

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0

-

「kajongg」をインストール:
$ sudo apt install kajongg
:
Installing:                                                 
  kajongg

Installing dependencies:
  libqt6svgwidgets6     python3-hyperlink         python3-pyqt6
  libqt6test6           python3-incremental       python3-pyqt6.qtsvg
  python3-attr          python3-inflect           python3-pyqt6.sip
  python3-autocommand   python3-jaraco.context    python3-qtpy
  python3-automat       python3-jaraco.functools  python3-service-identity
  python3-bcrypt        python3-more-itertools    python3-twisted
  python3-cffi-backend  python3-openssl           python3-typeguard
  python3-click         python3-packaging         python3-typing-extensions
  python3-constantly    python3-pkg-resources     python3-zope.interface
  python3-cryptography  python3-pyasn1
  python3-hamcrest      python3-pyasn1-modules

提案パッケージ:
  python-attr-doc               python3-setuptools      python3-pampy
  python-cryptography-doc       python3-qtpy-pyqt5      python3-serial
  python3-cryptography-vectors  | python3-qtpy-pyqt6    python3-tk
  python-openssl-doc            | python3-qtpy-pyside6  python3-wxgtk4.0

Summary:
  Upgrading: 0, Installing: 32, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kajongg.desktop

↓ 行を追加:

Name[ja]=Kajongg 中国式四人麻雀

-

起動:

「アプリケーション」→「ゲーム」→「Kajongg 中国式四人麻雀」

「Players」でプレイヤーを登録後、「Play」で開始

-

実行時の画面:

→牌を捨てるときの、英語の音声が聞けます:

-

-


7). 「フローズン・バブル」 (frozen-bubble) のインストール:

角度を決めてカラーボールを発射して、同じ色が 3個以上くっつくと落っこちます。

すべて落とせばクリア

-

インストール:
$ sudo apt install frozen-bubble
:
Installing:                                                 
  frozen-bubble

Installing dependencies:
  fonts-sil-gentium        libfile-sharedir-perl  libsdl-pango1
  fonts-sil-gentium-basic  libfile-which-perl     libsdl-perl
  frozen-bubble-data       libmad0                libsdl-ttf2.0-0
  libalien-sdl-perl        libmikmod3             libsdl1.2debian
  libcapture-tiny-perl     libsdl-gfx1.2-5        libtie-simple-perl
  libclass-inspector-perl  libsdl-image1.2
  libcompress-bzip2-perl   libsdl-mixer1.2

提案パッケージ:
  fonts-freefont-ttf

Summary:
  Upgrading: 0, Installing: 20, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/frozen-bubble.desktop

↓ 行を追加:

Name[ja]=Frozen-Bubble フローズン・バブル

-

起動:

「アプリケーション」→「ゲーム」→「Frozen-Bubble フローズン・バブル」

-

実行時の画面:

-

-


8). 「宇宙船スクロールシューティングゲーム」(kobodeluxe) のインストール:

-

インストール:
$ sudo apt install kobodeluxe
:
Installing:                                                 
  kobodeluxe

Installing dependencies:
  kobodeluxe-data

Summary:
  Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/kobodeluxe.desktop

↓ 行を追加:

Name[ja]=kobodeluxe 宇宙船スクロールシューティング

-

起動:

「アプリケーション」→「ゲーム」→「kobodeluxe 宇宙船スクロールシューティング」

-

実行時の画面:

-

キビキビ動きます。速すぎるので難しいです。 レーダーで自分の位置を確認しながら、基地のパイプの先の球体にビームを当てて破壊します。

shift: 前後にビーム
矢印: 方向転換
スペース: 一時停止

-

-


9). LbreakoutHD(ブロックくずし もどき)のインストール:

-

インストール:
$ sudo apt install lbreakout2
:
Installing:                                                 
  lbreakout2

Installing dependencies:
  lbreakouthd       libsdl2-image-2.0-0  libsdl2-ttf-2.0-0
  lbreakouthd-data  libsdl2-mixer-2.0-0  libxmp4

Summary:
  Upgrading: 0, Installing: 7, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/lbreakouthd.desktop

↓ 行を追加:

Name[ja]=LbreakoutHD ブロックくずし

-

起動:

「アプリケーション」→「ゲーム」→「LbreakoutHD ブロックくずし」

-

実行時の画面:

-

ラケットで受けている途中で、お宝に気を奪われると、受け損ないます:

→落ちてくるのがお宝と限らないのが面白いところ。 ラケットの幅が広くなるお宝と狭くなるお宝があります。ボールが2個に増えるのもありました。

-

-


10). LTris(テトリス もどき)のインストール:

-

インストール:
$ sudo apt install ltris
:
Installing:                                                 
  ltris

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/ltris2.desktop

↓ 行を追加:

Name[ja]= LTris2 テトリス

-

起動:

「アプリケーション」→「ゲーム」→「LTris2 テトリス

-

実行時の画面:

-

落ちる場所がぼんやりと表示されて親切だけど、落ち方が乱暴なテトリスです。

操作が矢印キーだけなので窮屈です。スペースキーで落とすか、回転してほしいです。

-

-


11). open-invaders(スペースインベーダー もどき)のインストール:

今回は残念ながら、起動はしますが、キーを受け付けないので、ゲームを開始できません:

-

iso イメージからインストールした(無駄なパッケージが多い)「Debian 13.1 Xfce」では動いたので、

他のアプリの依存で補完されている可能性があります:

何かしらのパッケージが足りないようです:

-

インストール:
$ sudo apt install open-invaders
:
Installing:                                                 
  open-invaders

Installing dependencies:
  libaldmb1t64  liballegro4.4t64  libdumb1t64  open-invaders-data

Summary:
  Upgrading: 0, Installing: 5, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/open-invaders.desktop

↓ 行を追加:

Name[ja]=open-invaders スペースインベーダー

-

起動:

「アプリケーション」→「ゲーム」→「open-invaders スペースインベーダー

-

実行時の画面:

懐かしのアーケードゲームです。キーの反応がイマイチなのがゲーム性を高めています。

-

左 shift: ビーム発射
矢印: 移動
Q: 終了

→左 shift キーがビーム発射なので、注意:

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

参考: 不足しているパッケージを確認:
$ apt info open-invaders

-

上記に記述されている「依存パッケージ」:

libaldmb1t64
liballegro4.4t64 (>= 2:4.4.3.1)
libc6 (>= 2.38)
libdumb1t64
libgcc-s1 (>= 3.0)
libstdc++6 (>= 13.1)
open-invaders-data (= 0.3-10)

-

インストールされているか確認:

$ apt list libaldmb1t64 liballegro4.4t64 libc6 libdumb1t64 libgcc-s1 libstdc++6 open-invaders-data
libaldmb1t64/stable,now 1:0.9.3-7 amd64 [インストール済み、自動] ◯
liballegro4.4t64/stable,now 2:4.4.3.1-5+b2 amd64 [インストール済み、自動] ◯
libc6/stable,now 2.41-12 amd64 [インストール済み] ◯
libdumb1t64/stable,now 1:0.9.3-7 amd64 [インストール済み、自動] ◯
libgcc-s1/stable,now 14.2.0-19 amd64 [インストール済み] ◯
libstdc++6/stable,now 14.2.0-19 amd64 [インストール済み] ◯
open-invaders-data/stable,now 0.3-10 all [インストール済み、自動] ◯

→上記以外に、何かしらのパッケージが必要みたい:

-

「開発環境」では動いても、「まっさらな環境」では動かないことは、よくあります:

つまり、依存情報の記述に漏れがありそう:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ----

14. 任意: 最新の「Firefox」のESR 版をインストール:

-

すでに ESR 版の「Firefox」をインストールしていたら、作業は要りません:

Firefox」の ESR 版は、更新回数が減り、ブラウザの動きが軽いので、オススメです:

-

古いバージョンをダウンロードすると、自動で最新まで上がりますが、バージョンは「128.14.0esr」辺りで更新が止まります。

現在、128 から ESR のメジャーバージョン 140 へ移行中のようです。

ESR の旧バージョンをダウンロードした場合、移行期間が終了すると、自動的に新バージョンにアップデートされます。

-

今回は最新をダウンロードして、インストールしました:

-

インストールでの注意点:
  • ファイルの圧縮が「.tar.xz」に変わっているので、解凍する時は注意:

  • 初めての起動で、「イタリア語」に似た言語?で表示された場合は、設定で「日本語」を選べば OK:

-


1). インストールに必要なパッケージがあるか確認:

下記のパッケージがないと、起動時にエラーします:

$ apt list bzip2
:
bzip2/stable,now 1.0.8-6 amd64 [インストール済み、自動]

-

$ apt list libdbus-glib-1-2
:
libdbus-glib-1-2/stable,now 0.114-1 amd64 [インストール済み、自動]

-

$ apt list wget
:
wget/stable,now 1.25.0-2 amd64 [インストール済み]

-


2). ダウンロードするフォルダを準備:

$ mkdir -p ~/ダウンロード/apps

英語の環境でホームフォルダに「~/Download/」があっても、気にしません。
単に「~/ダウンロード/apps」が作成されるだけです:

-


3). ESR 版の「Firefox」をダウンロード:

ブラウザー: Firefox Extended Support Release
プラットフォーム: Linux 64-bit
言語: Japanese - 日本語

-

2025-09-17 現在:

-

(1). ダウンロード:
$ cd ~/ダウンロード/apps/
$ sudo wget https://archive.mozilla.org/pub/firefox/releases/140.3.0esr/linux-x86_64/ja/firefox-140.3.0esr.tar.xz

-

(2). ダウンロードしたファイルを確認:
$ cd ~/ダウンロード/apps/
$ ls -1
firefox-140.3.0esr.tar.xz

-


4). ダウンロードしたファイルを展開:

パス指定が正しいか確認:

$ ls firefox-*.tar.xz
:
firefox-140.3.0esr.tar.xz

-

展開:

$ tar -xf firefox-*.tar.xz
$

→プロンプトが返るまで時間がかかります。

-

確認:

$ ls -1
:
firefox
firefox-140.3.0esr.tar.xz

-


5). 展開して出来た firefox フォルダを「/opt」に移動:

$ sudo mv firefox /opt

-

確認:

$ ls -1 /opt
:
VBoxGuestAdditions-7.1.10
firefox

-


6). Firefox の実行ファイルへのシンボリックリンクを作成:

$ sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox

-


7). Firefox の「デスクトップファイル」のコピーをダウンロード

$ sudo wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications

-


8). 「仮想マシン」の「Debian 13.1 Xfce」を再起動:

一度、再起動しないと ESR 版は起動されませんでした:

-

すべてのウィンドウを閉じてから、

$ sudo reboot

-


9). 「Firefox」の実行ファイルへのパスが見えているか確認:

$ which firefox
:
/usr/local/bin/firefox

-


10). 「Firefox」を起動:

「アプリケーション」→「インターネット」→「Firefox Web Browser」

-

→ブラウザが起動されました:

「日本語」で表示されました:

-


11). バージョンの確認:

-

(1). ブラウザ右上の「横三本線」ボタン(設定)→「ヘルプ」→「Firefoxについて」

「Extended Support Relese」(ESR) の文字列が表示されていることを確認:

(最新をダウンロードしたので、)最新でした:

-

(2). コマンドでの確認:
$ firefox --version
:
Mozilla Firefox 140.3.0esr

→末尾に「esr」が付いていることを確認

最新のバージョンです:

-

(3). もし、最新のバージョンでなければ、ブラウザの起動時に自動で更新されます:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- -----

15. 気になるところ:

-

ネット インストール:

(1). 利点:
- ダウンロードする、iso イメージのサイズが小さくて、ダウンロード時間も短いです:
- 立ち上げの iso イメージは「共通」で、「デスクトップ環境」はインストール中に選択します:
- 日本語キーボードがちゃんと「日本語キーボード」の配列になります:
- すぐに日本語入力できます(uim-mozc)
- ネットインストールすると、無駄な「言語パッケージ」や「フォント」がインストールされません:

-

(2). 難点:
- インストール時にネット環境が必要なこと:
- ネットが空いている時間帯でないと時間がかかること:
- 慣れない「グラフィカルインストーラ」なので、少し戸惑うこと:

-

(3). 入力メソッドは、「uim-mozc」です:

そのまま使っても、使い慣れた「ibus-mozc」をインストールしても良いです:

→もし、「ibus-mozc」をインストールするときは「こちら」を参照:

-

-


まとめ

今回、「VirtualBox 7.1.10」に「Debian 13 trixieXfce を「ネット インストール」しました。

-

「ネット インストール」すると、無駄なパッケージがインストールされないので、

無駄なパッケージが気になるなら、「Debian」をインストールするときは「ネットインストール」にすると楽です:

-

-


-

-

    目次

-

「投稿の先頭 へ」

-

-


-

「この目次 の先頭へ」

「本編の目次 に戻る」

-

「VirtualBox 7.1.10」に、「Debian 13.1 Xfce」(trixie) をインストール〈H178〉

登録日: 2025-09-12 更新日: 2025-09-13

前回 、「Xubuntu 24.04 LTS」に「VirtualBox 7.1.10」をインストールしました。

-

今回 は、その「VirtualBox」の仮想マシンに、ゲストOS として「Debian 13.1 trixie」をインストールしました:

-

Debian 13 trixie」は、2025年8月に公開されたばかりの「Debian」の安定版です。

ISO イメージは、軽くて使い慣れた「Xfce」デスクトップ環境を選択しました。

-

その備忘録です。

-

-

使用したPC は、新しく購入した ミニPC「MINISFORUM NAB5」です。
プロセッサは「Core i5-12450H」で、メモリ 16GB、SSD 512GB です。

-

(注)リンクを戻るときはブラウザの左上の「←」をクリック
Android スマホであれば「ホーム」ボタン隣の「<」をタップ

-

-


目次

-

今回の作業:

-

  1. 「ゲストOS」のISO イメージをダウンロード:

  2. 「仮想マシン」の作成:

  3. 「Debian 13.1 Xfce」のインストール:

  4.  キーボードレイアウトを「日本語キーボード」に修正:

  5. 「VirtualBox Guest Additions」のインストール:

  6.  システム更新:

  7.  日本語入力:

  8.  デスクトップとパネルの設定:

  9.  フォントのインストール:

  10.  アプリ のインストール:

  11.  ゲームのインストール:

-

参考になりそうな作業:

  1.  キーボードレイアウトを「日本語キーボード」に修正:

  2.  作業前に、「仮想マシン」のクローンを作成:

  3.  日本語以外の「ヘルプ」と「言語パッケージ」を削除:

  4.  日本語以外の「フォント」を削除:

  5.  すべての「入力メソッド」を削除:

  6.  最新の「Firefox」ブラウザのESR 版をインストール:

-

「まとめ へ」

「目次詳細 へ」

-

-


- --- - --- - --- - --- - --- - --- - --- - -

ホストOS の「Xubuntu 24.04.3 LTS」を立ち上げ:

-

仮想マシンの「Debian 13.1 Xfce」を起動:

→「項番 8.」で、色々とカスタマイズ:

-

「アプリケーション」メニューは使いやすいし、ショートカットキーでアプリを起動するように設定したので、パネルにランチャーは登録していません:

-

-


- --- - --- - --- - --- - --- - --- - --- - --

VirtualBox」について:

-

VirtualBox 」は、Oracle(オラクル)社が開発している「仮想マシン」を構築するためのソフトウェアです。

-

-

-


- --- - --- - --- - --- - --- - --- - --- - ---

Xubuntu」について:

-

Ubuntu の公式フレーバー(性格の違う兄弟?)です

Xubuntu」(ズブントゥ)は、 Ubuntu ベースの、軽量な「Xfce」デスクトップ環境です。

Ubuntu ベースにつき、多くのノウハウ、情報等があること、および問題の少ない「x11」で動いていることが強みです。

-

個人的には使い慣れた環境です。
カスタマイズが色々とできるので、自分にとって使い勝手の良い環境を作れるのが利点です。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----

Debian 13 trixie」について:

-

公式サイト:

Debian JP Project

-

Debian (デビアン) は、コミュニティによって作らているオペレーティングシステム (OS) で、利用/配布/改変が「無償で自由」なので、他の Linux ディストリビューションUbuntu、NNLinux 等)の元になったりしています:

-

現在の安定版 (stable) は、 Debian GNU/Linux 13 (コードネーム「trixie」) です。
2025年 8月 9日に、リリースされました:

不具合修正やセキュリティアップデートなどをまとめて、定期的に更新(ポイントリリース)が行われます:
→13.1.0(2025年 9月)

-

Debian 13 trixie」の Release-notes から抜粋:
  • 標準で i386 をサポートしないので、Debian 12 でサポートされていた 32 ビット CPU の多くが動作しません:

 →i386 のシステムを動かしているユーザは、Debian 13 にアップグレードすべきではありません:

  • /boot が大きくなったので、個別のバーティションを作成している場合は、十分な空き領域が必要です:

  • 一時ファイルのディレクトリ /tmp は、メモリ上の「tmpfs」に配置されるようになったので、/tmp を保存先に使用していた場合は運用に注意:

-

-


現在のOS のバージョンを表示:

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ホストOS : 「Xubuntu 24.04.3 LTS」

2025-09-12 現在

-

カーネル:
$ uname -r
:
6.8.0-79-generic

→LTS版は安定志向なので、更新の回数は少なめです:

-

リリース:
$ cat /etc/lsb-release
:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"

→LTS 版の更新(ポイントリリース)は、6ヶ月前後で、
 今は「24.04.3」にアップされています

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
:
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

ゲストOS : 「Debian 13 (trixie)」

2025-09-12 現在

-

カーネル:
$ uname -r
6.12.43+deb13-amd64

→「amd64」(64bit)であることに注目:

-

リリース:
$ cat /etc/os-release
:
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

→現在のポイントリリースは「13.1」です:

-

x11」と「Wayland」のどちらで動作してるか確認:
$ echo $XDG_SESSION_TYPE
x11

→「Wayland」ではなく、「x11」で動作しています。

-

-


- --- - --- - --- - --- - --- - --- - --- - -----

1. 「ゲストOS」のISO イメージをダウンロード:

-


1). Debian ダウンロードサイト:

-

-

↓ 画面を下にスクロールすると、

-

→デスクトップ環境ごとの iso イメージが置かれています:

-

ちなみに、「standard.iso」はデスクトップ環境なし(テキストベース)の iso イメージです。

-

-


2). ダウンロード:

-

2025-09-10 現在:

-

(1). 「ISO イメージ」をダウンロード:

debian-live-13.1.0-amd64-xfce.iso 2025-09-06 3.5G

→ダウンロード後、「~/ダウンロード/Debian/」に移動:

-

(2). 任意:「インストールされているパッケージの一覧」をダウンロード:

debian-live-13.1.0-amd64-xfce.iso.packages 2025-09-06 67K

→ダウンロード後、「~/ダウンロード/Debian/」に移動:

-

(3). 「チェックサム」をダウンロード:

SHA256SUMS をクリック:

→ブラウザに表示:

抜粋:

abe16d74fadd0a9e3007fd4d114988a8297d14d089cd37d10e205610d28d27ec  debian-live-13.1.0-amd64-xfce.iso

-


3). チェックサムの確認:

ファイルの確認:

$ cd ~/ダウンロード/debian/
$ ls -1
debian-live-13.1.0-amd64-xfce.iso
debian-live-13.1.0-amd64-xfce.iso.packages

-

チェックサムの確認:

$ sha256sum debian-live-13.1.0-amd64-xfce.iso
:
abe16d74fadd0a9e3007fd4d114988a8297d14d089cd37d10e205610d28d27ec  debian-live-13.1.0-amd64-xfce.iso

→OK

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- -

2. 「仮想マシン」の作成:

-


1). メニュー→「システム」→「Orcle VM VirtualBox

-

VirtualBox マネージャ」が起動:

→すでに作成した「仮想マシン」があります:

-


2). 右上の水色の「新規」ボタンをクリック:

-


3). 水色の帯の「名前とオペレーティングシステム」:

-

(1). 作成したい「ゲストOS」の名前を入力:
名前:Debian13.1   ←(好みの英字の名前)

-

(2). 問題: 右下に、「完了」ボタンが表示され、「次へ」がありません:

ここで、「完了」ボタンをクリックすると、これ以降の項目が「未設定」になります:

→以降のように、個別に「未設定」の項目を選んで設定しました。

-

(3). ISO イメージファイルを指定:

ISO イメージ: <選択されていません>

右端の「▼」をクリック →その他 →「ダウンロード」→下記のファイルを指定:

「/home/ubn/ダウンロード/debian/debian-live-13.1.0-amd64-xfce.iso」

-

(4). 自動で下記が入力されました:
タイプ:Linux
Subtype: Debian
バージョン:Debian (32-bit)

-

(5). 下記に修正:

一覧に「Debian 13 (trixie)」の登録はないので、

タイプ:Linux
Subtype: Debian
バージョン:Debian (64-bit)   ←「変更」

-

(6). 「自動インストールをスキップ」にチェック

-


4). 水色の帯の「自動インストール」をクリック:

→グレー表示で選べません。

-

ちなみに、「自動インストール」が使えるのは、 (OS のxml 情報を提供できる)Ubuntu などのメジャーな Linux ディストリビューションのみです:

-

今までの設定:

-


5). まだ設定していない、水色の帯の「ハードウェア」の帯をクリック:

-

(1). メインメモリー:

今回は、メモリ 16GB を分割して、約 8 GB を割当てました:(以前のマシンでは 4 GB の指定)

(バーをクリックしてから、「→」キーで微調整)

7987 MB  ←(メモリに余裕がないときに大きくしすぎると、 ホストOS が不調になります)

-

(2). プロセッサー数:

8 CPU  ←(パソコンのプロセッサによって上限は変わります: 今回は最大 16)
       (以前のマシンでは 2 CPU の指定)

-

(3). 「EFIを有効化(一部のOSのみ)」にチェック:

仮想環境で使うならどちらに設定してもかまいません。

→手持ちのPC が、UEFI 立ち上げなので、
(USB でインストールするときの)実際のOS の動きを確認したいのでチェックしています。

-

OS インストール後は、(パーティションの構成が変わるため)変更できないので注意:

-


6). まだ設定していない、水色の「ハードディスク」の帯をクリック:

-

「仮想ハードディスクを作成する」にチェックされていることを確認:

30.00 GB ←(増やしました)

-

→「完了」

-

Debian 13.1 trixie」では、デフォルトでメモリサイズ分の大きさの「スワップパーティションが作られる(取られる)ので、(つまり、使用できる容量がそれだけ減るので)

少し大きめのディスク容量を確保しました:

-


7). 仮想マシンの「Debian13.1」が作成されました:

-

下記のように設定値を後から変更できるので、うまく動かないときはリトライできます。

-


8). ★「Guest Additions」をインストールする場合は、「ディスプレイ」の設定を見直します:

設定が異なると、以前は、色々と予期しない問題が発生しました:

-

(1). 「ディスプレイ」をクリック →「スクリーン」タブ

-

(2). 「VMSVGA」に設定:

→デフォルトのままです:

-

(3). 「3D アクセラレーションを有効化」にチェック:

→ビデオメモリーの設定の上限が「128MB」から「256MB」に増えます:

-

(4). ビデオメモリーを「256MB」に変更:
- ビデオメモリー: 16MB           →「256MB」に変更
- グラフィックコントローラー: 「VMSVGA」  →そのまま

-

今までの設定:

-

→OK

-


9). 「システム」→「マザーボード」タブ を確認:

 →ただし、グレー表示で変更できなくなっています

-

今までの設定:

-

→OK

-


10). 画面が最初に戻るので、最終的な設定を確認できます:

→「ストレージ」の項目の、光学ドライブdebian/debian-live-13.1.0-amd64-xfce.iso」
 がセットされていることを確認:

-

この CD イメージでライブ立ち上げされます。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- --

3. 「Debian 13.1 Xfce」のインストール:

-

-


1). 「仮想マシン」を選択して、「起動」(緑色の右矢印)ボタンをクリック:

-


2). 「Live ブートメニュー」画面が表示:

→Enter

-


3). デスクトップ画面が表示:

Xfce デスクトップ環境です:

-

参考: ライブ立ち上げ時の解像度を確認:

左上の「Applications」→「Settings」 →「Display」

→「1280x800」です

-

→「Close」

-


4). インストール開始:

-

デスクトップにある「Install Debian」アイコンをダブルクリック:

-


5). 「Welcome」タブ:

「Welcome to the Calamares installer for Debian 13」画面が表示:

下の言語選択にて、

「日本語」を選択:

-


6). 「ようこそ」タブ:

Debian 13 のCalamaresインストーラーにようこそ」画面が表示:
日本語表示です:

下の言語選択にて、

「日本語」を選択:  ←(自動で選択)

-

→右下の「次へ」をクリック

-


7). 「ロケーション」タブ:

→地図にて、日本をクリック:

-

地域:「Asia」

ゾーン:「Tokyo」

-

→右下の「次へ」をクリック

-


8). 「キーボード」タブ:

キーボードモデル: Generic 105-key PC ←(自動で選択)

「Japanese」 ←(自動で選択)

「Default」 ←(自動で選択)

-

左下の「ここでタイプしてキーボードをテストしてください」→ @@ を入力して確認

→「[[」

→ダメ です:

-

ここでは何もできないので、

→右下の「次へ」をクリック

-


9). 「パーティション」タブ:

-

- ディスクの消去
- 手動パーティション

「ディスクの消去」にチェック

-

→右下の「次」をクリック

-


10). 「ユーザー情報」:

-

名前は何ですか?:                     任意
ログインの際、どの名前を使用しますか?:    任意
このコンピュータの名前は何ですか?:       任意
アカウントを安全に保つため、パスワードを選択してください:
   「任意」「任意」
「パスワードを尋ねずに自動的にログインする。」のチェックを外す:

-

すべての項目に、緑色のチェックが付いたら、

→右下の「次へ」をクリック

-


11). 「要約」タブ:

これまでの設定が反映されているか確認:

-

問題: インストーラにて、「ネットワーク」タブ: がありません:

「ネットワーク」の接続についてを選択するときは、デスクトップで指定が必要みたい:

-

→右下の「インストール」をクリック

すぐにインストールが始まりました:

-


12). 「インストール」タブ:

インストール開始:

→時間がかかります:

-

放おっておいたら、「仮想マシン」がスクリーンロックになりました:

→たまたま、「ユーザ名」が、設定した「ユーザ名」と同じだったので、パスワード入力で混乱しました:

-

解除するには:

Debian live user のユーザー名とパスワード:

username:  user
password:  live

-


13). 「終了」タブ:

「すべて完了しました」画面が表示:

「今すぐ再起動」にチェック(自動で選ばれています)

-

→右下の「実行」をクリック

-


14). 仮想マシンが再起動されました。

-


15). ブート選択 画面が表示:

すぐに次の画面になります:

-


16). 「ログイン」画面が表示:

(ユーザ名は自動入力されないので注意)

→ユーザ名 Enter

-

→パスワード入力:

-


17). デスクトップ画面が表示:

-

ライブCD-ROM のアイコンがデスクトップに表示:

アイコンを右クリック→「ボリュームを安全に取り外す」

-

→ライブCD-ROM が取り外されました:

-

画面の右上に灰色の「キーボード」アイコンが表示されています:

-


16). Ctrl+Alt+T で「端末」を起動:

「@@」と入力:

[[

→日本語キーボードの設定(配列)ではありません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ---

4. キーボードレイアウトを「日本語キーボード」に修正:

-

問題:「日本語キーボード」で、「@@」で「[[」が入力されます:

Debian 13」のインストールの中で、「日本語キーボード」を指定しましたが、
確認で「[[」が入力されました:

インストール中に対応ができなかった、その影響です:

-


1). 設定の確認:

「アプリケーション」→「設定」→「キーボード」→「レイアウト」タブ:

-

-

一番下の「キーボードレイアウト」

英語 (US)

→「日本語キーボード」のレイアウトはありません:

-

一番上の「システムのデフォルトを使用する」のボタンを左(オフ)にします:

「英語 (US)」を選んで、「編集」ボタンをクリック

→「日本語」を選んで、「OK」

-

-

「キーボードレイアウト」

日本語

-

→「閉じる」

-


2). 「端末」にてキー入力を確認:

「@@」と入力:

@@

→OK

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----

5. ゲストOS に「VirtualBox Guest Additions」をインストール:

-

仮想マシン」として使うなら、画面が広く使え、「クリップボードの共有」機能も使えるようになるので、

 早めにインストールしました:

-

ゲストOS にて操作します:

-


1). Ctrl+Alt+T で「端末」を起動:

-


2). インストールされているカーネルを確認:

-

インストール直後のカーネル:

$ uname -r
6.12.43+deb13-amd64

-

$ apt list linux-image* --installed
:
linux-image-6.12.43+deb13-amd64/stable,now 6.12.43-1 amd64 [インストール済み、自動]
linux-image-amd64/now 6.12.43-1 amd64 [インストール済み]

→q で表示終了:

-


3). 「dkms」のインストール:

$ sudo apt install dkms
:
Installing:                                                 
  dkms

Installing dependencies:
  lsb-release

-


4). カーネルのビルドに必要な、「ツール」がインストールされているか確認:

$ apt list gcc make perl
:
gcc/stable,now 4:14.2.0-1 amd64 [インストール済み、自動]
make/stable,now 4.4.1-2 amd64 [インストール済み、自動]
perl/stable,now 5.40.1-6 amd64 [インストール済み、自動]

-


5). 「仮想マシン」の上部バーのメニュー →「デバイス」→「Guest Additions CDイメージの挿入…」

→デスクトップにCD-ROM アイコンが表示されました:

-


6). CD-ROM アイコンをダブルクリックして、「ファイルマネージャ」を起動:

-


7). ファイルマネージャにて、開いたフォルダの空きで、右クリック →「Open Terminal Here」(ここで Terminal を開く)

$ pwd
:
/media/user/VBox_GAs_7.1.10

→マウントされた CDドライブの位置(マウントポイント)です:

-


8). 「ゲストOS」は「Debian」なので、「Linux」のスクリプトを実行します:

-


9). スクリプトの確認:

$ ls *.run
:
VBoxLinuxAdditions-arm64.run  VBoxLinuxAdditions.run

→2つありますが、片方は CPU アーキテクチャが違います:

-


10). スクリプトの 実行:

$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.1.10 Guest Additions for Linux  100%  
VirtualBox Guest Additions installer
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel 
6.12.41+deb13-amd64. Please install them and execute
  /sbin/rcvboxadd setup
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules were not reloaded
VirtualBox Guest Additions: kernel modules and services were not reloaded
The log file /var/log/vboxadd-setup.log may contain further information.
user@user-pc:/media/user/VBox_GAs_7.1.10$ 

→再起動が必要です。

-

「端末」と「ファイルマネージャ」を右上の「x」で閉じました:

-


11). [光学ドライブ]に挿入した、「Guest Additions の CD イメージ(.iso)」を取り外し:

「デバイス」→「光学ドライブ」 →「仮想ドライブからディスクを除去」(Remove Disk From Virtual Drive)

→「強制マウント解除」

-

画面下のステータスバーの「CD」アイコンがグレー表示です:

-


12). 「クリップボードの共有」機能を有効化:

バイス →「クリップボードの共有」
→「無効」を「双方向」に変更:

-


13). 「ドラッグ & ドロップ」機能を有効化:

バイス→「ドラッグ & ドロップ」
→「無効」を「双方向」に変更:

-


14). 電源オフ:

「アプリケーション」→「ログアウト」→「シャットダウン」

-


15). 反映させるため、ホストOS「Xubuntu 24.04 LTS」を再起動:

クリップボードの共有」機能は、ホストOS との連携で動作するので、一度ホストOS 側の再起動が必要です。

-


16). 「仮想マシン」を起動:

-


17). ログイン画面:

→ユーザ名を入力:

→パスワード入力

-


18). デスクトップ画面:

-


19). 自動でウィンドウがリサイズされるか確認:

-

(1). 「仮想マシン」のウィンドウのメニューにて、
表示 →「ゲストOS の画面を自動リサイズ」アイコンを確認:

→「チェックが付いたアイコン」か確認:

-

(2). ウィンドウの右下をドラッグして、それに合わせて画面が変更されるか確認:

→「仮想マシン」の画面を、画面半分に広げてみました:

リアルタイムに解像度が自動調整(リサイズ)されました:

-

画面が広く使え、「クリップボードの共有」機能も使えるようになったので、便利です:

早めに実施して良かったです。

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- -----

6. システム更新:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- -

6-1. 任意: 作業前に、「仮想マシン」のクローンを作成:

-

こちらの作業は要りません:

色々と削除するので、失敗してもすぐに戻せるように、クローンを作成しました:

記述している手順通りにすれば、確認は取れているので、失敗はないと思います:

-

仮想マシン」のクローンを作成:

-

(1). 「仮想マシン」の電源オフ:

-

(2). Virtualbox マネージャにて操作:

-

(3). 「仮想マシン」の「Debian13.1」を右クリック→「クローン」

名前: 「Debian13.1 の原本」

→「完了」

-

コピーが終わるまで待ちます:

-

(4).「Debian13.1 の原本」はさわらずに、「Debian13.1」を選んで、

→「起動」

-


2). デスクトップ画面が表示:

-


3). Ctrl+Alt+T で「端末」を起動:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- --

6-2. 任意: システム更新前に、日本語以外の「ヘルプ」と「言語パッケージ」を削除:

-

参考:

「項番 1.」でダウンロードしている「debian-live-13.1.0-amd64-xfce.iso.packages」のインストール一覧にて、 「不要なパッケージ」を確認しました:

-

デフォルトで、(使うことのない)多くの国の「ヘルプ」と「言語パッケージ」がインストールされています:

更新があると、時間とリソースが無駄です。システム更新する前に、前もって削除しました:

-

ちなみに、「Debian 13.0」のときに、何もせず「システム更新」したら、(使うことのない)それらの更新が含まれていて(時間帯もあるけど)完了までに、2時間以上かかりました。それもあり、行いました:

-


1). 「libreoffice」: ★最低でもこちらの削除はオススメ

-

(1). 「ヘルプ」を削除:
$ sudo apt remove libreoffice-help-ca libreoffice-help-cs libreoffice-help-da libreoffice-help-de libreoffice-help-dz libreoffice-help-el libreoffice-help-en-gb libreoffice-help-en-us libreoffice-help-es libreoffice-help-et libreoffice-help-eu libreoffice-help-fi libreoffice-help-fr libreoffice-help-gl libreoffice-help-hi libreoffice-help-hu libreoffice-help-it libreoffice-help-km libreoffice-help-ko libreoffice-help-nl libreoffice-help-pl libreoffice-help-pt libreoffice-help-ru libreoffice-help-sk libreoffice-help-sl libreoffice-help-sv libreoffice-help-zh-cn libreoffice-help-zh-tw
REMOVING:                                                   
  libreoffice-help-ca     libreoffice-help-eu  libreoffice-help-pl
  libreoffice-help-cs     libreoffice-help-fi  libreoffice-help-pt
  libreoffice-help-da     libreoffice-help-fr  libreoffice-help-ru
  libreoffice-help-de     libreoffice-help-gl  libreoffice-help-sk
  libreoffice-help-dz     libreoffice-help-hi  libreoffice-help-sl
  libreoffice-help-el     libreoffice-help-hu  libreoffice-help-sv
  libreoffice-help-en-gb  libreoffice-help-it  libreoffice-help-zh-cn
  libreoffice-help-en-us  libreoffice-help-km  libreoffice-help-zh-tw
  libreoffice-help-es     libreoffice-help-ko
  libreoffice-help-et     libreoffice-help-nl

Summary:
  Upgrading: 0, Installing: 0, Removing: 28, Not Upgrading: 0

-

(2). 「言語パッケージ」を削除:
$ sudo apt remove libreoffice-l10n-ar libreoffice-l10n-ast libreoffice-l10n-be libreoffice-l10n-bg libreoffice-l10n-bn libreoffice-l10n-bs libreoffice-l10n-ca libreoffice-l10n-cs libreoffice-l10n-cy libreoffice-l10n-da libreoffice-l10n-de libreoffice-l10n-dz libreoffice-l10n-el libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-eo libreoffice-l10n-es libreoffice-l10n-et libreoffice-l10n-eu libreoffice-l10n-fa libreoffice-l10n-fi libreoffice-l10n-fr libreoffice-l10n-ga libreoffice-l10n-gl libreoffice-l10n-gu libreoffice-l10n-he libreoffice-l10n-hi libreoffice-l10n-hr libreoffice-l10n-hu libreoffice-l10n-id libreoffice-l10n-is libreoffice-l10n-it libreoffice-l10n-ka libreoffice-l10n-km libreoffice-l10n-ko libreoffice-l10n-lt libreoffice-l10n-lv libreoffice-l10n-mk libreoffice-l10n-ml libreoffice-l10n-mr libreoffice-l10n-nb libreoffice-l10n-ne libreoffice-l10n-nl libreoffice-l10n-nn libreoffice-l10n-pa-in libreoffice-l10n-pl libreoffice-l10n-pt libreoffice-l10n-pt-br libreoffice-l10n-ro libreoffice-l10n-ru libreoffice-l10n-si libreoffice-l10n-sk libreoffice-l10n-sl libreoffice-l10n-sr libreoffice-l10n-sv libreoffice-l10n-ta libreoffice-l10n-te libreoffice-l10n-th libreoffice-l10n-tr libreoffice-l10n-ug libreoffice-l10n-uk libreoffice-l10n-vi libreoffice-l10n-xh libreoffice-l10n-zh-cn libreoffice-l10n-zh-tw
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  fonts-beng                  fonts-nakula             fonts-smc-karumbi
  fonts-beng-extra            fonts-sahadeva           fonts-smc-keraleeyam
  fonts-deva                  fonts-samyak-deva        fonts-smc-manjari
  fonts-deva-extra            fonts-samyak-gujr        fonts-smc-meera
  fonts-gargi                 fonts-samyak-mlym        fonts-smc-rachana
  fonts-gujr                  fonts-samyak-taml        fonts-smc-raghumalayalamsans
  fonts-gujr-extra            fonts-sarai              fonts-smc-suruma
  fonts-guru                  fonts-sil-annapurna      fonts-smc-uroob
  fonts-guru-extra            fonts-sil-scheherazade   fonts-taml
  fonts-hosny-amiri           fonts-smc                fonts-telu
  fonts-hosny-thabit          fonts-smc-anjalioldlipi  fonts-telu-extra
  fonts-kalapi                fonts-smc-chilanka       fonts-teluguvijayam
  fonts-lohit-taml-classical  fonts-smc-dyuthi         fonts-yrsa-rasa
  fonts-mlym                  fonts-smc-gayathri
これを削除するには 'sudo apt autoremove' を利用してください。

REMOVING:
  libreoffice-l10n-ar     libreoffice-l10n-ga  libreoffice-l10n-pa-in
  libreoffice-l10n-ast    libreoffice-l10n-gl  libreoffice-l10n-pl
  libreoffice-l10n-be     libreoffice-l10n-gu  libreoffice-l10n-pt
  libreoffice-l10n-bg     libreoffice-l10n-he  libreoffice-l10n-pt-br
  libreoffice-l10n-bn     libreoffice-l10n-hi  libreoffice-l10n-ro
  libreoffice-l10n-bs     libreoffice-l10n-hr  libreoffice-l10n-ru
  libreoffice-l10n-ca     libreoffice-l10n-hu  libreoffice-l10n-si
  libreoffice-l10n-cs     libreoffice-l10n-id  libreoffice-l10n-sk
  libreoffice-l10n-cy     libreoffice-l10n-is  libreoffice-l10n-sl
  libreoffice-l10n-da     libreoffice-l10n-it  libreoffice-l10n-sr
  libreoffice-l10n-de     libreoffice-l10n-ka  libreoffice-l10n-sv
  libreoffice-l10n-dz     libreoffice-l10n-km  libreoffice-l10n-ta
  libreoffice-l10n-el     libreoffice-l10n-ko  libreoffice-l10n-te
  libreoffice-l10n-en-gb  libreoffice-l10n-lt  libreoffice-l10n-th
  libreoffice-l10n-en-za  libreoffice-l10n-lv  libreoffice-l10n-tr
  libreoffice-l10n-eo     libreoffice-l10n-mk  libreoffice-l10n-ug
  libreoffice-l10n-es     libreoffice-l10n-ml  libreoffice-l10n-uk
  libreoffice-l10n-et     libreoffice-l10n-mr  libreoffice-l10n-vi
  libreoffice-l10n-eu     libreoffice-l10n-nb  libreoffice-l10n-xh
  libreoffice-l10n-fa     libreoffice-l10n-ne  libreoffice-l10n-zh-cn
  libreoffice-l10n-fi     libreoffice-l10n-nl  libreoffice-l10n-zh-tw
  libreoffice-l10n-fr     libreoffice-l10n-nn

Summary:
  Upgrading: 0, Installing: 0, Removing: 65, Not Upgrading: 0

-

(3). ゴミの整理:
$ sudo apt autoremove
:
REMOVING:                                                   
  fonts-beng                  fonts-nakula             fonts-smc-karumbi
  fonts-beng-extra            fonts-sahadeva           fonts-smc-keraleeyam
  fonts-deva                  fonts-samyak-deva        fonts-smc-manjari
  fonts-deva-extra            fonts-samyak-gujr        fonts-smc-meera
  fonts-gargi                 fonts-samyak-mlym        fonts-smc-rachana
  fonts-gujr                  fonts-samyak-taml        fonts-smc-raghumalayalamsans
  fonts-gujr-extra            fonts-sarai              fonts-smc-suruma
  fonts-guru                  fonts-sil-annapurna      fonts-smc-uroob
  fonts-guru-extra            fonts-sil-scheherazade   fonts-taml
  fonts-hosny-amiri           fonts-smc                fonts-telu
  fonts-hosny-thabit          fonts-smc-anjalioldlipi  fonts-telu-extra
  fonts-kalapi                fonts-smc-chilanka       fonts-teluguvijayam
  fonts-lohit-taml-classical  fonts-smc-dyuthi         fonts-yrsa-rasa
  fonts-mlym                  fonts-smc-gayathri

Summary:
  Upgrading: 0, Installing: 0, Removing: 41, Not Upgrading: 0

→利点: 使用しないフォントも削除されました:

-

(4). インストールされている「libreoffice」のヘルプと言語パッケージを確認:
$ apt list libreoffice-help* --installed
:
libreoffice-help-common/stable,now 4:25.2.3-2+deb13u2 all [インストール済み、自動]
libreoffice-help-ja/stable,now 4:25.2.3-2+deb13u2 all [インストール済み、自動]

-

$ apt list libreoffice-l10n* --installed
:
libreoffice-l10n-ja/stable,now 4:25.2.3-2+deb13u2 all [インストール済み、自動]

-

(5). 参考: もし、「日本語化のパッケージ」や「ヘルプ」がない場合は、インストール:
$ sudo apt install libreoffice-l10n-ja libreoffice-help-ja

-

ちなみに、「ヘルプ」パッケージがなくても、オンラインヘルプが使えます:

-


2). 「firefox-esr」:

-

(1). 「言語パッケージ」を削除:
$ sudo apt remove firefox-esr-l10n-ar firefox-esr-l10n-ast firefox-esr-l10n-be firefox-esr-l10n-bg firefox-esr-l10n-bn firefox-esr-l10n-bs firefox-esr-l10n-ca firefox-esr-l10n-cs firefox-esr-l10n-cy firefox-esr-l10n-da firefox-esr-l10n-de firefox-esr-l10n-el firefox-esr-l10n-en-gb firefox-esr-l10n-eo firefox-esr-l10n-es-ar firefox-esr-l10n-es-cl firefox-esr-l10n-es-es firefox-esr-l10n-es-mx firefox-esr-l10n-et firefox-esr-l10n-eu firefox-esr-l10n-fa firefox-esr-l10n-fi firefox-esr-l10n-fr firefox-esr-l10n-ga-ie firefox-esr-l10n-gl firefox-esr-l10n-gu-in firefox-esr-l10n-he firefox-esr-l10n-hi-in firefox-esr-l10n-hr firefox-esr-l10n-hu firefox-esr-l10n-id firefox-esr-l10n-is firefox-esr-l10n-it firefox-esr-l10n-kk firefox-esr-l10n-km firefox-esr-l10n-kn firefox-esr-l10n-ko firefox-esr-l10n-lt firefox-esr-l10n-lv firefox-esr-l10n-mk firefox-esr-l10n-mr firefox-esr-l10n-nb-no firefox-esr-l10n-ne-np firefox-esr-l10n-nl firefox-esr-l10n-nn-no firefox-esr-l10n-pa-in firefox-esr-l10n-pl firefox-esr-l10n-pt-br firefox-esr-l10n-pt-pt firefox-esr-l10n-ro firefox-esr-l10n-ru firefox-esr-l10n-si firefox-esr-l10n-sk firefox-esr-l10n-sl firefox-esr-l10n-sq firefox-esr-l10n-sr firefox-esr-l10n-sv-se firefox-esr-l10n-ta firefox-esr-l10n-te firefox-esr-l10n-th firefox-esr-l10n-tr firefox-esr-l10n-uk firefox-esr-l10n-vi firefox-esr-l10n-zh-cn firefox-esr-l10n-zh-tw
REMOVING:
  firefox-esr-l10n-ar     firefox-esr-l10n-fr     firefox-esr-l10n-nn-no
  firefox-esr-l10n-ast    firefox-esr-l10n-ga-ie  firefox-esr-l10n-pa-in
  firefox-esr-l10n-be     firefox-esr-l10n-gl     firefox-esr-l10n-pl
  firefox-esr-l10n-bg     firefox-esr-l10n-gu-in  firefox-esr-l10n-pt-br
  firefox-esr-l10n-bn     firefox-esr-l10n-he     firefox-esr-l10n-pt-pt
  firefox-esr-l10n-bs     firefox-esr-l10n-hi-in  firefox-esr-l10n-ro
  firefox-esr-l10n-ca     firefox-esr-l10n-hr     firefox-esr-l10n-ru
  firefox-esr-l10n-cs     firefox-esr-l10n-hu     firefox-esr-l10n-si
  firefox-esr-l10n-cy     firefox-esr-l10n-id     firefox-esr-l10n-sk
  firefox-esr-l10n-da     firefox-esr-l10n-is     firefox-esr-l10n-sl
  firefox-esr-l10n-de     firefox-esr-l10n-it     firefox-esr-l10n-sq
  firefox-esr-l10n-el     firefox-esr-l10n-kk     firefox-esr-l10n-sr
  firefox-esr-l10n-en-gb  firefox-esr-l10n-km     firefox-esr-l10n-sv-se
  firefox-esr-l10n-eo     firefox-esr-l10n-kn     firefox-esr-l10n-ta
  firefox-esr-l10n-es-ar  firefox-esr-l10n-ko     firefox-esr-l10n-te
  firefox-esr-l10n-es-cl  firefox-esr-l10n-lt     firefox-esr-l10n-th
  firefox-esr-l10n-es-es  firefox-esr-l10n-lv     firefox-esr-l10n-tr
  firefox-esr-l10n-es-mx  firefox-esr-l10n-mk     firefox-esr-l10n-uk
  firefox-esr-l10n-et     firefox-esr-l10n-mr     firefox-esr-l10n-vi
  firefox-esr-l10n-eu     firefox-esr-l10n-nb-no  firefox-esr-l10n-zh-cn
  firefox-esr-l10n-fa     firefox-esr-l10n-ne-np  firefox-esr-l10n-zh-tw
  firefox-esr-l10n-fi     firefox-esr-l10n-nl

Summary:
  Upgrading: 0, Installing: 0, Removing: 65, Not Upgrading: 0

-

(2). 確認:
$ apt list firefox* --installed
firefox-esr-l10n-ja/stable,now 128.14.0esr-1~deb13u1 all [インストール済み、自動]
firefox-esr/stable,now 128.14.0esr-1~deb13u1 amd64 [インストール済み、自動]

-

(3). 任意: 日本語化の設定が面倒でなければ、下記も削除できます:
$ sudo apt remove firefox-esr-l10n-ja
:
REMOVING:                                                   
  firefox-esr-l10n-ja

→言語パッケージをインストールしなくても、設定で日本語表示できます:

-

(4). 確認:
$ apt list firefox* --installed
firefox-esr/stable,now 128.14.0esr-1~deb13u1 amd64 [インストール済み、自動]

→アプリ本体のみになりました:

-


3). 「その他のアプリ」の「言語パッケージ」を削除:

日本語では使われない、スペルチェック等で使われるパッケージです:

「ja」はなし、「en」は除外しています:

-

(1). 削除:
$ sudo apt remove aspell-am aspell-ar aspell-ar-large aspell-bg aspell-ca aspell-cs aspell-cy aspell-da aspell-de aspell-el aspell-eo aspell-es aspell-et aspell-eu aspell-fa aspell-fr aspell-ga aspell-gl-minimos aspell-he aspell-hr aspell-hu aspell-is aspell-it aspell-kk aspell-ku aspell-lt aspell-lv aspell-nl aspell-no aspell-pl aspell-pt-br aspell-pt-pt aspell-ro aspell-ru aspell-sk aspell-sl aspell-sv aspell-tl aspell-uk hunspell-ar hunspell-be hunspell-bg hunspell-bs hunspell-ca hunspell-cs hunspell-da hunspell-de-at hunspell-de-ch hunspell-de-de hunspell-el hunspell-en-gb hunspell-eo hunspell-eu hunspell-fr hunspell-fr-classical hunspell-gl hunspell-gu hunspell-hi hunspell-hr hunspell-hu hunspell-id hunspell-is hunspell-it hunspell-kk hunspell-kmr hunspell-ko hunspell-lt hunspell-lv hunspell-ml hunspell-ne hunspell-nl hunspell-pl hunspell-pt-br hunspell-pt-pt hunspell-ro hunspell-ru hunspell-si hunspell-sl hunspell-sr hunspell-sv hunspell-te hunspell-th hunspell-vi hyphen-de hyphen-hr hyphen-hu hyphen-lt manpages-nl myspell-eo myspell-es myspell-et myspell-fa myspell-ga myspell-he myspell-nb myspell-nn myspell-sk myspell-sq myspell-uk mythes-cs mythes-de mythes-de-ch mythes-fr mythes-it mythes-ne mythes-pl mythes-ru mythes-sk
REMOVING:
  aspell-am          aspell-it     hunspell-cs            hunspell-lt     myspell-es
  aspell-ar          aspell-kk     hunspell-da            hunspell-lv     myspell-et
  aspell-ar-large    aspell-ku     hunspell-de-at         hunspell-ml     myspell-fa
  aspell-bg          aspell-lt     hunspell-de-ch         hunspell-ne     myspell-ga
  aspell-ca          aspell-lv     hunspell-de-de         hunspell-nl     myspell-he
  aspell-cs          aspell-nl     hunspell-el            hunspell-pl     myspell-nb
  aspell-cy          aspell-no     hunspell-en-gb         hunspell-pt-br  myspell-nn
  aspell-da          aspell-pl     hunspell-eo            hunspell-pt-pt  myspell-sk
  aspell-de          aspell-pt-br  hunspell-eu            hunspell-ro     myspell-sq
  aspell-el          aspell-pt-pt  hunspell-fr            hunspell-ru     myspell-uk
  aspell-eo          aspell-ro     hunspell-fr-classical  hunspell-si     mythes-cs
  aspell-es          aspell-ru     hunspell-gl            hunspell-sl     mythes-de
  aspell-et          aspell-sk     hunspell-gu            hunspell-sr     mythes-de-ch
  aspell-eu          aspell-sl     hunspell-hi            hunspell-sv     mythes-fr
  aspell-fa          aspell-sv     hunspell-hr            hunspell-te     mythes-it
  aspell-fr          aspell-tl     hunspell-hu            hunspell-th     mythes-ne
  aspell-ga          aspell-uk     hunspell-id            hunspell-vi     mythes-pl
  aspell-gl-minimos  hunspell-ar   hunspell-is            hyphen-de       mythes-ru
  aspell-he          hunspell-be   hunspell-it            hyphen-hr       mythes-sk
  aspell-hr          hunspell-bg   hunspell-kk            hyphen-hu
  aspell-hu          hunspell-bs   hunspell-kmr           hyphen-lt
  aspell-is          hunspell-ca   hunspell-ko            myspell-eo

Summary:
  Upgrading: 0, Installing: 0, Removing: 107, Not Upgrading: 0

-

(2). ゴミの整理:
$ sudo apt autoremove

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ---

6-3. 任意: システム更新前に、日本語以外の「フォント」を削除:

-

日本語や英語以外の言語も使うなら、作業しません:

一部は、「項番 6-2」で依存として削除されています:

-


1). 日本語以外の「フォント」を削除:

$ sudo apt remove fonts-tlwg-mono fonts-lohit-beng-assamese fonts-tlwg-mono-ttf fonts-lohit-beng-bengali fonts-tlwg-norasi fonts-lohit-deva fonts-tlwg-norasi-ttf fonts-lohit-gujr fonts-tlwg-purisa fonts-lohit-guru fonts-tlwg-purisa-ttf fonts-lohit-knda fonts-tlwg-sawasdee fonts-lohit-mlym fonts-tlwg-sawasdee-ttf fonts-tlwg-typist fonts-sahel-variable fonts-tlwg-typist-ttf fonts-lohit-taml fonts-tlwg-typewriter fonts-lohit-telu fonts-sil-abyssinica fonts-tlwg-typo fonts-sil-andika fonts-tlwg-typo-ttf fonts-thai-tlwg fonts-tlwg-umpush fonts-tlwg-garuda fonts-lohit-taml fonts-tlwg-typewriter fonts-lohit-telu fonts-tlwg-typist fonts-sahel-variable fonts-tlwg-typist-ttf fonts-sil-abyssinica fonts-tlwg-typo fonts-sil-andika fonts-tlwg-typo-ttf fonts-thai-tlwg fonts-tlwg-umpush fonts-tlwg-garuda fonts-tlwg-garuda-ttf fonts-tlwg-waree fonts-tlwg-kinnari fonts-tlwg-waree-ttf fonts-tlwg-kinnari-ttf fonts-ukij-uyghur fonts-tlwg-laksaman fonts-tlwg-laksaman-ttf fonts-tlwg-loma fonts-tlwg-loma-ttf xfonts-thai xfonts-thai-nectec
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  fonts-arundina             xfonts-thai-etl      xfonts-thai-vor
  fonts-tlwg-typewriter-ttf  xfonts-thai-manop
  fonts-tlwg-umpush-ttf      xfonts-thai-poonlap
これを削除するには 'sudo apt autoremove' を利用してください。

REMOVING:
  fonts-lohit-beng-assamese  fonts-tlwg-garuda        fonts-tlwg-purisa-ttf
  fonts-lohit-beng-bengali   fonts-tlwg-garuda-ttf    fonts-tlwg-sawasdee
  fonts-lohit-deva           fonts-tlwg-kinnari       fonts-tlwg-sawasdee-ttf
  fonts-lohit-gujr           fonts-tlwg-kinnari-ttf   fonts-tlwg-typewriter
  fonts-lohit-guru           fonts-tlwg-laksaman      fonts-tlwg-typist
  fonts-lohit-knda           fonts-tlwg-laksaman-ttf  fonts-tlwg-typist-ttf
  fonts-lohit-mlym           fonts-tlwg-loma          fonts-tlwg-typo
  fonts-lohit-taml           fonts-tlwg-loma-ttf      fonts-tlwg-typo-ttf
  fonts-lohit-telu           fonts-tlwg-mono          fonts-tlwg-umpush
  fonts-sahel-variable       fonts-tlwg-mono-ttf      fonts-tlwg-waree
  fonts-sil-abyssinica       fonts-tlwg-norasi        fonts-tlwg-waree-ttf
  fonts-sil-andika           fonts-tlwg-norasi-ttf    fonts-ukij-uyghur
  fonts-thai-tlwg            fonts-tlwg-purisa        xfonts-thai
  xfonts-thai-nectec

Summary:
  Upgrading: 0, Installing: 0, Removing: 40, Not Upgrading: 0

-


2). ゴミの整理:

$ sudo apt autoremove
:
REMOVING:                                                   
  fonts-arundina             xfonts-thai-etl      xfonts-thai-vor
  fonts-tlwg-typewriter-ttf  xfonts-thai-manop
  fonts-tlwg-umpush-ttf      xfonts-thai-poonlap

Summary:
  Upgrading: 0, Installing: 0, Removing: 7, Not Upgrading: 0

-


3). インストールされている「フォント」を確認:

$ apt list *font* --installed
:
fontconfig-config/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
fontconfig/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
fonts-bpg-georgian/stable,now 2012-5 all [インストール済み、自動]
fonts-culmus/stable,now 0.140-3 all [インストール済み、自動]
fonts-dejavu-core/stable,now 2.37-8 all [インストール済み、自動]
fonts-dejavu-extra/stable,now 2.37-8 all [インストール済み、自動]
fonts-dejavu-mono/stable,now 2.37-8 all [インストール済み、自動]
fonts-dejavu/stable,now 2.37-8 all [インストール済み、自動]
fonts-droid-fallback/stable,now 1:8.1.0r7-1~1.gbp36536b all [インストール済み、自動]
fonts-dzongkha/stable,now 0.3-9 all [インストール済み、自動]
fonts-farsiweb/stable,now 0.4.dfsg-13 all [インストール済み、自動]
fonts-font-awesome/stable,now 5.0.10+really4.7.0~dfsg-4.1 all [インストール済み、自動]
fonts-freefont-ttf/stable,now 20211204+svn4273-2 all [インストール済み、自動]
fonts-ipafont-gothic/stable,now 00303-23 all [インストール済み、自動]
fonts-ipafont-mincho/stable,now 00303-23 all [インストール済み、自動]
fonts-ipafont/stable,now 00303-23 all [インストール済み、自動]
fonts-khmeros/stable,now 5.0-9 all [インストール済み、自動]
fonts-lato/stable,now 2.015-1 all [インストール済み、自動]
fonts-liberation-sans-narrow/stable,now 1:1.07.6-4 all [インストール済み、自動]
fonts-liberation/stable,now 1:2.1.5-3 all [インストール済み、自動]
fonts-mathjax/stable,now 2.7.9+dfsg-1 all [インストール済み、自動]
fonts-noto-cjk-extra/stable,now 1:20240730+repack1-1 all [インストール済み、自動]
fonts-noto-cjk/stable,now 1:20240730+repack1-1 all [インストール済み、自動]
fonts-noto-color-emoji/stable,now 2.048-1 all [インストール済み、自動]
fonts-noto-core/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-extra/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-mono/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-ui-core/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-ui-extra/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto-unhinted/stable,now 20201225-2 all [インストール済み、自動]
fonts-noto/stable,now 20201225-2 all [インストール済み、自動]
fonts-opensymbol/stable,now 4:102.12+LibO25.2.3-2+deb13u2 all [インストール済み、自動]
fonts-quicksand/stable,now 0.2016-2.1 all [インストール済み、自動]
fonts-symbola/stable,now 2.60-2 all [インストール済み、自動]
fonts-unikurdweb/stable,now 1.0-6 all [インストール済み、自動]
fonts-urw-base35/stable,now 20200910-8 all [インストール済み、自動]
fonts-vazirmatn-variable/stable,now 33.003-3 all [インストール済み、自動]
fonts-vlgothic/stable,now 20220612-1 all [インストール済み、自動]
libfont-afm-perl/stable,now 1.20-4 all [インストール済み、自動]
libfontconfig1/stable,now 2.15.0-2.3 amd64 [インストール済み、自動]
libfontembed1t64/stable,now 1.28.17-6 amd64 [インストール済み、自動]
libfontenc1/stable,now 1:1.1.8-1+b2 amd64 [インストール済み、自動]
libxfont2/stable,now 1:2.0.6-1+b3 amd64 [インストール済み、自動]
timgm6mb-soundfont/stable,now 1.3-5 all [インストール済み、自動]
xfonts-100dpi/stable,now 1:1.0.5 all [インストール済み、自動]
xfonts-75dpi/stable,now 1:1.0.5 all [インストール済み、自動]
xfonts-base/stable,now 1:1.0.5+nmu1 all [インストール済み、自動]
xfonts-encodings/stable,now 1:1.0.4-2.2 all [インストール済み、自動]
xfonts-scalable/stable,now 1:1.0.3-1.3 all [インストール済み、自動]
xfonts-utils/stable,now 1:7.7+7 amd64 [インストール済み、自動]

-

「日本語フォント」として、下記が入っていました:
fonts-droid-fallback
fonts-noto-cjk
fonts-ipafont-gothic
fonts-ipafont-mincho
fonts-ipafont
fonts-vlgothic

→使わないフォントは削除しても良いし、好みのフォントをインストールしても OK

 特に noto フォントには使わないフォントが多く含まれています:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----

6-4. システム更新:

-


1). リポジトリの同期:

$ sudo apt update
:
ヒット:1 http://security.debian.org/debian-security trixie-security InRelease
取得:2 http://deb.debian.org/debian trixie InRelease [140 kB]
ヒット:3 http://deb.debian.org/debian trixie-updates InRelease
ヒット:4 http://deb.debian.org/debian trixie-backports InRelease
140 kB を 1秒 で取得しました (152 kB/s)
パッケージはすべて最新です。        

-


2). パッケージの更新:

$ sudo apt upgrade
:
Summary:                                                            
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

-


3).再起動:

$ sudo reboot

-


4). 確認:

カーネル:

$ uname -r
6.12.43+deb13-amd64

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- -----

7. 日本語入力:

-

デフォルトでは、「日本語入力」できません:

-

多くの入力メソッド(uim、fcitx、fcitx5、ibus)や変換エンジン(anthy、mozc)、日本語以外の言語(中国語等)のモジュールが、あと少しで動くところまで、インストールされていますが、中途半端です:

Debian」の「誰でも自由に選択し、使える」ための処置ですが、(個人的には)多くのパッケージが(使われないので)無駄だと思います:(削除するのも自由)

-


1). パネルに「キーボードアイコン」が表示:

-


2). Ctrl+Alt+T で、「端末」を起動:

→日本語入力はできません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -

7-1. まずは、すべての「入力メソッド」を削除しました:

-

個人的に使うことがない「入力メソッド」などが、 混在してインストールされており、依存関係がからんでいます。

まずは、すべて削除した方が、インストール作業が楽です:

-

無駄なパッケージがあっても気にしないなら、作業は要りません:

-


1). 入力メソッドの「uim」を削除:

-

(1). 削除:
$ sudo apt remove uim uim-data uim-fep uim-gtk2.0 uim-gtk2.0-immodule uim-gtk3 uim-gtk3-immodule uim-mozc uim-plugins uim-qt5 uim-qt5-immodule uim-qt6 uim-qt6-immodule uim-xim
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  libgcroots0  libqt5x11extras5  libuim-custom2  libuim-scm0  libuim8
これを削除するには 'sudo apt autoremove' を利用してください。

REMOVING:
  uim         uim-gtk2.0-immodule  uim-plugins       uim-qt6-immodule
  uim-data    uim-gtk3             uim-qt5           uim-xim
  uim-fep     uim-gtk3-immodule    uim-qt5-immodule
  uim-gtk2.0  uim-mozc             uim-qt6

Summary:
  Upgrading: 0, Installing: 0, Removing: 14, Not Upgrading: 0

→「ibus-mozc」を使うなら、使うことがないパッケージです:

-

(2). ゴミの整理:
$ sudo apt autoremove
:
REMOVING:                                                   
  libgcroots0  libqt5x11extras5  libuim-custom2  libuim-scm0  libuim8

Summary:
  Upgrading: 0, Installing: 0, Removing: 5, Not Upgrading: 0

→「ibus-mozc」を使うなら、使うことがないパッケージです:

-

(3). 確認:
$ apt list uim*  --installed
$ 

-


2). 入力メソッドの「fcitx・fcitx5」を削除:

-

(1). 削除:
$ sudo apt remove fcitx-config-common fcitx-config-gtk fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt5 fcitx-frontend-qt6 fcitx-module-dbus fcitx-module-kimpanel fcitx-module-lua fcitx-module-quickphrase-editor5 fcitx-module-x11 fcitx-modules fcitx5 fcitx5-chinese-addons fcitx5-chinese-addons-bin fcitx5-chinese-addons-data fcitx5-config-qt fcitx5-data fcitx5-frontend-all fcitx5-frontend-gtk3 fcitx5-frontend-gtk4 fcitx5-frontend-qt5 fcitx5-frontend-qt6 fcitx5-m17n fcitx5-module-chttrans fcitx5-module-cloudpinyin fcitx5-module-fullwidth fcitx5-module-lua fcitx5-module-lua-common fcitx5-module-pinyinhelper fcitx5-module-punctuation fcitx5-modules fcitx5-pinyin fcitx5-pinyin-gui fcitx5-table fcitx5-table-malayalam-phonetic libfcitx-config4 libfcitx-core0 libfcitx-gclient1 libfcitx-qt5-1 libfcitx-qt5-data libfcitx-utils0 libfcitx5-qt-data libfcitx5-qt1 libfcitx5-qt6-1 libfcitx5config6 libfcitx5core7 libfcitx5gclient2 libfcitx5utils2
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  geoclue-2.0                 libotf1
  iio-sensor-proxy            libpresage-data
  libime-data                 libpresage1v5
  libime-data-language-model  libqt5positioning5
  libkf6dbusaddons-bin        libqt5printsupport5t64
  libkf6dbusaddons-data       libqt5quickwidgets5
  libkf6dbusaddons6           libqt5webchannel5
  libkf6itemviews-data        libqt5webengine-data
  libkf6itemviews6            libqt5webenginecore5
  libkf6widgetsaddons-data    libqt5webenginewidgets5
  libkf6widgetsaddons6        libtinyxml2.6.2v5
  libkf6windowsystem-data     libxcb-ewmh2
  libkf6windowsystem6         libxcb-imdkit1
  liblua5.2-0                 libxcb-res0
  liblua5.3-0                 m17n-db
  libm17n-0                   presage
これを削除するには 'sudo apt autoremove' を利用してください。

REMOVING:
  fcitx-config-common               fcitx5-module-fullwidth
  fcitx-config-gtk                  fcitx5-module-lua
  fcitx-frontend-all                fcitx5-module-lua-common
  fcitx-frontend-gtk2               fcitx5-module-pinyinhelper
  fcitx-frontend-gtk3               fcitx5-module-punctuation
  fcitx-frontend-qt5                fcitx5-modules
  fcitx-frontend-qt6                fcitx5-pinyin
  fcitx-module-dbus                 fcitx5-pinyin-gui
  fcitx-module-kimpanel             fcitx5-table
  fcitx-module-lua                  fcitx5-table-malayalam-phonetic
  fcitx-module-quickphrase-editor5  libfcitx-config4
  fcitx-module-x11                  libfcitx-core0
  fcitx-modules                     libfcitx-gclient1
  fcitx5                            libfcitx-qt5-1
  fcitx5-chinese-addons             libfcitx-qt5-data
  fcitx5-chinese-addons-bin         libfcitx-utils0
  fcitx5-chinese-addons-data        libfcitx5-qt-data
  fcitx5-config-qt                  libfcitx5-qt1
  fcitx5-data                       libfcitx5-qt6-1
  fcitx5-frontend-all               libfcitx5config6
  fcitx5-frontend-gtk3              libfcitx5core7
  fcitx5-frontend-gtk4              libfcitx5gclient2
  fcitx5-frontend-qt5               libfcitx5utils2
  fcitx5-frontend-qt6               libime-bin
  fcitx5-m17n                       libimecore0
  fcitx5-module-chttrans            libimepinyin0
  fcitx5-module-cloudpinyin         libimetable0

Summary:
  Upgrading: 0, Installing: 0, Removing: 54, Not Upgrading: 0

→「ibus-mozc」を使うなら、使うことがないパッケージです:

-

(2). ゴミの整理:
$ sudo apt autoremove
:
REMOVING:                                                   
  geoclue-2.0                 libotf1
  iio-sensor-proxy            libpresage-data
  libime-data                 libpresage1v5
  libime-data-language-model  libqt5positioning5
  libkf6dbusaddons-bin        libqt5printsupport5t64
  libkf6dbusaddons-data       libqt5quickwidgets5
  libkf6dbusaddons6           libqt5webchannel5
  libkf6itemviews-data        libqt5webengine-data
  libkf6itemviews6            libqt5webenginecore5
  libkf6widgetsaddons-data    libqt5webenginewidgets5
  libkf6widgetsaddons6        libtinyxml2.6.2v5
  libkf6windowsystem-data     libxcb-ewmh2
  libkf6windowsystem6         libxcb-imdkit1
  liblua5.2-0                 libxcb-res0
  liblua5.3-0                 m17n-db
  libm17n-0                   presage

Summary:
  Upgrading: 0, Installing: 0, Removing: 32, Not Upgrading: 0

→「ibus-mozc」を使うなら、使うことがないパッケージです:

-

(3). 確認:
$ apt list fcitx* --installed
$ 

-


3). 入力メソッドの「ibus」を削除:

-

(1). 削除:
$ sudo apt remove ibus-hangul
:
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  dconf-cli        ibus-data  ibus-gtk4       libibus-1.0-5
  gir1.2-ibus-1.0  ibus-gtk   libhangul-data  python3-ibus-1.0
  ibus             ibus-gtk3  libhangul1
これを削除するには 'sudo apt autoremove' を利用してください。

REMOVING:
  ibus-hangul

Summary:
  Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0

→一部は、使うことがないパッケージです:

-

(2). ゴミの整理:
$ sudo apt autoremove
:
REMOVING:                                                   
  dconf-cli        ibus-data  ibus-gtk4       libibus-1.0-5
  gir1.2-ibus-1.0  ibus-gtk   libhangul-data  python3-ibus-1.0
  ibus             ibus-gtk3  libhangul1

Summary:
  Upgrading: 0, Installing: 0, Removing: 11, Not Upgrading: 0

→一部は、使うことがないパッケージです:

-

(3). 確認:
$ apt list ibus* --installed
$

-


4). 変換エンジンの「anthy」を削除:

-

(1). 削除:
$ sudo apt remove anthy
:
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
  anthy-common  kasumi  libanthy1t64  libanthyinput0t64
これを削除するには 'sudo apt autoremove' を利用してください。

REMOVING:
  anthy

Summary:
  Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0

→「ibus-mozc」を使うなら、使うことがないパッケージです:

-

(2). ゴミの整理:
$ sudo apt autoremove
:
REMOVING:                                                   
  anthy-common  kasumi  libanthy1t64  libanthyinput0t64

Summary:
  Upgrading: 0, Installing: 0, Removing: 4, Not Upgrading: 0

→「ibus-mozc」を使うなら、使うことがないパッケージです:

-

(3). 確認:
$ apt list *anthy* --installed
$ 

-


5). 変換エンジンの「mozc」の確認:

$ apt list *mozc* --installed
:
mozc-data/stable,now 2.29.5160.102+dfsg-1.4 all [インストール済み、自動]
mozc-server/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み、自動]
mozc-utils-gui/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み、自動]

→「ibus-mozc」で使うので、そのままにしました:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- --

7-2. 「ibus-mozc」のインストール:

-

「入力メソッド」に何を使うかは、好みです:

-


1). 色々とさわったので、再起動:

$ sudo reboot

-


2). 「ibus-mozc」のインストール:

$ sudo apt install ibus-mozc
:
Installing:                                                 
  ibus-mozc

Installing dependencies:
  dconf-cli        ibus       ibus-gtk   ibus-gtk4      python3-ibus-1.0
  gir1.2-ibus-1.0  ibus-data  ibus-gtk3  libibus-1.0-5

提案パッケージ:
  ibus-clutter  ibus-doc

Summary:
  Upgrading: 0, Installing: 10, Removing: 0, Not Upgrading: 0

-


3). 「ibus」の確認:

$ apt list ibus* --installed
:
ibus-data/stable,now 1.5.32-2 all [インストール済み、自動]
ibus-gtk3/stable,now 1.5.32-2 amd64 [インストール済み、自動]
ibus-gtk4/stable,now 1.5.32-2 amd64 [インストール済み、自動]
ibus-gtk/stable,now 1.5.32-2 amd64 [インストール済み、自動]
ibus-mozc/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み]
ibus/stable,now 1.5.32-2 amd64 [インストール済み、自動]

→日本語以外の言語の「ibus-hangul」が入っていません。OK です:

-


4). 「mozc」の確認:

$ apt list *mozc* --installed
:
ibus-mozc/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み]
mozc-data/stable,now 2.29.5160.102+dfsg-1.4 all [インストール済み、自動]
mozc-server/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み、自動]
mozc-utils-gui/stable,now 2.29.5160.102+dfsg-1.4 amd64 [インストール済み、自動]

→設定で使う「mozc-utils-gui」が入っています:

-


5). ログアウト:

「アプリケーション」→「ログアウト」→「ログアウト」

-


6). ログイン画面:

→ユーザ名とパスワード入力

-


7). デスクトップ画面:

-


8). 起動にて、パネル右に「キーボードアイコン」が表示されました:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ---

7-3. 「ibus-mozc」の設定:

-


1). 「アプリケーション」→設定→「IBUS の設定」→「入力メソッド」タブ:

日本語 - 日本語
英語 - 英語 (US)

↓ 

「英語 - 英語 (US)」を選んで、「追加」

→「日本語」→オレンジ色の「Mozc:A_」→「追加」

日本語 - Mozc:A_
日本語 - 日本語
英語 - 英語 (US)

↓ 

「英語 - 英語 (US)」を選んで、「削除」

日本語 - Mozc:A_
日本語 - 日本語

-

→「閉じる」

-

「Mozc」でなく「Mozc:A」にした利点は、「Windows+スペース」キーが、「JA」と「A」の切り替えになること:

デフォルトを何にしたいかで、選ぶと良いです:

-


2). 日本語入力できるか確認:

-

(1). テキストエディタ「mousepad」を起動:

-

(2). パネルの「JA」をクリック→「日本語 - Mozc:A_」を選ぶか、または、「Windows+スペース」キーで、「A」に切り替え:

→日本語入力できました:

-

その後は、「半角/全角」キーで「A」と「あ」の切り替えができます:

-


3). 任意:「日本語 キーボード」の別々のキーに割当を定義:

  • 「半角/全角」キーのみで、日本語オン(あ)、オフ(A)を切り替えるなら、この作業は不要です:

-

(1). 「アプリケーション」→「設定」→「Mozc の設定」→「Mozc プロパティ」画面:

-

(2). 「一般」タブ

-

(3). 左下の「初期値に戻す」 →OK

-

(4). 下にある、キー設定の選択: →「カスタム」を選んで右の「編集…」

-

(5). →「Mozc キー設定」画面が表示:

-

(6). 左下の「編集」→「定義済みのキーマップからインポート」→「MS-IME」→OK

-

(7). 再び、「編集…」

ウィンドウはマウスで広げておくと、作業がしやすいです:

-

上段にある表題の「入力キー」の項目名をクリックして、ソート

-

(8). 下記のキーのコマンドを修正:
モード 入力キー コマンド 備考
変換前入力中 Hiragana IME を有効化
変換中 Hiragana IME を有効化
直接入力 Hiragana IME を有効化
入力文字なし Hiragana IME を有効化
:
変換前入力中 Muhenkan IME を無効化
変換中 Muhenkan IME を無効化
直接入力 Muhenkan IME を無効化 編集→エントリーを追加が必要
入力文字なし Muhenkan IME を無効化

-

→OK →OK

→適用 →OK

-

→「閉じる」

-

(9). これでオレンジ色の「あ」を見なくても操作できます:

テキストエディタ」アプリを起動してから、「半角/全角」キーを押して、

  • 「ひらがな」キー(Hiragana)で「IME オン」→日本語
  • 「無変換」キー(Muhenkan)で「IME オフ」→英語

-

(10). 「ひらがな」キー(Hiragana)で「IME オン」にならないときは「英数」(Caps Lock) キーを押してください。

-


4). 日本語入力の操作(まとめ):

- 日本語オン・オフ:  半角/全角  ←(デフォルトの定義)

- 日本語オン:     ひらがな   ←(追加の定義)
- 日本語オフ:     無変換   ←(追加の定義)

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----

8. デスクトップやパネルの設定:

-

この辺りは好みなので、使いたい設定だけ行えば OK:

:


1). パネルの「時計」の表示を変更:

パネルの右にある「時計」を右クリック→「プロパティ」

-

時計のオプション:

レイアウト:「日付のみ」に変更:

日付

フォント: 「Sans Bold 11」に変更

フォーマット:「カスタム」に変更

その下の入力欄:「 %H:%M」に変更

→「閉じる」

-

表示を確認:

13:47

-

-


2). パネルの「時計」にマウスを置いたときの、Tips の表示を変更:

パネルの右にある「時計」を右クリック→「プロパティ」

-

外観

ツールチップの形式:

「カスタム」→「%Y年%B%d日 (%a)」に変更:

-

表示を確認:

「時計」にマウスを置くと、年月日曜日を確認できます:

2025年8月29日 (金)

-

-


3). ショートカットキー: ウィンドウ画面をタイル表示:

「グローバルアクション」の定義で、「左のWindows」キーは使われているので、
「左のWindows」キーを使った設定をしても無効です。

なので、代わりに「Ctrl+Shift」キーを使ってみました:

-

ショートカットキーを修正:

「アプリケーション」 →「設定」→「ウィンドウマネージャー」→「キーボード」タブ

-

(1/2 画面で、左に移動)
  • 「ウィンドウを画面左にタイル表示」→「編集」
 「Ctrl+Shift」+ 「←」   表示: Shift + Ctrl + Left

-

(1/2 画面で、右に移動)
  • 「ウィンドウを画面右にタイル表示」→「編集」
 「Ctrl+Shift」+ 「→」   表示: Shift + Ctrl + Right

-

(1/4 画面で、右上に移動)
  • 「ウィンドウを画面右上にタイル表示」→「編集」
 「Ctrl+Shift」+ 「↑」   表示: Shift + Ctrl + Up

-

(1/4 画面で、右下に移動)
  • 「ウィンドウを画面右下にタイル表示」→「編集」
 「Ctrl+Shift」+ 「↓」    表示: Shift + Ctrl + Down

-

→「閉じる」

-

もう一度、同じ組み合わせを押せば、元の位置とサイズに戻ります:

-

-


4). ショートカットキー: 「Windows + Enter」で端末を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: exo-open --launch TerminalEmulator
ショートカット: Super+Return    ←(Windows+Enter)

-

→「閉じる」

-

ちなみに、ウィンドウのタイトルバーをダブルクリックすると、全画面表示:

-

-


5). ショートカットキー: 「Windows + M」で「Mousepad」を起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: mousepad
ショートカット: Super+M    ←(Windows+M)

-

→「閉じる」

-

-


6). ショートカットキー: 「Windows + W」でブラウザを起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: exo-open --launch WebBrowser
ショートカット: Super+W    ←(Windows+W)

-

→「閉じる」

-

-


7). ショートカットキー: 「Windows + N」でファイルマネージャを起動:

-

ショートカットキーを追加:

「アプリケーション」→「設定」→「キーボード」→「アプリケーションショートカットキー」タブ:

左下の「+追加」

コマンド: thunar
ショートカット: Super+N    ←(Windows+N)

-

→「閉じる」

-

-


8). ウィンドウのタイトルバーの「巻き上げ」ボタンを移動:

すでに「巻き上げ」ボタンは追加されていますが、ボタンの位置がイマイチなので、左に移動しました:

-

「アプリケーション」→「設定」→「ウィンドウマネージャー」

「スタイル」タブ:

-

ボタンの配置:

右下の「表示する:」にある、「↑」ボタンに注目:

「タイトル」「↑」

↓ マウスでドラッグして、移動:

「↑」「タイトル」

-

→「閉じる」

-

-


9). デスクトップのアイコンを「ゴミ箱」のみにしました:

デスクトップの空きで右クリック→「デスクトップの設定」→「ファイル/ランチャーアイコン」タブ:

-

デフォルトのアイコン:

「ホーム」と「ファイルシステム」のみ、チェックを外しました:

→「閉じる」

-

ちなみに、「項番 8).」で、ウィンドウのタイトルバーの「巻き上げ」ボタンが左に移動しています:

-

「ゴミ箱」のみのデスクトップ:

-

-


10). ウィンドウのタイトルバーのテーマを変更:

この辺りは、好みです:

-

「アプリケーション」 →「設定」→「ウィンドウマネージャー」→「スタイル」タブ

-

テーマ

「Default」→「Doloa」に変更:

-

→「閉じる」

-

「端末」画面にて、ウィンドウのタイトルバーを確認:

→選択されているウィンドウがわかりやすいし、タイトルバーが細いです:
 色違いのテーマがあると良いかも:

-

-


11). パネルの仮想デスクトップの数「1〜4」を減らしました:

パネルの「仮想デスクトップ」を右クリック→「ワークスペースの設定」→「全般」タブ:

レイアウト

ワークスペースの数: 「4」→「2」に変更:

-

→「閉じる」

-

-


12). パネルの背景色を変更:

この辺りは、好みです:

-

「アプリケーション」 →「設定」→「パネル」→「外観」タブ

-

背景

スタイル: 「単一色」に変更:

配色: 「白色」→「1つ目の水色」に変更:

-

→「閉じる」

-

パネルを確認:

→パネルの色を変えると、VirtualBox のパネルとの境がわかりやすくなります:

パネルの色は、デスクトップの壁紙と色合いが合うものが良さそう:

-

→「項番 11).」で、パネルの仮想デスクトップの数を「2」に減らしています:

-

-


13). パネルに「スピーカ」アイコン(音量調整)を追加:

パネルの空きで右クリック→「パネル」→「パネルの設定」→「アイテム」タブ:

左下の「+追加」をクリック→「PulseAudio プラグイン→「+追加」→「閉じる」

-

「PulseAudio プラグインを選んで、右の「上矢印」で、時計の上まで移動:

-

-

「ゲーム」アプリで、音量調整できるか確認:

「アプリケーション」→「ゲーム」→「Kajongg 中国式四人麻雀」を起動:

「Play」で開始

→牌を捨てるときに英語の音声が出るので、音量調整できるか確認:

-

-


14). 上にあったパネルを画面下に移動:

-

(1). 上のパネルを移動する前に、下のパネルを削除します:

下のパネルの空きで右クリック→「パネル」→「パネルの設定」→一番上に「パネル2」が表示されていることを確認:

右上の「ー」をクリックして、「パネル2」を削除:

-

もし、「パネル2」(ドック)を残したいのであれば、パネルを右か左に移動:

ロックを解除してから、モードを「垂直」に変更して、移動します:

-

(2). 「パネルの設定」画面の、一番上に「パネル1」が表示:

「パネルをロックする」のチェックを外します:

→パネルが赤枠で囲まれ、行頭と行末に「縦棒」が表示されます:

-

(3). マウスでその「縦棒」をつかむと手のひらになるので、そのまま画面下に移動します:

-

(4). 画面下に移動できたら、先ほどの「パネルの設定」画面にて、

「パネルをロックする」にチェックします:

-

→「閉じる」

-

(5). 参考: もし、パネルを右か左に移動したい場合は、

ロックを解除してから、モードを「垂直」に変更して、移動します:

-

移動後:

→「項番 12).」にて、パネルの背景色を変更しています:

-

-


15). ファイルマネージャ「thunar」の日付の形式を変更:

こちら」を参照:

-

-


16). パネルの「アプリケーション」メニューの「アプリケーション」文字を変更:

パネルの「アプリケーション」メニューを右クリック→「プロパティ」

-

-

ボタンタイトル:
「アプリケーション」の文字を →「メニュー」に変更:

もしくは、

「アプリケーション」の文字を →「半角スペース」で、クリックできる横幅を調整:

-

→「閉じる」

-

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- -----

9. フォントのインストール:

-

個人的によく使っているフォントを、インストールしました。 インストールは任意です。

-

-


1). 「MiguMix」フォントのインストール:

$ sudo apt install fonts-migmix
:
Installing:
  fonts-migmix

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0

-

次のフォントを含みます:
- プロポーショナルフォント(ブラウザ用)→ Migu 1P、Migu 1C、MigMix 1P、MigMix 2P
- 等幅フォント(テキストエディタ用)   → Migu 1M、Migu 2M、MigMix 1M、MigMix 2M

-

フォントの横幅が細めなので、狭い画面で多くの情報を表示できるのが利点です:

-

-


2). 「源ノ角ゴシック Code JP」フォントのインストール:

-

(1). ツールのインストール:
$ sudo apt install wget
:
Installing:                                                 
  wget

-

(2). フォントのインストール:

こちら」を参照:

ダウンロードに時間がかかるので、ネットが空いている時間に行うのが良いです:

-

英数字と日本語が「2 : 3」の幅の「等幅フォント」です。 日本語と英数字が混在しても、バランスが良く見やすいです;

9 ポイントくらいに小さくすると、見やすくて、多くの情報が表示できます。

「1 : 2」ではないので、「端末」等では使えません:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- -

10. アプリのインストール:

-

個人的によく使っているアプリを、インストールしました。 インストールは任意です。

-

-


1). PC の詳細確認に便利な「screenfetch」をインストール:

一度実行したら、後は役に立ちません:

こちらに実行時の表示を載せました。なので、インストールする必要はありません:

-

(1). インストール:
$ sudo apt install screenfetch
:
Installing:                                                 
  screenfetch

Installing dependencies:
  libid3tag0  libimlib2t64  scrot

Summary:
  Upgrading: 0, Installing: 4, Removing: 0, Not Upgrading: 0

→OpenBox で使われる、スクリーンキャプチャの「scrot」が依存でインストールされました:

-

(2). PC 使用情報の表示(ロゴ表示なし):

仮想マシンの「Debian 13.1 Xfce」で実行した場合:

$ screenfetch -n
:
 user@user-pc                              ←(ユーザ名@コンピュータ名)
 OS: Debian 13 trixie                       ←(元のディストリビューション)
 Kernel: x86_64 Linux 6.12.43+deb13-amd64   ←(カーネル)64bit
 Uptime: 8m
 Packages: 1697
 Shell: bash
 Resolution: 949x980                        ←(VertualBox での解像度)★
 DE: Xfce                                   ←(デスクトップは Xfce)★
 WM: Xfwm4                                  ←(ウィンドウマネージャは Xfwm4)★
 WM Theme: Daloa                            ←(ウィンドウのテーマは、Daloa)
 WM Theme: Daloa
 GTK Theme: Xfce [GTK2]
 Icon Theme: Tango
 Font: Sans 10
 Disk: 6.6G / 25G (29%)
 CPU: 12th Gen Intel Core i5-12450H @ 8x 2.496GHz ←(CPU x8)
 GPU: SVGA3D; build
 RAM: 745MiB / 7725MiB

-

-


2). 最新の「Firefox」ブラウザのESR 版をインストール:

-

(1). すでに古いバージョンの「Firefox ESR」がインストールされています:
起動して確認:

「アプリケーション」→「インターネット」→「Firefox ESR」

-

設定: (Setting...)
言語

「日本語」 を追加して、変更:

-

フォント

既定のフォント:  →「Noto Sans CJK JP」 16 に変更:

-

(2). 最新の「Firefox」ESR 版をインストール:
→手順は「項番 12.」を参照:

-

今回は、最新版をダウンロードしました:

ダウンロードに時間がかかるので、ネットが空いている時間に行うのが良いです:

-

-


3). テキストエディタ「Featherpad」のインストール:

-

(1). インストール:
$ sudo apt install featherpad
:
Installing:                                                 
  featherpad

Installing dependencies:
  featherpad-l10n

Summary:
  Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0

-

(2). バージョン:
$ featherpad --version
FeatherPad 1.6.1

-

(3). 設定は「こちら」を参照:

-

-


4). ファイアウォール「gufw」のインストール:

$ sudo apt install gufw
:
Installing:                                                 
  gufw

Installing dependencies:
  gir1.2-javascriptcoregtk-4.1  iptables   libip6tc2
  gir1.2-webkit2-4.1            libip4tc2  ufw

提案パッケージ:
  firewalld  rsyslog

Summary:
  Upgrading: 0, Installing: 7, Removing: 0, Not Upgrading: 0

-

設定は、「こちら」を参照:

-

ssh 接続して使う場合は、「項番 2)」のファイアウォールの開始: は行いません:

-

-


5). ディスクの管理の「disks」のインストール:

$ sudo apt install gnome-disk-utility
:
Installing:                                                 
  gnome-disk-utility

Installing dependencies:
  libcanberra-gtk3-0  libcanberra-gtk3-module

Summary:
  Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0

-

起動:

「アプリケーション」→「アクセサリ」→「Disks」

-

使い方は、「こちら」を参照:

-

-


6). ディスクのパーティション管理の「gparted」のインストール:

$ sudo apt install gparted
:
Installing:                                                 
  gparted

Installing dependencies:
  gparted-common      libglibmm-2.4-1t64  libparted-fs-resize0t64
  libatkmm-1.6-1v5    libgtkmm-3.0-1t64   libsigc++-2.0-0v5
  libcairomm-1.0-1v5  libpangomm-1.4-1v5

提案パッケージ:
  dmraid  jfsutils  mtools        reiserfsprogs  yelp
  gpart   kpartx    reiser4progs  udftools       libparted-dev

Summary:
  Upgrading: 0, Installing: 9, Removing: 0, Not Upgrading: 0

-

起動:

「アプリケーション」→「システム」→「Gparted」

-

使い方は、「こちら」を参照:

-

-


7). 音楽プレーヤの「audacious」のインストール:

$ sudo apt install audacious
:
Installing:                                                 
  audacious

Installing dependencies:
  audacious-plugins       libcddb2             libopusfile0
  audacious-plugins-data  libcdio-cdda2t64     libqt6openglwidgets6
  libaudcore5t64          libcue2              libsidplayfp6
  libaudgui6              liblirc-client0t64   libsndio7.0
  libaudqt3               libmms0
  libaudtag3t64           libneon27t64-gnutls

提案パッケージ:
  lirc  sidplayfp  sndiod

Summary:
  Upgrading: 0, Installing: 17, Removing: 0, Not Upgrading: 0

-

バージョン:
$ audacious --version
Audacious 4.4.2 (Debian package)

-

起動:

「アプリケーション」→「マルチメディア」→「Audacious

-

詳細は、「こちら」を参照:

-

-


8). 音楽タグの管理の「EasyTAG」のインストール:

$ sudo apt install easytag
:
Installing:                                                 
  easytag

Installing dependencies:
  docbook-xml     libyelp0        sgml-data  yelp-xsl
  libid3-3.8.3v5  python3-distro  yelp

提案パッケージ:
  docbook           docbook-dsssl  libid3-tools  w3-recs  libxml2-utils
  docbook-defguide  docbook-xsl    perlsgml      opensp

Summary:
  Upgrading: 0, Installing: 8, Removing: 0, Not Upgrading: 0

-

バージョン:
$ easytag --version
easytag 2.4.3
Website: https://wiki.gnome.org/Apps/EasyTAG

-

起動:

「アプリケーション」→「マルチメディア」→「EasyTAG」

-

詳細は、「こちら」を参照:

-

「EasyTAG」の活用は、「こちら

たくさんの音楽ファイルを持っていて整理するときに便利です。

-

-


9). 画像加工の「kolourpaint」のインストール:

$ sudo apt install kolourpaint
:
Installing:                                                 
  kolourpaint

Installing dependencies:
  kactivitymanagerd         libkf6notifications6
  kded6                     libkf6parts-data
  keditbookmarks            libkf6parts6
  kio6                      libkf6runner6
  kwallet6                  libkf6service-bin
  libkf6archive-data        libkf6service-data
  libkf6archive6            libkf6service6
  libkf6auth-data           libkf6solid-data
  libkf6authcore6           libkf6solid6
  libkf6bookmarks-data      libkf6sonnet-data
  libkf6bookmarks6          libkf6sonnetcore6
  libkf6bookmarkswidgets6   libkf6sonnetui6
  libkf6breezeicons6        libkf6textwidgets-data
  libkf6codecs-data         libkf6textwidgets6
  libkf6codecs6             libkf6wallet-data
  libkf6colorscheme-data    libkf6wallet6
  libkf6colorscheme6        libkf6walletbackend6
  libkf6completion-data     libkf6widgetsaddons-data
  libkf6completion6         libkf6widgetsaddons6
  libkf6config-bin          libkf6windowsystem-data
  libkf6config-data         libkf6windowsystem6
  libkf6configcore6         libkf6xmlgui-data
  libkf6configgui6          libkf6xmlgui6
  libkf6configwidgets-data  libkirigami-data
  libkf6configwidgets6      libkirigami6
  libkf6coreaddons-data     libkirigamidelegates6
  libkf6coreaddons6         libkirigamidialogs6
  libkf6crash6              libkirigamilayouts6
  libkf6dbusaddons-bin      libkirigamiplatform6
  libkf6dbusaddons-data     libkirigamiprimitives6
  libkf6dbusaddons6         libkirigamiprivate6
  libkf6doctools6           libksane-data
  libkf6globalaccel-data    libksanecore6-1
  libkf6globalaccel6        libksanewidgets6-6
  libkf6guiaddons-bin       libplasmaactivities6
  libkf6guiaddons-data      libpolkit-qt6-1-1
  libkf6guiaddons6          libqca-qt6-2
  libkf6i18n-data           libqca-qt6-plugins
  libkf6i18n6               libqt6quickcontrols2-6
  libkf6i18nqml6            libqt6quickshapes6
  libkf6iconthemes-bin      libqt6quicktemplates2-6
  libkf6iconthemes-data     libqt6texttospeech6
  libkf6iconthemes6         libxcb-res0
  libkf6iconwidgets6        media-player-info
  libkf6itemmodels6         plasma-activities-bin
  libkf6itemviews-data      qml6-module-org-kde-kirigami
  libkf6itemviews6          qml6-module-qtqml
  libkf6jobwidgets-data     qml6-module-qtqml-models
  libkf6jobwidgets6         qml6-module-qtqml-workerscript
  libkf6kcmutils-bin        qml6-module-qtquick
  libkf6kcmutils-data       qml6-module-qtquick-controls
  libkf6kcmutils6           qml6-module-qtquick-layouts
  libkf6kcmutilscore6       qml6-module-qtquick-shapes
  libkf6kcmutilsquick6      qml6-module-qtquick-templates
  libkf6kiocore6            qml6-module-qtquick-window
  libkf6kiofilewidgets6     sonnet6-plugins
  libkf6kiogui6             switcheroo-control
  libkf6kiowidgets6         systemsettings
  libkf6notifications-data

Summary:
  Upgrading: 0, Installing: 118, Removing: 0, Not Upgrading: 0

-

バージョン:

$ kolourpaint --version
kolourpaint 25.04.0

-

起動:

「アプリケーション」→「グラフィックス」→「KolourPaint」

→正常に動作しました。

-

詳細は、「こちら」を参照:

-

-


10). PDF ビュワー「qpdfview」のインストール:

-

(1). インストール:
$ sudo apt install qpdfview
:
Installing:                                                 
  qpdfview

Installing dependencies:
  libpoppler-qt6-3t64  libqt6sql6-sqlite            qpdfview-ps-plugin
  libqt6concurrent6    qpdfview-djvu-plugin         qpdfview-translations
  libqt6sql6           qpdfview-pdf-poppler-plugin

Summary:
  Upgrading: 0, Installing: 9, Removing: 0, Not Upgrading: 0

→インストールされたのは、「qpdfview 0.5.0」です:

-

(2). 起動して確認:

「アプリケーション」→「オフィス」→「qpdfview」を起動:

-

→ヘルプ以外は日本語化されています:

-

ヘルプが翻訳されていないのは、(個人的な意見)

html で国際化されておらず html を手動で修正するのは大変なのに、説明が基本操作のみで見る人が少ないので、翻訳しようとする人が少ないことと、翻訳したヘルプの有効化のやり方がわかりづらいことがあるかも:

-

ヘルプの機能を「(簡易)html ビュワー」でなく、「(簡易)Markdown ビュワー」、または、単なる「テキストビュワー」に変えれば、原本を作る人も翻訳する人も楽になりそう。説明が充実すれば見る人も増える?かも:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- --

11. ゲームのインストール:

-

個人的によく使っているゲームを、インストールしました。 インストールは任意です。

-

-


1). 「swell-foop」をインストール:

「さめざめ」もどきで、音が出ないのが惜しいです。

-

インストール:
$ sudo apt install swell-foop
:
Installing:                                                 
  swell-foop

Installing dependencies:
  libgee-0.8-2  libgnome-games-support-2-4  libgnome-games-support-common2

Summary:
  Upgrading: 0, Installing: 4, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.gnome.SwellFoop.desktop

↓ 行を修正:

Name[ja]=Swell Foop さめざめもどき

-

起動:

「アプリケーション」→「ゲーム」→「Swell Foop さめざめもどき」

-

実行時の画面:

-

-


2). 「マインスイーパ」のインストール:

-

インストール:
$ sudo apt install kmines
:
Installing:                                                 
  kmines

Installing dependencies:
  docbook-xsl        libkf6attica6           libkf6syndication6
  kdoctools6         libkf6configqml6        libkf6texttemplate6
  khelpcenter        libkf6newstuff-data     libxml2-utils
  khelpcenter-data   libkf6newstuffcore6     qml6-module-org-kde-config
  kpackagetool6      libkf6newstuffwidgets6  qml6-module-org-kde-kcmutils
  libkdegames6-6     libkf6package-data      qml6-module-org-kde-newstuff
  libkdegames6-i18n  libkf6package6          qml6-module-qtcore

提案パッケージ:
  dbtoepub                | docbook-xsl-doc  libxalan2-java
  docbook-xsl-doc-html    docbook-xsl-saxon  libxslthl-java
  | docbook-xsl-doc-pdf   fop                xalan
  | docbook-xsl-doc-text  libsaxon-java

Summary:
  Upgrading: 0, Installing: 22, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kmines.desktop

↓ 行を修正:

Name[ja]=KMines マインスイーパ

-

起動:

「アプリケーション」→「ゲーム」→「KMines マインスイーパ

-

実行時の画面:

-

-


3). 「ソリティア」(クロンダイク)のインストール:

カードゲーム集なので、いくつかのカードゲームで遊べます:

-

インストール:
$ sudo apt install aisleriot
:
Installing:                                                 
  aisleriot

Installing dependencies:
  guile-3.0-libs  libgc1

提案パッケージ:
  gnome-cards-data

Summary:
  Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0

-

起動:

「アプリケーション」→「ゲーム」→「AisleRiot ソリティア

-

実行時の画面:

-

-


4). 「四川省」 (Shisen-Sho) のインストール:

2 回以内の折れで、同じパイを消して行きます。パイが無くなると重力で落ちます。

-

インストール:
$ sudo apt install kshisen
:
Installing:                                                 
  kshisen

Installing dependencies:
  kdegames-mahjongg-data-kf6  libkmahjongg6

Summary:
  Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kshisen.desktop

↓ 行を修正:

Name[ja]=Shisen-Sho 四川省

-

起動:

「アプリケーション」→「ゲーム」→「Shisen-Sho 四川省

-

実行時の画面:

-

-


5). 「上海」 (KMahjongg) のインストール:

-

インストール:
$ sudo apt install kmahjongg
:
Installing:                                                 
  kmahjongg

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kmahjongg.desktop

↓ 行を修正:

Name[ja]=KMahjongg 上海

-

起動:

「アプリケーション」→「ゲーム」→「KMahjongg 上海」

-

実行時の画面:

-

-


6). 「中国式四人麻雀」 (Kajongg) のインストール:

男女のロボットが、英語の音声付きで相手をしてくれます。中国式麻雀なのが惜しいところ:

-

  • Python」のバージョンがアップしても、動作に支障はありません。

-

依存の「vorbis-tools」のインストール:
$ sudo apt install vorbis-tools
:
Installing:                                                 
  vorbis-tools

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0

-

「kajongg」をインストール:
$ sudo apt install kajongg
:
Installing:                                                 
  kajongg

Installing dependencies:
  libqt6svgwidgets6     python3-hyperlink         python3-pyasn1-modules
  libqt6test6           python3-idna              python3-pyqt6
  python3-attr          python3-incremental       python3-pyqt6.qtsvg
  python3-autocommand   python3-inflect           python3-pyqt6.sip
  python3-automat       python3-jaraco.context    python3-qtpy
  python3-bcrypt        python3-jaraco.functools  python3-service-identity
  python3-cffi-backend  python3-more-itertools    python3-twisted
  python3-click         python3-openssl           python3-typeguard
  python3-constantly    python3-packaging         python3-typing-extensions
  python3-cryptography  python3-pkg-resources     python3-zope.interface
  python3-hamcrest      python3-pyasn1

提案パッケージ:
  python-attr-doc               python3-setuptools      python3-pampy
  python-cryptography-doc       python3-qtpy-pyqt5      python3-serial
  python3-cryptography-vectors  | python3-qtpy-pyqt6    python3-tk
  python-openssl-doc            | python3-qtpy-pyside6  python3-wxgtk4.0

Summary:
  Upgrading: 0, Installing: 33, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/org.kde.kajongg.desktop

↓ 行を追加:

Name[ja]=Kajongg 中国式四人麻雀

-

起動:

「アプリケーション」→「ゲーム」→「Kajongg 中国式四人麻雀」

「Players」でプレイヤーを登録後、「Play」で開始

-

実行時の画面:

→牌を捨てるときの、英語の音声が聞けます:

-

-


7). 「フローズン・バブル」 (frozen-bubble) のインストール:

角度を決めてカラーボールを発射して、同じ色が 3個以上くっつくと落っこちます。

すべて落とせばクリア

-

インストール:
$ sudo apt install frozen-bubble
:
Installing:                                                 
  frozen-bubble

Installing dependencies:
  fonts-sil-gentium        libfile-sharedir-perl  libsdl-pango1
  fonts-sil-gentium-basic  libfile-which-perl     libsdl-perl
  frozen-bubble-data       libmad0                libsdl-ttf2.0-0
  libalien-sdl-perl        libmikmod3             libsdl1.2debian
  libcapture-tiny-perl     libsdl-gfx1.2-5        libtie-simple-perl
  libclass-inspector-perl  libsdl-image1.2
  libcompress-bzip2-perl   libsdl-mixer1.2

Summary:
  Upgrading: 0, Installing: 20, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/frozen-bubble.desktop

↓ 行を追加:

Name[ja]=Frozen-Bubble フローズン・バブル

-

起動:

「アプリケーション」→「ゲーム」→「Frozen-Bubble フローズン・バブル」

-

実行時の画面:

-

-


8). 「宇宙船スクロールシューティングゲーム」(kobodeluxe) のインストール:

-

インストール:
$ sudo apt install kobodeluxe
:
Installing:                                                 
  kobodeluxe

Installing dependencies:
  kobodeluxe-data

Summary:
  Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/kobodeluxe.desktop

↓ 行を追加:

Name[ja]=kobodeluxe 宇宙船スクロールシューティング

-

起動:

「アプリケーション」→「ゲーム」→「kobodeluxe 宇宙船スクロールシューティング」

-

実行時の画面:

-

キビキビ動きます。速すぎるので難しいです。 レーダーで自分の位置を確認しながら、基地のパイプの先の球体にビームを当てて破壊します。

shift: 前後にビーム
矢印: 方向転換
スペース: 一時停止

-

-


9). LbreakoutHD(ブロックくずし もどき)のインストール:

-

インストール:
$ sudo apt install lbreakout2
:
Installing:                                                 
  lbreakout2

Installing dependencies:
  lbreakouthd       libsdl2-image-2.0-0  libsdl2-ttf-2.0-0
  lbreakouthd-data  libsdl2-mixer-2.0-0  libxmp4

Summary:
  Upgrading: 0, Installing: 7, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/lbreakouthd.desktop

↓ 行を追加:

Name[ja]=LbreakoutHD ブロックくずし

-

起動:

「アプリケーション」→「ゲーム」→「LbreakoutHD ブロックくずし」

-

実行時の画面:

-

ラケットで受けている途中で、お宝に気を奪われると、受け損ないます:

→落ちてくるのがお宝と限らないのが面白いところ。 ラケットの幅が広くなるお宝と狭くなるお宝があります。ボールが2個に増えるのもありました。

-

-


10). LTris(テトリス もどき)のインストール:

-

インストール:
$ sudo apt install ltris
:
Installing:                                                 
  ltris

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/ltris2.desktop

↓ 行を追加:

Name[ja]= LTris2 テトリス

-

起動:

「アプリケーション」→「ゲーム」→「LTris2 テトリス

-

実行時の画面:

-

落ちる場所がぼんやりと表示されて親切だけど、落ち方が乱暴なテトリスです。

操作が矢印キーだけなので窮屈です。スペースキーで落とすか、回転してほしいです。

-

-


11). open-invaders(スペースインベーダー もどき)のインストール:

-

インストール:
$ sudo apt install open-invaders
:
Installing:                                                 
  open-invaders

Installing dependencies:
  libaldmb1t64  liballegro4.4t64  libdumb1t64  open-invaders-data

Summary:
  Upgrading: 0, Installing: 5, Removing: 0, Not Upgrading: 0

-

メニューの修正:
$ sudo featherpad /usr/share/applications/open-invaders.desktop

↓ 行を追加:

Name[ja]=open-invaders スペースインベーダー

-

起動:

「アプリケーション」→「ゲーム」→「open-invaders スペースインベーダー

-

実行時の画面:

懐かしのアーケードゲームです。キーの反応がイマイチなのがゲーム性を高めています。

-

左 shift: ビーム発射
矢印: 移動
Q: 終了

→左 shift キーがビーム発射なので、注意:

-

-


- --- - --- - --- - --- - --- - --- - --- - ----- ----- ----- ----- ---

12. 任意: 最新の「Firefox」のESR 版をインストール:

-

すでに ESR 版の「Firefox」をインストールしていたら、作業は要りません:

Firefox」の ESR 版は、更新回数が減り、ブラウザの動きが軽いので、オススメです:

-

古いバージョンをダウンロードすると、自動で最新まで上がりますが、バージョンは「128.14.0esr」辺りで更新が止まります。

現在、128 から ESR のメジャーバージョン 140 へ移行中のようです。

ESR の旧バージョンをダウンロードした場合、移行期間が終了すると、自動的に新バージョンにアップデートされます。

-

今回は最新をダウンロードして、インストールしました:

-

インストールでの注意点:
  • ファイルの圧縮が「.tar.xz」に変わっているので、解凍する時は注意:

  • 初めての起動で、「イタリア語」に似た言語?で表示された場合は、設定で「日本語」を選べば OK:

-


1). インストールに必要なパッケージがあるか確認:

下記のパッケージがないと、起動時にエラーします:

$ apt list bzip2
:
bzip2/stable,now 1.0.8-6 amd64 [インストール済み、自動]

-

$ apt list libdbus-glib-1-2
:
libdbus-glib-1-2/stable,now 0.114-1 amd64 [インストール済み、自動]

-

$ apt list wget
:
wget/stable,now 1.25.0-2 amd64 [インストール済み]

-


2). ダウンロードするフォルダを準備:

$ mkdir -p ~/ダウンロード/apps

英語の環境でホームフォルダに「~/Download/」があっても、気にしません。
単に「~/ダウンロード/apps」が作成されるだけです:

-


3). ESR 版の「Firefox」をダウンロード:

ブラウザー: Firefox Extended Support Release
プラットフォーム: Linux 64-bit
言語: Japanese - 日本語

-

(1). ダウンロード:
$ cd ~/ダウンロード/apps/
$ sudo wget https://archive.mozilla.org/pub/firefox/releases/140.2.0esr/linux-x86_64/ja/firefox-140.2.0esr.tar.xz

-

(2). ダウンロードしたファイルを確認:
$ cd ~/ダウンロード/apps/
$ ls -1
firefox-140.2.0esr.tar.xz

-


4). ダウンロードしたファイルを展開:

$ ls firefox-*.tar.xz
:
firefox-140.2.0esr.tar.xz

-

$ tar -xf firefox-*.tar.xz
$

→プロンプトが返るまで時間がかかります。

-

$ ls -1
:
firefox
firefox-140.2.0esr.tar.xz

-


5). 展開した Firefox フォルダを「/opt」に移動:

$ sudo mv firefox /opt

-

確認:

$ ls -1 /opt
:
VBoxGuestAdditions-7.1.10
firefox

-


6). Firefox の実行ファイルへのシンボリックリンクを作成:

$ sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox

-


7). Firefox の「デスクトップファイル」のコピーをダウンロード

$ sudo wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications

-


8). 「仮想マシン」の「Debian 13.1 Xfce」を再起動:

一度、再起動しないと ESR 版は起動されませんでした:

-

すべてのウィンドウを閉じてから、

$ sudo reboot

-


9). 「Firefox」の実行ファイルのパスを確認:

$ which firefox
:
/usr/local/bin/firefox

-


10). 「Firefox」を起動:

「アプリケーション」→「インターネット」→「Firefox Web Browser」

-

→ブラウザが起動されました:

「日本語」で表示されました:

→「Firefox 140.2.0esr」で改善されたようです。

-


11). バージョンの確認:

-

(1). ブラウザ右上の「横三本線」ボタン(設定)→「ヘルプ」→「Firefoxについて」

「Extended Support Relese」(ESR) の文字列が表示されていることを確認:

(最新をダウンロードしたので、)最新でした:

-

(2). コマンドでの確認:
$ firefox --version
:
Mozilla Firefox 140.2.0esr

→末尾に「esr」が付いていることを確認

最新のバージョンです:

-

(3). もし、最新のバージョンでなければ、ブラウザの起動時に自動で更新されます:

-

-


まとめ

今回、「VirtualBox 7.1.10」に「Debian 13 trixieXfce をインストールしました。

-

Debian」では、多くのパッケージをプリインストールすることで、無駄なパッケージがあったとしても、「誰もが自由」に選んで簡単に使えるようにしています。バッサリ削るのもアリ。

使うにはスキルが必要だけど、「できるだけシンプル」にして、無駄なパッケージがない「 Arch Linux」とは真逆の考え方です:

どちらを選ぶかは、人それぞれです:

-

Debian」を使って感じたのは、「無駄なパッケージ」が多いけど、Ubuntu を使っているのと変わりません。

そして、安定版でありながら、使われている技術は、Ubuntu よりも一歩だけ先を行っています。

もうひとつの利点は、Ubuntu-Pro の推奨メッセージが表示されないこと。

-

無駄なパッケージを削除したいときは、 目次にある「参考になりそうな作業」の項目を使えば、楽です:

-

-


-

-

    目次

-

「投稿の先頭 へ」

-

-


-

「この目次 の先頭へ」

「本編の目次 に戻る」

-