I got steam fully working on arch linux, no multilib repo. only 64 bit.

Here is the issue I learned about this from, and here is the maintainers stance on why they won’t change it.
tl;dr: 32 bit linux native games stop working, as they need 32 bit libs. But, they can still be run through proton wow64 and the windows version of the game. The kernel also still needs to support running 32 bit applications. The devs don’t like this approach because apparently not all 32 bit games are supported via this method.

Workaround

I installed steam on Arch linux with the multilib repo disabled, skipping all 32 bit dependencies. Everything essentially works, but launching a game doesn’t work. Turns out the only thing stopping it is a single 32 bit binary called reaper. It’s essentially a process-supervisor helper used for every game launch. Note: It could/should be a 64 bit binary, but here is the maintainer’s reason why it isn’t

I chose a stupid workaround that was in the thread. I got the 64 bit reaper from this repo, and used binfmt_misc to run the 64 bit reaper anytime the 32 bit one is called. Compiled with the reaper32’s file size and checksum constants to get past steam’s integrity check.

Tested so far

  • Terraria: native linux 64 bit game. works.
  • TF2: same thing
  • Half Life 2 (32 bit, windows build): Launched with Proton Experimental with launch flags PROTON_USE_WOW64=1 %command% No issues.

Tbf i haven’t extensively tested everything, but it all seems to work. And IMO, it’s worth it. Especially for finally dropping 32 bit libs. Like half a gigabyte of useless updates and dependencies gone.

What do you think? Would you deal with potential compatibility issues with some older 32 bit games for the sake of finally dropping 32 bit libs on your desktop?

Edit: this is not meant to be a guide. This is just a showcase of what can be done, and what steam could do, but just doesn’t. You should expect online games with anticheats to flag you as a cheater, as you’re tampering with the integrity of the files. I personally dont play much online games, at least on steam. If you want to do it yourself, go to the 64 bit reaper repo, and use the PKGBUILD. There is no performance improvement.

Valve doing this would finally drop 32 bit support on basically every modern distro/software as the standard. Finally reducing maintainers workload compiling old, useless 32 bit libs. This is an update they could push tomorrow. I only made the post because they maintainers seem to be against it?

  • wizzim@infosec.pub
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 days ago

    Compiled with the reaper32’s file size and checksum constants to get past steam’s integrity check.

    Out of curiosity, how do you achieve that the 64 bit reaper has the same checksum as the 32 bits one ?

    • fatAristocat@piefed.zipOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      python to compute CRC32 from the file, change <your-user>

      #!/usr/bin/env python3
      import zlib
      
      path = "/home/<your-user>/.local/share/Steam/steamrt64/reaper"
      with open(path, "rb") as f:
          print(zlib.crc32(f.read()))
      

      compile reaper using gcc with the value it returned. where {$CRC} is

      gcc -O2 -DSTEAM_REAPER_SIZE="$SIZE" -DSTEAM_REAPER_CRC32="{$CRC}u" -o reaper64 reaper64.c -lz
      

      You could also click the link that has the reaper64, it has the PKGBUILD that does all the instructions for you. I just did it manually because i didn’t realise it was there lmao.

    • FauxLiving@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      I believe the checksum is CRC32.

      It’s not cryptographic and I think the transformation is linear so you could just calculate a few bytes of padding which would cause the CRC32 checksums to match.

      I’d be a bit careful of using this in anticheat games, they could be checking the cryptographic signatures of the running executables and the CRC32 collision won’t fool that.