Coder Social home page Coder Social logo

fedora-post-install-configuration's Introduction

Fedora Post Install for Thinkpad T480

As well as for T460+.

DNF Configuration

sudo nano /etc/dnf/dnf.conf

Add to the end of file:

fastestmirror=1 
max_parallel_downloads=10 
deltarpm=true

RPM Fusion

sudo dnf install -y 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
sudo dnf config-manager --enable fedora-cisco-openh264
sudo dnf groupupdate core

System Update

sudo dnf -y update
sudo dnf -y upgrade --refresh

Reboot.

Firmware

sudo fwupdmgr get-devices
sudo fwupdmgr refresh --force
sudo fwupdmgr get-updates
sudo fwupdmgr update

Media Codecs

sudo dnf groupupdate 'core' 'multimedia' 'sound-and-video' --setop='install_weak_deps=False' --exclude='PackageKit-gstreamer-plugin' --allowerasing && sync
sudo dnf swap 'ffmpeg-free' 'ffmpeg' --allowerasing
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 group upgrade --with-optional Multimedia

Hardware Acceleration

sudo dnf install -y ffmpeg ffmpeg-libs libva libva-utils
sudo dnf install -y intel-media-driver

OpenH264 for Firefox

sudo dnf install -y openh264 gstreamer1-plugin-openh264 mozilla-openh264

Enable the OpenH264 Plugin in Firefox's settings.

Flatpak & Flathub

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

Windows Fonts

sudo dnf install curl cabextract xorg-x11-font-utils fontconfig
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm

Touchpad gestures for X11

sudo dnf install -y touchegg
sudo systemctl enable --now touchegg

Install Gnome Shell Extension: https://extensions.gnome.org/extension/4033/x11-gestures/

Optimizations

Throttled (for Thinkpad T480 only)

sudo dnf install python3-cairo-devel cairo-gobject-devel gobject-introspection-devel dbus-glib-devel python3-devel make libX11-devel
git clone https://github.com/erpalma/throttled.git
sudo ./throttled/install.sh

Modern Standby

sudo grubby --update-kernel=ALL --args="mem_sleep_default=s2idle"

Tuned

sudo dnf install -y tuned
sudo systemctl mask power-profiles-daemon
sudo systemctl enable --now tuned
tuned-adm list

Chose what you need:

sudo tuned-adm profile desktop
sudo tuned-adm profile laptop-battery-powersave
sudo tuned-adm profile realtime
sudo tuned-adm profile latency-performance
sudo tuned-adm profile throughput-performance

Disable Gnome Software from Startup Apps

sudo rm /etc/xdg/autostart/org.gnome.Software.desktop

Disable services for better boot time

sudo systemctl disable NetworkManager-wait-online.service
sudo systemctl mask systemd-udev-settle

Reduce the Systemd timeout for services

sudo nano /etc/systemd/system.conf
DefaultTimeoutStartSec=15s
DefaultTimeoutStopSec=15s

Fix slow Wi-Fi on Linux

sudo nano /etc/modprobe.d/iwlwifi.conf
options iwlwifi 11n_disable=8

Reboot.

sysctl.conf

sudo nano /etc/sysctl.conf
vm.swappiness=10
vm.max_map_count=2147483642
vm.vfs_cache_pressure = 50
net.core.netdev_max_backlog = 16384
net.core.somaxconn = 8192

Ext4 - Performance Improvement

sudo nano /etc/fstab

Add noatime to your system partition.

/dev/sda5    /    ext4    defaults,noatime    0    1

Xanmod Kernel

sudo dnf copr enable rmnscnce/kernel-xanmod
sudo nano /etc/dnf/dnf.conf

Add to the end of file:

exclude=kernel
sudo dnf install -y kernel-xanmod-edge

Choose default kernel:

sudo grubby --info=ALL | grep -E "^kernel|^index"

Where N is a kernel number:

sudo grubby --set-default-index=N

Betterfox

You can install Betterfox from here.

Configuring GNOME Software

gsettings set org.gnome.software download-updates false
gsettings set org.gnome.software download-updates-notify false

Software installation

From repositories

sudo dnf install -y gnome-tweaks

From Flathub

flatpak install flathub com.mattjakeman.ExtensionManager flathub com.github.tchx84.Flatseal

Gnome Shell Extensions

Theming

gtk3-awd

sudo dnf install -y adw-gtk3-theme
flatpak install org.gtk.Gtk3theme.adw-gtk3 org.gtk.Gtk3theme.adw-gtk3-dark

Enable light:

gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3' && gsettings set org.gnome.desktop.interface color-scheme 'default'

Enable dark:

gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3-dark' && gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'```

KvLibadwaita for Kvantum apps

git clone https://github.com/GabePoel/KvLibadwaita.git
cd KvLibadwaita
./install.sh

Firefox Gnome Theme

curl -s -o- https://raw.githubusercontent.com/rafaelmardojai/firefox-gnome-theme/master/scripts/install-by-curl.sh | bash

Starship

curl -sS https://starship.rs/install.sh | sh

For ZSH:

Add the following to the end of ~/.zshrc:

eval "$(starship init zsh)"

For Bash:

Add the following to the end of ~/.bashrc:

eval "$(starship init bash)"

Fix the cursor issue in Telegram Desktop (Flatpak) on X11 running Linux (Fedora)

cd /usr/share/icons
cp -r Adwaita ~/.icons/Adwaita
flatpak install flathub com.github.tchx84.Flatseal
echo "Xcursor.theme: Adwaita" > ~/.Xresources
  1. Launch Flatseal and append rules to the Telegram Desktop app.
  2. Under Filesystem, enable "All user files" and append ~/.themes and ~/.icons in Other files.

Use Alt-Shift for keyboard layout switching in GNOME 40+

gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Alt_L']"
gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Alt>Shift_L']"

fedora-post-install-configuration's People

Contributors

dotninth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.