mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-16 23:10:13 +00:00
Update README
This commit is contained in:
parent
ca9809ca7e
commit
12af30b75b
26
README.md
26
README.md
@ -14,21 +14,38 @@ Sunshine is a Gamestream host for Moonlight
|
|||||||
## Linux
|
## Linux
|
||||||
|
|
||||||
### Requirements:
|
### Requirements:
|
||||||
|
|
||||||
Ubuntu 20.04:
|
Ubuntu 20.04:
|
||||||
Install the following
|
Install the following:
|
||||||
|
#### X11 Only
|
||||||
```
|
```
|
||||||
sudo apt install cmake gcc-10 g++-10 libssl-dev libavdevice-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libpulse-dev libopus-dev libxtst-dev libx11-dev libxrandr-dev libxfixes-dev libevdev-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev
|
sudo apt install cmake gcc-10 g++-10 libssl-dev libavdevice-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libpulse-dev libopus-dev libxtst-dev libx11-dev libxrandr-dev libxfixes-dev libevdev-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### X11 + KMS (Requires additional setup)
|
||||||
|
KMS allows Sunshine to grab the monitor with lower latency then through X11
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt install cmake gcc-10 g++-10 libssl-dev libavdevice-dev libboost-thread-dev libboost-filesystem-dev libboost-log-dev libpulse-dev libopus-dev libxtst-dev libx11-dev libxrandr-dev libxfixes-dev libevdev-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev libdrm-dev
|
||||||
|
```
|
||||||
|
|
||||||
### Compilation:
|
### Compilation:
|
||||||
|
|
||||||
|
#### X11 Only
|
||||||
|
- `git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules`
|
||||||
|
- `cd sunshine && mkdir build && cd build`
|
||||||
|
- `cmake -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DSUNSHINE_BUILD_DRM=OFF ..`
|
||||||
|
- `make -j ${nproc}`
|
||||||
|
|
||||||
|
#### X11 + KMS
|
||||||
- `git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules`
|
- `git clone https://github.com/loki-47-6F-64/sunshine.git --recurse-submodules`
|
||||||
- `cd sunshine && mkdir build && cd build`
|
- `cd sunshine && mkdir build && cd build`
|
||||||
- `cmake -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 ..`
|
- `cmake -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 ..`
|
||||||
- `make -j ${nproc}`
|
- `make -j ${nproc}`
|
||||||
|
|
||||||
|
|
||||||
### Setup:
|
### Setup:
|
||||||
sunshine needs access to uinput to create mouse and gamepad events:
|
sunshine needs access to uinput to create mouse and gamepad events:
|
||||||
|
|
||||||
- Add user to group 'input':
|
- Add user to group 'input':
|
||||||
`usermod -a -G input $USER`
|
`usermod -a -G input $USER`
|
||||||
- Create udev rules:
|
- Create udev rules:
|
||||||
@ -52,6 +69,11 @@ sunshine needs access to uinput to create mouse and gamepad events:
|
|||||||
|
|
||||||
- `assets/apps.json` is an [example](README.md#application-list) of a list of applications that are started just before running a stream
|
- `assets/apps.json` is an [example](README.md#application-list) of a list of applications that are started just before running a stream
|
||||||
|
|
||||||
|
#### Additional Setup for KMS:
|
||||||
|
Please note that `cap_sys_admin` may as well be root, except you don't need to be root to run it.
|
||||||
|
It's necessary to allow Sunshine to use KMS
|
||||||
|
- `sudo setcap cap_sys_admin+ep sunshine`
|
||||||
|
|
||||||
### Trouleshooting:
|
### Trouleshooting:
|
||||||
- If you get "Could not create Sunshine Gamepad: Permission Denied", ensure you are part of the group "input":
|
- If you get "Could not create Sunshine Gamepad: Permission Denied", ensure you are part of the group "input":
|
||||||
- `groups $USER`
|
- `groups $USER`
|
||||||
|
Loading…
Reference in New Issue
Block a user