UBUNTU 22.04 Streaming with SUNSHINE and MOONLIGHT

reference

【ubuntu22.04】Sunshine installation summary, remote game. _哔哩哔哩_bilibili

sunshine/README.md at master · loki-47-6F-64/sunshine · GitHub

GitHub - LizardByte/Sunshine: Sunshine is a Gamestream host for Moonlight.

Installation - Sunshine documentation


foreword

It was originally created by loki-47-6F-64 , but for some reason loki has stopped maintaining the project since the end of 21, and has never participated in discussions in the Moonlight community. So the maintainers cloned the project to Sunshine Stream , continued to maintain the project, and later migrated to LizardByte .

Therefore, the previous installation environment is written with reference to the tutorial of station B and the readme of loki

Device model

I found an old notebook to test, the general hardware is as follows:

ACER Aspire 4752G

i5-2450M / 16G / 256G / GT630M

Environment required for installation

basic environment

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 libevdev-dev

sudo apt install libxtst-dev libx11-dev libxrandr-dev libxfixes-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev
   
sudo apt install libdrm-dev libcap-dev

sudo apt install libwayland-dev

sudo apt install nvidia-cuda-dev  nvidia-cuda-toolkit

sudo apt install ffmpeg   (22.04默认是mmpeg4.4.2)

The first sentence is in the loki tutorial, and the latter is supplemented by reading the content of the boss at station B.

graphics driver

Ubuntu comes with NVIDIA graphics driver. In most cases it is installed directly.

You can install a nvidia-settings view.

You can also check the additional drivers in the software update:

If not, you can install it manually, refer to:

Ubuntu installs Nvidia NVIDIA graphics driver, installs Cuda and Cudnn to configure machine learning environment

command install

1. First uninstall the previous nvidia driver:

sudo apt-get remove --purge nvidia*

2. Execute the following command:

sudo apt-get update

3. Enter the following command in the terminal to view the available drivers:

sudo ubuntu-drivers devices

4. Download the nvidia driver version you want to download:

sudo apt install nvidia-driver-470

5. Restart the computer (this step is very important, no restart will have no effect):

reboot

6. After restarting, enter the command to check whether the nvidia driver is installed, and you must see the following process, as described in method 1.

nvidia-smi

Configuration Environment

sudo usermod -a -G input $USER (add the current user to the "input" group)
sudo gedit /etc/udev/rules.d/85-sunshine-input.rules (create udev rules, a text box will pop up after typing this sentence , add the following sentence to save)
add: KERNEL=="uinput", GROUP="input", MODE="0660"

install sunshine

download

Releases · LizardByte/Sunshine · GitHub

Download the latest sunshine version on github, currently v0.16.0

Download sunshine. AppImage. I put it in the home directory.

Install the AppImage environment

ubuntu installs the AppImage operating environment; UBUNTU runs the AppImage error solution-哔哩哔哩

If appimage require FUSE to run is reported, the AppImage environment needs to be installed

 Need to open the specified URL https://github.com/AppImage/AppImageKit/wiki/FUSE Reference details:

My system is ubuntu22.04, run the command:

 run AppImage

First of all, appImage must be authorized first, otherwise command not found will be displayed

chmod a+x *.AppImage

Then run ./sunshine.AppImage 

There is an installation on the tutorial on the official website, I ran it directly

Open terminal and run the following code.

./sunshine.AppImage --install
Start:

./sunshine.AppImage --install && ./sunshine.AppImage
Uninstall:

./sunshine.AppImage --remove

After running:

 He will stop here, and the sunshine will start up at this time.

connect sunshine 

Open https://localhost:47990

At the beginning, you will be asked to set a user name and password, just set it.

Then turn on the phone, scan automatically or click on the upper right corner and enter the IP to add (need to be in the same LAN or configure the IP)

 When adding, the phone will pop up a dialog box showing a pin, enter the same pin on the webpage and then send, click OK on the phone

 There is an additional streaming device on the mobile phone, and you can stream it by clicking on the desktop.

Guess you like

Origin blog.csdn.net/vistaup/article/details/128547907