Jump to content
dr death jm

does anyone have linux server running for cold war assault?

Recommended Posts

Hi, im strugling to get a server up on linux, and was hoping somone has 1 up and running and would mind sharing there files ...

I have all of KaRRiLioN BooT Camp (from old ofp) rts addons and missions. and were all dieing to play it but i cant get any server files to work.

please help

tia

Share this post


Link to post
Share on other sites

I wanna start a ofp resistance linux server , dose anyone have a copy or working link to linux server executable.

for resistance 1.96... and how to i install/open tgz/winrar file on a linux.

im new to linux so please be nice.:bounce3:

Share this post


Link to post
Share on other sites

Hi Again,

Running a Linux server is not a simple task...You just don't directly run the server executable file(not even in windows).

I gave you the link to the files last week.

You need:

opflashres_linuxserver196.zip (this is a compressed file, you need to decompress it (size 9,419,824)

and

linuxarch10.zip

You also need a bash (-sh) script file (ofpserver)

sample:

#!/bin/bash

#

# ofpserver: Operation Flashpoint Linux dedicated server control script

# © 2003 BIStudio

# OFP binary version must be 1.92 or later!

#

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

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

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

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

OFP_DIR=/srv/ofp

CONFIG=${OFP_DIR}/ofp-server.cfg

PORT=2302

PIDFILE=${OFP_DIR}/ofp_server.${PORT}.pid

RUNFILE=${OFP_DIR}/ofp_server.${PORT}.run

LOGFILE=${OFP_DIR}/ofp-log.${PORT}.txt

SERVER=${OFP_DIR}/server

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

case "$1" in

start)

rm -f mpmissions

ln -s ofpmissions mpmissions

if [ -f ${RUNFILE} ]; then

$0 stop

fi

cd ${OFP_DIR}

./tolower

echo "Starting OFP server..."

# file to mark we want server running...

echo "go" >${RUNFILE}

# launch the background watchdog process to run the server

nohup </dev/null >/dev/null $0 watchdog &

;;

stop)

echo "Stopping OFP server..."

if [ -f ${RUNFILE} ]; then

# ask watcher process to exit by deleting its runfile...

rm -f ${RUNFILE}

fi

# and terminate OFP server process

if [ -f ${PIDFILE} ]; then

kill -TERM $(< ${PIDFILE})

if [ -f ${PIDFILE} ]; then

rm -f ${PIDFILE}

fi

fi

;;

status)

if [ -f ${RUNFILE} ]; then

echo "Server should be running..."

else

echo "Server should not be running..."

fi

if [ -f ${PIDFILE} ]; then

PID=$(< ${PIDFILE})

echo "PID file exists (PID=${PID})..."

if [ -f /proc/${PID}/cmdline ]; then

echo "Server process seems to be running..."

fi

fi

;;

check)

echo -n "OFP directory: ${OFP_DIR} "

if [ -d ${OFP_DIR} ]; then

echo "OK"

else

echo "MISSING!"

fi

echo -n "Server executable: ${SERVER} "

if [ -x ${SERVER} ]; then

echo "OK"

else

echo "ERROR!"

fi

echo "Port number: ${PORT}"

echo -n "Config file: ${CONFIG} "

if [ -f ${CONFIG} ]; then

echo "OK"

else

echo "MISSING!"

fi

echo "PID file: ${PIDFILE}"

echo "RUN file: ${RUNFILE}"

;;

restart)

$0 stop

$0 start

;;

watchdog)

# this is a background watchdog process. Do not start directly

while [ -f ${RUNFILE} ]; do

# launch the server...

cd ${OFP_DIR}

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..."

export LD_LIBRARY_PATH=/srv/cia/ofp/libs

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} -nomap

if [ -f ${RUNFILE} ]; then

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..."

sleep 5s

else

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating"

fi

unset LD_LIBRARY_PATH

done

;;

*)

You also need a libs folder inside of the ofpserver folder.

files:

libresolv.so.2

libnss_files.so.2

libnss_dns.so.2

libc.so.6

ld-linux.so.2

In addition the normal ofp stuff this is what it should look like.

tolower.c

tolower

server

ofpserver

ofp-server.cfg

ofp-server-1.96.shar

/bin

/data

/addons

/users

/libs

Server Readme:

Operation Flashpoint: Resistance - Linux Standalone Server 1.96

===============================================================

Copyrigt © 2002-2003 Bohemia Interactive Studio and Codemasters. All rights reserved.

Installation instructions:

==========================

1. Following programs must have been installed on your Linux-box:

uudecode, gunzip, gcc. Optional: md5sum (for setup integrity check)

1a. On some newer verions of Linux (this was reported for RedHat 9

and Gentoo linux 2.4.20) the NSCD deamon must be installed to

run OFP server successfully. Caching of DNS would be sufficient.

2. Copy the whole "OperationFlashpoint" directory from Windows

to some Linux-directory (OFP). DON'T DO ANY DATA CONVERSIONS

(even "dos2unix" translation of text files is not necessary).

Example: you can use PKZIP (WinZip, PowerArchiver, etc.) on

Windows and "unzip" on Linux.

Don't use upper case letters in the OFP directory name

(/home/bob/ofp will be good, /home/bob/OperationFlashpoint

may cause some troubles).

OFP directory should contain subdirectories "Addons", "Bin",

"Campaigns", etc.

3. Copy the "server-x.xx.shar.gz" (x.xx is version number) file into

the OFP directory. Unpack and install it with commands:

ofp$ gunzip server-x.xx.shar.gz

ofp$ sh server-x.xx.shar

Watch the messages - they will inform you whether your installation

is successful.

4. Dedicated server can be started in foreground:

ofp$ ./server

Or in background:

ofp$ nohup ./server > out.txt 2> err.txt &

[1] <pid>

5. Running server can be stopped by pressing CTRL+C (foreground)

or by executing:

$ kill -s SIGINT <pid>

Where <pid> is process-id of mother server thread (printed out in

"nohup" command).

6. From 1.92 OFP server has a new feature: command-line parameter

"-pid=<pid_file>". It causes creation of <pid_file> with

PID of root OFP process. If IP port specified in "-port=<nn>"

parameter is busy (in usage), OFP will terminate immediately

and <pid_file> won't be written..

7. The "ofpserver" script is provided for automatic server

start/restart/status query/etc. Please be sure to edit

CONFIGURATION PARAMETERS in lines 14 to 20 !

After this is done, install (hard-link?) the script into

"/etc/rc.d/init.d/ofpserver" file. After that it can be managed

by "chkconfig" (see info/man).

Linuxarch Reademe:

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

·: OFPR Linux server file archiver v1.0 :·

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

This batch file will archives files needed by the OFP

Resistance Linux dedicated server from an OFP Resistance

installation to a TAR archive, which can then be extracted

on a linux machine.

To use, extract all files in this ZIP file to the directory

you have Operation Flashpoint Resistance installed at, and

run "mksvfiles.bat". When the batch file is done, a file

named "servfiles.tar" (or "servfiles.tar.gz" if you chose

to GZip it) will be generated. Take this file to a linux

machine and extract it, then install the Linux dedicated

server to the directory as instucted in its readme.

The batch file can also archive addons and mpmissions from

the OFP installation, GZIP the TAR archive and then delete

the files used by the batch file. These prodecuders will be

asked by the batch file when its run.

Without addons and mpmissions the archive file will be about

220MB in size, so ensure you have that much free space on

the drive. GZIP'ing the archive will need more space, but

will decrease the final archive size significantly.

REMEMBER that the tar, or gz file will have copyrighted

material in it from Operation Flashpoint so distributing

it for other than your own use is illegal!

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

By Kegetys <kegetys@raketti.net>

http://ofp.kege.cjb.net

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

I don't know linux so I can't be much more help. Once it's running I can help with performace tuning in the "ofp-server.cfg" file.

I know a couple of people who have run linux servers and maybe can help.

Edited by Zulu1

Share this post


Link to post
Share on other sites

yeah i have all of this except opflashres_linuxserver196.zip, si ill try this again today after my 10 hours of hell (work).

but also i think here i will copy and paste and keep all names of everything at its default till its running...

thank you for info.... research was killing me ...

just some extra un useful info ... the server im setting this up on,

Linux, Xeon 6 core CPU, 24 GB of RAM.

12 cores with hyper threading.. But hyper cores are like only half-cores.

100mbit connected to a backbone of 34gigbit

we ran 2 arma oa servers from here , so Im thinking ofp resistance rts3 is going to run sweeeeeet :o)

Share this post


Link to post
Share on other sites

#!/bin/bash

#

# ofpserver: Operation Flashpoint Linux dedicated server control script

# © 2003 BIStudio

# OFP binary version must be 1.92 or later!

#

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

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

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

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

OFP_DIR=/home/jm/ofp

CONFIG=${OFP_DIR}/server.cfg

PORT=2302

PIDFILE=/home/jm/ofp/ofp_server.${PORT}.pid

RUNFILE=/home/jm/ofp/ofp_server.${PORT}.run

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

SERVER=${OFP_DIR}/server

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

export LD_LIBRARY_PATH=${OFP_DIR}/libs

case "$1" in

start)

if [ -f ${RUNFILE} ]; then

$0 stop

fi

echo "Starting OFP server..."

# file to mark we want server running...

echo "go" >${RUNFILE}

# launch the background watchdog process to run the server

nohup </dev/null >/dev/null $0 watchdog &

;;

stop)

echo "Stopping OFP server..."

if [ -f ${RUNFILE} ]; then

# ask watcher process to exit by deleting its runfile...

rm -f ${RUNFILE}

fi

# and terminate OFP server process

if [ -f ${PIDFILE} ]; then

kill -TERM $(< ${PIDFILE})

if [ -f ${PIDFILE} ]; then

rm -f ${PIDFILE}

fi

fi

;;

status)

if [ -f ${RUNFILE} ]; then

echo "Server should be running..."

else

echo "Server should not be running..."

fi

if [ -f ${PIDFILE} ]; then

PID=$(< ${PIDFILE})

echo "PID file exists (PID=${PID})..."

if [ -f /proc/${PID}/cmdline ]; then

echo "Server process seems to be running..."

fi

fi

;;

check)

echo -n "OFP directory: ${OFP_DIR} "

if [ -d ${OFP_DIR} ]; then

echo "OK"

else

echo "MISSING!"

fi

echo -n "Server executable: ${SERVER} "

if [ -x ${SERVER} ]; then

echo "OK"

else

echo "ERROR!"

fi

echo "Port number: ${PORT}"

echo -n "Config file: ${CONFIG} "

if [ -f ${CONFIG} ]; then

echo "OK"

else

echo "MISSING!"

fi

echo "PID file: ${PIDFILE}"

echo "RUN file: ${RUNFILE}"

;;

restart)

$0 stop

$0 start

;;

watchdog)

# this is a background watchdog process. Do not start directly

while [ -f ${RUNFILE} ]; do

# launch the server...

cd ${OFP_DIR}

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..."

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE}

if [ -f ${RUNFILE} ]; then

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..."

sleep 5s

else

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating"

fi

done

;;

*)

echo "$0 (start|stop|restart|status|check)"

;;

esac

Share this post


Link to post
Share on other sites

Hi, Dr Death,

Here's what I have:

#!/bin/bash

#

# ofpserver: Operation Flashpoint Linux dedicated server control script

# © 2003 BIStudio

# OFP binary version must be 1.92 or later!

#

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

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

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

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

OFP_DIR=/home/ofp/ofp

CONFIG=${OFP_DIR}/server.cfg

PORT=2302

PIDFILE=${OFP_DIR}/ofp_server.${PORT}.pid

RUNFILE=${OFP_DIR}/ofp_server.${PORT}.run

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

SERVER=${OFP_DIR}/server

#MODS="" -mod=${MODS}

MODS="@wgl5;@wgltacops"

#MODS="@wgl5;@wgltacops;@oef;@drongo"

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

case "$1" in

start)

if [ -f ${RUNFILE} ]; then

$0 stop

fi

cd ${OFP_DIR}

./tolower

echo "Starting OFP server..."

# file to mark we want server running...

echo "go" >${RUNFILE}

# launch the background watchdog process to run the server

nohup </dev/null >/dev/null $0 watchdog &

;;

stop)

echo "Stopping OFP server..."

if [ -f ${RUNFILE} ]; then

# ask watcher process to exit by deleting its runfile...

rm -f ${RUNFILE}

fi

# and terminate OFP server process

if [ -f ${PIDFILE} ]; then

kill -TERM $(< ${PIDFILE})

if [ -f ${PIDFILE} ]; then

rm -f ${PIDFILE}

fi

fi

;;

status)

if [ -f ${RUNFILE} ]; then

echo "Server should be running..."

else

echo "Server should not be running..."

fi

if [ -f ${PIDFILE} ]; then

PID=$(< ${PIDFILE})

echo "PID file exists (PID=${PID})..."

if [ -f /proc/${PID}/cmdline ]; then

echo "Server process seems to be running..."

fi

fi

;;

check)

echo -n "OFP directory: ${OFP_DIR} "

if [ -d ${OFP_DIR} ]; then

echo "OK"

else

echo "MISSING!"

fi

echo -n "Server executable: ${SERVER} "

if [ -x ${SERVER} ]; then

echo "OK"

else

echo "ERROR!"

fi

echo "Port number: ${PORT}"

echo -n "Config file: ${CONFIG} "

if [ -f ${CONFIG} ]; then

echo "OK"

else

echo "MISSING!"

fi

echo "PID file: ${PIDFILE}"

echo "RUN file: ${RUNFILE}"

;;

restart)

$0 stop

$0 start

;;

watchdog)

# this is a background watchdog process. Do not start directly

while [ -f ${RUNFILE} ]; do

# launch the server...

cd ${OFP_DIR}

echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..."

export LD_LIBRARY_PATH=/home/ofp/ofp/libs

${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} -nomap -mod=${MODS}

if [ -f ${OFP_DIR}/${RUNFILE} ]; then

echo >>${OFP_DIR}/${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..."

sleep 5s

else

echo >>${OFP_DIR}/${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating"

fi

unset LD_LIBRARY_PATH

done

;;

*)

echo "$0 (start|stop|restart|status|check)"

;;

esac

My server uses Ubuntu 10.04 LTS (just realized this, probably moving to 12.04 LTS soon; hopefully it won't break anything).

I hope that helps!

Edited by Anguis

Share this post


Link to post
Share on other sites

Guess it will remove some of your old, very much needed for OFP, libs Ang.

Share this post


Link to post
Share on other sites

Welp, looks like that move probably won't happen. Thanks, OL!

Share this post


Link to post
Share on other sites

As server 10.04 is good enough, noting new needed for OFP server added in 12.04 :)

And afik, BIS have yet to release CWA (1.99) Linux binaries.

Share this post


Link to post
Share on other sites

ey , thats what id like to see is a 1.99 linux server file.

but by the way server is fixed thanks to killswitch and the rest of you.

there is now a new but old ofp resistance server KaRRiLLioN new Boot Camp with rts and addons.

I dont know if i can post link to addons here so anyone interested pm me for link.

also Anguis, i think illl try your set up see if it works better than the one i have.

just need to make back up so i dont stalk killswitch anymore lol.

Share this post


Link to post
Share on other sites

what the diffrence between

OFP_DIR=/home/ofp/ofp

CONFIG=${OFP_DIR}/server.cfg

PORT=2302

PIDFILE=${OFP_DIR}/ofp_server.${PORT}.pid

RUNFILE=${OFP_DIR}/ofp_server.${PORT}.run

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

SERVER=${OFP_DIR}/server

#MODS="" -mod=${MODS}

MODS="@wgl5;@wgltacops"

#MODS="@wgl5;@wgltacops;@oef;@drongo

and

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

OFP_DIR=/home/jm/ofp

CONFIG=${OFP_DIR}/server.cfg

PORT=2302

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

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

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

SERVER=${OFP_DIR}/server

OTHERPARAMS="-mod=@bcm;@RTS3Core;@RTS3Res;@Auxilary;@BASDelta15;@Marpat;@LSR;@Nam"

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

Share this post


Link to post
Share on other sites
BIS have yet to release CWA (1.99) Linux binaries.

hmmm still no Linux for cwa? grrrrrrrr.

Share this post


Link to post
Share on other sites
hmmm still no Linux for cwa? grrrrrrrr.

Nope

but as I have understand lately, there is a patch allowing 1.99 players connecting to 1.96 servers.

The answer to your previous post is:

You are running different OFP home-dir than Ang

You do also run different mods and your log-files is named different.

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

×