Commit Graph

58 Commits

Author SHA1 Message Date
tem
63cfefa1fc Bump sunshine to stable & include res script from lyzardbyte docs 2024-02-29 13:54:19 +13:00
Josh.5
12cc16459a Reduce some of the excessive sleep times for various things 2023-09-29 23:39:26 +13:00
Josh.5
93718e1855 Update to how we choose if we are running udevd or dumb-udev
This fixes some issues I found with startup.
2023-09-29 21:26:17 +13:00
Josh.5
eeca08ce38 Add dumb-udev as a replacemet for 2023-09-29 20:20:21 +13:00
Josh.5
37f7280dba Move home directory config installation to desktop config init.d script 2023-09-19 15:59:35 +12:00
Josh.5
7552680a01 Add flatseal as a default app 2023-09-18 16:12:28 +12:00
Josh.5
9a460b27e6 Add some forced changes to the way the desktop looks 2023-09-18 01:49:39 +12:00
Josh.5
5cef857d34 Fix another issue with the resolution setting 2023-09-12 10:26:53 +12:00
Josh.5
b5cb3fb0db Further improvements to display setting scripts 2023-09-12 09:48:12 +12:00
Josh.5
3867701a6b Fix an error in checking for xrandr modes 2023-09-12 00:43:25 +12:00
Josh.5
35722dfa84 Add a fallback to a possible existing supported mode when auto switching refresh rates 2023-09-11 20:24:56 +12:00
Josh.5
acee2481c1 Add some missing XDG environment variables 2023-09-11 19:13:53 +12:00
Josh.5
aa1edd48e0 Add support for running proper detached processes with sunshine-run
This allows things like Steam BP to run with sunshine-run which will auto set the resolution. And then still have sunshine-stop restore the original resolution.
2023-09-11 12:29:48 +12:00
Josh.5
771c47d602 Fix direct execution of AppImages
Fetch a list of all child PIDs before forwarding the termination signal.
Once the main process is terminated, forward that term signal to all found children also (if they are still running)
2023-09-11 12:21:23 +12:00
Josh.5
0981af0a17 Further imporvements to sunshine-run and its logging 2023-09-11 11:54:30 +12:00
Josh.5
608f772ccc Add support for automatic refresh rate switching in Sunshine/Moonlight 2023-09-10 19:40:00 +12:00
Josh.5
90510bd8ea Add a WoL Manager service 2023-09-06 00:06:18 +12:00
Josh.5
269e71a0db Create an empty sunshine_state.json file on first startup 2023-09-01 09:05:47 +12:00
Josh.5
97613b227f Run Sunshine as a service
Goodbye Flatpak Sunshine. Hello AppImage.
Until a deb package is available for Debian Bookworm, we can just run sunshine as an AppImage.
It is faster to startup and is a little less bloated.

The goal here is to run Sunshine as a service managed by supervisord so that it is kept running and is restarted automatically if stopped.
2023-08-29 18:02:03 +12:00
Josh.5
b7bb479635 Fix up some of the default config for sunshine 2023-08-26 20:26:44 +12:00
Josh.5
aea4d51159 Use dumb-init for sunshine-run wrapper 2023-08-23 16:57:40 +12:00
Josh.5
1454b704a2 Fix minimise windows script 2023-08-23 16:40:46 +12:00
Josh.5
d899ebd965 Add a tool for minimising all currently open windows 2023-08-23 16:28:54 +12:00
Josh.5
b51036a697 Add sunshin-run and -stop wrapper scripts
These can be used to manage starting and stopping processes that spawn children that otherwise would not be terminated when the moonlight session ends
2023-08-23 16:19:55 +12:00
Josh.5
6be269a3bb Update the default steam bigpicture command for sunshine
we are not using flatpak steam any longer.
2023-08-22 20:05:23 +12:00
Josh.5
ee4fd33e72 Move app install scripts to /usr/bin 2023-08-22 20:05:23 +12:00
Josh.5
c671ba85cc Add a script to close all open windows
This can be called from Sunshine
2023-08-22 20:05:23 +12:00
Josh.5
02a94566b2 Revert to starting steam from desktop autostart 2023-08-22 20:05:23 +12:00
Josh.5
5837843aa2 Disable Udev on unprivileged container 2023-08-22 20:05:23 +12:00
Josh.5
ac7dc533e7 Remove support for DinD 2023-08-22 20:05:23 +12:00
Ali Ansari
edab557c20 If Steam supervisor is enabled, only enable after desktop is loaded 2023-08-15 07:55:34 +03:00
Josh.5
659bde74f5 Revert to installing steam as a .deb package
Flatpak seems to complicate Steam's execution of Proton
2023-07-17 12:35:28 +12:00
Josh.5
0b600108f7 Add Sunshine to initial desktop apps 2023-07-09 13:25:38 +12:00
Josh.5
417ab4488b Display the progress of desktop app installation before starting the desktop
This just prevents people from seeing a black screen for a long time and assuming something is going wrong.
This initial setup is installaing flatpaks to the mounted home directory. This will not need to happen on every container startup. So this black screen is only a problem on the first start. But this change at least gives people something to look at.

Closes #50
2023-07-08 16:04:38 +12:00
Josh.5
fc700e2200 Start using Flatpaks as the main install method for any desktop apps 2023-07-08 05:19:50 +12:00
Josh.5
df9423ccad Improvements to running Xorg with NVIDIA 2023-07-07 16:01:14 +12:00
Josh.5
9712eede91 Add Docker in Docker 2022-10-09 23:45:56 +13:00
Josh.5
477e25f82c Some minor tweaks and improvments 2022-10-07 03:46:52 +13:00
Josh.5
f233991597 Add default sunshine config on startup if missing 2022-10-06 22:38:45 +13:00
Josh.5
54911cb97b Fix bug preventing input after the first startup of the container
Xorg was starting before udev could finish the monitor command. This prevented the X server from having access to the input devices. For some reason, any subsequent starts would be fine.

Adding a small delay to the X server start and triggering a request for device events from the kernel after a delay seems to fix this issue.
2022-10-06 22:26:50 +13:00
Josh.5
829754b8fb Add sunshine as an optional background service 2022-10-06 15:22:20 +13:00
Josh.5
703be17214 Move all default user group modifications to the 10-setup_user.sh script 2022-10-04 17:36:40 +13:00
Josh.5
2c0b7b5d53 Fix desktop and udev launch scripts
These services were not responding to a SIGTERM
We need to catch the SIGTERM from the parent script and kill the child process
2022-10-04 17:36:40 +13:00
Josh.5
7614e503a7 Launch Xorg server direct from supervisor rather than a script
- Remove launcher for X11 and just call it from
- Improvements to the '/tmp/.X11-unix' directory
    - Move lockfile clearing to init script rather than launcher
    - Configure the 'XDG_RUNTIME_DIR' to something that is easily shared between containers
- Ensure all logs in home directory are readable
- Log Xorg service in home directory so they are more easily accessable to users
2022-10-04 17:36:40 +13:00
Josh.5
cfd7bbda0e Improvements to pulseaudio
- Add a DEBUGGING flag
- Make the location of the unix socket configurable

While I was here I moved all the priority configs in supervisord to the top. I like it better there
2022-10-04 17:36:40 +13:00
Chaitanya Talnikar
5d0ce361ce Append groups when doing ensure-groups 2022-10-01 09:30:55 -04:00
Josh.5
7056a225d5 Adding some missing tools 2022-01-26 17:39:16 +13:00
Josh.5
552714c75f Improvements to Debian Docker image build.
Add changes from Arch dockerfile:
- Flatpak support
- Reduce unnecessary recommends installations
- Separate mesa and vulkin installations
2022-01-26 16:48:21 +13:00
Josh.5
217d0eb26e Need to be able to init on any distro.
The current supervisor.d configs are configured specifically for a particular supervisor version / installation.
This decouples the configuration so we can use it on any distro.
2022-01-26 15:43:45 +13:00
Josh.5
090c274a55 Add heroic launcher installer scripts 2022-01-16 06:15:04 +13:00