Skip to content

Instantly share code, notes, and snippets.

@teohhanhui
Last active December 23, 2024 09:18
Show Gist options
  • Save teohhanhui/042a395010d9946ceee14768736e3780 to your computer and use it in GitHub Desktop.
Save teohhanhui/042a395010d9946ceee14768736e3780 to your computer and use it in GitHub Desktop.
Asahi Linux - krun + FEX + Steam

Nothing to see here.

What you want is https://asahilinux.org/2024/10/aaa-gaming-on-asahi-linux/

But if you have previously followed this guide, use the following to switch:

Cleanup

rm -rf ~/.fex-emu
rm ~/.local/bin/{asahi-krun-overlay-fex-rootfs,FEXBash,krun,krun-guest,steam}
rm ~/.local/share/applications/steam.desktop
rm -rf ~/.local/share/asahi-krun
DBX_CONTAINER_MANAGER=podman distrobox rm asahi-krun

Install Steam (on the host)

sudo dnf upgrade --refresh
sudo dnf install --best --setopt=allow_vendor_change=true steam
sudo dnf remove dhcpcd

You might have to reboot the system.

@teohhanhui
Copy link
Author

teohhanhui commented Sep 14, 2024

@jih9uhuuh9 Read from top to bottom (sometimes there are links that jump you back to a previous section because I don't want to repeat myself). Run one command at a time. You can stop when you come to the optional sections.

@Lao-Ben
Copy link

Lao-Ben commented Sep 17, 2024

Thank you for writing this guide ! I succeeded to run steam and games using it a few weeks ago.
But now i'm unable to complete the FEX RootFS step on a new install of Asahi Fedora Remix.

krun FEXRootFSFetcher -y -x --distro-name=fedora --distro-version=40 returns

Failed to execute "FEXRootFSFetcher" as child process: No such file or directory (os error 2)
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
Errors from xkbcomp are not fatal to the X server
FATAL <sommelier.cc:2960> sl_handle_x_connection_event: got error or hangup (mask 5) on X connection, exiting

Should I use an older version of FEX ?
@jih9uhuuh9 Have you found a solution for that error ?

EDIT:
It worked with that version of fex-emu

If you end up here while fex-emu is not in the Fedora stable repo yet, you can download fex-emu-2408-1.fc40.aarch64.rpm from https://koji.fedoraproject.org/koji/buildinfo?buildID=2537498 and do

sudo dnf install ~/Downloads/fex-emu-2408-1.fc40.aarch64.rpm --exclude erofs-fuse --exclude erofs-utils

@nr23730
Copy link

nr23730 commented Sep 17, 2024

You have to install fex-emu-utils.

@TheScreechingBagel
Copy link

krun seems to be packaged in fedora now

@m1m1k4tz
Copy link

I just tried to follow this guide in a fedora toolbox using the packaged krun but I get /home/alex/.local/bin/krun: line 25: exec: distrobox-host-exec: not found is there any reason why it couldn't be shouldn't be compatible with toolbox as well? I think it has a similar command called toolbox run

@m1m1k4tz
Copy link

To get it to use version 40 you need to do -r 40 because for some reason toolbox is stuck on 38 on asahi linux

@Pickles888
Copy link

📦[asynth@asahi-krun krun]$ krun FEXRootFSFetcher -y -x --distro-name=fedora --distro-version=40
thread '<unnamed>' panicked at src/vmm/src/builder.rs:361:49:
called `Result::unwrap()` on an `Err` value: TooLarge
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 4282217296
Aborted (core dumped)

I'm getting an error on the Set up FEX RootFS step.

@garethwebber
Copy link

garethwebber commented Oct 4, 2024

Hi

Running Fedora/Plasma/FEX. Install through two errors - filesystem and dbus. I get a dbus error on steam startup. Is there anything i can do apart from start again?

(zenity:392): Gtk-WARNING **: 19:52:42.824: Unable to acquire session bus: Error spawning command line ?dbus-launch --autolaunch=1a6323469f774f3286abe8442f995381 --binary-syntax --close-stderr?: Child process exited with code 1

Gareth

@teohhanhui
Copy link
Author

@garethwebber:

I get a dbus error on steam startup.

That's "normal". If Steam is not running for you, you'd have to find the relevant error messages... (You can check in the Steam logs to see more of what's actually going on.)

Side note: I haven't been updating this guide lately, so YMMV.

@garethwebber
Copy link

Thanks for coming back.

I see a window open and show it downloading updates. I then get a white W in yellow in my launcher bar but no Steam main window appear. Will keep digging.

Gareth

@teohhanhui
Copy link
Author

Removed :3

@Spidy123222
Copy link

Unfortunately the recent change of adding the new muvm method from asahi. It doesn’t install the rootfs or socat. I got socat but rootfs is a mystery as I’ve tried 7 times to reinstall it.

@teohhanhui
Copy link
Author

teohhanhui commented Oct 11, 2024

@Spidy123222 Follow the cleanup steps, then sudo dnf upgrade --refresh && sudo dnf install steam

(FEX RootFS will be installed as a dependency.)

Then just run steam (or look for the steam train icon from the launcher lol)

@Spidy123222
Copy link

Spidy123222 commented Oct 11, 2024

@Spidy123222 Follow the cleanup steps, then sudo dnf upgrade --refresh && sudo dnf install steam

(FEX RootFS will be installed as a dependency.)

Then just run steam (or look for the steam train icon from the launcher lol)

These steps were already used with no difference. Couldn’t I just install the rootfs separately.

@teohhanhui
Copy link
Author

@Spidy123222 Then I'm afraid you'll need to share more details. Please help us help you.

@Spidy123222
Copy link

Spidy123222 commented Oct 11, 2024

@Spidy123222 Then I'm afraid you'll need to share more details. Please help us help you.

I already told details in fex-emu discord but I’ll show it here. When booting the steam train thing from terminal it specified it cannot find the rootfs /home/asahiuser/•fex-emu/RootFS/Fedora_40-asahi-krun

the fex-emu directory is very empty and there is no RootFS folder.

image of the messages. https://media.discordapp.net/attachments/702130548419723294/1294214612358791220/Screenshot_from_2024-10-11_01-25-48.png?ex=670a32c8&is=6708e148&hm=7dbf68c39f35e49f3a0e70725cc8c59fe654a10157ee4b29d30c790bc02706dc&

@teohhanhui
Copy link
Author

teohhanhui commented Oct 11, 2024

@Spidy123222 Can you confirm you've run

rm -rf ~/.fex-emu

The only explanation for why it's trying to look for that RootFS is because you have leftover fex config from my guide.

@Spidy123222
Copy link

@Spidy123222 Can you confirm you've run

rm -rf ~/.fex-emu

The only explanation for why it's trying to look for that RootFS is because you have leftover fex config from my guide.

Same results after reinstalling steam rpm.

@teohhanhui
Copy link
Author

@Spidy123222 Can you run all of the commands in the cleanup steps please? (I see you were still trying to use the asahi-krun container. It should not be used anymore.)

And then run:

sudo dnf upgrade --refresh
sudo dnf install --best --setopt=allow_vendor_change=true steam

@Spidy123222
Copy link

@Spidy123222 Can you run all of the commands in the cleanup steps please? (I see you were still trying to use the asahi-krun container. It should not be used anymore.)

And then run:

sudo dnf upgrade --refresh
sudo dnf install --best --setopt=allow_vendor_change=true steam

That fixed it. Interesting. Also btw for the distrobox removal. Do --force at end as it fails if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment