safijari / sunshine-deck

Just some instructions on how to run sunshine on the Steam Deck using the flatpak
26 stars 1 forks source link

New 3.5 build gives error #5

Closed s0th1s closed 9 months ago

s0th1s commented 10 months ago

I downloaded latest build and used the first time run script. Using steamOS build 3.5.5

I receive the following error when trying to use run.sh

(deck@steamdeck sunshine-deck)$ ./run.sh /home/deck/sunshine-deck/usr/bin/sunshine: error while loading shared libraries: libayatana-appindicator3.so.1: cannot open shared object file: No such file or directory (127)(deck@steamdeck sunshine-deck)$

safijari commented 10 months ago

Oof. Ok I'll try to build without the dependency. Thanks for testing.

SuttonX commented 10 months ago

I downloaded latest build and used the first time run script. Using steamOS build 3.5.5

I receive the following error when trying to use run.sh

(deck@steamdeck sunshine-deck)$ ./run.sh /home/deck/sunshine-deck/usr/bin/sunshine: error while loading shared libraries: libayatana-appindicator3.so.1: cannot open shared object file: No such file or directory (127)(deck@steamdeck sunshine-deck)$

In Konsole:

sudo steamos-readonly disable
sudo pacman -Sy libayatana-appindicator
safijari commented 10 months ago

Please don't do that. If you're gonna do that you can just install sunshine directly. The point of this build is to avoid disabling read only.

SuttonX commented 10 months ago

When I install sunshine directly it doesn't work in Game mode, only yours does. Also you can just re-enable it right after.

sudo steamos-readonly enable

Anyway, it's just a workaround since the fixed version hasn't been uploaded yet.

On Sun, Nov 19, 2023, 10:36 Jari @.***> wrote:

Please don't do that. If you're gonna do that you can just install sunshine directly. The point of this build is to avoid disabling read only.

— Reply to this email directly, view it on GitHub https://github.com/safijari/sunshine-deck/issues/5#issuecomment-1817907659, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMJARUIIH75AFOJGRON45LYFIYQZAVCNFSM6AAAAAA7QRJAQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXHEYDONRVHE . You are receiving this because you commented.Message ID: @.***>

safijari commented 10 months ago

That's because you need to do a setcap operation on the new binary that pacman is installing. Look into the first time setup script.

s0th1s commented 10 months ago

Any chance you will have time before the holiday to get a new build made (without unecessary dependencies)?

I would prefer not having to use the workaround and installing additional packages.

I don't want to be a nag; sunshine is the only way I have found to be able to use my phone and tablet to stream from my steamdeck.

Unfortunately, as some of you may know, remote play (steam link) is very limited on allowing multiple devices to connect without having to re-enter pin.

1anc commented 10 months ago

I'm facing the same issue that @s0th1s mentioned :(

Doch34 commented 10 months ago

It a little odd , cus when I upgraded to steamos 3.5.5 , the the old build worked fine for me , but after a week it stop working, dont know why ,( maybe something got updated cus even though there were no new steamos update ) and now I try this new version and it gives me errors , as mentioned by "s0th1s" and the others, I'm no linux guy so I dont know how to solve it, even "SuttonX" workaround, gave me errors, hope the developer could fix this... p.s: I also found out steam link is broken also the same time sunshine stopped working in game mode

Doch34 commented 10 months ago

Manage to get it to work on previous build v0.18 ( but I guess will work also on v0.21 for SteamOS3.5 ) This is for the ppl who isnt tech savvy , like I am . you need to update the openssl , but when doing so , you get error while installing it, and nothing is installed. so:

  1. in discover go to /etc/pacman.conf , and open the file in text editor (kate) and under [options] look for this and edit this: " SigLevel = required databaseoptional " to " SigLevel = Never " (make bakup of "pacman.conf" so you can revert back later)
  2. *.Open konsole in sunshine-deck folder
  3. run this command in konsole " sudo pacman -S openssl-1.1 " (without the "") ( you need your sudo pass )
  4. after it finish installing , run this command in konsole : sudo cp /usr/lib/libicudata.so.72.1 /usr/lib/libicudata.so.71.1 sudo cp /usr/lib/libicui18n.so.72 /usr/lib/libicui18n.so.71 sudo cp /usr/lib/libicuuc.so.72 /usr/lib/libicuuc.so.71 sudo cp /usr/lib/libicudata.so.72 /usr/lib/libicudata.so.71

(copy all 4 lines to konsole) ,

  1. now sunshine service should run , and you can check it with moonlight , in desktop mode , the screen will be flip vertical but in gaming mode it should be o.k.
  2. now revert back the pacman.conf to what it was before ( for security and checking pkg before installing them ) p.s: if you get readonly write errors you can disable it and than enable it after you finish installing commands: sudo steamos-readonly disable sudo steamos-readonly enable

hope it helps it took me few hours to get this , reading all the answers and trying to figure it out by myself , cus I'm not a linux guy and a tech savvy. Cheers!

SuttonX commented 10 months ago

That's because you need to do a setcap operation on the new binary that pacman is installing. Look into the first time setup script.

Which official version of Sunshine are you installing in order to be able to run those commands on it? I've only used Flatpak and AppImage and didn't know what to run the CHMOD commands on with those

safijari commented 10 months ago

That's because you need to do a setcap operation on the new binary that pacman is installing. Look into the first time setup script.

Which official version of Sunshine are you installing in order to be able to run those commands on it? I've only used Flatpak and AppImage and didn't know what to run the CHMOD commands on with those

Setcap won't work on flatpak and ammimage. My point was that if you're disabling readonly and installing packages using pacman anyway then may as well install sunshine using pacman.

SuttonX commented 10 months ago

Okay, I'll try pacman. I don't know about everyone else but I'd imagine for most of us the allure is just having a working Sunshine in Game Mode, not so much whether or not it's self contained

On Thu, Nov 23, 2023, 10:00 Jari @.***> wrote:

That's because you need to do a setcap operation on the new binary that pacman is installing. Look into the first time setup script.

Which official version of Sunshine are you installing in order to be able to run those commands on it? I've only used Flatpak and AppImage and didn't know what to run the CHMOD commands on with those

Setcap won't work on flatpak and ammimage. My point was that if you're disabling readonly and installing packages using pacman anyway then may as well install sunshine using pacman.

— Reply to this email directly, view it on GitHub https://github.com/safijari/sunshine-deck/issues/5#issuecomment-1824659292, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMJARXUA3YJS37M2QTP5QDYF5XITAVCNFSM6AAAAAA7QRJAQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGY2TSMRZGI . You are receiving this because you commented.Message ID: @.***>

safijari commented 10 months ago

Okay, I'll try pacman. I don't know about everyone else but I'd imagine for most of us the allure is just having a working Sunshine in Game Mode, not so much whether or not it's self contained On Thu, Nov 23, 2023, 10:00 Jari @.> wrote: That's because you need to do a setcap operation on the new binary that pacman is installing. Look into the first time setup script. Which official version of Sunshine are you installing in order to be able to run those commands on it? I've only used Flatpak and AppImage and didn't know what to run the CHMOD commands on with those Setcap won't work on flatpak and ammimage. My point was that if you're disabling readonly and installing packages using pacman anyway then may as well install sunshine using pacman. — Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMJARXUA3YJS37M2QTP5QDYF5XITAVCNFSM6AAAAAA7QRJAQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGY2TSMRZGI . You are receiving this because you commented.Message ID: @.>

That's fair. I'm personally a stickler for not disabling readonly which was the reason I made this build

SuttonX commented 10 months ago

Appreciate it either way! Been using it near daily since I found your post on Reddit

On Thu, Nov 23, 2023, 10:31 Jari @.***> wrote:

Okay, I'll try pacman. I don't know about everyone else but I'd imagine for most of us the allure is just having a working Sunshine in Game Mode, not so much whether or not it's self contained … <#m4418834842035931837> On Thu, Nov 23, 2023, 10:00 Jari @.> wrote: That's because you need to do a setcap operation on the new binary that pacman is installing. Look into the first time setup script. Which official version of Sunshine are you installing in order to be able to run those commands on it? I've only used Flatpak and AppImage and didn't know what to run the CHMOD commands on with those Setcap won't work on flatpak and ammimage. My point was that if you're disabling readonly and installing packages using pacman anyway then may as well install sunshine using pacman. — Reply to this email directly, view it on GitHub <#5 (comment) https://github.com/safijari/sunshine-deck/issues/5#issuecomment-1824659292>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMJARXUA3YJS37M2QTP5QDYF5XITAVCNFSM6AAAAAA7QRJAQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGY2TSMRZGI https://github.com/notifications/unsubscribe-auth/ANMJARXUA3YJS37M2QTP5QDYF5XITAVCNFSM6AAAAAA7QRJAQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGY2TSMRZGI . You are receiving this because you commented.Message ID: @.>

That's fair. I'm personally a stickler for not disabling readonly which was the reason I made this build

— Reply to this email directly, view it on GitHub https://github.com/safijari/sunshine-deck/issues/5#issuecomment-1824698315, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMJARREWRE74ALLDDQYXDLYF525BAVCNFSM6AAAAAA7QRJAQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGY4TQMZRGU . You are receiving this because you commented.Message ID: @.***>

SalmonSays commented 10 months ago

Okay, I'll try pacman. I don't know about everyone else but I'd imagine for most of us the allure is just having a working Sunshine in Game Mode, not so much whether or not it's self contained On Thu, Nov 23, 2023, 10:00 Jari @._> wrote: That's because you need to do a setcap operation on the new binary that pacman is installing. Look into the first time setup script. Which official version of Sunshine are you installing in order to be able to run those commands on it? I've only used Flatpak and AppImage and didn't know what to run the CHMOD commands on with those Setcap won't work on flatpak and ammimage. My point was that if you're disabling readonly and installing packages using pacman anyway then may as well install sunshine using pacman. — Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANMJARXUA3YJS37M2QTP5QDYF5XITAVCNFSM6AAAAAA7QRJAQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGY2TSMRZGI . You are receiving this because you commented.Message ID: _@_._>

That's fair. I'm personally a stickler for not disabling readonly which was the reason I made this build

Am I correct to understand you recommend waiting for a new release of yours to address this issue? It's not my intent to rush you in any way if that's the case, I'm just trying to follow/decipher the ad-hoc solutions in this thread and understand the available options.

ioneng commented 9 months ago

Manage to get it to work on previous build v0.18 ( but I guess will work also on v0.21 for SteamOS3.5 ) This is for the ppl who isnt tech savvy , like I am . you need to update the openssl , but when doing so , you get error while installing it, and nothing is installed. so:

1. in discover go to /etc/pacman.conf  , and open the file in text editor (kate) and under [options] look for this and edit this:
   " SigLevel = required databaseoptional "  to   " SigLevel = Never "  (make bakup of "pacman.conf" so you can revert back
   later)

2. *.Open konsole in sunshine-deck folder

3. run this command in konsole  " sudo pacman -S openssl-1.1 "   (without the "") ( you need your sudo pass )

4. after it finish installing , run this command in konsole  :
   sudo cp /usr/lib/libicudata.so.72.1 /usr/lib/libicudata.so.71.1
   sudo cp /usr/lib/libicui18n.so.72 /usr/lib/libicui18n.so.71
   sudo cp /usr/lib/libicuuc.so.72 /usr/lib/libicuuc.so.71
   sudo cp /usr/lib/libicudata.so.72 /usr/lib/libicudata.so.71

(copy all 4 lines to konsole) ,

5. now sunshine service should run , and you can check it with moonlight , in desktop mode , the screen will be flip vertical but in gaming mode it should be o.k.

6. now revert back the pacman.conf to what it was before  ( for security and checking pkg before installing them )
   p.s: if you get readonly write errors you can disable it and than enable it after you finish installing
   commands:
   sudo steamos-readonly disable
   sudo steamos-readonly enable

hope it helps it took me few hours to get this , reading all the answers and trying to figure it out by myself , cus I'm not a linux guy and a tech savvy. Cheers!

This worked for me on 3.5.11, using version 0.18.

s0th1s commented 9 months ago

Manage to get it to work on previous build v0.18 ( but I guess will work also on v0.21 for SteamOS3.5 ) This is for the ppl who isnt tech savvy , like I am . you need to update the openssl , but when doing so , you get error while installing it, and nothing is installed. so:

1. in discover go to /etc/pacman.conf  , and open the file in text editor (kate) and under [options] look for this and edit this:
   " SigLevel = required databaseoptional "  to   " SigLevel = Never "  (make bakup of "pacman.conf" so you can revert back
   later)

2. *.Open konsole in sunshine-deck folder

3. run this command in konsole  " sudo pacman -S openssl-1.1 "   (without the "") ( you need your sudo pass )

4. after it finish installing , run this command in konsole  :
   sudo cp /usr/lib/libicudata.so.72.1 /usr/lib/libicudata.so.71.1
   sudo cp /usr/lib/libicui18n.so.72 /usr/lib/libicui18n.so.71
   sudo cp /usr/lib/libicuuc.so.72 /usr/lib/libicuuc.so.71
   sudo cp /usr/lib/libicudata.so.72 /usr/lib/libicudata.so.71

(copy all 4 lines to konsole) ,

5. now sunshine service should run , and you can check it with moonlight , in desktop mode , the screen will be flip vertical but in gaming mode it should be o.k.

6. now revert back the pacman.conf to what it was before  ( for security and checking pkg before installing them )
   p.s: if you get readonly write errors you can disable it and than enable it after you finish installing
   commands:
   sudo steamos-readonly disable
   sudo steamos-readonly enable

hope it helps it took me few hours to get this , reading all the answers and trying to figure it out by myself , cus I'm not a linux guy and a tech savvy. Cheers!

This worked for me on 3.5.11, using version 0.18.

I can also confirm this works perfectly with 0.18 build on SteamOS 3.5.7

I was unsuccessful getting this to work with the latest build, but once i deleted the associated folder replaced it with the 0.18 build and followed the above process; re-running the ./first_time_setup.sh

There was initially a black screen when connecting in game mode, but this was remedied with a simple reboot.
All services came up and I was successful in gettin moonlight to connect.

Kudos to all the hardwork and excellent workaround!

You all saved my Xmas gaming.

safijari commented 9 months ago

Hi all. It is now possible to use the flatpak for this with the caveat that you'll need a nested desktop mode open. I have updated the instructions to match this new method. It should soon be possible to run this without the nested desktop mode and when that happens I will update the instructions again.

I won't be making a new build.