Difficulties with using Sunshine on Zorin OS

Hi there, everyone. I have been using Moonlight and Sunshine on my previous devices for a while, but now that I've been using Zorin, I've run into some issues. My Zorin laptop is running Sunshine, but every time I try to use it, an error pops up that says:

So, I ran sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))

This came back with an error:

I tried running this command:

This didn't do anything either. The computer running Moonlight still shows my Host linux computer with an error sign. Any advice?

The error you are seeing when running this command relates to readlink not being provided any arguments, which translates to "it can't find the executable". Based on that, and the screenshot from Brad, I'd say you installed this as Flatpak. Can you confirm this is the case?

If yes, try again with:

sudo setcap cap_sys_admin+p $(readlink -f dev.lizardbyte.sunshine)

Although I don't think this makes much sense. I'd recommend following up with Brad on this, as he'd know (assuming he's the developer on the project) whether this is the correct path or not.


Personally, I'd recommend installing using the Debian native package directly. If you want to try this route, make sure to uninstall the Flatpak version before. You don't technically need to do this, but it's better not to have duplicates.

You can download from their releases page:

To install that, run:

sudo apt install ~/Downloads/sunshine-ubuntu-22.04-amd64.deb

Then, you can run that command again:

sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))

And try again.

2 Likes

It seems I'm not able to uninstall the Flatpak Sunshine, it just keeps staying behind no matter how many times I try to uninstall it from the store. Any other options?

"sudo flatpak uninstall dev.lizardbyte.app.Sunshine"

On the webpage of sunshine these are the commands to remove the flatpak:

"flatpak run --command=remove-additional-install.sh dev.lizardbyte.app.Sunshine"

"flatpak uninstall --delete-data dev.lizardbyte.app.Sunshine"

But I don't know if you have installed the required additional package (or whether it was also installed during the installation via gnome-software). This could also be the reason that the flatpak doesn't work when it is missing. To install the additional package run:

"flatpak run --command=additional-install.sh dev.lizardbyte.app.Sunshine"

and then

"sudo -i PULSE_SERVER=unix:/run/user/$(id -u $whoami)/pulse/native flatpak run dev.lizardbyte.app.Sunshine"

But as @zenzen wrote using the .deb package would be the best.

2 Likes

I also spotted 'streaming' in your post. If tou are logged in with the Wayland compositor streaming is unlikely to work. I would change to Zorin on xorg at login screen.