安裝 Discover 當中沒有的軟體
如果您在 Discover 當中找不到您在找的軟體,依照您的需求您有幾個選項。這些選項都比較適合進階使用者。
某些常用軟體
DaVinci Resolve
DaVinci Resolve 很難安裝。如果可以的話請考慮試試看 KDE 的 Kdenlive 影片編輯器,沒辦法的話就繼續。
首先,從 https://www.blackmagicdesign.com/products/davinciresolve 下載官方安裝器並下載 DaVinchi Resolve 的軟體。這會提供一個 .run 檔案;請先忽略它。
如果您使用 NVIDIA 的 GPU,請在終端機視窗裡執行一下指令:
distrobox create -i ghcr.io/zelikos/davincibox:latest --nvidia -n davincibox [將 .run 檔案拖曳到終端機視窗裡或是在此貼上它的路徑] --appimage-extract distrobox enter davincibox -- run0 dnf update
否則,請執行以下指令:
wget https://raw.githubusercontent.com/zelikos/davincibox/refs/heads/main/setup.sh --directory-prefix=/tmp/ chmod +x /tmp/setup.sh /tmp/setup.sh [將 .run 檔案拖曳到終端機視窗裡或是在此貼上它的路徑]
更多資訊請參考 https://github.com/zelikos/davincibox/。
Tailscale
Follow one of the following sets of instructions:
- https://github.com/suikan4github/Using-tailscale-client-on-an-Immutable-OS (Uses Distrobox)
- https://github.com/xuars/kdelinux-tailscale (Downloads binaries to /opt)
上面沒有列出來的軟體
Distrobox
Distrobox is a system for creating “containers” within which you can install anything from the software library of another Linux distribution, in a self-contained manner and with access to the files in your home directory. Distrobox works well for creating bespoke development environments that won't scatter files all over your home directory. Distrobox comes pre-installed in KDE Linux; explore it using the distrobox command-line. Toolbx is also pre-installed and supported.
範例用法:
# Try to run a command, for example "mc" mc # It does not work because is not installed on the system # KDE Linux does not include the “mc” command. # Download the image "quay.io/toolbx/arch-toolbox". distrobox create -n default # Enter it distrobox enter default # Do whatever you want in it. Here, we install `mc` run0 pacman -Syu run0 pacman -S mc # Run `mc`. Your home directory from KDE Linux is exposed as your home directory inside the Linux container. Press F10 to close mc. mc # Exit the distrobox container
# To find the container image: podman image list # To see the distrobox podman container still running: podman ps distrobox list distrobox stop default # To delete the container: distrobox rm name podman image list # Says "IMAGE ID" is 664c1f5776fa. podman image rm 664c1f5776fa podman image list
Kapsule
Kapsule is an upcoming tool that aims to seamlessly add command-line tools on top of the base OS in a safe, containerized environment.
Unlike Distrobox and similar, which require manual setup, Kapsule’s goal is to be invisible to the user and deeply integrate with the OS and terminal apps.
For the quick start example, see the project’s README, or run kapsule in a terminal to see available commands.
AppImage
Apps packaged as AppImages work in KDE Linux, and many can be found at https://www.appimagehub.com. AppImages offer a reduced level of system integration compared to other software, so getting apps using Discover is preferred.
If an AppImage app opens the “Choose application to open this file” dialog instead of launching, that means it has not been made executable. Fix it as follows:
- Right-click on it and select Properties
- Click the Permissions tab
- Click the checkbox that says “Allow executing file as program”
- Click the OK button
- Launch the AppImage file again; now it should run
Nix
Nix is an advanced package management tool suitable for use by technically-adept users. Nix facilitates the installation of many commonly-used programs from a large library of precompiled software, and takes care of adding command-line tools to your search path.
See the Nix subpage for details.
Homebrew
Homebrew is an add-on package management system. Homebrew is simple to install and provides a large number of packages, but they may conflict with user-space software and cause unexpected issues.
Homebrew can be installed using the installation script on the homebrew homepage. Do not execute the post-installation commands shown at the end of installation; KDE Linux includes Homebrew’s brew package manager (and anything installed using it) in PATH for interactive shells only, to prevent conflicts with system software.
When you want to access brew or anything installed using it, you must first launch a login shell by executing zsh -l. You can configure Konsole to launch this by default in Settings > Manage Profiles. Create a new profile, enable Default profile, and set the command to zsh -l.
自己編譯
If you can get the dependencies using (for example) Distrobox or Homebrew, you'll be able to compile anything you want.
To install compiled software to a location that's available system-wide, set the $DESTDIR environment variable to ~/kde/usr/ if compiling into a Systemd extension, or to /opt/local/ if not.
由 Nate Graham 以 CC-BY-4.0 授權條款所貢獻的文章。