User Tools

Site Tools


arma2:linux-dedicated-server-install

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
arma2:linux-dedicated-server-install [2012-07-31 10:22]
snakeman created linux-dedicated-server-install initial page.
arma2:linux-dedicated-server-install [2016-08-07 02:57] (current)
Line 7: Line 7:
   - install linux :)   - install linux :)
   - upload all ArmA 2 files including Expansion\Beta\ directory into your /​home/​arma/​arma2/​ directory.   - upload all ArmA 2 files including Expansion\Beta\ directory into your /​home/​arma/​arma2/​ directory.
 +    - Or use [[arma2:​linux-dedicated-server-steam-install|ArmA 2 Linux Dedicated Server Steam Install]] instructions how to download using SteamCMD.
   - download arma2oa server binary from BIS.   - download arma2oa server binary from BIS.
   - unpack and run ./install   - unpack and run ./install
Line 14: Line 15:
 apt-get install build-essential apt-get install build-essential
 apt-get install ia32-libs apt-get install ia32-libs
 +</​code>​
 +Edit: August 2016 latest ubuntu don't have ia32-libs package anymore. You can get ArmA 2 server running by installing lib32stdc++6 instead, like this:
 +<​code>​
 +apt-get install lib32stdc++6
 </​code>​ </​code>​
  
Line 52: Line 57:
  
 You can query the status of the server with command: You can query the status of the server with command:
-</code>+<​code>​
 ./​pmcbis-server status ./​pmcbis-server status
 </​code>​ </​code>​
Line 73: Line 78:
 There might be lot of garbage in the log, in this example "​dubbingradio",​ then use command with grep like this: There might be lot of garbage in the log, in this example "​dubbingradio",​ then use command with grep like this:
 <​code>​ <​code>​
-tail -f log.bis.2302.txt | grep -v dubbingradio+tail -f log.bis.2302.txt | grep -v -e dubbing -e RadioProtocol -e "No speaker given"
 </​code>​ </​code>​
 +
 +Use the -e parameter to add each string you want to skip, if its not a single word, use quotes like in the no speaker given string.
  
  
Line 114: Line 121:
 </​code>​ </​code>​
 **Remember** the above is just an **example** and your own server should use unique path + file names to make them random so that nobody can guess their names! **Remember** the above is just an **example** and your own server should use unique path + file names to make them random so that nobody can guess their names!
 +
 +
 +====== Howto Run Two Servers in One Computer ======
 +
 +So you want to run two ArmA 2 Dedicated Linux servers on one computer eh? Here is how you do it.
 +
 +First of course you need to configure one basic working server (obvious).
 +
 +Then you start to create additional directories for your second server, in our purpose we call that server directory "​serverpmc"​.
 +
 +So here we go, first go to your working default server directory and issue commands:
 +<​code>​
 +mkdir serverpmc
 +mkdir serverpmc/​mpmissions
 +</​code>​
 +
 +Now you have the basic directories setup.
 +
 +Then copy over the signature keys directory as most likely because you run two servers you run different addons (at least in our example) so you want individual keys directorys:
 +<​code>​
 +cp -r keys serverpmc/
 +</​code>​
 +
 +Then we move the server config for your second server, in our example we call it server2.cfg:​
 +<​code>​
 +mv server2.cfg serverpmc/
 +</​code>​
 +
 +Also move the startup script which you use for second server, in our example we call it arma2oaserver2:​
 +<​code>​
 +mv arma2oaserver2 serverpmc/
 +</​code>​
 +
 +Now we are ready to go into the newly created directory, first we can make the symlinks there:
 +<​code>​
 +cd serverpmc
 +ln -s ../addons addons
 +ln -s ../​basic.cfg basic.cfg
 +ln -s ../common common
 +ln -s ../dta dta
 +ln -s ../​expansion expansion
 +ln -s ../server server
 +ln -s ../x x
 +</​code>​
 +Notice the '​x'​ directory, that is what we at PMC Tactical call our user made addons dir, for example we have <​serverroot>/​x/​vte/​ for Vietnam: The Experience mod and <​serverroot/​x/​pmc_51km_desert/​ for PMC 51km Desert terrain. Simple to story all mods in one nice directory.
 +
 +Now you have created the necessary symlinks. Final step is to edit your arma2oaserver2 startup script and setup this new directory as home directory and possible the config as well as log file names.
 +
 +All done, then just copy your individual missions into mpmissions/ dir for this server and run ./​arma2oaserver2 start to launch your second server :)
arma2/linux-dedicated-server-install.1343730154.txt.gz ยท Last modified: 2012-07-31 10:22 by snakeman