ScottSpence.com

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 libnss3.so missing but I couldn’t find anything matching libnss using the the search command:

1sudo dnf search libnss

After a bit of Googling (Startpage.com 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 libdrm.so.2 and libgbm.so.2 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 libasound.so.2 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 libasound.so.2 dependency:

1sudo yum install alsa-lib.x86_64

Install that and try running Cypress again yarn cy:test

Success!!

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