AAO25.com

Assist => Support => Server Support => Topic started by: nooz on Sunday, April 05, 2015, 10:01:22 AM

Title: Running server on linux (command line only)
Post by: nooz on Sunday, April 05, 2015, 10:01:22 AM
Hey all,

I am trying to set up a server at a linux box (debian distro). I have only command line at my use so no graphical interface. I probably should have read bit more about the forums etc to find solution to my problem but thought to take a shortcut and post help request here  :shock:

I have downloaded the package for linux to my box and extracted it. Now I'm wondering what to do next. I assume server.ini is the file I need to edit? Can I start the server from command line or does it require an GFX interface to handle all the stuff? Any input would be much appreciated... Links to help threads etc.. just seems like I'm too lazy to search or I am not just finding the right topics.

Many thanks,

Title: Re: Running server on linux (command line only)
Post by: Possessed on Sunday, April 05, 2015, 10:26:44 AM
"AA25.ini" is what you need to edit.

Read-me of the dedicated server files(commandline):
Code: [Select]
AA25.ORG AMERICAS ARMY 2.5ASSIST DEDICATED SERVER README
LINUX SERVER INSTRUCTIONS

First you must have an existing americas army 2.5 installation,
If you do not follow these instuctions to download and install it...
------------
Login to your server on the console or remotely using SSH:
Move into your home folder:
cd ~

Download the installation package:
wget http://ftp.free.fr/mirrors/AmericasArmy/Linux_v2.5.0/armyops250-linux.run

Set executable and execute:
chmod +x armyops250-linux.run
./armyops250-linux.run

When asked for an installation path enter: ~/armyops
Say no to symbolic links
Select Base Install
Say no to startup menu entrys

After some time the installation will complete.
You may now delete the installation package:
rm armyops250-linux.run
------------


2.5ASSIST DEDEICATE SERVER INSTALLATION:
Move into your americas army 'System' folder
On our fresh install you would use:
cd ~/armyops/System

On an existing 25Assist(GUI) Installation use:
cd ~/25Assist/armyops/System

IMPORTANT, Rename server-bin to serverx
mv server-bin serverx
chmod +x serverx

Download and extract 2.5assist:
wget http://downloads.sourceforge.net/project/aa25assist/Binaries/ldedisrv.zip
unzip ldedisrv.zip
chmod +x server-bin

Now edit the aa25.ini file with your required settings:
nano aa25.ini

Start the Server:
./server-bin GLOBAL map-filename

(replace map-filename with your choosen map, bridge, insurgent_camp, radio_tower, etc.)
(Optional command-line arguments  -Port=1716  -Multihome=0.0.0.0  override settings in aa25.ini)


Additional pb commands can be added by creating ServerMessage.cfg in the "pb" folder and adding them there.

You might have to install this to get it to work:
apt-get install lib32stdc++6
Extra stuff that mighty be helpful: http://aao25.com/wiki/index.php?title=Create_A_Server (http://aao25.com/wiki/index.php?title=Create_A_Server)
Title: Re: Running server on linux (command line only)
Post by: nooz on Sunday, April 05, 2015, 10:51:17 AM
Thanks for your reply Possessed, I'll look in to it but seems like it was just what I was looking for  ;)
Title: Re: Running server on linux (command line only)
Post by: nooz on Tuesday, April 07, 2015, 09:42:24 AM
Ok. got my server running, thx Possessed.

I have passworded it for LAN use atm only. Seems like AA Assist wont let me join it (ERROR: No record of this gameserver on the Assist Master Server......) though I have registered the server at battletracker. It shows there allright and on the server browser.. but is there somesort of restriction about running private servers with AA Assist or am I doing something wrong?


Server page here: http://battletracker.com/aaoserver/84.250.161.154:1716/ (http://battletracker.com/aaoserver/84.250.161.154:1716/)



I wish Battletracker would accept host names btw, as my IP is dynamic and I use dyndns.
Title: Re: Running server on linux (command line only)
Post by: Nick on Tuesday, April 07, 2015, 10:16:05 AM
Try disabling the firewall temporarily to rule out any issues with the firewall causing authentication problems.