Skip to content

Instantly share code, notes, and snippets.

@Ash258
Last active December 6, 2024 20:35
Show Gist options
  • Save Ash258/5ded8e525b6acc9cd0f2101469b91fae to your computer and use it in GitHub Desktop.
Save Ash258/5ded8e525b6acc9cd0f2101469b91fae to your computer and use it in GitHub Desktop.
How to run steamcmd on Raspberry PI

SteamCMD under Rraspberry PI using Docker

First time setup

  1. mkdir SteamCMD

  2. cd SteamCMD

  3. export stUsername=<yourUsername>

  4. export stPW=<YourPassword>

  5. export stPL=windows

  6. export stID=<gameID>

  7. Create script file

    cat <<EOF > script.txt
    @ShutdownOnFailedCommand 1
    @NoPromptForPassword 1
    @sSteamCmdForcePlatformType $stPL
    force_install_dir /steamDL
    login $stUsername
    app_update $stID validate
    quit
    EOF
  8. Install docker cross-platform emulator

    1. docker pull tonistiigi/binfmt
    2. docker run --privileged --rm tonistiigi/binfmt --install all
  9. docker run --platform linux/amd64 -it --rm -v "steamLogin:/root/.steam:z" -v "$PWD/dl:/steamDL" steamcmd/steamcmd:latest +login $stUsername $stPw

    1. Insert Steam Guard code when prompted
    2. Wait for OK
    3. Write quit when you see Steam>
  10. Initial setup is done

Repeated process

When you have finished above you can now just edit the script.txt file with your new game ID and start the download process for any game/server:

  1. docker run --platform linux/amd64 -it --rm -v "steamLogin:/root/.steam:z" -v "$PWD/dl:/steamDL" -v "$PWD:/cosi" steamcmd/steamcmd:latest +runscript /cosi/script.txt

Donwload on Rpi image

@ttonin33
Copy link

ttonin33 commented Dec 6, 2024

what is a gameID

A Number which identifies the Game. Can be found in the Steam URL of the Game ore with the following website.
https://steamdb.info/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment