Nothin' but Slackware

バイクとLinuxに戯れる日々

2021年05月

fcitx-mozc-2.26.4360.102.1 へアップグレード

Archのfcitx-mozcが 2.26.4360 へアップデートされていたので、Slackware64-15.0_Beta1 の
fcitx-mozcも同バージョンへアップグレードした。> Thanks Arch linux

作成したパッケージ:  fcitx-mozc-2.26.4360.102.1-x86_64-1jw.txz

コンパイルが通った環境は
・slackware64-current 2021-05-24以降の環境
・gcc-10.3.0
・python3-3.9.5
・qt4 無し
・qt-5.15.2
・zinnia (別途インストール済)

0. Arch linux - fcitx-mozc-2.26.4360.102 の情報
    PKGBUILD

1. fcitx-mozc.info (ソース入手先)
PRGNAM="fcitx-mozc"
VERSION="2.26.4360.102.1"
HOMEPAGE="https://fcitx-im.org"
DOWNLOAD="http://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-icon.tar.gz \
          https://osdn.net/projects/ponsfoot-aur/storage/mozc/jigyosyo-202104.zip \
          https://osdn.net/projects/ponsfoot-aur/storage/mozc/x-ken-all-202104.zip \
          https://github.com/fcitx/mozc/archive/ca82d39d08df3359fdf5c653a1f56b3e95cbe2ce/mozc-ca82d39d08df3359fdf5c653a1f56b3e95cbe2ce.zip \
          https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/e5b3425575734c323e1d947009dd74709437b684/japanese-usage-dictionary-e5b3425575734c323e1d947009dd74709437b684.zip \
          https://github.com/protocolbuffers/protobuf/archive/fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a/protobuf-fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a.zip \
          https://github.com/chromium/gyp/archive/caa60026e223fc501e8b337fd5086ece4028b1c6/gyp-caa60026e223fc501e8b337fd5086ece4028b1c6.zip \
          https://github.com/abseil/abseil-cpp/archive/0f3bb466b868b523cf1dc9b2aaaed65c77b28862/abseil-cpp-0f3bb466b868b523cf1dc9b2aaaed65c77b28862.zip \
          https://chromium.googlesource.com/breakpad/breakpad/+archive/216cea7bca53fa441a3ee0d0f5fd339a3a894224.tar.gz \
          https://github.com/open-source-parsers/jsoncpp/archive/9059f5cad030ba11d37818847443a53918c327b1/jsoncpp-9059f5cad030ba11d37818847443a53918c327b1.zip
          https://github.com/google/googletest/archive/703bd9caab50b139428cea1aaff9974ebee5742e/googletest-703bd9caab50b139428cea1aaff9974ebee5742e.zip"
MD5SUM="8ec243464ddb9ecf48924708c0448284 \
        c5f9c8f0149f5350cfd9dfcfa876aed4 \
        669ae868ea978ca06909a2d4562eaf0a \
        257fcb244249a3c65c576cceb5cbb7c8 \
        a6eb1da9ad7ceffcb9683003332abf7e \
        cb4b1baed208474284161b7abd5cc17c \
        e168f5f40cbf823c33db28e03257d63b \
        4f23c5fcb19a7ef0fb6ce0f636d480e3 \
        721ec19eb2b0bffa91e1eb94292bc7e4 \
        b697e8c85b2e41304d690ebc6bf2e1ca \
        768da4173ee9df3248b8f828747982ad"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="fcitx-configtool ninja zinnia"
MAINTAINER="Kuro_CODE25"
EMAIL="kuro.code25@gmail.com"

2. fcitx-mozc.SlackBuild
#!/bin/sh
# Slackware build script for fcitx-mozc
# Issued under The MIT License (MIT)
#
# Copyright 2016 Kuro_CODE25
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

PRGNAM=fcitx-mozc
VERSION=${VERSION:-2.26.4360.102.1}
BUILD=${BUILD:-1}
TAG=${TAG:-jw}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
BLDBASEDIR=$TMP/$PRGNAM-$VERSION

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e
BLDTYPE=Release
# source rev. and version.
ZIPCODE_REL=202104
ABSEIL_CPP_REV=0f3bb466b868b523cf1dc9b2aaaed65c77b28862
BREAKPAD_REV=216cea7bca53fa441a3ee0d0f5fd339a3a894224
MOZC_REV=ca82d39d08df3359fdf5c653a1f56b3e95cbe2ce
GOOGLETEST_REV=703bd9caab50b139428cea1aaff9974ebee5742e
JSONCPP_REV=9059f5cad030ba11d37818847443a53918c327b1
PROTOBUF_REV=fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a
GYP_REV=caa60026e223fc501e8b337fd5086ece4028b1c6
JAPANESE_USAGE_DICT_REV=e5b3425575734c323e1d947009dd74709437b684

# Download sources
wget https://github.com/chromium/gyp/archive/${GYP_REV}/gyp-${GYP_REV}.zip
wget https://github.com/fcitx/mozc/archive/${MOZC_REV}/mozc-${MOZC_REV}.zip
wget https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/${JAPANESE_USAGE_DICT_REV}/japanese-usage-dictionary-${JAPANESE_USAGE_DICT_REV}.zip
wget https://github.com/protocolbuffers/protobuf/archive/${PROTOBUF_REV}/protobuf-${PROTOBUF_REV}.zip
wget https://github.com/abseil/abseil-cpp/archive/${ABSEIL_CPP_REV}/abseil-cpp-${ABSEIL_CPP_REV}.zip
wget https://chromium.googlesource.com/breakpad/breakpad/+archive/${BREAKPAD_REV}.tar.gz
wget https://github.com/google/googletest/archive/${GOOGLETEST_REV}/googletest-${GOOGLETEST_REV}.zip
wget https://github.com/open-source-parsers/jsoncpp/archive/${JSONCPP_REV}/jsoncpp-${JSONCPP_REV}.zip

wget https://osdn.net/projects/ponsfoot-aur/storage/mozc/jigyosyo-${ZIPCODE_REL}.zip
wget https://osdn.net/projects/ponsfoot-aur/storage/mozc/x-ken-all-${ZIPCODE_REL}.zip
wget https://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-icon.tar.gz

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
echo "prepare source file..."
# unzip packages
unzip $CWD/x-ken-all-$ZIPCODE_REL.zip
unzip $CWD/jigyosyo-$ZIPCODE_REL.zip
unzip $CWD/abseil-cpp-$ABSEIL_CPP_REV.zip
unzip $CWD/googletest-$GOOGLETEST_REV.zip
unzip $CWD/jsoncpp-$JSONCPP_REV.zip
unzip $CWD/mozc-$MOZC_REV.zip
unzip $CWD/japanese-usage-dictionary-$JAPANESE_USAGE_DICT_REV.zip
unzip $CWD/gyp-$GYP_REV.zip
unzip $CWD/protobuf-$PROTOBUF_REV.zip
# untar breakpad to breakpad directory
mkdir breakpad
tar xvf ${CWD}/${BREAKPAD_REV}.tar.gz -C breakpad

# extact tar file
tar -xvf ${CWD}/fcitx-mozc-icon.tar.gz

# rename directory
mv mozc-$MOZC_REV mozc
mv gyp-$GYP_REV gyp
mv japanese-usage-dictionary-$JAPANESE_USAGE_DICT_REV japanese_usage_dictionary
mv abseil-cpp-$ABSEIL_CPP_REV abseil-cpp
mv protobuf-$PROTOBUF_REV protobuf
#mv breakpad-$BREAKPAD_REV breakpad
mv googletest-$GOOGLETEST_REV googletest
mv jsoncpp-$JSONCPP_REV jsoncpp

chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

# Apply Arch-linux patch
#cd $BLDBASEDIR/mozc
#patch -Np1 -i $CWD/patches/0001-fix-install_fcitx-translation-files.patch

cd $BLDBASEDIR/mozc/src

# We won't need fcitx5
rm -rf unix/fcitx5

cd $BLDBASEDIR/mozc
# prepare zip code dictionary
unzip -d src/data/dictionary_oss $CWD/x-ken-all-$ZIPCODE_REL.zip
unzip -d src/data/dictionary_oss $CWD/jigyosyo-$ZIPCODE_REL.zip

cd src/dictionary
# Generate zip code seed
sed -i "s/from dictionary import zip_code_util/import zip_code_util/g" gen_zip_code_seed.py

cd ../data/dictionary_oss
echo "Generating zip code seed ..."
python3 ../../dictionary/gen_zip_code_seed.py --zip_code=x-ken-all.csv --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt
echo "Done."

# Copy third party deps
echo "Copy third party deps ..."
cd $BLDBASEDIR
for dep in abseil-cpp breakpad googletest jsoncpp gyp protobuf japanese_usage_dictionary
do
  cp -a $dep mozc/src/third_party/
done

# build package
echo "build package..."
CFLAGS="${CFLAGS} -fvisibility=hidden"
CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"

cd $BLDBASEDIR/mozc/src
_targets="server/server.gyp:mozc_server gui/gui.gyp:mozc_tool unix/fcitx/fcitx.gyp:fcitx-mozc unix/emacs/emacs.gyp:mozc_emacs_helper"

QTDIR=/usr GYP_DEFINES="ibus_mozc_path=/usrshare/ibus-mozc/product_icon.png ibus_mozc_icon_path=/usrshare/ibus-mozc/product_icon.png document_dir=/usr/share/licenses/$pkgname use_libzinnia=1 use_fcitx5=0" python3 build_mozc.py gyp
python3 build_mozc.py gyp --server_dir=/usr/lib/mozc
python3 build_mozc.py build  -c Release $_targets

# Extract license part of mozc
head -n 29 server/mozc_server.cc > LICENSE

BLDTYPE=Release

# install mozc to /usr/lib even if 64 bit
install -D -m 755 out_linux/${BLDTYPE}/mozc_server "${PKG}/usr/lib/mozc/mozc_server"
install    -m 755 out_linux/${BLDTYPE}/mozc_tool   "${PKG}/usr/lib/mozc/mozc_tool"

install -d "${PKG}/usr/share/licenses/$PRGNAM/"
install -m 644 LICENSE data/installer/*.html "${PKG}/usr/share/licenses/${PRGNAM}/"

for mofile in out_linux/${BLDTYPE}/gen/unix/fcitx/po/*.mo
do
  filename=`basename $mofile`
  lang=${filename/.mo/}
  install -D -m 644 "$mofile" "${PKG}/usr/share/locale/$lang/LC_MESSAGES/fcitx-mozc.mo"
done

install -D -m 755 out_linux/${BLDTYPE}/fcitx-mozc.so "${PKG}/usr/lib${LIBDIRSUFFIX}/fcitx/fcitx-mozc.so"
install -D -m 644 unix/fcitx/fcitx-mozc.conf "${PKG}/usr/share/fcitx/addon/fcitx-mozc.conf"
install -D -m 644 unix/fcitx/mozc.conf "${PKG}/usr/share/fcitx/inputmethod/mozc.conf"

install -d "${PKG}/usr/share/fcitx/mozc/icon"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-alpha_full.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-alpha_full.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-alpha_half.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-alpha_half.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-direct.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-direct.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-hiragana.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-hiragana.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-katakana_full.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-katakana_full.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-katakana_half.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-katakana_half.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-dictionary.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-dictionary.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-properties.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-properties.png"
install -m 644 "$BLDBASEDIR/fcitx-mozc-icons/mozc-tool.png" "${PKG}/usr/share/fcitx/mozc/icon/mozc-tool.png"
# emacs helper
install -D -m 755 out_linux/Release/mozc_emacs_helper "${PKG}/usr/bin/mozc_emacs_helper"
install -D -m 644 unix/emacs/mozc.el "${PKG}/usr/share/emacs/site-lisp/emacs-mozc/mozc.el"
install -D -m 644 "${CWD}/mozc-isearch.el" "${PKG}/usr/share/emacs/site-lisp/emacs-mozc/mozc-isearch.el"

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
# copy patches just in case
cp $CWD/patches/* $PKG/usr/doc/$PRGNAM-$VERSION/
cp $CWD/sources.url $PKG/usr/doc/$PRGNAM-$VERSION/
cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
# install slack-desc
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}

※ 2.26.4220 で適用していた patch "0001-fix-install_fcitx-translation-files.patch" は不要らしい。

----ca82d39
(memo)
※ Arch PKGBUIL にある mozcの git-commit番号(戦闘のx桁)= ca82d39
     から目的のcommit source を探すには
 1) まず mozc git master を開く
    2) 次に、xxxx commits などと表示されているリンクを開く

    3) commit番号 xxxx に一致するリンクを捜す
  ca92d39 の場合はコレ
  mozc-commit-ca82d39

    4) 最終的な Download Link は以下のようになる
   https://github.com/fcitx/mozc/archive/ca82d39d08df3359fdf5c653a1f56b3e95cbe2ce/mozc-ca82d39d08df3359fdf5c653a1f56b3e95cbe2ce.zip


Plamo linux 7.3環境の vlc でyoutubeのネットワークストリームを開く

Plamo-linux-7.3 の vlcを 3.0.14 にアップグレードして「ネットワークストリームを開く」
により youtube URL を開いても再生されなかった。

以下のコマンド実行により、ネットワークURLを入力して再生できるようになった。

[Code]
$ cd ~/
$ mkdir -p ~/.local/share/vlc/lua/playlist/
$ wget -q -O - 'https://code.videolan.org/videolan/vlc/-/raw/master/share/lua/playlist/youtube.lua' > ~/.local/share/vlc/lua/playlist/youtube.lua

これにより、システムレベルの youtube.lua (vlcによりインストールされる /usr/lib/vlc/lua/playlist/youtube.luac )
を使わずにユーザーレベルの youtube.lua を使うことになるらしい。
上記実行後、vlcを起動して「ネットワークストリームを開く」の URL に 再生したい動画のURLを入力し
再生できるようになったことを確認した。

[2021-05-19 追記]
ちなみに Plamo7.3 vanilla環境の vlc-3.0.12 ではどうなのかというと
・ Plamo7.3の vlc-3.0.12 には luaパッチはあたっていない
・ インストールされている luaバージョンは 5.4.2
そもそも luaパッチがあたっていないので仮に luaを古いバージョン( lua-5.3.x )に
巻き戻しても vlcに lua53_compat.patch を適用してリビルドする必要がある。

そんな面倒なことするくらいなら、前述コマンドでyoutube.lua をローカルにインストールするほうが
簡単で slackware系らしいのではないかと。

Michael Brecker plays "Someday My Price Will Come"

Michael Breckerの Someday My Prince Will Come (いつか王子様が)演奏は、
Ben Sidran のCD "Live at Montreux" に含まれていて、自分はかなり気に入っていた。
Ben-Sidran_Live-at-Montreux
※ Someday ... については後述の通りの感想だが、公式CDに含まれている
  Randy Brecker & Ben Sidran のDuoによる「I Remember Clifford」を聴くだけでも
  このCDの価値ありと考える次第。

が、しかし、youtubeで検索したら古い動画で画質は悪いものの、同じLiveの同曲動画があった!
しかも初めて気づいたが、実際のMichaelのSoloはもっと長かった。(喜)
そして、実際は Randy Brecker(Flügel), Mike Mainieri(vibs)のSoloもあり、フル演奏時間は 13分以上。

こっちのほうがずっと良い。
映像の粗さは仕方ないが、なにより映像として残っていたことが素晴らしい。
バンドとしての演奏のまとまりは公式アルバムよりもこの動画のほうが良いと思う。
Michael 若い、Solo格好いい。


---
ついでにやったこと( on slackware linux)
・ 動画を youtube-dl でダウンロード
・ thunar-media-tags-plugin で id3条法(artist, album, title, year, genre, comment など)入力
・ ffmpeg -i INPUT.mp4 OUTPUT.mp3 で MP3作成

NVIDIA GPUなPCにおける GRUBメニュー画面の高解像度化

いつも忘れるのでこれも単なるメモ書き
(順不同)

1. GRUB 起動メニューの高解像度化
 自分の slackware64-current 環境は NVIDIA GP106 [GeForce GTX 1060 6GB] を導入しているが
 いつの頃からか GRUB起動メニュー画面の解像度が低くなっていた。(Linuxの起動自体は
 問題なし)

 GRUB 起動メニューの高解像度を再指定
 
・grub.cfg の gfxmode指定を以下のように修正
[Code]
if loadfont $font ; then
#  set gfxmode="1024x768"
  set_gfxmode="1920x1200-24"
  load_video
  insmod vbe
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=ja_JP
  insmod gettext
fi
※ NVIDIAなカードの場合、set_gfxmode の指定フォーマットは
    <width>x<height>-<depth> という形式らしい。
※ 自分の環境は古くからのslackware環境を引き継いてきてるため、MBRにインストールしてる
  GRUBのバージョンが少し古いかもしてない。そのため、上記 grub.cfg のコードは最新のGRUB
  と異なる可能性あり。(でも動いてるので敢えて grub-install はしていない)

  それに、今どきの推奨としては、grub.cfgを直接編集するのではなく
  /etc/default/grub に修正項目を記述することが望ましいらしい。
[Code]
--- 関連箇所のみ ---
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
GRUB_GFXMODE=1920x1200-24

2. slackware64-current (15.0_beta) runlevel-3 起動時のコンソールフォント高解像度化
  Slackware64公式のカーネルconfigでは
  FONT_TER16x32 n -> y
  になったが、なぜかこれだと自分環境ではコンソールが低解像度のままで気になるので
  # CONFIG_FONT_TER16x32 is not set
   に変更して自分カーネルを再構築している。




Xfce4 on slackware64-15.0_beta で xscreensaver の動きがおかしい

以下、完全に自分環境のための備忘録(他のユーザには多分関係ない話)

[背景]
・Xfce-4.16 > 設定 でXscreensaverを(1種類のみ;GL Text )に指定
・GL Text の表示内容はカスタム設定として [HOME]/.xscreensaver ファイルの
 関連する行を以下のように修正している
    ===========================================
    GL:                 gltext -root -text "`cat              \
                  /etc/slackware-version && uname -r -o`"   \n\
    ===========================================
 つまり、表示留守テキストを標準的な「システム情報」や「日付・時刻」等ではなく
 cat  /etc/slackware-version && uname -r -o
    コマンドで表示されるテキストを指定。
・Xfce-4.16 > 設定 における「セッションと起動」の中の「自動起動アプリケーション」に
 Xscreensaverが登録されていることを確認(または登録する)

[現象]
おそらくXscreensaverは起動していると思われるが、GL Text は動作せずに、
単にブランクスクリーンになる。

[対策]  -- 今の所解決したと思われる対処
/etc/X11/app-defaults/XScreenSaver というファイルがあり、中を参照すると
 GL Text  と思われる行がデフォルトのままのようなので、前述の

    GL:                 gltext -root -text "`cat              \
                  /etc/slackware-version && uname -r -o`"   \n\

に修正する。
これで今の所動作している模様。

[2021-05-15 Update] : /etc/rc.d/rc.setterm の内容修正
・powersave の blank指定を無効とする。
#!/bin/sh
#
# This file provides the command line for the setterm utility to set the
# terminal attributes (primarily used for screen blanking and power
# management).

# Screen blanks after 15 minutes idle time, and powers down in one hour
# if the kernel supports APM or ACPI power management (default setting):
#/bin/setterm -blank 15 -powersave powerdown -powerdown 60

# Screen does not blank or use power management features:
/bin/setterm -blank 0 -powersave off -powerdown 0


ripperX-2.8.0 のメニューを日本語化

ripperXは昔から使っているCDリッパーだがソースコードにメニュー、設定ダイアログの
日本語訳が無いため英語表示しかされない。
シンプルなGTKアプリケーションなので、もしかしたら日本語化できるのではないかと思い、
やってみたら日本語化出来た。

ripperX_with_Japanese-LC_MESSAGES

まぁ、今どきのCDリッパー(gripやasunderなど)は普通に日本語表示できるし、 trackの日本語タイトルも
文字化けせずに表示できるので、敢えて ripperX を使う必然性は無い。
ripperXは 日本語タイトルのtrack名はいわゆる「豆腐」表示になり、文字化けするのは変わらない。
・ upstreamの開発も2014年以降は止まってるようなので、今更日本語翻訳ファイルを本家に送る予定はない
・ 「config」を「構成」と翻訳したが、「設定」のほうが良かったか。。。

===
[2021-05-10] 翻訳 Update -- "Config" の翻訳を「構成」-> 「設定」に修正

ripperx-with-ja-messages_20210509



Unetbootin を一般ユーザーで起動するための設定


[HOME]/.local/share/applications/unetbootin.desktop

[CODE] * PATH-TO は isoファイルへのFull PATH
[Desktop Entry]
Version=1.0
Name=UNetbootin
Comment=Tool for creating Live USB drives
Categories=Application;System;
Exec=su -c '/usr/bin/unetbootin lang=jamethod=diskimage isofile="/PATH-TO/slackware64-current-iso/slackware64-current-install-dvd.iso"'
Terminal=true
Type=Application
Name[en_US]=UNetbootin
GenericName[en_US]=UNetbootin
Comment[en_US]=Tool for creating Live USB drives
Icon=unetbootin
Path=
StartupNotify=false

[command options]


Create custom kernel Logo

カーネル起動時のTuxロゴをslackwareアイコンロゴに変える

slackwareアイコン(skack-01.ong)をカーネルソースが認識するファイル logo_linux_clut224.ppm
変換する。
[CODE]
$ pngtopnm slack-01.png | ppmquant -fs 223 | pnmtoplainpnm > logo_linux_clut224.ppm

・これを linux-$VERSION/drivers/video/logo/logo_linux_clut224.ppm と入れ替えて
 カーネル再構築すればいい
・自分はファイル入れ替える代わりにパッチを作成した
[CODE]
# diff -Nru orig/drivers/video/logo/logo_linux_clut224.ppm new/drivers/video/logo/logo_linux_clut224.ppm > my_logo.diff

注記)カーネル再構築時の .config が以下の設定になってることを確認
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set

CONFIG_LOGO_LINUX_CLUT224=y




slack-01



gimpをコンパイルしてアップデートしたらツールアイコン類が表示されなくなった 


単なる備忘録メモ

"gimpをコンパイルしてアップデートしたらツールアイコン類が表示されなくなった"

表題の現象(理由不明)が発生したときの対処

$ su -
# gdk-pixbuf-query-loaders --update-cache


ギャラリー
  • deepl-clip.sh で簡単翻訳 [更新:2025-04-29]
  • Avidemux 2.8.2_20250323_7cf15b3
  • Avidemux 2.8.2_20250323_7cf15b3
  • Avidemux 2.8.x with Qt6 GUI
  • Avidemux 2.8.x with Qt6 GUI
  • MEGAcmd-2.0.0_Linux
  • gcolor3 with Japanese menu and LC_MESSAGES
  • avidemux2 TEST package from the latest git source (on jul.23.2024)
  • fcitx5-mozc-2.29.5135.102.1 (15jw) -- Added "merge-ut-dictionaries"