What to do after installing Fedora 24+

UPDATED REGULARLY, COME BACK FOR UPDATES

Also applies to Fedora 25, 26, 27, etc.
  1. Download update and reboot
    dnf update --refresh -y
  2. If migrating from other version use this to find out manually installed packages:
    dnf history userinstalled
  3. To set max installed kernel:
    vim /etc/dnf/dnf.conf
    installonly_limit=2
  4. Install gnome-tweak-tool
  5. Install rpmfusion packages from http://rpmfusion.org/Configuration

    dnf install gstreamer{1,}-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} --setopt=strict=0


    I use this repo before rpmfusion ready:
    baseurl=http://ftp-stud.hs-esslingen.de/pub/fusion-24/RPMS/
  6. Install steam from http://negativo17.org/steam/
  7. Install gnome extensions
    http://goo.gl/DKZGcG
  8. Show battery percentage
    gsettings set org.gnome.desktop.interface show-battery-percentage true
  9. Add lcd filter (lcddefault or lcdlight) for better font rendering
    cat ~/.config/fontconfig/conf.d/20-custom.conf
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
      <match target="font">
        <!-- edit name="embeddedbitmap" mode="assign">
          <bool>false</bool>
        </edit -->
        <edit name="lcdfilter" mode="assign">
          <const>lcddefault</const>
        </edit>
      </match>
    </fontconfig>
  10. Add /etc/profile.d/custom.sh
    HISTSIZE=1000000
    alias rm='rm -i'

    alias cp='cp -i'

    alias mv='mv -i'
  11. Disable packagekit / gnome update in background
    gsettings set org.gnome.software download-updates false
  12. Disable dnf auto update
    systemctl disable dnf-makecache.timer
    systemctl disable dnf-makecache.service
  13. Limit journald logs
    vim /etc/systemd/journald.conf
    SystemMaxUse=200M
  14. Install frontend for dnf:
    dnf install yumex-dnf
    dnf install dnfdragora-gui
  15. Install menulibre or alacarte for creating custom menu (.desktop)
  16. Install Shutter for easily creating screenshot and annotate it
  17. Install system-config-printer to add printer and more advanced cups setting
  18. Install eiciel to set acl using gui, it will also shown in nautilus - properties
  19. Install tracker-preferences to set Indexing Preferences I decided to disable tracker see below
  20. To prevent your laptop in bag rapidly resume & suspend when battery very low (5%) , edit /etc/systemd/logind.conf and change:
    HandleLidSwitch=poweroffIf you have configured suspend to swap, change to:
    HandleLidSwitch=hibernate
  21. vim /etc/default/grub
    GRUB_TIMEOUT=1
    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
  22. Install these cool fonts for coding (I use source code pro):
    dnf install levien-inconsolata-fonts adobe-source-code-pro-fonts mozilla-fira-mono-fonts  google-droid-sans-mono-fonts  dejavu-sans-mono-fonts
    And this one https://github.com/chrissimpkins/Hack
    also this: https://github.com/andreberg/Meslo-Font
  23. Install chrome os fonts:
    dnf install google-croscore-arimo-fonts.noarch google-croscore-tinos-fonts.noarch  google-croscore-cousine-fonts.noarch  google-croscore-fonts-common.noarch google-croscore-symbolneu-fonts.noarch

    Prefer using those fonts as default:
    cat ~/.config/fontconfig/conf.d/62-google-croscore.conf
    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
        <match target="pattern">
            <test qual="any" name="family"><string>Arial</string></test>
            <edit name="family" mode="assign" binding="same"><string>Arimo</string></edit>
        </match>
        <match target="pattern">
            <test qual="any" name="family"><string>Times New Roman</string></test>
            <edit name="family" mode="assign" binding="same"><string>Tinos</string></edit>
        </match>
        <match target="pattern">
            <test qual="any" name="family"><string>Courier New</string></test>
            <edit name="family" mode="assign" binding="same"><string>Cousine</string></edit>
        </match>
        <alias>
            <family>sans-serif</family>
            <prefer>
                <family>Arimo</family>
            </prefer>
        </alias>
        <alias>
            <family>serif</family>
            <prefer>
                <family>Tinos</family>
            </prefer>
        </alias>
        <!--alias>
            <family>monospace</family>
            <prefer>
                <family>Cousine</family>
            </prefer>
        </alias-->
    </fontconfig>
  24. Install ms font:
    rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
    Remove some fonts cause we're prefer chrome os fonts:
    cd /usr/share/fonts/msttcore
    rm -f arial* calibri* cambria* cour* times*
  25. Install firefox extension to save password to keyring: GNOME Keyring integration
  26. Disable tracker
    cp /etc/xdg/autostart/tracker-* ~/.config/autostart/
    sed -i 's/^X-GNOME-Autostart-enabled=.*/X-GNOME-Autostart-enabled=false/g' ~/.config/autostart/tracker-*
    killall -r tracker
    rm -rf ~/.cache/tracker/*  ~/.local/share/tracker/data/
  27. Wifi unstable: rtl8723be
    vi /etc/modprobe.d/wifi.conf
    options rtl8723be fwlps=0
    options rtl8723be ant_sel=2
  28. Disable other unused services, to boot faster
    systemctl mask plymouth-quit-wait
    systemctl disable libvirtd.service
    systemctl disable dmraid-activation
    systemctl disable firewalld
    systemctl disable hypervkvpd.service
    systemctl disable hypervfcopyd.service
    systemctl disable hypervvssd.service
  29. Set battery threshold for my Thinkpad
    git clone https://github.com/biji/acpi_call.git
    cd acpi_call
    # you have to disable secure boot temporary to load module
    make install load
    Install tp-acpi-call from https://github.com/teleshoes/tpacpi-bat
    ./tpacpi-bat -s start 1 75
    ./tpacpi-bat -s stop 1 80
  30. Install tuned and tuned-gui to save battery
  31. Install tlp to save battery (http://linrunner.de/en/tlp/tlp.html)
    dnf install tlp tlp-rdw
    systemctl mask systemd-rfkill.service
    vim /etc/default/tlp

    CPU_MIN_PERF_ON_AC=10
    CPU_MAX_PERF_ON_AC=100
    CPU_MIN_PERF_ON_BAT=0
    CPU_MAX_PERF_ON_BAT=30

    SCHED_POWERSAVE_ON_AC=0
    SCHED_POWERSAVE_ON_BAT=1

    NMI_WATCHDOG=0

    ENERGY_PERF_POLICY_ON_AC=performance
    ENERGY_PERF_POLICY_ON_BAT=power

    START_CHARGE_THRESH_BAT0=75
    STOP_CHARGE_THRESH_BAT0=80

    Fix selinux warning:
    semanage fcontext -a -t ifconfig_var_run_t /var/run/tlp/lock_tlp
    restorecon -R -v /var/run/tlp
  32. Install mpv or gnome-mpv  to play movies
  33. Install powerline for cool bash prompt :
    https://goo.gl/LB9HU6
  34. Change thumbnail cache age to save disk and privacy:
    run dconf-editor, navigate to /org/gnome/desktop/thumbnail-cache/maximum-age
    Set custom value to 1 
  35. Add to /etc/rc.d/rc.local :
    # add more if you have sdb, sdc
    echo 4096 > /sys/block/sda/queue/read_ahead_kb
    # if you have mmc
    echo 4096 > /sys/block/mmcblk0/queue/read_ahead_kb
  36. Install global audio equalizer
    dnf install pulseaudio-equalizer
  37. Speedup dnf download
    Edit /etc/dnf/dnf.conf. Add the line fastestmirror=true under [main] 
  38. Install gnome to do
--

Comments

Dorian Bolivar said…
Absolutely brilliant, and still valid (most of it) for Fedora 30. I specially liked the fonts tuning, which was very detailed and complete. Made my desktop look much nicer. Thanks!

Popular posts from this blog

Ports to allow for whatsapp call

Manually clean up zimbra zmcat/zmcpustat exploit

Keychron K2 in Linux