ujust install-sunshine seems to fail

A huge thank you for the update today, wanted to report a potential issue with the just configs however. Tried the above command twice followed by a reboot each time. The second attempt I saw it ran the two repo commands, then it searched available repos (which it said were cached), said package not found and then printed that sunshine is already installed. There is no shortcut in the application launcher and i can't find it in /usr/bin
deck@steamdeck:/var/home/deck$ systemctl status --user sunshine.service
Unit sunshine.service could not be found.
deck@steamdeck:/var/home/deck$ systemctl status sunshine.service
Unit sunshine.service could not be found.
deck@steamdeck:/var/home/deck$ which sunshine
/usr/bin/which: no sunshine in (/home/deck/.local/bin:/home/deck/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
deck@steamdeck:/var/home/deck$ systemctl status --user sunshine.service
Unit sunshine.service could not be found.
deck@steamdeck:/var/home/deck$ systemctl status sunshine.service
Unit sunshine.service could not be found.
deck@steamdeck:/var/home/deck$ which sunshine
/usr/bin/which: no sunshine in (/home/deck/.local/bin:/home/deck/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
Thanks
26 Replies
Serious Table
Serious Table11mo ago
I'm seeing a similar issue on the Nvidia image. Here's the output of running the recipe:
Checking out tree 0932b60... done
Enabled rpm-md repositories: copr:copr.fedorainfracloud.org:sentry:kernel-fsync copr:copr.fedorainfracloud.org:ublue-os:staging updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree rpmfusion-nonfree-debuginfo rpmfusion-nonfree-source rpmfusion-nonfree-updates rpmfusion-nonfree-updates-debuginfo rpmfusion-nonfree-updates-source updates-archive
Importing rpm-md... done
rpm-md repo 'copr:copr.fedorainfracloud.org:sentry:kernel-fsync' (cached); generated: 2024-01-14T23:06:32Z solvables: 49
rpm-md repo 'copr:copr.fedorainfracloud.org:ublue-os:staging' (cached); generated: 2024-01-19T03:51:40Z solvables: 86
rpm-md repo 'updates' (cached); generated: 2024-01-19T02:33:31Z solvables: 19173
rpm-md repo 'fedora' (cached); generated: 2023-11-01T00:12:39Z solvables: 70825
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2024-01-17T19:50:12Z solvables: 139
rpm-md repo 'rpmfusion-free' (cached); generated: 2023-11-04T16:49:08Z solvables: 445
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2023-11-04T17:26:32Z solvables: 208
rpm-md repo 'rpmfusion-nonfree-debuginfo' (cached); generated: 2023-11-04T17:26:03Z solvables: 149
rpm-md repo 'rpmfusion-nonfree-source' (cached); generated: 2023-11-04T17:26:03Z solvables: 109
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2024-01-17T20:05:42Z solvables: 58
rpm-md repo 'rpmfusion-nonfree-updates-debuginfo' (cached); generated: 2024-01-17T20:05:19Z solvables: 21
rpm-md repo 'rpmfusion-nonfree-updates-source' (cached); generated: 2024-01-17T20:05:19Z solvables: 22
rpm-md repo 'updates-archive' (cached); generated: 2024-01-19T03:02:58Z solvables: 23887
error: Packages not found: sunshine
Sunshine is installed!
Checking out tree 0932b60... done
Enabled rpm-md repositories: copr:copr.fedorainfracloud.org:sentry:kernel-fsync copr:copr.fedorainfracloud.org:ublue-os:staging updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree rpmfusion-nonfree-debuginfo rpmfusion-nonfree-source rpmfusion-nonfree-updates rpmfusion-nonfree-updates-debuginfo rpmfusion-nonfree-updates-source updates-archive
Importing rpm-md... done
rpm-md repo 'copr:copr.fedorainfracloud.org:sentry:kernel-fsync' (cached); generated: 2024-01-14T23:06:32Z solvables: 49
rpm-md repo 'copr:copr.fedorainfracloud.org:ublue-os:staging' (cached); generated: 2024-01-19T03:51:40Z solvables: 86
rpm-md repo 'updates' (cached); generated: 2024-01-19T02:33:31Z solvables: 19173
rpm-md repo 'fedora' (cached); generated: 2023-11-01T00:12:39Z solvables: 70825
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2024-01-17T19:50:12Z solvables: 139
rpm-md repo 'rpmfusion-free' (cached); generated: 2023-11-04T16:49:08Z solvables: 445
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2023-11-04T17:26:32Z solvables: 208
rpm-md repo 'rpmfusion-nonfree-debuginfo' (cached); generated: 2023-11-04T17:26:03Z solvables: 149
rpm-md repo 'rpmfusion-nonfree-source' (cached); generated: 2023-11-04T17:26:03Z solvables: 109
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2024-01-17T20:05:42Z solvables: 58
rpm-md repo 'rpmfusion-nonfree-updates-debuginfo' (cached); generated: 2024-01-17T20:05:19Z solvables: 21
rpm-md repo 'rpmfusion-nonfree-updates-source' (cached); generated: 2024-01-17T20:05:19Z solvables: 22
rpm-md repo 'updates-archive' (cached); generated: 2024-01-19T03:02:58Z solvables: 23887
error: Packages not found: sunshine
Sunshine is installed!
As noted above, no Sunshine shortcut or command available to run.
BearFOX
BearFOXOP11mo ago
likely identical but here is my log from a third attempt where I manually ran each command that the ujust command would run.
Checking out tree 2d6a95f... done
Enabled rpm-md repositories: copr:copr.fedorainfracloud.org:sentry:kernel-fsync copr:copr.fedorainfracloud.org:ublue-os:staging fedora-cisco-openh264 updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree rpmfusion-nonfree-debuginfo rpmfusion-nonfree-source rpmfusion-nonfree-updates rpmfusion-nonfree-updates-debuginfo rpmfusion-nonfree-updates-source updates-archive
Importing rpm-md... done
rpm-md repo 'copr:copr.fedorainfracloud.org:sentry:kernel-fsync' (cached); generated: 2024-01-14T23:06:32Z solvables: 49
rpm-md repo 'copr:copr.fedorainfracloud.org:ublue-os:staging' (cached); generated: 2024-01-19T03:51:40Z solvables: 86
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2023-03-14T10:57:01Z solvables: 4
rpm-md repo 'updates' (cached); generated: 2024-01-19T02:33:31Z solvables: 19173
rpm-md repo 'fedora' (cached); generated: 2023-11-01T00:12:39Z solvables: 70825
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2024-01-17T19:50:12Z solvables: 139
rpm-md repo 'rpmfusion-free' (cached); generated: 2023-11-04T16:49:08Z solvables: 445
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2023-11-04T17:26:32Z solvables: 208
rpm-md repo 'rpmfusion-nonfree-debuginfo' (cached); generated: 2023-11-04T17:26:03Z solvables: 149
rpm-md repo 'rpmfusion-nonfree-source' (cached); generated: 2023-11-04T17:26:03Z solvables: 109
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2024-01-17T20:05:42Z solvables: 58
rpm-md repo 'rpmfusion-nonfree-updates-debuginfo' (cached); generated: 2024-01-17T20:05:19Z solvables: 21
rpm-md repo 'rpmfusion-nonfree-updates-source' (cached); generated: 2024-01-17T20:05:19Z solvables: 22
rpm-md repo 'updates-archive' (cached); generated: 2024-01-19T03:02:58Z solvables: 23887
error: Packages not found: sunshine
Checking out tree 2d6a95f... done
Enabled rpm-md repositories: copr:copr.fedorainfracloud.org:sentry:kernel-fsync copr:copr.fedorainfracloud.org:ublue-os:staging fedora-cisco-openh264 updates fedora rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree rpmfusion-nonfree-debuginfo rpmfusion-nonfree-source rpmfusion-nonfree-updates rpmfusion-nonfree-updates-debuginfo rpmfusion-nonfree-updates-source updates-archive
Importing rpm-md... done
rpm-md repo 'copr:copr.fedorainfracloud.org:sentry:kernel-fsync' (cached); generated: 2024-01-14T23:06:32Z solvables: 49
rpm-md repo 'copr:copr.fedorainfracloud.org:ublue-os:staging' (cached); generated: 2024-01-19T03:51:40Z solvables: 86
rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2023-03-14T10:57:01Z solvables: 4
rpm-md repo 'updates' (cached); generated: 2024-01-19T02:33:31Z solvables: 19173
rpm-md repo 'fedora' (cached); generated: 2023-11-01T00:12:39Z solvables: 70825
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2024-01-17T19:50:12Z solvables: 139
rpm-md repo 'rpmfusion-free' (cached); generated: 2023-11-04T16:49:08Z solvables: 445
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2023-11-04T17:26:32Z solvables: 208
rpm-md repo 'rpmfusion-nonfree-debuginfo' (cached); generated: 2023-11-04T17:26:03Z solvables: 149
rpm-md repo 'rpmfusion-nonfree-source' (cached); generated: 2023-11-04T17:26:03Z solvables: 109
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2024-01-17T20:05:42Z solvables: 58
rpm-md repo 'rpmfusion-nonfree-updates-debuginfo' (cached); generated: 2024-01-17T20:05:19Z solvables: 21
rpm-md repo 'rpmfusion-nonfree-updates-source' (cached); generated: 2024-01-17T20:05:19Z solvables: 22
rpm-md repo 'updates-archive' (cached); generated: 2024-01-19T03:02:58Z solvables: 23887
error: Packages not found: sunshine
https://discord.com/channels/1072614816579063828/1087140957096517672/1198023417723621467
BearFOX
BearFOXOP11mo ago
Fedora 39 has an rpm build in nightly on their github but that's it rn. https://github.com/LizardByte/Sunshine/releases/tag/nightly-dev
GitHub
Release nightly · LizardByte/Sunshine
automated nightly release - 2024-01-19T02:54:22Z - 6cdb7f7
Kyle Gospo
Kyle Gospo11mo ago
Building with just pointed here @BearFOX @Serious Table now live
Serious Table
Serious Table11mo ago
Thank you for such a quick turnaround. I'll give it a test shortly! I can confirm it installs! Runs, and no errors about codec any longer. I'll do further testing later this evening, but thank you again!
Kyle Gospo
Kyle Gospo11mo ago
np! should also no longer require running it as root since it has the correct caps to run as admin can confirm with getcap /usr/bin/sunshine
Serious Table
Serious Table11mo ago
And not only is it working beautifully, it even worked with MoonDeck!
BearFOX
BearFOXOP11mo ago
So for me (on deck), in desktop mode the .desktop in application launchers fails to run, when i copy the .desktop's argument into terminal, it says no such service, which i confirmed with systemctl status & --user variant. Typing sunshine into terminal does launch it, and i can stream to moonlight while in desktop mode. It is using KMS, it does display on my TV but the display is rotated sideways. Similarly the just command to autostart sunshine also fails due to no such service. I can manually set one up, I'm just thinking of OOTB user experience
Kyle Gospo
Kyle Gospo11mo ago
did you restart after installing?
BearFOX
BearFOXOP11mo ago
I think so. Because i first tried to access the config page through ms edge in game mode I'll reboot again and retest Yeah i definitely did restart (just checked my past terminal entries via the up key) But i have since rebooted once more and behaviour remains the same deck@steamdeck:~$ systemctl start --u sunshine Failed to start sunshine.service: Unit sunshine.service not found.
BearFOX
BearFOXOP11mo ago
No description
Kyle Gospo
Kyle Gospo11mo ago
it's an installed package, so it wouldn't be in home rpm-ostree status | fpaste
Kyle Gospo
Kyle Gospo11mo ago
sunshine-0.21.0-1.x86_64 definitely layered
BearFOX
BearFOXOP11mo ago
idk if this is helpful (list-unit-files): https://paste.centos.org/view/77e7789b
Kyle Gospo
Kyle Gospo11mo ago
are you using the original sunshine desktop file, or some custom one from a previous solution? cause I don't see anyhing about a service upstream, they just call /usr/bin/sunshine
BearFOX
BearFOXOP11mo ago
it's a new .desktop in /usr/share/applications/ date created 23:48 on 19 Jan
Kyle Gospo
Kyle Gospo11mo ago
and what are it's contents?
BearFOX
BearFOXOP11mo ago
[Desktop Entry]
Type=Application
Name=Sunshine
Exec=/usr/bin/env systemctl start --u sunshine
Version=1.0
Comment=Sunshine is a self-hosted game stream host for Moonlight.
Icon=sunshine
Keywords=gamestream;stream;moonlight;remote play;
Categories=AudioVideo;Network;RemoteAccess;
Actions=RunInTerminal;

[Desktop Action RunInTerminal]
Name=Run in Terminal
Icon=application-x-executable
Exec=gio launch /applications/sunshine_terminal.desktop
[Desktop Entry]
Type=Application
Name=Sunshine
Exec=/usr/bin/env systemctl start --u sunshine
Version=1.0
Comment=Sunshine is a self-hosted game stream host for Moonlight.
Icon=sunshine
Keywords=gamestream;stream;moonlight;remote play;
Categories=AudioVideo;Network;RemoteAccess;
Actions=RunInTerminal;

[Desktop Action RunInTerminal]
Name=Run in Terminal
Icon=application-x-executable
Exec=gio launch /applications/sunshine_terminal.desktop
Kyle Gospo
Kyle Gospo11mo ago
should be in /usr/lib/systemd/user
BearFOX
BearFOXOP11mo ago
in the past (before xmas) i have tried the appimage, flatpak and rpm builds but removed all as far as i could find contents of that directory: https://paste.centos.org/view/dd8b45d8 it's very late where i am, so tomorrow i will try ujust remove-sunshine, reboot, and then install again. thanks for the help
CyberGlitterhoof
CyberGlitterhoof11mo ago
Something to keep in mind with layering the rpm is that the maintainer seems to be unwilling (at least for fedora 39) to update the rpm to support a new fedora's version until the previous one drops off the supported list. I expect this will become an issue again at the start of Fedora 40. https://github.com/LizardByte/Sunshine/pull/1808
GitHub
ci: Add support for Fedora 39 by EyeCantCU · Pull Request #1808 · L...
Description This change implements support for Fedora 39 Type of Change Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking ch...
BearFOX
BearFOXOP11mo ago
Okay so this morning I had another look at this (https://docs.lizardbyte.dev/projects/sunshine/en/latest/about/usage.html#linux) and found that the autostart service should have been autoconfigured on install for each build. So I decided to manually create and enable the service myself at /home/deck/.config/systemd/user/ with the contents:
Description=Sunshine self-hosted game stream host for Moonlight.
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
ExecStart=/usr/bin/sunshine
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=graphical-session.target
Description=Sunshine self-hosted game stream host for Moonlight.
StartLimitIntervalSec=500
StartLimitBurst=5

[Service]
ExecStart=/usr/bin/sunshine
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=graphical-session.target
Upon enabling, sunshine now runs on boot in the background of gamemode on deck. The whole reason I thought it may be set up automatically already is because of their documentation and also the existence of this just command in 80-bazzite.just:
# Autostart Sunshine
autostart-sunshine:
#!/usr/bin/bash
systemctl enable --user --now sunshine.service
# Autostart Sunshine
autostart-sunshine:
#!/usr/bin/bash
systemctl enable --user --now sunshine.service
That command didn't work for me originally because there was no service. anyway, i'm pleased to have it working, though it did take some manual configuration for whatever reason this side. thanks for fixing the setcap problem! it runs very well in gamemode using vaapi_hevc encoding.
BearFOX
BearFOXOP11mo ago
this .desktop now works since creating the service. I don't believe it's left from an old configuration, I haven't attempted other installs of sunshine for about 2 months.
No description
Saise
Saise10mo ago
Hi, I'm trying to install Sunshine on my PC, but the ujust command says error: Justfile does not contain recipe `install-sunshine`. And I can´t find the option in the Bazzite portal, while I do on my steam deck. Is there a solution?
Kyle Gospo
Kyle Gospo10mo ago
Can you rpm-ostree status for me?
Want results from more Discord servers?
Add your server