Skip to content

mustanggb/project-cars-2-dedicated-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project CARS 2 - Dedicated Server

Update pc2ds.tar.gz (Ubuntu)

Due to Steam Guard it's not recommended to fetch dedicated server files during Docker image build, so pc2ds.tar.gz is used to contain these files instead.

These are the commands to run in Ubuntu to fetch an updated pc2ds.tar.gz file, again it's recommended to run these in an interactive shell so password and more importantly Steam Guard code can be entered if needed (might not be needed if ran more than once, due to a cookie/token being created on the first run, that steamcmd will utilise).

  1. Specify an enviromental variable to hold your steam username
STEAM_USERNAME=steamusernamegoeshere
  1. Fetch the updated file and tidy up
sudo apt install -y lib32gcc1 && \
mkdir /tmp/steamcmd && \
wget -qO- https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | tar -zxC /tmp/steamcmd && \
/tmp/steamcmd/steamcmd.sh +login $STEAM_USERNAME +force_install_dir /tmp/steamcmd/pc2ds +app_update 413770 validate +quit && \
cd /tmp/steamcmd/pc2ds && \
tar -zcf /tmp/steamcmd/pc2ds.tar.gz * && \
cd - && \
mv /tmp/steamcmd/pc2ds.tar.gz . && \
rm -r /tmp/steamcmd && \
unset STEAM_USERNAME

Releases

No releases published

Packages

No packages published