arma2:linux-dedicated-server-install
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | arma2:linux-dedicated-server-install [2024/08/02 12:18] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ArmA 2 Linux Dedicated Server Install ====== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | How to install ArmA 2 Linux Dedicated Server. | ||
+ | |||
+ | In this example we call our Linux user " | ||
+ | |||
+ | - install linux :) | ||
+ | - upload all ArmA 2 files including Expansion\Beta\ directory into your / | ||
+ | - Or use [[arma2: | ||
+ | - download arma2oa server binary from BIS. | ||
+ | - unpack and run ./install | ||
+ | |||
+ | In 64 bit debian if you do not have the 32 bit libraries install them with: | ||
+ | < | ||
+ | apt-get install build-essential | ||
+ | apt-get install ia32-libs | ||
+ | </ | ||
+ | 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: | ||
+ | < | ||
+ | apt-get install lib32stdc++6 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Configuring ====== | ||
+ | |||
+ | The file " | ||
+ | |||
+ | Copy it to name of your liking for example " | ||
+ | |||
+ | Edit the files and change the ARMA_DIR= to show: | ||
+ | < | ||
+ | ARMA_DIR=/ | ||
+ | </ | ||
+ | |||
+ | And CONFIG= to show: | ||
+ | < | ||
+ | CONFIG=server.cfg | ||
+ | </ | ||
+ | See Security Notes! | ||
+ | |||
+ | And OTHERPARAMS= to show beta if you run it: | ||
+ | < | ||
+ | OTHERPARAMS=" | ||
+ | </ | ||
+ | |||
+ | Notice that any -mod= lines can be added in after the -beta line. | ||
+ | |||
+ | Then just start the server with command: | ||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | Stop it with command: | ||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | You can query the status of the server with command: | ||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | **Why two start scripts?** | ||
+ | |||
+ | In our example we have " | ||
+ | |||
+ | Our mod's server CONFIG= would show: | ||
+ | < | ||
+ | CONFIG=server_vte.cfg | ||
+ | </ | ||
+ | Again, see Security Notes! | ||
+ | |||
+ | This is easy way to keep your server loaded with easily starting setup' | ||
+ | |||
+ | |||
+ | ====== Watching The Log ====== | ||
+ | |||
+ | There might be lot of garbage in the log, in this example " | ||
+ | < | ||
+ | tail -f log.bis.2302.txt | grep -v -e dubbing -e RadioProtocol -e "No speaker given" | ||
+ | </ | ||
+ | |||
+ | 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. | ||
+ | |||
+ | |||
+ | ====== Upgrading ====== | ||
+ | |||
+ | - stop the server | ||
+ | - upload new binary to the dir, unpack it. | ||
+ | - run ./install | ||
+ | - start the server | ||
+ | |||
+ | All done. | ||
+ | |||
+ | |||
+ | ====== Uploading Missions ====== | ||
+ | |||
+ | When you upload missions to your ArmA 2 Linux Dedicated Server, you need to remember that you cannot overwrite old mission names, you need to add version number to the file name or something else, also when you do this you need to change the version number in the mission Name field in mission editor so you can actually pick the missions apart from each other in multiplayer lobby. | ||
+ | |||
+ | After the missions are uploaded, run ./tolower in the server root dir to make sure all missions are in lower case. | ||
+ | |||
+ | When you delete old missions from the server, you need to restart the server as it will crash if someone attempts to load the deleted mission. | ||
+ | |||
+ | |||
+ | ====== Security Notes ====== | ||
+ | |||
+ | You should place your server.cfg file outside of the arma root dir because hackers can access the root directory. Also the file name should be something unique and something that no hacker can guess. So lets say out of the blue something like this as an example: | ||
+ | < | ||
+ | CONFIG=su3jnv7xflgnsh5/ | ||
+ | </ | ||
+ | Wow, say that again?! Heh yes, looks horrible, but its pretty sure no hacker will guess that path + file name. | ||
+ | |||
+ | So you should make directory called: | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | And place server cfg file there called: | ||
+ | < | ||
+ | serversh47cvkdfg3nbld.cfg | ||
+ | </ | ||
+ | **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 " | ||
+ | |||
+ | So here we go, first go to your working default server directory and issue commands: | ||
+ | < | ||
+ | mkdir serverpmc | ||
+ | mkdir serverpmc/ | ||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | < | ||
+ | cp -r keys serverpmc/ | ||
+ | </ | ||
+ | |||
+ | Then we move the server config for your second server, in our example we call it server2.cfg: | ||
+ | < | ||
+ | mv server2.cfg serverpmc/ | ||
+ | </ | ||
+ | |||
+ | Also move the startup script which you use for second server, in our example we call it arma2oaserver2: | ||
+ | < | ||
+ | mv arma2oaserver2 serverpmc/ | ||
+ | </ | ||
+ | |||
+ | Now we are ready to go into the newly created directory, first we can make the symlinks there: | ||
+ | < | ||
+ | cd serverpmc | ||
+ | ln -s ../addons addons | ||
+ | ln -s ../ | ||
+ | ln -s ../common common | ||
+ | ln -s ../dta dta | ||
+ | ln -s ../ | ||
+ | ln -s ../server server | ||
+ | ln -s ../x x | ||
+ | </ | ||
+ | Notice the ' | ||
+ | |||
+ | 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 ./ | ||