Team Fortress 2

Team Fortress 2

Not enough ratings
How to Play TF2 on Linux (Outdated)
By Cloudy
As was noticed, Valve screwed up with one update and now it doesn't boot up for some people on Linux. However, I do have a solution for those in need.
   
Award
Favorite
Favorited
Unfavorite
The solution for different distros
Gentoo:
USE="abi_x86_32" emerge dev-util/google-perftools # install 32bit version of libtcmalloc
cd ~/.local/share/Steam/steamapps/common/Team\ Fortress\ 2/bin
mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4.bak
ln -s /usr/lib/libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4 # cp also works

Arch:
yay or paru lib32-gperftools from the aur then LD_PRELOAD=/usr/lib32/libtcmalloc.so %command% in launch options

Fedora:
sudo dnf install gperftools-libs.x86_64 then set your launch commands to LD_PRELOAD=/usr/lib/libtmalloc_and_profiler.so.4 %command%


WARNING: As with any solution you follow on the internet, I would be careful of the possibility of VAC bans taking place. So far it hasn't happened, but I would still be careful.
3 Comments
Cloudy  [author] 10 Feb, 2024 @ 5:37pm 
Make sure you're copying the file location. This doesn't work otherwise with the flatpak version of Steam unless you're using flatseal to allow it access to that location.
Cloudy  [author] 10 Feb, 2024 @ 5:30pm 
Also make sure you're linking to the location of where you've installed that file.
Cloudy  [author] 10 Feb, 2024 @ 5:29pm 
Did you check the launch options at all?