Jump to content
Sign in to follow this  
pchaxor

Linux Server - Need some help please

Recommended Posts

Can anyone point me to good documentation on how to start/configure a nix server? Where do i configure the server to launch mods? How do I get it to load a mission?

I am trying really hard (maybe too hard) to run Linux Server beta 1.60.87589

What I have now and what is documented doesnt work very well and is very frustrating.

This is all the documentation the wiki gives: http://community.bistudio.com/wiki/ArmA:_Server_configuration

------------------------------------------------

Linux

Let's assume that ArmA is installed to "/usr/home/arma-server".

Put your Server Basic Config file to "/usr/home/arma-server/basic.cfg"

Put your Server Config File to "/usr/home/arma-server/server.cfg"

Put your Server Difficulty Settings File to "/usr/home/arma-server/server/server.armaprofile"

Command line / link target:

/usr/home/arma-server/server -cfg=basic.cfg -config=server.cfg -name=server -mod=@mod1\;@mod2\;@mod3

NOTE: this line is only for debugging. When you want to run the server permanently, edit and use the provided script "armaserver" that comes with the linux server files.

NOTE 2: the ';' denotes a line-end in Linux. So you have to put a backslash '\' in front of it to use multiple mods. Same if you use spaces in your directories: write 'my\ files'

NOTE 3: as alternative put the modline in quotes: "-mod=@mod1;@mod2;@mod3"

------------ -----------------------------------------------------------------------------

Really? LOL - nothing about how to edit or what to edit to launch missions, mods or edit the arma2oaserver file????

The readme file that comes with the dedicated server is actually more helpful than the wiki to be honest...

ran the ./install and it installed the beta successfully

server.cfg is copied straight from the wiki and only edited just enough to change the name of the server.

edited the arma2oaserver file and changed:

#=============================

ARMA_DIR=/home/arma2/

CONFIG=/home/arma2/server.cfg

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS=-cpucount=4

#==============================

I start the server using: ./server and I get:

Warning: preNLOD format in object

Very old object loaded.

Warning Message: Bad file format ().

Segmentation fault

I start the server using: /home/arma2/server -cfg=server.cfg -mod=@CBA\;@ACRE\;@fallujah\;@ACE\;@ACEX\;@ACEX_USNavy

and it launches ok but overwrites my server.cfg file with some generic version and doesnt load the mods or mission I specified.

?!?!?!?!?

I dont get it. Maybe I never will. But the documentation or explanation of how or what to set is incomplete.

Please advise PLEASE. I am losing my mind.

What I really want to do is get it working using the ./server script, but this does not seem to work with the information provided.

Edited by pchaxor

Share this post


Link to post
Share on other sites

Quote:

Originally Posted by pchaxor

and it launches ok but overwrites my server.cfg file with some generic version and doesnt load the mods or mission i specified.

Use -config for the server config, not -cfg. -cfg is for arma2oa.cfg.

Make sure you lowercase the mod names and also lowercase all file names in the mod folders. Also, you may need to provide the server user write permissions on the mod folder (chown serveruser:root @cba).

Ok let me try that... that still does not explain how to launch mods using ./server script

Do you have any idea?

Edited by pchaxor

Share this post


Link to post
Share on other sites
Ok let me try that... that still does not explain how to launch mods using ./server script.

Add the -mod=@whatever to $OTHERPARAMS in that default init script.

Also, in the BI archive, "server" is the server executable and "arma2oaserver" is the init script.

Share this post


Link to post
Share on other sites

Ok so I did all that ... just chown it all to root and made sure all dirs were lowercase. (it appears the server ./install does the lowercase conversion for you anyways.)

./install

ArmA 2 - Operation Arrowhead - Linux Dedicated Server 1.57

Converting ArmA 2 OA directory:

1 file-names were converted

ArmA 2 - Operation Arrowhead Server was installed.

Ok so it says it converted a file ... hmm what file could it possibly be?

I do it over and over again and it keeps saying ti converted 1 file. LOL

I attempt to run it again ...

/home/arma2/server -config=server.cfg -mod=@CBA\;@ACRE\;@fallujah\;@ACE\;@ACEX\;@ACEX_USNavy

i get...

Warning: preNLOD format in object

Very old object loaded.

Warning Message: Bad file format ().

Segmentation fault

Does this server just not run on CentOS 5?

Updated ... (thanks a TON for the details on what is what here)

#=======================================================================

ARMA_DIR=/home/arma2/

CONFIG=/home/arma2/aceserver.cfg

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS=-mod=@CBA\;@ACRE\;@fallujah\;@ACE\;@ACEX\;@ACEX_USNavy

#=======================================================================

---------- Post added at 01:00 AM ---------- Previous post was at 12:46 AM ----------

ran ./server and still getting...

Warning: preNLOD format in object

Very old object loaded.

Warning Message: Bad file format ().

Segmentation fault

No idea why this is not working. I wont say I am a Linux expert, but definately not a newb. It has to be something in the /home/arma2/ dir causing problems? If you have a running server what folders/files is in your dir?

---------- Post added at 01:09 AM ---------- Previous post was at 01:00 AM ----------

I stripped everything out of the folder and left only

/addons

/dta

/expansion

/keys

/missions

/mpmissions

arma2oa.cfg

arma2oaserver

install

server

server.cfg

tolower

tolower.c

verified chown root:root /home/arma2/

verified no caps on any folder names

and i got ...

14:07:14 Dedicated host created.

14:07:15 Host identity created.

ArmA 2 OA Console version 1.60 : port 2302 - Sockets

THANK THE LORD! LOL

Edited by pchaxor

Share this post


Link to post
Share on other sites

You may want to try the mods one at a time. Also, you have a space after ACEX_USN in $OTHERPARAMS.

Share this post


Link to post
Share on other sites

Yeah something in the forums adding a space ... I am verifying mod by mod right now.

OTHERPARAMS=-mod=@cba\;@ace\;@acex\;@acex_usnavy\;@acex_ru\;@fallujah

(making them lowercase in the params line as well)

Also .. the servername does not seem to be working .. getting the rDNS name and have to hit it by remote. (maybe a iptables/firewall problem)

---------- Post added at 01:37 AM ---------- Previous post was at 01:33 AM ----------

Does not seem to be working in the format the wiki says to use ... what do i add on that line to get the mods to load? Wow I really dislike guessing games.

BIS DEVS - PLEASE BETTER DOCUMENTATION OF LINUX SERVER SETUP - PLEASE? I LOVE YOU GUYS :)

Share this post


Link to post
Share on other sites
Also .. the servername does not seem to be working .. getting the rDNS name and have to hit it by remote. (maybe a iptables/firewall problem)

That means the server config isn't being loaded for some reason.

Does not seem to be working in the format the wiki says to use ... what do i add on that line to get the mods to load? Wow I really dislike guessing games.

Are you saying the mods aren't being loaded? As I said, try setting the owner of each mod folder to the server user (chown serveruser:root @modfolder).

Share this post


Link to post
Share on other sites

Yeah I had a typo for the server.cfg (was set to aceserver.cfg) - oops. fixed.

I chown'd the entire dir to root and run the server as root. will that not work?

Share this post


Link to post
Share on other sites
Yeah something in the forums adding a space ... I am verifying mod by mod right now.

OTHERPARAMS=-mod=@cba\;@ace\;@acex\;@acex_usnavy\;@acex_ru\;@fallujah

(making them lowercase in the params line as well)

Make sure all filesname are lowercase too. *nix is case sensitive.

Use tolower in your arma server folder to convert file and foldernames recursively.

I chown'd the entire dir to root and run the server as root. will that not work?

It will work, but i suggest you don't run the server using root privileges.

Share this post


Link to post
Share on other sites

I run

/home/arma2/server -config=server.cfg -mod=@CBA\;@JayArma2Lib\;@ACRE\;@fallujah\;@ACE\;@ACEX\;@ACEX_USNavy

And it works fine.

I use ...

ARMA_DIR=/home/arma2/

CONFIG=/home/arma2/server.cfg

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS= -mod=@cba\;@ace\;@acex\;@acex_usnavy\;@acex_ru\;@fallujah (<-- yah the forums is adding that space)

and I get no mods. Perhaps an issue with the beta?

Can you guys check and see what format your using for that line? must be something silly. Also this script does not sem to be loading my server.cfg file either ... maybe the script is out of date or broken with the beta?

---------- Post added at 02:03 AM ---------- Previous post was at 02:00 AM ----------

Good info by the way ... I just wish this info was more public than it is.

Running as root is risky .. I understand the risks. Its just a game server nothing i need to worry about really. I will create another user and chown it all later when I know its not a permissions issue.

Right now it seems fine IF I dont use the "arma2oaserver" script.

Share this post


Link to post
Share on other sites

OTHERPARAMS= -mod=@cba\;@ace\;@acex\;@acex_usnavy\;@acex_ru\;@fallujah (<-- yah the forums is adding that space)

I use a quoted string.

OTHERPARAMS="-mod=@cba;@ace;@acex;@acex_usnavy;@acex_ru;fallujah"

Share this post


Link to post
Share on other sites

Yeah I tried that too .. still nto loading my server config either.

Can you post what you have here ?

ARMA_DIR=/home/arma2/

CONFIG=?????

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS=????

Share this post


Link to post
Share on other sites

I am using this in my "arma2oaserver" script:

ARMA_DIR=/usr/local/games/arma2

CONFIG=server.cfg

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS="-cpucount=3 -mod=@cba;@ace;@acex;@acex_usnavy;@acex_ru;@acre;@asr_ai"

Share this post


Link to post
Share on other sites

yeah no matter what i do I cant get the script to load the mods or server.cfg

ARMA_DIR=/home/arma2/

CONFIG=server.cfg

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS="-cpucount=3 -mod=@CBA;@ACRE;@ACE;@ACEX;ACEX_RU;@ACEX_SM;@ACEX_USNavy;@fallujah"

if I use ...

/home/arma2/server -config=server.cfg -cpucount=3 -mod=@CBA\;@ACRE\;@ACE\;@ACEX\;ACEX_RU\;@ACEX_SM\;@ACEX_USNavy\;@fallujah

it works great.

---------- Post added at 02:57 AM ---------- Previous post was at 02:49 AM ----------

I take that back ... the mods appear to load but I still cant load a mission that uses the mods.

"Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.ace_sys_air_refuel, ace_sys_bi_arty, ace_sys_repair, acex_veh_stryker, ace_c_weapon, acex_c_weapon, acex_veh_gmv, ace_sys_easa"

Share this post


Link to post
Share on other sites

OTHERPARAMS="-cpucount=3 -mod=@CBA;@ACRE;@ACE;@ACEX;ACEX_RU;@ACEX_SM;@ACEX_USNavy;@fallujah"

Double quotes never worked for me either, single quotes do:

OTHERPARAMS='-cpucount=3 -mod=@CBA;@ACRE;@ACE;@ACEX;ACEX_RU;@ACEX_SM;@ACEX_U SNavy;@fallujah'

Mandriva 2010 using 2.6.33.7 kernel... too lazy to mess with recompiling a newer kernel.

hopefully you aren't usin caps in the startup script, either...

...Syn...

Edited by VisceralSyn
typos and other grammatical errors, as usual...

Share this post


Link to post
Share on other sites

"Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.ace_sys_air_refuel, ace_sys_bi_arty, ace_sys_repair, acex_veh_stryker, ace_c_weapon, acex_c_weapon, acex_veh_gmv, ace_sys_easa"

This is from you server log? :confused:

Imho the client will receive this kind of message if it does not not run all required mods.

Share this post


Link to post
Share on other sites

No no caps ... ran the script, chown root:root /home/arma2/*, verified, pulled hair out and still not able to load a mission using ACE mod.

WTH? Really. This is just rediculous.

Ive compiled, configured asterisk, and sccp channels, kernels and so much in Linux, but this is just plain stupid.

Let me ask this .. is ANYONE runnign the latest Linux Beta successfully?

---------- Post added at 03:13 AM ---------- Previous post was at 03:09 AM ----------

This is from you server log? :confused:

Imho the client will receive this kind of message if it does not not run all required mods.

No this is when I try to load a map with ACE mod on the server.

ACE mod appears to be loaded but the server for whatever reason does nto have access to the files???

Really?

drwxrwxrwx 6 root root 4096 Jan 7 15:13 @ace

drwxrwxrwx 5 root root 4096 Jan 3 16:56 @acex

drwxrwxrwx 5 root root 4096 Jan 3 17:18 @acex_ru

drwxrwxrwx 5 root root 4096 Jan 3 17:28 @acex_usnavy

drwxrwxrwx 7 root root 4096 Jan 3 17:30 @acre

drwxrwxrwx 2 root root 12288 Jan 7 03:04 addons

-rw------- 1 root root 13 Jan 7 16:02 arma2oa.cfg

-rwxrwxrwx 1 root root 2891 Jan 7 2012 arma2oaserver

drwxrwxrwx 6 root root 4096 Jan 7 15:13 @cba

drwxrwxrwx 2 root root 12288 Jan 7 03:04 common

drwxrwxrwx 2 root root 4096 Jan 2 17:02 dta

drwxrwxrwx 6 root root 4096 Jan 7 14:07 expansion

drwxrwxrwx 5 root root 4096 Jan 3 17:42 @fallujah

-rwxrwxrwx 1 root root 276 Dec 20 2010 install

drwxrwxrwx 6 root root 4096 Jan 7 03:04 @jayarma2lib

drwxrwxrwx 2 root root 4096 Jan 2 16:58 keys

-rw-r--r-- 1 root root 123 Jan 7 2012 launch.txt

drwxrwxrwx 2 root root 4096 Jan 2 12:47 missions

drwxrwxrwx 2 root root 4096 Jan 7 15:41 mpmissions

drwx--x--x 2 root root 4096 Jan 7 14:07 player

-rwxrwxrwx 1 root root 17294196 Dec 22 05:30 server

-rwxrwxrwx 1 root root 2812 Jan 7 2012 server.cfg

-rw-r--r-- 1 root root 1046 Jan 7 16:02 server_console.log

-rwxrwxrwx 1 root root 6732 Jan 7 13:40 tolower

-rwxrwxrwx 1 root root 3040 Sep 13 2007 tolower.c

into the ace folder ...

-rwxrwxrwx 1 root root 101047 Sep 18 2010 ace.ico

drwxrwxrwx 3 root root 20480 Jan 3 15:56 addons

-rwxrwxrwx 1 root root 202089 Dec 9 21:22 changelog.txt

drwxrwxrwx 12 root root 4096 Jan 3 15:56 clippi

-rwxrwxrwx 1 root root 17317 Apr 21 2011 license.txt

-rwxrwxrwx 1 root root 2673 Jan 23 2011 readme.txt

drwxrwxrwx 3 root root 4096 Jan 3 15:56 store

into the acex addons folder ...

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_veh_mah6.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 10118921 Oct 21 06:48 acex_t_veh_stryker.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_veh_stryker.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 23341028 Oct 21 06:48 acex_t_veh_t72.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_veh_t72.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 1634140 Oct 21 06:48 acex_t_veh_uav.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_veh_uav.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 40028644 Nov 4 18:32 acex_t_wep_g36.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_g36.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 40757469 Oct 21 06:48 acex_t_wep_hk.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_hk.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 17387058 Oct 21 06:48 acex_t_wep_launcher.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_launcher.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 66752573 Nov 4 18:32 acex_t_wep_m16.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_m16.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 7638050 Oct 21 06:48 acex_t_wep_mg.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_mg.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 24304680 Oct 21 06:48 acex_t_wep_pistol.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_pistol.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 84099363 Oct 21 06:48 acex_t_wep_rh_ak.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_rh_ak.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 6345482 Oct 21 06:48 acex_t_wep_rifle.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_rifle.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 25038371 Oct 21 06:48 acex_t_wep_scar.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_scar.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 4031769 Oct 21 06:48 acex_t_wep_shotgun.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_shotgun.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 20920185 Oct 21 06:48 acex_t_wep_smg_us.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_smg_us.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 26859814 Oct 21 06:48 acex_t_wep_sniper.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_sniper.pbo.acex_b353.bisign

-rwxrwxrwx 1 root root 19734926 Nov 25 20:20 acex_t_wep_sud_ak74m.pbo

-rwxrwxrwx 1 root root 562 Dec 9 21:24 acex_t_wep_sud_ak74m.pbo.acex_b353.bisign

You got me .... maybe I am missing something???

---------- Post added at 03:15 AM ---------- Previous post was at 03:13 AM ----------

This is just whacked. I need to walk away for a bit .. this is just silly.

So I can load the mods but cant access them when I call up a mission.

No idea at this point.

Share this post


Link to post
Share on other sites
Let me ask this .. is ANYONE runnign the latest Linux Beta successfully?

yes i am

v1.60.87589

You got me .... maybe I am missing something???

It seems you don't run ace on your client when trying to start the mission on the server.

Share this post


Link to post
Share on other sites

I am running ACE for sure. That error is server side when I try to select the mission.

---------- Post added at 03:54 AM ---------- Previous post was at 03:21 AM ----------

I created a new user ... 'bob' and moved the game data to that user and i now can run the mods/missions just fine if I do it via

/home/bob/arma2/server -config=server.cfg -cpucount=3 -mod=@cba\;@acre\;@ace\;@acex\;@acex_sm\;@acex_usnavy\;@fallujah

But 'arma2oaserver' script is not working for me no matter what I do.

---------- Post added at 04:05 AM ---------- Previous post was at 03:54 AM ----------

My arma2oaserver settings...

#=======================================================================

#======== CONFIGURATION PARAMETERS ========

#======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ========

#=======================================================================

ARMA_DIR=/home/bob/arma2/

CONFIG=server.cfg

PORT=2302

PIDFILE=${ARMA_DIR}/${PORT}.pid

RUNFILE=${ARMA_DIR}/${PORT}.run

LOGFILE=${ARMA_DIR}/log.${PORT}.txt

SERVER=${ARMA_DIR}/server

OTHERPARAMS="-cpucount=3 -mod=@cba;@acre;@ace;@acex;@acex_sm;@acex_usnavy;@fallujah" (<- no space in file)

#=======================================================================

Share this post


Link to post
Share on other sites

finally figured out that i need to run

./arma2oaserver start

./arma2oaserver stop

./arma2oaserver restart

./arma2oaserver status

not ./server as instructed in the dedicated server readme.

"4. Dedicated server can be started in foreground: arma2arrowhead$ ./server Or in background: o$ nohup ./server > out.txt 2> err.txt & [1] <pid>"

- Not sure why this is not documented correctly somewhere, but I was actually corrected by another nix server admin how to do it proper.

Another thing I cant figure out is why the missions wont load from the server.cfg

I have tried several mission names and for whatever reason the mission wont load from the server.cfg on join server.

I have to manually select the mission and either wait for the timer or login as admin to get it to load.

Is there something wrong with this?

// CLASS MISSIONS
class Missions
{
class Mission_01
{
template = 15th_ace_ins_fal_v04se.fallujah;
difficulty = "regular";
};

Edited by pchaxor

Share this post


Link to post
Share on other sites
Is there something wrong with this?

// CLASS MISSIONS
class Missions
{
class Mission_01
{
template = 15th_ace_ins_fal_v04se.fallujah;
difficulty = "regular";
};

Make sure the opening and closing brackets are balanced (you're missing a closing bracket in the listing).

Share this post


Link to post
Share on other sites

Yeah I was missing a closing bracket. Always something silly.

quotes are good practice but I understand the use of quotes is for file names with spaces in them so it is read as 1 object and not multiple. I get that.

Also, let me understand that Dwarden and the Community are the only ones supporting the Linux server? Why is Maruk not behind this 100% ? There is a HUGE difference between Windows and Linux and the benefits are stability, cheaper costs and security. Sure it was much more difficult to setup a Linux box but with good docs it sure would make it much easier. Perhaps the readme file just needs some tlc, but all the things ive screwed up were either because of poor examples or my inability to calculate common sense in the code.

Anyways, server is up and running thanks to all that responded to this thread

./Thank YOU

(lol)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×