Skip to content

Installation

Vitalii Furmanov edited this page Oct 19, 2024 · 1 revision

Installation

Before instalation read Notes and Troubleshooting

  1. Ensure that Docker and Docker Compose are installed.
  2. Install required packages using:
  3. ffmpeg js xorg-xrandr mesa lib32-mesa xf86-video-amdgpu vulkan-radeon  lib32-vulkan-radeon libva-mesa-driver mkcert
  4. Install required packages using from AUR via yay or another manager:
    yay -S drm_info mongodb-bin
  5. Clone the main repository:
    git clone https://github.com/FurmanovVitaliy/self-hosted-cloud-gaming-service.git
    cd self-hosted-cloud-gaming-service
  6. Clone the repository containing the necessary Docker images and build them :
    git clone https://github.com/FurmanovVitaliy/gaming-vm-in-dockers
    cd gaming-vm-in-dockers
       # Build the base image
    docker build -t arch:base ./base
       # Build the ffmpeg-audio image
    docker build -t arch:ffmpeg-audio ./ffmpeg-audio
       # Build the ffmpeg-video image
    docker build -t arch:ffmpeg-video ./ffmpeg-video
       # Build the portprotone image
    docker build -t arch:portprotone ./portprotone
       # Build the pulseaudio image
    docker build -t arch:pulseaudio ./pulseaudio
  7. Clone the repository with a script that allows you to run virtual displays:
    git clone https://github.com/FurmanovVitaliy/virtual-monotors-script
    cd virtual-monotors-script
    docker-compose build
  8. Ensure you create certificates using mkcert and build the containers.
  9. Find example_config.yaml in server/config/example_config.yamlrename it to local.yaml and make sure that configaration in your config. Edit the local.yaml to ensure the paths to the scripts, certificates, directories, and container names are accurate.
  10. Project redy to start.
    #To run serverside:
    cd self-hosted-cloud-gaming-service/server/cmd
    go run main.go
    #To run web interface:
    cd self-hosted-cloud-gaming-service/web
    npm run start
Clone this wiki locally