Steam-Headless / docker-steam-headless

A Headless Steam Docker image supporting NVIDIA GPU and accessible via Web UI
GNU General Public License v2.0
734 stars 80 forks source link

Some examples of scripts for installing software at startup #74

Closed p5-f20w18k closed 8 months ago

p5-f20w18k commented 11 months ago

Description

“If you wish to install additional applications, you can generate a script inside the ~/init.d directory ending with ".sh". This will be executed on the container startup.”

Are there any examples of how this would look? I am not familiar with Debian, and I can’t find anything in the documentation.

alansari commented 11 months ago

Any bash script would work. An example that auto updates yuzu early access on container startup could be:

!/bin/bash

YUZU_PATH=/home/default/Applications/yuzu.AppImage

curl -s https://api.github.com/repos/pineappleEA/pineapple-src/releases/latest | jq -r ".assets[0] | .browser_download_url" | wget -qO $YUZU_PATH -i -

chmod +x $YUZU_PATH

alansari commented 9 months ago

This is being worked on, though you can start using it from now: https://github.com/Steam-Headless/init.d edit: jump on discord if you need assitance or find any bugs that need squashing

p5-f20w18k commented 8 months ago

Sorry I completely forgot about opening this, will join discord to ask any questions going forward :)