Sunshine is a self-hosted game stream host for Moonlight. Offering low latency, cloud gaming server capabilities with support for AMD, Intel, and Nvidia GPUs for hardware encoding. Software encoding is also available. You can connect to Sunshine from any Moonlight client on a variety of devices. A web UI is provided to allow configuration, and client pairing, from your favorite web browser. Pair from the local server or any mobile device.
To access the desktop or an application of a remote PC (host), you need
sunshine
on the host.moonlight
on the client, and connect to the host.This is a installation guide for Arch Linux systems. For other systems and more detailed instructions, read the Sunshine Documentation
For the initial setup, everything becomes easier if you have physical access to the host.
On Arch Linux, the developers explicitely state that they do not provide support for any AUR packages, but provide prebuilt binaries via their custom repository for pacman. Add the following to /etc/pacman.conf
[lizardbyte]
SigLevel = Optional
Server = https://github.com/LizardByte/pacman-repo/releases/latest/download
Then update the repository, and install sunshine
sudo pacman -Sy
pacman -S sunshine
After installation, some installation is required, enable
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
For X11 capture, you may need to disable the capabilities set for KMS campture
sudo setcap -r $(readlink -f $(which sunshine))
At this stage you should be able to open a server by running
sunshine
Preferably, start the daemon
systemctl --user start sunshine
and optinally enable it on startup.
# OPTIONAL
systemctl --user enable sunshine
Sunsine is configured via the Web UI, which is available on https://localhost:47990.
You can ignore the browserâs message of âinsecure websiteâ.
On a first setup, you will be prompted to create a local account for managing sunshine. Make sure to remember your username and password, since this is self hosted once gone, they are gone forever.
At this stage, you can already share your hostâs desktop. For more information on how to add applications read the docs
When first setting up a client, you will need access to the Web UI. It is simpler if you have physical acces to the host during this process.
You can install the moonlight-qt
AUR package
yay -S moonlight-qt
or install their official flatpak
flatpak install flathub com.moonlight_stream.Moonlight
When launching the application, it will automatically look for sunshine servers on the local network, if your host is not on the local network and has an assigned IP address, you can add it manually by clicking the icon on the top-right corner. Here is a brief overview
Once the client is paired, you should be able to access the host via the moonlight application.