ゆう's Blog
Dropbox Linux デスクトップ アプリ

Dropbox Linux デスクトップ アプリ:概要

Fedora 42 users can install gnome-shell-extension-appindicator which is already ready for Gnome 48

$ sudo dnf install gnome-shell-extension-appindicator Package Arch Version Repository Size Installing: gnome-shell-extension-appindicator noarch 59-2.fc41 fedora 246.0 KiB Installing dependencies: libappindicator-gtk3 x86_64 12.10.1-5.fc41 fedora 108.6 KiB libdbusmenu x86_64 16.04.0-28.fc41 fedora 540.3 KiB libdbusmenu-gtk3 x86_64 16.04.0-28.fc41 fedora 88.5 KiB Transaction Summary: Installing: 4 packages $ sudo dnf install libappindicator-gtk3

インストール済み拡張機能

VirtualBox can't operate in VMX root mode.

VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).

VirtualBox は VMX ルート モードで動作できません。KVM カーネル拡張を無効にし、カーネルを再コンパイルして再起動してください (VERR_VMX_IN_VMX_ROOT_MODE)。

VirtualBox stopped working

fedora41にdnf5-plugin-automaticをインストールする

# dnf install dnf5-plugin-automatic Updating and loading repositories: Repositories loaded. Failed to resolve the transaction: Problem: conflicting requests - package dnf5-plugin-automatic-5.2.6.2-1.fc41.x86_64 from fedora requires libcurl-full(x86-64), but none of the providers can be installed - package dnf5-plugin-automatic-5.2.7.0-1.fc41.x86_64 from updates requires libcurl-full(x86-64), but none of the providers can be installed - problem with installed package - installed package libcurl-minimal-8.9.1-2.fc41.x86_64 conflicts with libcurl(x86-64) provided by libcurl-8.9.1-2.fc41.x86_64 from fedora - package libcurl-minimal-8.9.1-2.fc41.x86_64 from fedora conflicts with libcurl(x86-64) provided by libcurl-8.9.1-2.fc41.x86_64 from fedora You can try to add to command line: --allowerasing to allow erasing of installed packages to resolve problems --skip-broken to skip uninstallable packages

インストール中に依存関係の問題が発生した場合、特にlibcurlに関連する競合が報告されています。その場合は、次のコマンドで競合するパッケージを交換できます:

# dnf swap libcurl-minimal libcurl


インストール後、設定ファイルを作成します:

# cp /usr/share/dnf5/dnf5-plugins/automatic.conf /etc/dnf/dnf5-plugins/automatic.conf

設定ファイルを編集して自動アップデートを設定します。例えば:

# vi /etc/dnf/dnf5-plugins/automatic.conf

[commands] # Whether updates should be applied when they are available, by # dnf5 automatic. apply_updates = yes

dnf5-automatic.service の ExecStart に --installupdates を追加。

# vi /usr/lib/systemd/system/dnf5-automatic.service

ExecStart=/usr/bin/dnf5 automatic --timer --installupdates

最後に、自動アップデート機能を有効化します:

# systemctl enable --now dnf5-automatic.timer


マジ?

相互依存性:
apply_updatesがyesでも、タイマーが無効なら自動更新は実行されません。
タイマーが有効でも、apply_updatesがnoなら更新は適用されません。

自動インストールを行うためには、download_updates = yes の設定に加えて、dnf-automatic-install.timer を有効にする必要があります。これにより、ダウンロードされた更新パッケージが自動的にインストールされます。

「audacity-freeworld」と「audacity」は両方インストールする必要がありますか?

いいえ、両方をインストールする必要はありません。**「audacity-freeworld」と「audacity」**は同じソフトウェアですが、異なる機能を持っています。

「audacity」: 標準バージョンで、特定のライセンスや特許に関連する機能(例えば、MP3のインポート/エクスポート)が含まれていない場合があります。
「audacity-freeworld」: 追加のライブラリ(LameやFFmpegなど)をサポートしており、MP3や他のファイル形式のインポート/エクスポートが可能です。

したがって、MP3ファイルの編集や他の追加機能が必要な場合は、「audacity-freeworld」をインストールすることをお勧めします。どちらか一方を選んでインストールすれば十分です。

$ sudo dnf install audacity-freeworld

grep または

grep コマンドで複数のパターンを検索する際には、-E オプションを使用するか、| をエスケープ(\|)する必要があります。-E オプションを使用すると、grep は拡張正規表現をサポートします。これにより、| をエスケープせずに複数のパターンを検索できます。

sshd -T | grep -i -E 'SyslogFacility|PermitRootLogin|PermitEmptyPasswords|PasswordAuthentication'

「|」の前後のスペースを入れない。

スペースを入れると意図したマッチングが変わる可能性があります。例えば、次のように記述すると:
regexp1 | regexp2

この場合、正規表現は「regexp1」と「regexp2」にスペースがあることを期待します。したがって、スペースを入れると、マッチする条件が変わるため、注意が必要です。

sudo権限を付与

root で。

# visudo

以下の行を追加。username は sudo 権限を付与したいユーザ名。
username ALL=(ALL) ALL

VNC サーバ

server(root)

dnf install tigervnc-server
vi /etc/tigervnc/vncserver.users
systemctl enable --now vncserver@:1.service
dnf --enablerepo=epel,epel-next group install "Xfce" "base-x"
dnf --enablerepo=epel,epel-next install vlgothic-*
dnf groupinstall "Input Methods"
vi /etc/yum.repos.d/google-chrome.repo
dnf install google-chrome-stable
dnf install gedit

server(user(test))

vncpasswd
vi ~/.vnc/config

localhost
nolisten=tcp

local-1

$ ssh -v -C -L 50000:localhost:5901 192.168.1.3 -l test

local-2

$ vncviewer

ffmpeg で mp4 をアニメ webp に変換する

ループ無し(デフォルト)
ffmpeg -i input.mp4 output.webp

無限ループ(-loopオプションが必要)
ffmpeg -i input.mp4 -loop 0 output.webp

※ 「-i input.mp4」 : 入力ファイルを指定します。この場合、「input.mp4」という動画ファイルが入力となります。

※ Image Viewer で見るとみんなループしてしまう。
確認は、web ページ上でする。

ffmpeg -i input.mp4 -vf scale=640:-1 output.webp

※ 「-vf scale=640:-1」は幅を640ピクセルに設定し、高さをアスペクト比を保持したまま自動的に設定します。逆に、「-vf scale=-1:640」は高さを640ピクセルに設定し、幅をアスペクト比を保持したまま自動的に設定します。