[SOLVED] Totally confused (linux dedicated server)

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators


  • so ii want to set up my linux server to host a Nexuiz server for my friends and i and i installed it from the repo's (add/remove) and found the data file mentioned in the tut on dedicated server ( /usr/share/games/nexuiz/data ) and put the .sh and .cfg files found in the .zip (from my win machine) then in terminal tried to run the .sh ( ./server_linux.sh) first i got a Permission denied error so i tried as root same problem, the i tried "sh server_linux.sh" and got an error about ./nexuiz-linux-686-dedicated not being there, so now im lost..... what did i F up im sure its simple im just stupid :)
    thanx
    Last edited by stealth1236 on Wed Apr 15, 2009 4:17 pm, edited 1 time in total.
    stealth1236
    Newbie
     
    Posts: 4
    Joined: Sun Apr 12, 2009 7:10 am

Sun Apr 12, 2009 1:47 pm

  • The sh file should be moved in the same directory as the binaries... That's indeed problematic in package-installs, as regular users often don't have access then... Try moving the .sh file as root to the same directory as the binary files (i.e. nexuiz-dedicated), then run the script as a regular user (maybe it's not even chmodded correctly... if you get a permission denied again, try sudo chmod a+x server_linux.sh, then run it as a regular user)

    This should be fine, then :)

    Also, don't forget to copy /usr/share/games/nexuiz/server/server.cfg to the server's data directory :)
    Meh.
    User avatar
    Mr. Bougo
    Keyboard killer
     
    Posts: 760
    Joined: Mon Sep 10, 2007 3:29 pm

Sun Apr 12, 2009 3:44 pm

  • Well first of all most linux distributions change the file layout.. and all the text that is included with Nexuiz is tailored towards the DEFAULT file layout you get when extracting the nexuiz-25.zip file.
    So you might have a bit more to do to adjust what is mentioned in the text/help files. But on the other hand, if you slap your distribution for changing stuff but not modifing the help texts :P

    Which distribution are you using? For example i know debian used to have an extra package for the server binaries.. as well as the music and stuff..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Wed Apr 15, 2009 2:40 am

  • I use Ubuntu Intrepid 8.10. any idea where the binaries are?
    stealth1236
    Newbie
     
    Posts: 4
    Joined: Sun Apr 12, 2009 7:10 am

Wed Apr 15, 2009 6:36 am

  • ok so i got it running needless to say im dumb and need to learn to read. but now i have a different problem, i login to my server via ssh and start the server but when i do that i dont get any updates (someone is spectating, soandso got shot etc.) i do however if i login via VNC and start it in terminal locally, is this normal is there a way to fix it?
    stealth1236
    Newbie
     
    Posts: 4
    Joined: Sun Apr 12, 2009 7:10 am

Wed Apr 15, 2009 10:23 am

  • How do you 'really' start your server? If you use ssh you should also learn about 'screen'. Read this article to learn more about screen: http://jmcpherson.org/screen.html

    Basicly it allows you to login, create a screen session, start one or several (textmode) programs (like the nexuiz ded. server) inside and 'detach', logoff.. then later you can login again, 'reattach' to the screen session and get your programs back. Its also useful to have several programs run in one console window. Basicly i NEVER use a shell without screen, its just too useful!
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Wed Apr 15, 2009 4:17 pm

  • sweet that did it! all problems solved and fast to you guys rock thanks
    stealth1236
    Newbie
     
    Posts: 4
    Joined: Sun Apr 12, 2009 7:10 am

Wed Apr 15, 2009 6:51 pm

  • As a follow up to that, i find those two thing quite useful with screen:

    screen init file ( ~/.screenrc)
    Code: Select all
    bell_msg "Bell in window %n^G"
    caption always "%{=r}%?%F%{+bu}%?%H | %-Lw%{-r}%n*%f %t%{+r}%+Lw | %h"
    defnonblock 1
    defscrollback 2500
    markkeys k=^p:j=^n:h=^b:l=^f:0=^a:\$=^e:^d=^v
    startup_message off
    vbell off

    basicly it makes 'beeps' really beep, enables a status line that always shows which windows are there and on which computer you are logged into, enables some emacs like keys and makes sure a crashing ssh connection does not hang the screen session.

    and a little script i use to startup screen ( ~/bin/screenn )
    Code: Select all
    #! /bin/sh

    exec screen -A -x -RR -ln "$@"

    It starts screen, no matter what.. either it creates a new session, if there already is one, it attaches to the first one (unless you use an extra -S name option), it also attaches in multidisplay mode so that you can have several screens attached to the same session and last but not least it resizes the running session and NOT the xterm window if they differ in size..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am



Return to Nexuiz - Support / Bugs




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest