Team Fortress 2

Team Fortress 2

Not enough ratings
How to play TF2 on Fedora Linux (Outdated)
By Cloudy
This is a guide for those who are using Fedora Linux, but have problems starting TF2 up.
2
   
Award
Favorite
Favorited
Unfavorite
Fixing the crashing bug that affects TF2 on Fedora
I fixed this bug by removing the libtcmalloc_minimal.so.4 library in the bin folder in the tf2 folder and making a symbolic link to the libtcmalloc_minimal.so.4 library from the system. But it is worth installing packages, by command sudo dnf install gperftools gperftools-devel gperftools-libs.i686

Note: create a symlink from /lib/libtcmalloc_minimal.so.4
Note 2: cd to .local/share/Steam/steamapps/common/Team Fortress 2/bin/ then ln -s /lib/libtcmalloc_minimal.so.4
Audio Fix
Audio might not play so type into terminal on fedora: sudo ausearch -c 'hl2_linux' --raw | audit2allow -M my-hl2linux and sudo semodule -i my-hl2linux.pp


OR

sudo dnf copr enable kylegospo/hl2linux-selinux
sudo dnf install hl2linux-selinux
sudo setsebool -P selinuxuser_execheap 1
Fix for a recent bug that happened for everybody else and Fedora users
LLVM is having issues recently,
sudo dnf install gperftools-libs.x86_64 then set your launch commands to LD_PRELOAD=/usr/lib/libtmalloc_and_profiler.so.4 %command%

This will fix LLVM issues.
32 Comments
Deep Glock Gyattic 10 Nov, 2024 @ 12:19pm 
please help. i am on fedora linux on MAC
Deep Glock Gyattic 10 Nov, 2024 @ 11:37am 
Tf2 starts up fine, but after 10 minutes gets very stuttery than closes. Please I’m using fedora Linux MacBook Air m2.
Deep Glock Gyattic 10 Nov, 2024 @ 11:34am 
amazing guide thank you
Cloudy  [author] 25 Jan, 2024 @ 7:40pm 
Just to be clear in relation to people telling others just to use flatpak is flawed. You'll still experience the same issues on a Fedora system.
aspens 18 Sep, 2023 @ 1:26pm 
i made a guide with some more detailed instructions based on this guide that seem to work for me :)
aspens 6 Sep, 2023 @ 7:11pm 
note that you have to be using the flatpak [flathub.org] of steam for this to work!
🌸Azuma🌸 31 Aug, 2023 @ 12:44pm 
rip
Cloudy  [author] 30 Aug, 2023 @ 8:59pm 
Somebody tried using this solution on Arch without a second thought. They deleted their comment afterwards.
🌸Azuma🌸 30 Aug, 2023 @ 8:26pm 
I am not using arch I am using Fedora 38
Cloudy  [author] 30 Aug, 2023 @ 6:10pm 
Please be aware that this guide isn't meant for Arch. I would wait for Valve to update steam to fix any issues.