Skip to content

Fedora KDE

Run Updates

sudo sh -c 'dnf upgrade --refresh -y; dnf autoremove -y; dnf clean all' ; flatpak update -y

Rename Computer

sudo hostnamectl set-hostname [hostname]

Auto Mounting Network Shares

I host users Documents, Music, Pictures and Videos folders on my NAS in a SMB share called "users". Inside of the users share, there is a folder for each user. This allows central access to a users files accross any machine in my network.

There is also a "public" SMB share that I mount to the Public folder that all users can see and use.

Libpam will automatically mount a network location to the specified folder when a user logs in.

Cifs-utils is a package that provides the ability to use SMB shares.

Note

In order for this to work as intended, the username and the password must be the same for each user between the local machine and the NAS/server hosting the SMB share and permissions set accordingly.

Install libpam-mount and cifs-utils:

sudo dnf install libpam-mount cifs-utils -y

Enable pam_mount via postlogin:

sudo nano /etc/pam.d/postlogin
At the end of the file add:

session     optional     pam_mount.so
session     optional     pam_umount.so

Configure pam_mount:

sudo nano /etc/security/pam_mount.conf.xml

Add the following to the end of the file, before the closing </pam_mount>:

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="users/%(USER)/Documents" 
        mountpoint="~/Documents" 
        options="soft,serverino"
/>

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="users/%(USER)/Music" 
        mountpoint="~/Music" 
        options="soft,serverino"
/>

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="users/%(USER)/Pictures" 
        mountpoint="~/Pictures" 
        options="soft,serverino"
/>

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="users/%(USER)/Videos" 
        mountpoint="~/Videos" 
        options="soft,serverino"
/>

<volume
        fstype="cifs" 
        server="192.168.0.11" 
        path="public" 
        mountpoint="~/Public" 
        options="soft,serverino"
/>

Find the line that reads:

<mkmountpoint enable ="1" remove="true">

And change "true" to "false".

Install RPMFusion Repositories

sudo dnf 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

Installing Nvidia Drivers

This requires the non free RPM repositories listed above to be installed. Instructions from RPM Fusion can be found here.

Install the drivers:

sudo dnf install akmod-nvidia

Optionally, install cuda/nvdec/nvenc support:

sudo dnf install xorg-x11-drv-nvidia-cuda
As noted in the RPM Fusion instructions:

Note

After the RPM transaction ends, please remember to wait until the kmod has been built. This can take up to 5 minutes on some systems. Once the module is built, "modinfo -F version nvidia" should outputs the version of the driver such as 440.64 and not modinfo: ERROR: Module nvidia not found.

Install Additional Apps

GNU Image Manipulation Program

A photo editing program similar to photoshop.

sudo dnf install gimp -y

Remmina

A remote desktop client. I use this to RDP into a VM that I use to administer my servers.

sudo dnf install remmina -y

VLC

A media player that has the ability to play almost any type of media file.

sudo dnf install vlc -y

OnlyOffice

An alternative office software suite that looks and behaves much like Microsoft Office.

sudo dnf install https://download.onlyoffice.com/repo/centos/main/noarch/onlyoffice-repo.noarch.rpm -y
sudo dnf install onlyoffice-desktopeditors -y

Remove LibreOffice

I am not a fan of LibreOffice, and instead use OnlyOffice as it provides a expirience that is nearly identical to using a Microsoft Office product.

sudo dnf remove libreoffice-\* -y
rm -rf ~/.config/libreoffice

Switch to full ffmpeg

This requires the RPMFusion repositories to be installed as above.

sudo dnf swap ffmpeg-free ffmpeg --allowerasing -y

Install Codecs

Additional codecs to play various media types. This requires the RPMFusion repositories to be installed as above.

sudo dnf install libavcodec-freeworld -y

Install Gaming Apps

These are the core application I install to game on Linux. I prefer to use the the native rpm packages if available as there is no need to tweak permissions to get the programs to work with each other.

Steam

The digital distribution and storefront for a lot of PC gaming.

sudo dnf install steam -y

MangoHUD

A heads up display that can show stats for a gmae being played.

sudo dnf install mangohud.i686 mangohud.x86_64 -y

Gamescope

A tool develpoed by Valve that runs games in an isolated environment using Xwayland. It provides better performance and compatability with some hardware and games.

sudo dnf install gamescope -y

ProtonUp-Qt

A tool that helps install and manage compatability tools like Proton-GE.

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub net.davidotek.pupgui2

Optional Gaming Apps

Lutris

A game manager that also has install scripts to assist with games not on Steam. It can intigrate with GOG, Epic Games Store, EA App, Ubisoft Connect, and Steam.

sudo dnf install lutris -y

Heroic Games Launcher

A game launcher that works with Epic Games, GOG, and Amazon.

sudo dnf copr enable atim/heroic-games-launcher -y
sudo dnf install heroic-games-launcher-bin -y

Update and Reboot

I run the update command used previously to make sure that everything is up to date and purge any dependencies that are no longer needed:

sudo sh -c 'dnf upgrade --refresh -y; dnf autoremove -y; dnf clean all' ; flatpak update -y

And then reboot:

sudo reboot now

Maintinence

Keeping things up to date is important, so I typically run the commands listed at the beginning of this page to update using dnf and flatpak. You can always use the Software Store to do this, but I find it quicker and easier to simply run these commands. The terminal will keep a history of commands you have used and using the up and down arrow keys, you can simply scroll through and use them again.