Bf2 Linux help.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • K-L

    #1

    Bf2 Linux help.

    Ok first of all i have the files all extracted ok, and in folders. What i need help with is a start script, i know u start the server by typing ./start.sh but soon as you close the SSH box the server goes offline. is there a start script out that can run the server and keep it running also listing a process to kill when needed.

    Another thing im having problems with is opening ports on my box. im running redhat 9 and when typing iptables -V i get the version v1.2.8.

    I found a helpme pdf here: http://www.bf2cc.com/downloads/Battl...guide_v101.pdf

    In the firewall section is ses type the following.

    #! /bin/bash

    $MyIP = 192.168.2.100 <-- now does this mean my ip or the server ip, it fails to say exactly what it means.

    Thanks in advance for anyhelp you can give me.

    Lee
  • Munson

    #2
    you need to use Screen or the "&" to keep the server running after your ssh session is closed.

    Something like this:


    from your bf2 dir with the start.sh in it.

    screen sh ./start.sh

    The server will start up, once you see 100% then hit "CTL-A, CTL-D" you will return to the command prompt and see the word [DETACHED]. this means you have an application running in "screen" to return to it simply type at the command prompt "screen -r" then use the CTL-A CTL-D to detach b-4 you logout...


    Once detached it's safe to close your ssh session and play on the server.


    you could also: "sh ./start.sh &" this will put the server in daemon mode..I like screen alot better.

    Good luck!

    Munson

    Comment

    Working...