Author Topic: Linux Server troubles  (Read 7431 times)

Smokey

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Linux Server troubles
« on: May 15, 2006, 03:55:53 am »
im trying to run a trem server on my box..

i have the .run file in /root/trem/

here is error i get:




Code: [Select]
root@arena-zone [~]# cd trem
root@arena-zone [~/trem]# ./tremulous-1.1.0-installer.x86.run
-bash: ./tremulous-1.1.0-installer.x86.run: Permission denied
root@arena-zone [~/trem]# ./tremulous-1.1.0-installer.x86.run
Verifying archive integrity... All good.
Uncompressing Tremulous 1.1.0...............................................................................................................................................................
./tremulous-1.1.0-installer.x86.run: ./setup.sh: /bin/sh: bad interpreter: Permission denied
root@arena-zone [~/trem]#


phaedrus

  • Posts: 104
  • Turrets: +1/-1
Linux Server troubles
« Reply #1 on: May 15, 2006, 04:31:24 am »
Ok, the installer is claiming your /bin/sh shell is not there, or incorrectly setup.  I seriously doubt this is the case, but check anyway.

What happens when you just type /bin/sh at the command line?  (You should get a bash prompt back, type 'exit', and you'll return to your previous shell.)

/bin/sh is usually a link to /bin/bash.  You might try 'ls -l /bin/sh' to confirm this.  The correct output will show something that looks like one of these lines:
Code: [Select]

lrwxrwxrwx  1 root root      4 2006-02-18 01:22 /bin/sh -> bash
-rwxr-xr-x  1 root bin   94560 2002-06-02 12:13 /bin/sh


Although, I suspect your system would have failed to boot correctly if this wasn't setup right (the boot system is based on shell scripts, which usually reference /bin/sh instead of /bin/bash for compatibility reasons, eg., FreeBSD uses /bin/ash as the main interpreter which is backwards compatible with /bin/sh, like bash, but not fully compatible with bash, so you'd write in the common subset, and use /bin/sh as the interpreter to be cross platform).

Jeff
owered by Slackware.  Dare to Slack.

Smokey

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Linux Server troubles
« Reply #2 on: May 15, 2006, 04:52:31 am »
Ok, going in order.
I checked and it IS there.


When i type /bin/sh i get:

Code: [Select]

root@arena-zone [~]# /bin/sh
sh-2.05b# exit
exit



When i type ls -l /bin/sh i get:

Code: [Select]
root@arena-zone [~]# ls -l /bin/sh
lrwxrwxrwx    1 root     root            4 May 12 19:53 /bin/sh -> bash*
root@arena-zone [~]#



Ok... i rebooted my server..and its running CentOS

Smokey

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Linux Server troubles
« Reply #3 on: May 17, 2006, 05:18:02 am »
so..any other fixes?

testian

  • Posts: 19
  • Turrets: +0/-0
Linux Server troubles
« Reply #4 on: May 17, 2006, 02:44:59 pm »
try

Code: [Select]
./tremulous-1.1.0-installer.x86.run --keep

enter the newly created directory and look for setup.sh

execute it.

same error?

check file permissions

What filesystem is /root using?

Maybe some mount-flags disable the execution.

Post your /etc/fstab.


what architecture is your OS using?

Smokey

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Linux Server troubles
« Reply #5 on: May 21, 2006, 04:34:06 pm »
ahh fixed!!! i had to remount /tmp without noexec

R1CH

  • Posts: 79
  • Turrets: +3/-1
    • http://www.r1ch.net/
Linux Server troubles
« Reply #6 on: May 21, 2006, 11:55:50 pm »
Why do people use noexec anyway? It's not like it improves anything and just causes compatibility issues like this.

Smokey

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Linux Server troubles
« Reply #7 on: May 22, 2006, 11:57:19 pm »
grrr


              lqqqqqqqqqqqqqqqqqqq Request qqqqqqqqqqqqqqqqqqqqk        
              x Installation complete!                         x        
              x Would you like to start now?                   x        
              x                                                x        
              tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq u        
              x             < Yes >       < No  >              x        
              mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq j        








/usr/local/bin/tremulous: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory
root@arena-zone [/usr/games/trem]#
root@arena-zone [/usr/games/trem]#

tjw

  • Posts: 210
  • Turrets: +10/-0
Linux Server troubles
« Reply #8 on: May 23, 2006, 12:34:26 am »
Quote from: "Smokey"

/usr/local/bin/tremulous: error while loading shared libraries: libSDL-1.2.so.0: cannot open shared object file: No such file or directory
root@arena-zone [/usr/games/trem]#
root@arena-zone [/usr/games/trem]#


If you're running a dedicated server use tremded instead of tremulous.

If you want this to be a client, either install SDL, or use the binary I made compiled statically to libSDL here:

http://tjw.org/tremulous/static-SDL/

Smokey

  • Posts: 793
  • Turrets: +23/-58
    • Zilla Clan
Linux Server troubles
« Reply #9 on: May 23, 2006, 11:28:28 am »
there is no tremded file for some reason...

tjw

  • Posts: 210
  • Turrets: +10/-0
Linux Server troubles
« Reply #10 on: May 23, 2006, 04:05:10 pm »
Oh, I think that's one of the checkboxes you see in the installer.  It is not checked by default.