Author Topic: linux server startup problem  (Read 3718 times)

teffcz

  • PGP
  • Posts: 11
linux server startup problem
« on: July 10, 2010, 12:40:20 PM »
hello, anybody can help me with PB2 on linux (server, ubuntu 10.04) all libs installed (i think, checked and seems be ok), but when i wont run ./paintball2 a got "/var/ball2/paintball2: No such file or directory" but that file is here

or whan i try use my script (before linux resinatall its runing ok) CODE : http://effik.pastebin.com/du84sV6L
i got "nice: /var/ball2/paintball2: No such file or directory"

here is ls from /var/ball2 http://effik.pastebin.com/87U7XQrn

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: linux server startup problem
« Reply #1 on: July 10, 2010, 12:46:45 PM »
Try to start it with:

./paintball2 +exec server.cfg +set dedicated 1 +map ub_cliff +set port 12345

teffcz

  • PGP
  • Posts: 11
Re: linux server startup problem
« Reply #2 on: July 10, 2010, 12:52:47 PM »
-bash: ./paintball2: No such file or directory

ic3y

  • Committee Member
  • Autococker
  • Posts: 1398
Re: linux server startup problem
« Reply #3 on: July 10, 2010, 01:43:33 PM »
chmod 777 paintball2

teffcz

  • PGP
  • Posts: 11
Re: linux server startup problem
« Reply #4 on: July 10, 2010, 01:44:37 PM »
still nothing

teffcz

  • PGP
  • Posts: 11
Re: linux server startup problem
« Reply #5 on: July 10, 2010, 03:49:19 PM »
can someone post me all PACKAGES (not libs) what i must install? for check

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: linux server startup problem
« Reply #6 on: July 10, 2010, 04:24:25 PM »
I think you only need the files paintball2, pball/gamei386.so, pball/configs/server.cfg, pball/configs/commands.txt, pball/configs/rotation.txt and a map file.

Cameron

  • Global Moderator
  • Autococker
  • Posts: 2686
Re: linux server startup problem
« Reply #7 on: July 10, 2010, 05:19:18 PM »
It'll return 'no such file or directory' if you aren't in the paintball2 folder.  So cd into it, and then do the command said above.

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: linux server startup problem
« Reply #8 on: July 10, 2010, 06:18:34 PM »
Sounds like a permission error.

If you created the /var/ball2 directory as root or another user, you must give it permissions for "other" to access that directory.
chmod -R o+rX /var/ball2
(recursively set read permissions on all files in that directory and sub-directories, and execute for all executables/directories)

You should probably chown the /var/ball2/pball directory to the user that will be starting the server, so that it can create log files, etc.

teffcz

  • PGP
  • Posts: 11
Re: linux server startup problem
« Reply #9 on: July 11, 2010, 02:11:29 AM »
masterwow@UnderPower:~$ chmod -R o+rX /var/ball2
chmod: changing permissions of `/var/ball2': Operation not permitted
masterwow@UnderPower:~$ sudo chmod -R o+rX /var/ball2
[sudo] password for masterwow:
masterwow@UnderPower:~$ cd /var/ball2/
masterwow@UnderPower:/var/ball2$ ./paintball2
-bash: ./paintball2: No such file or directory
masterwow@UnderPower:/var/ball2$


untared is from user masterwow

Cameron

  • Global Moderator
  • Autococker
  • Posts: 2686
Re: linux server startup problem
« Reply #10 on: July 11, 2010, 02:35:16 AM »
From what I see, paintball is in /var/ball2/paintball2.  I hope this works:

Code: [Select]
cd /var/ball2/paintball2

./paintball2 +set dedicated 1 +exec config.cfg +map midnight

You want run paintball, not the folder.

edit:  wait, is the paintball2 file in ball2, or is the paintball2 folder in ball2?  That's where I'm getting lost.

teffcz

  • PGP
  • Posts: 11
Re: linux server startup problem
« Reply #11 on: July 11, 2010, 05:42:53 AM »
paintball2 file is in ball2 folder

Cameron

  • Global Moderator
  • Autococker
  • Posts: 2686
Re: linux server startup problem
« Reply #12 on: July 11, 2010, 05:50:20 AM »
In that case, it does sound like a permission error.  Maybe change the ownership of the paintball files to the account that you are using to run the server using chown, if they aren't already?  What bain posted should cover that anyway though...

teffcz

  • PGP
  • Posts: 11
Re: linux server startup problem
« Reply #13 on: July 11, 2010, 06:07:24 AM »
still same error, i can give someone ssh login and he can try run it..

teffcz

  • PGP
  • Posts: 11
Re: linux server startup problem
« Reply #14 on: July 11, 2010, 11:14:42 AM »
i dont know what is changed but now ITS RUNING!!! :)

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: linux server startup problem
« Reply #15 on: July 11, 2010, 04:08:03 PM »
What is the output of:
ls -alr /var/ball2

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: linux server startup problem
« Reply #16 on: July 11, 2010, 04:42:02 PM »
What is the output of:
ls -alr /var/ball2

Beat me to it.

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: linux server startup problem
« Reply #17 on: July 11, 2010, 06:01:51 PM »
Woops.. didn't see the other replies when I posted.

Have fun with your server :)