Steam Client Install: Difference between revisions

From ScottWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
  passwd gameserver
  passwd gameserver
  usermod -d /srv/data/game_servers/gameserver gameserver
  usermod -d /srv/data/game_servers/gameserver gameserver
usermod --shell /bin/bash gameserver


Since we don't want to block terminal usage while the Arma 3 server is running, we've installed screen to allow the server to run on another screen, but we still have to allow our new user "gameserver" to use screen by running:
Since we don't want to block terminal usage while the Arma 3 server is running, we've installed screen to allow the server to run on another screen, but we still have to allow our new user "gameserver" to use screen by running:
Line 16: Line 17:
Add this user to the sambausers group so it gets permissions to the data area where we will put the server.
Add this user to the sambausers group so it gets permissions to the data area where we will put the server.


  usermod -a -G sambausers gameserver
  usermod -a -G smbauser gameserver


Now that we have acquired all system dependencies, we can now LOGIN with the gameuser account to start creating some folders and install SteamCMD.
Now that we have acquired all system dependencies, we can now LOGIN with the gameuser account to start creating some folders and install SteamCMD.

Revision as of 00:46, 24 March 2024

SteamCMD requires lib32gcc1 which can be installed using:

apt install lib32gcc1

For security purposes, we do not want to run the server using the root account, so we'll create a new user named "gameserver" with the following command: Set its password and change its home directory. (this is handy for server software that writes to the users home directory)

useradd gameserver
passwd gameserver
usermod -d /srv/data/game_servers/gameserver gameserver
usermod --shell /bin/bash gameserver

Since we don't want to block terminal usage while the Arma 3 server is running, we've installed screen to allow the server to run on another screen, but we still have to allow our new user "gameserver" to use screen by running:

chmod o+rw /dev/pts/0

Add this user to the sambausers group so it gets permissions to the data area where we will put the server.

usermod -a -G smbauser gameserver

Now that we have acquired all system dependencies, we can now LOGIN with the gameuser account to start creating some folders and install SteamCMD.

LOGGED IN AS gameserver

As you may of noticed, we are still in the root user's home directory so lets change to where we will install the server.

cd /srv/data/game_servers

To keep our folder structure clean and simple, we'll create a new folder for SteamCMD

mkdir steam
cd steam

Download the SteamCMD executable.

wget http://media.steampowered.com/client/steamcmd_linux.tar.gz

Extract the contents to the directory.

tar -xvzf steamcmd_linux.tar.gz

Remove the tar file.

rm -f steamcmd_linux.tar.gz

Run and update SteamCMD.

./steamcmd.sh

Now loging to steam / verify your account and update

login username password
app_update 740 validate