Skip to main content

Настройка после установки

Смена Wayland на Xorg

sudo nano /etc/gdm/custom.conf

[daemon]
WaylandEnable=false
DefaultSession=gnome-xorg.desktop

Установка драйверов Nvidia

modinfo -F version nvidia
sudo dnf update --refresh -y
sudo dnf install -y akmod-nvidia xorg-x11-drv-nvidia-cuda xorg-x11-drv-nvidia-cuda-libs vdpauinfo libva-vdpau-driver libva-utils vulkan
modinfo -F version nvidia

Установка OpenCL для AMD

Opensource:
sudo dnf install -y xorg-x11-drv-amdgpu vulkan-tools mesa-vulkan-drivers
grubby --update-kernel=ALL --args="radeon.cik_support=0 amdgpu.cik_support=1 amdgpu.ppfeaturemask=0xffffffff"

ROCm:
git clone https://github.com/sukhmeetbawa/OpenCL-AMD-Fedora.git
cd ./OpenCL-AMD-Fedora
./opencl-amd.sh

Ускорение работы DNF

echo 'fastestmirror=1' | sudo tee -a /etc/dnf/dnf.conf
echo 'max_parallel_downloads=10' | sudo tee -a /etc/dnf/dnf.conf
echo 'deltarpm=true' | sudo tee -a /etc/dnf/dnf.conf

Обновление прошивок

sudo dnf install -y *-firmware
sudo fwupdmgr get-devices
sudo fwupdmgr refresh --force
sudo fwupdmgr get-updates
sudo fwupdmgr update

Смена имени компьютера

sudo hostnamectl set-hostname fedora

Включение Trim

sudo systemctl enable fstrim.timer

Установка обновлений

sudo dnf upgrade --refresh
sudo dnf check
sudo dnf autoremove
sudo reboot now

Отключение SELinux

sudo grubby --update-kernel=ALL --args="selinux=0"

Установка Gnome Tweaks и Extensions

sudo dnf install -y gnome-extensions-app gnome-tweaks
sudo dnf install -y gnome-shell-extension-appindicator

Подключение репозиториев

sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install -y rpmfusion-free-release-tainted
sudo dnf install -y rpmfusion-nonfree-release-tainted
sudo dnf upgrade --refresh
sudo dnf groupupdate -y core
sudo dnf install -y dnf-plugins-core fedora-workstation-repositories

Включение Flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak update

Включение Snap

sudo dnf install -y snapd
sudo ln -s /var/lib/snapd/snap /snap
sudo reboot now
sudo snap refresh

Установка управления Flatpak

flatpak install -y flatseal

Менеджер расширений

flatpak install -y flathub com.mattjakeman.ExtensionManager

Минимальный набор для кастомизации

sudo dnf install -y gnome-tweaks gnome-extensions-app gnome-shell-extension-appindicator

Увеличение максимальной громкости

gsettings set org.gnome.desktop.sound allow-volume-above-100-percent 'true'

Увеличение лимитов

sudo -i
echo 'fs.inotify.max_user_watches = 524288' >> /etc/sysctl.conf
sysctl -p

Установка кодеков

sudo dnf install -y gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel ffmpeg gstreamer-ffmpeg
sudo dnf install -y lame\* --exclude=lame-devel
sudo dnf install -y libdvdcss
sudo dnf groupupdate sound-and-video
sudo dnf config-manager --set-enabled fedora-cisco-openh264
sudo dnf install -y gstreamer1-plugin-openh264 mozilla-openh264
sudo dnf group upgrade --with-optional Multimedia

Установка шрифтов

sudo dnf install -y 'google-roboto*' 'mozilla-fira*' fira-code-fonts

Включение русского языкового пакета

sudo dnf install -y langpacks-ru

Включение аппаратного декодирования

sudo rpm -qa |grep -e mesa-va-drivers -e mesa-vdpau-drivers
sudo dnf swap mesa-va-drivers mesa-va-drivers-freeworld
sudo dnf swap mesa-vdpau-drivers mesa-vdpau-drivers-freeworld
sudo dnf swap mesa-va-drivers.i686 mesa-va-drivers-freeworld.i686
sudo dnf swap mesa-vdpau-drivers.i686 mesa-vdpau-drivers-freeworld.i686
sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
sudo dnf groupupdate sound-and-video
sudo dnf install -y @multimedia @sound-and-video ffmpeg-libs gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav lame\*

Отключение SELinux

sudo sed -i -e 's/SELINUX=/SELINUX=disabled #/g' /etc/selinux/config
Отключение ABRT
sudo echo "OnlyFatalMCE = yes" >> /etc/abrt/plugins/oops.conf
sudo systemctl stop abrt-journal-core.service
sudo systemctl stop abrt-oops.service
sudo systemctl stop abrt-xorg.service
sudo systemctl stop abrtd.service
sudo systemctl disable abrt-journal-core.service
sudo systemctl disable abrt-oops.service
sudo systemctl disable abrt-xorg.service
sudo systemctl disable abrtd.service

PortProton

sudo dnf update && sudo dnf upgrade --refresh && sudo dnf install curl gamemode icoutils libcurl wget zenity bubblewrap zstd cabextract tar goverlay openssl steam
wget -c "https://github.com/Castro-Fidel/PortWINE/raw/master/portwine_install_script/PortProton_1.0" && sh PortProton_1.0

Дополнительные репозитории

sudo dnf config-manager --add-repo https://repo.vivaldi.com/archive/vivaldi-fedora.repo
sudo dnf config-manager --add-repo https://repo.skype.com/rpm/stable/skype-stable.repo
sudo dnf config-manager --add-repo https://jelmerro.nl/fedora/jelmerro.repo

sudo dnf copr enable perabyte/webapp-manager
sudo dnf copr enable mystro256/rocm-opencl
sudo dnf copr enable gloriouseggroll/amdgpu-vulkan-switcher
sudo dnf copr enable sergiomb/electrons
sudo dnf copr enable wereturtle/stable
sudo dnf copr enable vandebugger/tapper
sudo dnf copr enable principis/howdy
sudo dnf copr enable zeno/scrcpy
sudo dnf copr enable varlad/helix

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

sudo rpm --import https://shop.softmaker.com/repo/linux-repo-public.key
sudo sh -c 'echo -e "[SoftMaker_Office_Repository]\nname=SoftMaker Office Repository\nenabled=1\nautorefresh=1\nbaseurl=https://shop.softmaker.com/repo/rpm\npath=/\ntype=rpm-md\nkeeppackages=0\nrepo_gpgcheck=1\ngpgkey=https://shop.softmaker.com/repo/linux-repo-public.key\nenabled_metadata=0" > /etc/yum.repos.d/softmaker.repo'

cat > /etc/yum.repos.d/AnyDesk-Fedora.repo << "EOF" 
[anydesk]
name=AnyDesk Fedora - stable
baseurl=http://rpm.anydesk.com/fedora/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://keys.anydesk.com/repos/RPM-GPG-KEY
EOF