Jump to content

Home

Linux Server howto


madrebel
 Share

Recommended Posts

Ok since there isnt a full howto ill write one. im missing some info like all the map names and i still dont know how to set the g_gametype flag yet since i dont have a list of what number coincides with which gametpye.

 

but here goes. obviously dl and follow the install instructions.

 

my server.cfg looks like this.

 

// Server Config

set sv_hostname "Reb's T1 Server"

set g_motd "Dont Be a Dick"

rconPassword "password"

sv_privatePassword "password"

sv_privateClients 1

 

 

set sv_pure 1

set sv_maxclients 19

set g_inactivity 0

set sv_maxRate 8000

set sv_maxping 200

set g_allowvote 1

set timelimit 20

set capturelimit 40

set g_autoMapCycle 1

 

map ffa_bespin

 

 

my command line goes like this

./jk2ded +exec server.cfg +map ffa_bespin

 

if you dont set the +map ffa_bespin the server wont start because it doesnt know what map to load.

 

If you want to be cool, you know you want to be cool. Launch the game using screen. Screen allows you to telnet/ssh into your server and attach to your servers "screen" just like youre at the console.

 

do this. In the user or in roots home type.

 

touch jk2

chmod +x jk2

 

open the file jk2 in your favorite editor. add these lines

 

cd /usr/local/games/jk2/

screen -A -m -d -S jk2 ./jk2ded +exec server.cfg +map ffa_bespin

 

now all you ahve to do to launch the game is go to the directory that you created the file jk2 in (remember touch jk2 created a text tile) and type in

 

./jk2

 

notice it dumps you back to a prompt, doesnt look like it did anything does it. just type screen -r jk2 and bamm youre in your servers console. To detach from screen hold down control and hit a then d.

 

Ill post updates when i figure out the map list and gameplay types.

Link to comment
Share on other sites

  • Replies 96
  • Created
  • Last Reply

Top Posters In This Topic

First, I have used Unix so using the jargon is fine, but I am not quick at it.

I have not done the "screen" setup as I just wanted to test it first.

I set up the config as described above and I did the following on my clans FreeBSD Box and got the following error.

any ideas?

 

./jk2ded +exec server.cfg +map a_bespin

 

ELF binary type "0" not known.

 

Abort trap

Link to comment
Share on other sites

I did the same server.cfg as you did at the top..

 

I get the following while running ./jk2ded +exec server.cfg +map ffa_bespin

 

Well more like things that could not load I think

 

 

couldn't exec jk2mpconfig.cfg

couldn't exec autoexec.cfg

 

then after a few lines of stuff.. like initgame: blahblah

 

at the end I get

 

Resolving masterjk2.ravensoft.com

Couldn't resolve address: masterjk2.ravensoft.com

Hitch warning: 16567 msec frame time

 

 

Any fixes or ideas why it does this? I am relearning linux and stuff, and wouldnt mind trying to set up a small dedicated server which sits behind a router.

 

Thanx :atat:

Link to comment
Share on other sites

Hi there I followed the first post about setting up a server but using:

 

\jk2mp.exe" +set dedicated 2 +set net_port 28075 +exec server.cfg +map ffa_bespin

 

for a windows setup

 

All seems to work but the server PW :-(

ive set as you showed

 

sv_privatePassword "password"

sv_privateClients 1

 

but this fails to PW the server

What am I missing here ?

I'm new to setting up Q3 style servers and only know HL setups

 

Hope some1 can help

Link to comment
Share on other sites

I really appreciate your time with this thread. It will be very helpful; however, I have not been able to find (in these forums and elsewhere) the linux binaries!!!

 

Does anyone know where I can get them? I've tried jediknightii.net and shacknews. I seem to have missed it. or just can't find the link!!

 

thanks. :deathii:

 

<edit>

also... is it a tar file or what?

 

thanks again...

<edit>

Link to comment
Share on other sites

Originally posted by ThoMMo

i've had the same problem with sv_privatepassword "password", it just won't password the damn server.

its not supposed to.

 

sv_password "password" locks the server.

 

sv_privatepassword "password" allows you to lock 1 spot (or more if you choose) for

 

sv_privateclients "x" (where x = the number of spots you want to be private).

 

for instance i have a 11 player sabers only server. only 10 spots are open to anyone allowing me to always join my own server using the private password.

Link to comment
Share on other sites

I've tried:

 

sv_password "password"

and

seta sv_password "password"

 

and neither of them will lock the server. Do I need to add anythink else?

 

 

And is there anyway to set the port and game type in the server config file?

Link to comment
Share on other sites

Originally posted by MarleY

I've tried:

 

sv_password "password"

and

seta sv_password "password"

 

and neither of them will lock the server. Do I need to add anythink else?

 

 

And is there anyway to set the port and game type in the server config file?

 

seta g_needpass 1

seta g_password "whatever"

seta net_port "28070" // or whatever port you want

seta g_gametype 3 //1 ffa, 2 holocron, 3 duel, 5 team ffa, 7 ctf, 8 cty

Link to comment
Share on other sites

Just bumpin this.

 

 

Also if anyone else has successfully installed and currently runs a server.. please post =)

 

What Linux your runnin

What options you have

How you installed it

What specs your box has =)

 

And all that jazz!

 

When I try to start my server. It stops after is has found the ravengames broadcast site.. maps and all that stuff seems to load fine, the server.cfg file seems to load without any problems..

 

Just get a hitch error... and i dont know why =)

 

thanx

Link to comment
Share on other sites

I'd post all that, but for the sake of saving time I'll just let you know that a Hitch Warning is just the server saying, "Hey, it took me a bit to do this and that might have created some lag for anyone connected to the server." It's normal to get that when you startup the server and sometimes during a map change. As long as it's not constant, you're ok.

 

After all the startup stuff goes by and you see the heartbeat send and hitch warning type this:

 

status

 

See if it shows you the map and player list (probably empty since you just started it up). If it does, then the server is up and running just fine. You won't see anything else in the console until someone joins, there's a map change, or another heartbeat is sent to the master server. If it says, "server not running", then we have an issue to resolve. Let me know.

Link to comment
Share on other sites

Hehe

 

Ok, I thought I would of gotten a 'Server is UP' type message.

 

Didnt know that, that was the actualy game console.

 

Anyway its up and I can log in via my internal IP address. Now I need to wait for some friends to get home from work and test it out via my external IP. My firewall likes to deny my trying to connnect to something which is within my network via the external ip and port forwarding.

 

Now all I have to do is find all of the different server options, document them and then configure them to what I want.

 

Thank you for the help! hehe

Link to comment
Share on other sites

Originally posted by ZeroGravitySE

Whats the command for running the server in the background?

 

Read the original post, then go read up on how screen works.

 

There is a win32 dedicated server now if you do not wish to learn linux.

Link to comment
Share on other sites

 Share


×
×
  • Create New...