Author Topic: Linux server  (Read 3449 times)

SkyDiver

  • PGP
  • Posts: 12
Linux server
« on: September 10, 2012, 05:13:46 PM »
Hello I have a root server in linux debian and I want to open a paintball server...

But first I would like to know how many ram a paintball server takes to have 30 slots.

can I give for example 2G of ram to the server and the server use only that 2G?

were can I download the server to linux debian and there is any toturial to set every thing up..

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Linux server
« Reply #1 on: September 10, 2012, 05:35:52 PM »
2 gigs is more than enough.  It probably uses less than 100 megs in most cases.  If you click on the downloads page, you can grab the full linux version there.  Just unzip it.  You can follow the win32 tutorial for setting up a server on the docs page.  It's not ideal, but it should have most of the information you need.  I should really put up a linux tutorial.

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #2 on: September 11, 2012, 02:41:48 AM »
Thanks I will try it :D

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #3 on: September 11, 2012, 03:07:12 AM »
by the way I dont have grafics on my root server its only cmd's there is no problem?

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Linux server
« Reply #4 on: September 11, 2012, 03:11:43 AM »
No problem, the server dont need it.

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #5 on: September 11, 2012, 03:48:43 AM »
How can I run the paintball2? sh does works becouse its not a .sh file but I cant see the type off the file...

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #6 on: September 11, 2012, 05:29:36 AM »
by the way how many slots we have with 500M?

SuperMAn

  • Committee Member
  • Autococker
  • Posts: 902
Re: Linux server
« Reply #7 on: September 11, 2012, 06:12:07 AM »
You could probably have 100+ slots with 500 MB of RAM.  The problem is there aren't any maps that can support that many players properly.  I would say 32 slots is the max any server should have.  If you want more start a second server.




Here is a .sh script for starting a dp server:




#!/bin/bash

cd /home/user/servers/normal/paintball2

while true
  do
    echo "Starting paintball server"
    ./paintball2 +set dedicated 1 +set port 27910 +set maxclients 20 +exec myserver.cfg +map shock
    sleep 10
  done





Just make sure to change the directory and the name of the config file.

If you have any other questions you can ask me on IRC.  www.SupermansPub.com/chat.html

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #8 on: September 11, 2012, 06:23:51 AM »
it says permission denied... but im using root...

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #9 on: September 11, 2012, 06:31:51 AM »
and I cant find the myserver.cfg

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Linux server
« Reply #10 on: September 11, 2012, 06:58:55 AM »
it says permission denied...
Code: [Select]
chmod +x ./paintball
but im using root...
Paintball2 will throw errors if run as root, create a new user for it.

and I cant find the myserver.cfg
That's your custom config file, you should have created/edited it from server.cfg.

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #11 on: September 11, 2012, 07:51:41 AM »
It keep saying permission denied...

I've already created an other user...

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #12 on: September 11, 2012, 10:44:42 AM »
I've done it!!! :D :D Yehhh now how can give only 500M to the server?

SuperMAn

  • Committee Member
  • Autococker
  • Posts: 902
Re: Linux server
« Reply #13 on: September 11, 2012, 01:57:08 PM »
I've done it!!! :D :D Yehhh now how can give only 500M to the server?


You can't.  I can almost guarantee you that your server will never need more than 500M of RAM.  I run 10+ servers on a VPS with only 768MB total RAM.

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #14 on: September 11, 2012, 02:09:49 PM »
by the way how can I remove the team kill with granades and the end of the round on cap?

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #15 on: September 11, 2012, 02:13:13 PM »
and how can I close the server?

SkyDiver

  • PGP
  • Posts: 12
Re: Linux server
« Reply #16 on: September 11, 2012, 02:13:37 PM »
I type exit close end but it does work..

SuperMAn

  • Committee Member
  • Autococker
  • Posts: 902
Re: Linux server
« Reply #17 on: September 11, 2012, 02:24:04 PM »
Start using the edit button... Multiple posts are frowned upon on most public forums.

Like I said above you can contact me on IRC for these small questions.  www.SupermansPub.com/chat.html


set flagcapendsround 0                           \\ disables flag cap ending round
set grenadeffire 0                                    \\ disables grenade friendly fire


These commands should be put in the "General" section of the configuration file.