Steam Client Install: Difference between revisions

From ScottWiki
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
SteamCMD requires lib32gcc1 which can be installed using:
SteamCMD requires lib32gcc1 which can be installed using:


  apt-get install lib32gcc1
  apt install lib32gcc-s1


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:
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)
Set its password and change its home directory. (this is handy for server software that writes to the users home directory)


  useradd gameserver
  useradd gameadmin
  passwd gameserver
  passwd gameadmin
  usermod -d /srv/data/game_servers/gameserver gameserver
  usermod -d /srv/data/gameservers/ gameadmin    <---- sets this users home directory to be  /srv/data/gameservers
usermod --shell /bin/bash gameadmin          <---- Sets this user to use the bash shell
cp ~/.bashrc /srv/data/gameservers          <----  Copys the bash shell profile to the homedir of the new user


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 "gameadmin" to use screen by running:


  chmod o+rw /dev/pts/0
  chmod o+rw /dev/pts/0
Line 16: Line 18:
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 smbuser gameadmin


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.
Line 24: Line 26:
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.
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
  cd /srv/data/gameservers


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


  mkdir steam
  mkdir steamclient
  cd steam
  cd steamclient


Download the SteamCMD executable.
Download the SteamCMD executable.
Line 47: Line 49:
  ./steamcmd.sh
  ./steamcmd.sh


Now loging to steam / verify your account and update
Now logging into steam / verify your account and update


  login username password
  login username password
  app_update 740 validate
  app_update xxxxx validate

Latest revision as of 01:27, 24 March 2024

SteamCMD requires lib32gcc1 which can be installed using:

apt install lib32gcc-s1

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 gameadmin
passwd gameadmin
usermod -d /srv/data/gameservers/ gameadmin     <---- sets this users home directory to be   /srv/data/gameservers
usermod --shell /bin/bash gameadmin           <---- Sets this user to use the bash shell
cp ~/.bashrc /srv/data/gameservers           <----  Copys the bash shell profile to the homedir of the new user

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 "gameadmin" 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 smbuser gameadmin

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/gameservers

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

mkdir steamclient
cd steamclient

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 logging into steam / verify your account and update

login username password
app_update xxxxx validate