Scott's Thoughts Pamphlet!

Fedora Remix for WSL GUI Apps

Fedora Remix for WSL was on sale for £2.51 so I thought I’d have a look see and add it to the rest of the other WSL distros I have installed.

As I’m all jazzed about using Cypress in WSL I thought I’d give it a go on Fedora.

There’s a few dependencies that are detailed by the Cypress CLI output that helps you underestand what needs to be installed, there were a few that took a bit of searching to find but I’ve got it working in now.

Unlike the post I did previously on doing it with Debian based WSL instances like Ubuntu and Debian there’s no need to set the $DISPLAY variable like detailed in Nicky’s post.

Also I didn’t configure to Automatically start dbus or Grant passwordless access for dbus. Right, enough link love to Nicky’s site!

I’m using the MDX Embed project to run the Cypress tests which I have validated with Debian and Ubuntu in previous posts on here.

Here’s the dependencies that I needed to install:

1sudo dnf install \
2 \ libX11
3 \ libX11-xcb
4 \ nss
5 \ libdrm
6 \ libgbm
7 \ libasound
8 \ libXv -y

This one that I couldn’t find with dnf:

1# elusive to find dependency
2sudo yum install alsa-lib.x86_64

ℹ the -y at the end of that command will automatically install the dependencies for you.

There was one part for missing but I couldn’t find anything matching libnss using the the search command:

1sudo dnf search libnss

After a bit of Googling ( actually) I found in the comments of this Stack Overflow question there was the clue:

stack overflow comment

Install that:

1sudo dnf install nss -y

Then run yarn cy:test on the MDX Embed project…

Errors for and installed those and tried again.

ℹ both of those are included in the first block of dependencies.

1sudo dnf install libdrm libgbm -y

Next error from the Cypress CLI, missing this was a bit of a pain to find, I eventually came across this post on Code Weavers, it wasn’t that actual post it was referred to from this page.

It details adding alsa-lib.x86_64 which installs the missing dependency:

1sudo yum install alsa-lib.x86_64

Install that and try running Cypress again yarn cy:test


That’s it! I now have Fedora Remix for WSL working with GUI apps as well!!

Back to Top

Scott Spence

Built with Gatsby · Hosted on Vercel · 2021