-
mkdir SteamCMD
-
cd SteamCMD
-
export stUsername=<yourUsername>
-
export stPW=<YourPassword>
-
export stPL=windows
-
export stID=<gameID>
-
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
-
Install docker cross-platform emulator
docker pull tonistiigi/binfmt
docker run --privileged --rm tonistiigi/binfmt --install all
-
docker run --platform linux/amd64 -it --rm -v "steamLogin:/root/.steam:z" -v "$PWD/dl:/steamDL" steamcmd/steamcmd:latest +login $stUsername $stPw
- Insert Steam Guard code when prompted
- Wait for OK
- Write
quit
when you seeSteam>
-
Initial setup is done
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:
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
i keep getting "exec /bin/sh: exec format error"
im on the latest image (Linux raspberrypi 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux)
Anyone got any hints?
#Solved it by doing postinstall
https://docs.docker.com/engine/install/linux-postinstall/
and made sure i ran, docker run --privileged --rm tonistiigi/binfmt --install all