Skip to content

Instantly share code, notes, and snippets.

@SidharthArya
Last active April 10, 2020 17:29
Show Gist options
  • Save SidharthArya/9160d7fb19c8d4dd5feb24ae11fcfbd7 to your computer and use it in GitHub Desktop.
Save SidharthArya/9160d7fb19c8d4dd5feb24ae11fcfbd7 to your computer and use it in GitHub Desktop.
Steam on gentoo

Docker should be installed. Put steam in ~/.local/bin/Steam and execute chmod +x ~/.local/bin/Steam add PATH=~/.local/bin:$PATH" to your .bashrc

#!/bin/bash
docker run \
-ti \
--privileged \
--name steam \
-e DISPLAY=$DISPLAY \
-m 2G \
--cpus=3 \
-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
-e STEAM_UID=$UID \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /dev/shm:/dev/shm \
-v ${XDG_RUNTIME_DIR}/pulse:${XDG_RUNTIME_DIR}/pulse \
-v /home/arya/.local/share/Steam:/home/steam/.local/share/Steam \
tianon/steam || docker start steam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment