Host for Moonlight Streaming Client
Sunshine is a Gamestream host for Moonlight
Ubuntu 20.04:
sudo apt install cmake libssl-dev libavdevice-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libpulse-dev libopus-dev libxtst-dev libx11-dev libxfixes-dev libevdev-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev
git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules
cd sunshine && mkdir build && cd build
cmake ..
make: It is suggested to use the
-j C#flags with this command,
C#being the number of cores your PC has
sunshine needs access to uinput to create mouse and gamepad events: - Add user to group 'input': "usermod -a -G input username - Create a file: "/etc/udev/rules.d/85-sunshine-input.rules" - The contents of the file is as follows: KERNEL=="uinput", GROUP="input", mode="0660" - assets/sunshine.conf is an example configuration file. Modify it as you see fit and use it by running: "sunshine path/to/sunshine.conf" - path/to/build/dir/sunshine.service is used to start sunshine in the background: -
cp sunshine.service $HOME/.config/systemd/user/- Modify $HOME/.config/systemd/user/sunshine.conf to point to the sunshine executable -
systemctl --user start sunshine
* If you get "Could not create Sunshine Gamepad: Permission Denied", ensure you are part of the group "input": * groups * If Sunshine sends audio from the microphone instead of the speaker, try the following steps: * pacmd list-sources | grep "name:" * Copy the name to the configuration option "audio_sink" * restart sunshine
MSYS2 : mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-boost
git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules
cd sunshine && mkdir build && cd build
cmake -G"Unix Makefiles" ..
make
MSYS2 : mingw-w64-x86_64-openssl mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-boost git-lfs
git lfs install
git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules
cd sunshine && mkdir build && cd build
cmake -DSUNSHINE_STANDALONE=ON -G"Unix Makefiles" ..
make
xxx.xxx.xxx.xxx:47989/pin/####
wget xxx.xxx.xxx.xxx:47989/pin/####
####is the pin
json { "name":"An App", "cmd":"command to open app", "prep-cmd":[ { "do":"somecommand", "undo":"undothatcommand" } ] }
Linux ```json { "env":{ "DISPLAY":":0", "DRI_PRIME":"1", "XAUTHORITY":"$(HOME)/.Xauthority", "PATH":"$(PATH):$(HOME)/.local/bin" }, "apps":[ { "name":"Low Res Desktop", "prep-cmd":[ { "do":"xrandr --output HDMI-1 --mode 1920x1080", "undo":"xrandr --output HDMI-1 --mode 1920x1200" } ] }, { "name":"Steam BigPicture",
"output":"steam.txt", "cmd":"steam -bigpicture", "prep-cmd":[] } ]
}
Windowsjson { "env":{ "PATH":"$(PATH);C:\Program Files (x86)\Steam" }, "apps":[ { "name":"Steam BigPicture",
"output":"steam.txt", "prep-cmd":[ {"do":"steam \"steam://open/bigpicture\""} ] } ]
} ```