English Ukrainian
$ alias evince="flatpak run org.gnome.Evince"
# or alias evince="org.gnome.Evince"
$ evince
$ alias evince="flatpak run org.gnome.Evince"
# або alias evince="org.gnome.Evince"
$ evince
$ evince
bash: command not found: evince
$ evince
bash: команду не знайдено: evince
$ flatpak list --app --columns=name,installation
$ flatpak list --app --columns=name,installation
$ flatpak run org.gnome.Evince
$ flatpak run org.gnome.Evince
$ flatpak-spawn --host podman --help
$ flatpak-spawn --host podman --help
$ flatpak-spawn --host sudo -S rpm-ostree status
$ flatpak-spawn --host sudo -S rpm-ostree status
$ org.gnome.Evince
$ org.gnome.Evince
$ sudo diff -yrW200 --suppress-common-lines --color=always /usr/etc /etc 2>/dev/null
$ sudo diff -yrW200 --suppress-common-lines --color=always /usr/etc /etc 2>/dev/null
``` $ sudo mkdir -p /usr/local/share/applications/ $ sudo cp /usr/share/applications/firefox.desktop /usr/local/share/applications/ $ sudo sed -i "2a\\NotShowIn=GNOME;KDE" /usr/local/share/applications/firefox.desktop $ sudo update-desktop-database /usr/local/share/applications/ ``` ``` $ sudo mkdir -p /usr/local/share/applications/ $ sudo cp /usr/share/applications/firefox.desktop /usr/local/share/applications/ $ sudo sed -i "2a\\NotShowIn=GNOME;KDE" /usr/local/share/applications/firefox.desktop $ sudo update-desktop-database /usr/local/share/applications/ ```
$ sudo ostree admin config-diff
$ sudo ostree admin config-diff
$ sudo rpm-ostree install \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
$ reboot
$ sudo rpm-ostree install \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
$ reboot
$ sudo rpm-ostree update \
--uninstall rpmfusion-free-release \
--uninstall rpmfusion-nonfree-release \
--install rpmfusion-free-release \
--install rpmfusion-nonfree-release
$ reboot
$ sudo rpm-ostree update \
--uninstall rpmfusion-free-release \
--uninstall rpmfusion-nonfree-release \
--install rpmfusion-free-release \
--install rpmfusion-nonfree-release
$ reboot
alias istoolbx='[ -f "/run/.toolboxenv" ] && grep -oP "(?<=name=\")[^\";]+" /run/.containerenv'
alias istoolbx='[ -f "/run/.toolboxenv" ] && grep -oP "(?<=name=\")[^\";]+" /run/.containerenv'
```
function is_toolbox() {
if [ -f "/run/.toolboxenv" ]
then
TOOLBOX_NAME=$(cat /run/.containerenv | grep -oP "(?<=name=\")[^\";]+")
echo "[${HOSTNAME} ${TOOLBOX_NAME}]"
fi
}
```
```
function is_toolbox() {
if [ -f "/run/.toolboxenv" ]
then
TOOLBOX_NAME=$(cat /run/.containerenv | grep -oP "(?<=name=\")[^\";]+")
echo "[${HOSTNAME} ${TOOLBOX_NAME}]"
fi
}
```
[toolbx]$ echo -e '#!/bin/sh\nexec /usr/bin/flatpak-spawn --host flatpak "$@"' | sudo tee /usr/local/bin/flatpak 1>/dev/null && sudo chmod +x /usr/local/bin/flatpak
[toolbx]$ echo -e '#!/bin/sh\nexec /usr/bin/flatpak-spawn --host flatpak "$@"' | sudo tee /usr/local/bin/flatpak 1>/dev/null && sudo chmod +x /usr/local/bin/flatpak
[toolbx]$ istoolbx
<Toolbx container name here>
[toolbx]$ istoolbx
<Тут буде назва контейнера Toolbx>
or setup shell `alias`es as needed to make them available to the CLI like so: або налаштувати `alias` командної оболонки так, щоб вони стали доступними інтерфейсу командного рядка, ось так:
However, when running in a toolbox named "default" looks like: `[toolbox default]$ ❱` А у toolbox із назвою «default» ось так: `[toolbox default]$ ❱`
Directly accessing Flatpak applications from the CLI Безпосередній доступ до програм Flatpak з інтерфейсу командного рядка
Finding out if you are currently in a Toolbx container Визначення того, чи перебуваєте ви у контейнері Toolbx