clearfraction / distribution

Project info & bugreports collector
31 stars 1 forks source link
[![current release](https://img.shields.io/github/release/clearfraction/bundles.svg)](https://github.com/clearfraction/bundles/releases) [![Docker Image Size with architecture (latest by date/latest semver)](https://img.shields.io/docker/image-size/clearfraction/ffmpeg?label=ffmpeg%20docker%20image)](https://hub.docker.com/r/clearfraction/ffmpeg) [![Docker Image Size with architecture (latest by date/latest semver)](https://img.shields.io/docker/image-size/clearfraction/ffmpeg?label=ffmpeg-cuda%20docker%20image)](https://hub.docker.com/r/clearfraction/ffmpeg-cuda) [![build status](https://img.shields.io/github/actions/workflow/status/clearfraction/mass-rebuild/mass-rebuild.yml?branch=main&label=build%28mass-rebuild%29)](https://github.com/clearfraction/bundles/actions/workflows/bundler.yml?query=branch%3Amaster) [![build status](https://img.shields.io/github/actions/workflow/status/clearfraction/bundles/bundler.yml?branch=master&label=build%28bundler%29)](https://github.com/clearfraction/bundles/actions/workflows/bundler.yml?query=branch%3Amaster) [![](https://img.shields.io/badge/donate-patreon-red)](https://patreon.com/clearfraction) [![](https://img.shields.io/badge/donate-buymeacoffee-yellow)](https://buymeacoffee.com/clearfraction)

Features:

Table of Contents

How to enable the repository

sudo swupd 3rd-party add clearfraction https://clearfraction.vercel.app/update
sudo mkdir -p /etc/environment.d /etc/profile.d
sudo tee -a /etc/environment.d/10-cf.conf << EOF
PATH=/usr/bin/haswell:/usr/bin:/usr/local/bin:/opt/3rd-party/bundles/clearfraction/bin:/opt/3rd-party/bundles/clearfraction/usr/bin:/opt/3rd-party/bundles/clearfraction/usr/local/bin
LD_LIBRARY_PATH=/usr/lib64:/opt/3rd-party/bundles/clearfraction/usr/lib64:/opt/3rd-party/bundles/clearfraction/usr/local/lib64
XDG_DATA_DIRS=/usr/share:/usr/local/share:/opt/3rd-party/bundles/clearfraction/usr/share:/opt/3rd-party/bundles/clearfraction/usr/local/share:/home/$USER/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share
XDG_CONFIG_DIRS=/usr/share/xdg:/etc/xdg:/opt/3rd-party/bundles/clearfraction/usr/share/xdg:/opt/3rd-party/bundles/clearfraction/etc/xdg
FONTCONFIG_PATH=/usr/share/defaults/fonts
GST_PLUGIN_PATH_1_0=/usr/lib64/gstreamer-1.0:/opt/3rd-party/bundles/clearfraction/usr/lib64/gstreamer-1.0
EOF

sudo tee -a /etc/profile.d/10-cf.sh << 'EOF'
[[ ! ${PATH} =~ "/opt/3rd-party/bundles/clearfraction/bin" ]] && \
  PATH=$PATH:/opt/3rd-party/bundles/clearfraction/bin:/opt/3rd-party/bundles/clearfraction/usr/bin:/opt/3rd-party/bundles/clearfraction/usr/local/bin

[[ ! ${LD_LIBRARY_PATH} =~ "/opt/3rd-party/bundles/clearfraction/usr/lib64" ]] && \
  LD_LIBRARY_PATH=/usr/lib64:/opt/3rd-party/bundles/clearfraction/usr/lib64:/opt/3rd-party/bundles/clearfraction/usr/local/lib64${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

[[ ! ${XDG_DATA_DIRS} =~ "/opt/3rd-party/bundles/clearfraction/usr/share" ]] && \
  XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}:/opt/3rd-party/bundles/clearfraction/usr/share/:/opt/3rd-party/bundles/clearfraction/usr/local/share/

[[ ! ${XDG_CONFIG_DIRS} =~ "/opt/3rd-party/bundles/clearfraction/usr/share/xdg" ]] && \
  XDG_CONFIG_DIRS=${XDG_CONFIG_DIRS:-/usr/share/xdg:/etc/xdg}:/opt/3rd-party/bundles/clearfraction/usr/share/xdg:/opt/3rd-party/bundles/clearfraction/etc/xdg

[[ ! ${FONTCONFIG_PATH} =~ "/usr/share/defaults/fonts" ]] && \
  FONTCONFIG_PATH=/usr/share/defaults/fonts${FONTCONFIG_PATH:+:$FONTCONFIG_PATH}

[[ ! ${GST_PLUGIN_PATH_1_0} =~ "/opt/3rd-party/bundles/clearfraction/usr/lib64/gstreamer-1.0" ]] && \
  GST_PLUGIN_PATH_1_0=${GST_PLUGIN_PATH_1_0:-/usr/lib64/gstreamer-1.0}:/opt/3rd-party/bundles/clearfraction/usr/lib64/gstreamer-1.0
EOF

Environment tuning needed for better system integration. Related: swupd-client#1420, swupd-client#1464, swupd-client#1463, swupd-client#1428, swupd-client#1421.

More guides:

Optional steps:

Install software

The repository provides separate codecs and codecs-cuda bundles. Preferably, choose one and not install both. If needed, remove the existing codecs installation first.

How to get updates

sudo swupd 3rd-party update

How to repair

Video playback in Firefox

echo "export LD_LIBRARY_PATH=/opt/3rd-party/bundles/clearfraction/usr/lib64" >> "${HOME}/.config/firefox.conf"

Apply the following Firefox settings via about:config:

For NVidia graphics recommend to try the config written by @marioroy:

curl -L https://github.com/marioroy/nvidia-driver-on-clear-linux/raw/main/HWAccel/firefox/firefox.conf -o "${HOME}/.config/firefox.conf"

For NVidia hardware acceleration set the widget.dmabuf.force-enabled to true in about:config.

Documentation

Donate

Patrons:

Special thanks to: