Author Topic: Soldat server tutorial for linux  (Read 64467 times)

0 Members and 1 Guest are viewing this topic.

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Soldat server tutorial for linux
« on: February 27, 2007, 11:19:34 am »
Soldat Server Tutorial on Linux

Ok, I'll explain how to succesfully download, install, configure and run a soldat server under linux using command line mode (remote SSH or a terminal).

Step I - Creating a directory and downloading the zip


// Create the directory

mar77a@scarecrow:~$ mkdir solserver

// Move to it

mar77a@scarecrow:~$ cd solserver

// Download the soldatserver zip
// Check soldat.pl for the latest version
// http://soldat.pl/en/downloads

mar77a@scarecrow:~/solserver$ wget http://static.soldat.pl/downloads/soldatserver265.zip
--14:16:07--  http://static.soldat.pl/downloads/soldatserver265.zip
           => `soldatserver263.zip'
Resolving static.soldat.pl... 24.105.170.112
Connecting to static.soldat.pl|24.105.170.112|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,813,544 (2.7M) [application/zip]

100%[====================================>] 2,813,544     --.--K/s

14:16:09 (52.65 MB/s) - `soldatserver263.zip' saved [2813544/2813544]

mar77a@scarecrow:~/solserver$

//Check that it's there

mar77a@scarecrow:~/solserver$ ls -l
total 2404
-rw-r--r-- 1 mar77a mar77a 2455679 2006-10-30 17:48 soldatserver263.zip
mar77a@scarecrow:~/solserver$



Step II - Unzipping and Configuring


// Using unzip

mar77a@scarecrow:~/solserver$ unzip soldatserver263.zip
Archive:  soldatserver263.zip
   creating: anims/
  inflating: anims/barret.poa
  inflating: anims/bezbroni.poa
  inflating: anims/biega.poa
  inflating: anims/biegaranny.poa
  inflating: anims/biegatyl.poa
  inflating: anims/bije.poa
  inflating: anims/celuje.poa
  inflating: anims/celujeodrzut.poa
  inflating: anims/change.poa
  inflating: anims/chat.poa
(...)
  inflating: objects/para.po
  inflating: objects/stat.po
  inflating: readme.txt
 extracting: remote.txt
   creating: scenery-gfx/
   creating: scripts/
  inflating: scripts/AdminCore.pas
  inflating: scripts/Core.pas
  inflating: scripts/Includes.txt
  inflating: scripts/NetworkCore.pas
  inflating: server.ini
  inflating: serverscript
  inflating: soldat.ini
  inflating: soldatserver
  inflating: soldatserver.exe
   creating: textures/
  inflating: weapons.ini
  inflating: weapons121.ini
mar77a@scarecrow:~/solserver$

// Check that all files and directories were inflated

mar77a@scarecrow:~/solserver$ ls
anims        lobby_servers.txt  objects      scripts       soldatserver         weapons121.ini
banned.txt   logs               readme.txt   server.ini    soldatserver263.zip  weapons.ini
bots         maps               remote.txt   serverscript  soldatserver.exe
Changes.txt  mapslist.txt       scenery-gfx  soldat.ini    textures
mar77a@scarecrow:~/solserver$

// Now configure the .ini files and mapslist

Use your favourite plain text editor (nano,vi,etc) to edit soldat.ini, server.ini, weapons.ini & mapslist.txt .
Here's a page with the description of each line in the file soldat.ini



Step III - Running the server!


// We give the right permissions to the files

mar77a@scarecrow:~/solserver$ chmod +x soldatserver
mar77a@scarecrow:~/solserver$ chmod -R 0777 logs

// We run the server; there are many ways:

// Way I: Standard, useful for debugging if the server isn't working

mar77a@scarecrow:~/solserver$ ./soldatserver

             -= Soldat Dedicated Server 1.3.1 - BETA 2.6.3 =-

----------------------------------------------------------------
       Caution! This software is still in BETA phase.
         Soldat Dedicated Server initializing...
----------------------------------------------------------------

   Need help running your server?
   IRC: #soldat.servers @ irc.quakenet.org

   Additional parameters:
   ./soldatserver -p PORT -l MAXPLAYERS -p PASSWORD
   Example: ./soldatserver -p 23073 -l 16 -p "my pass"



 The server must be started with an Admin Password parameter to run Admin
   edit SOLDAT.INI section [Network] Admin_Password=

 Hit CTRL+C twice to exit
 Please command the server using the Soldat Admin program
Welcome to Soldat 1.3.1

  No maps list found (adding default). Please add maps in mapslist.txt

 Server name: Soldat dedicated server
 Server PID: 19665
 
  • ScriptCore v2.0 loaded! Found 1 scripts...
  • Compiling default -> Core.pas...
  • Compiling default -> NetworkCore.pas...
  • Compiling default -> AdminCore.pas...
  • Compilation Complete.

----------------------------------------------------------------
Soldat Arena One - version 2.1
 Server IP: 24.105.170.112 Port: 23070
 ASE Port: 23193
 Connection for file server started. Port: 23080
Registering server @ ASE Master Server
BattlEye anti-cheat enabled
Registering server @ 67.106.77.193
Game server added to lobby server @ 67.106.77.193
BattlEye Server: Initialized

(...)

// Otherwise, if we want to run it in the background, we can use nohup as follows,

mar77a@scarecrow:~/solserver$ nohup ./soldatserver > /dev/null &
[1] 27800
mar77a@scarecrow:~/solserver$


// You can also run it using screen <- will write another time how to, or you can just google

Step IV - Shutting down the server!


// If we are running it using ./soldatserver, we hit ^C (CTRL+C)

[...]
Server Encountered an error:
Control-C hit
Shutting server...
Shutting down fileserver...
mar77a@scarecrow:~/solserver$

// Otherwise, if we used nohup to run it in the background, we first get it's process id (PID), and then use 'kill' to shut it down

mar77a@scarecrow:~/solserver$ ps x
  PID TTY      STAT   TIME COMMAND
 4542 ?        Ss     0:13 SCREEN
 4543 pts/2    Ss     0:00 /bin/bash
 4567 pts/2    S+     0:34 irssi
27424 ?        S      0:00 sshd: mar77a@pts/3
27425 pts/3    Ss     0:00 -bash
27800 pts/3    Sl     0:00 ./soldatserver
27841 pts/3    R+     0:00 ps x
mar77a@scarecrow:~/solserver$ kill 27800
mar77a@scarecrow:~/solserver$ ps x
  PID TTY      STAT   TIME COMMAND
 4542 ?        Ss     0:13 SCREEN
 4543 pts/2    Ss     0:00 /bin/bash
 4567 pts/2    S+     0:34 irssi
27424 ?        S      0:00 sshd: mar77a@pts/3
27425 pts/3    Ss     0:00 -bash
27845 pts/3    R+     0:00 ps x
[1]+  Exit 1                  nohup ./soldatserver >/dev/null
mar77a@scarecrow:~/solserver$


Step V - Admining the server

From in-game:
1. type /adminlog adminpwd
- or -
2. type /adm Soldier

// The /adminlog command will make you admin until you exit the game, if you add an admin using /adm <player>, then his/her IP will be added to remote.txt and he'll be admined until his ip changes or is removed from remote.txt

Editing remote.txt:
1. we open remote.txt and add our IP in a new line

Using a remote admin:
1. From windows:
There are many soldat server admins for windows: ARSSE & Soldat Admin 1.2 are the most popular. I suggest the second one if you just want to do simple admining and ARSSE if you want scripts and other automation tasks (like in-game commands).
2. From Linux:
- ARSSE runs fine under WINE.
- From a terminal, type:
mar77a@scarecrow:~/solserver$ echo adminpwd | netcat localhost 23073
Soldat Admin Connection Established...
Succesfully logged in.
Welcome, you are in command of the server now.
 List of commands available in the Soldat game Manual.
Server Version: 2.6.3
[...]

// Replace adminpwd with the value entered in soldat.ini, under [Network], do that same with the port if you modified its value.
// if you don't have NETCAT you can a. download it, b. replace it with TELNET (in that same command). Telnet is nasty though ;)


LIST OF SERVER COMMANDS

That's all, if you have problems such as routing, and others, make sure you read THIS GUIDE.


---
Updated: 2.5.4 version
Updated: 2.6.5 (jrgp)
« Last Edit: January 30, 2011, 09:29:21 pm by jrgp »

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: - Soldat server tutorial for linux -
« Reply #1 on: February 27, 2007, 05:15:48 pm »
Useful tutorial. Don't forget there is another way to run the soldatserver in the background:
./soldatserver -d

I request that this gets stickied.
« Last Edit: February 27, 2007, 05:18:58 pm by jrgp »
There are other worlds than these

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: - Soldat server tutorial for linux -
« Reply #2 on: February 27, 2007, 06:57:37 pm »
Don't use kill -9, that shuts it down uncleanly.  kill <pid> should work fine in 2.5.2 or later

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: - Soldat server tutorial for linux -
« Reply #3 on: March 01, 2007, 09:33:12 am »
Very nice tutorial. :)

Im sure this will be handy for some people new to Linux.
Fight! Win! Prevail!

Offline Frenchie

  • Camper
  • ***
  • Posts: 358
  • SoldatHQ
Re: - Soldat server tutorial for linux -
« Reply #4 on: March 10, 2007, 10:57:43 pm »
tried logging in with netcat and it does.
I can read all details sent by server, but I can't seem to send commands to it.

btw funny how you describe how to setup a 2.5.2 server and at the end you login and it says
Quote
Server Version: 2.5.3
:D
Soldat Lobby Avec Players -New Release! - Updated AGAIN!


Offline sakae

  • Soldier
  • **
  • Posts: 161
Re: - Soldat server tutorial for linux -
« Reply #5 on: April 21, 2007, 07:04:09 pm »
./soldatserver &
doesnt work  with all servers.

./soldatserver -d
neither work on all servers.

screen ./soldatserver
works.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: - Soldat server tutorial for linux -
« Reply #6 on: April 21, 2007, 07:52:39 pm »
The original post should be updated so it says 2.5.4 instead of 2.5.2 and 2.5.3, especially since  < 2.5.4 has that nasty hole

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: - Soldat server tutorial for linux -
« Reply #7 on: April 21, 2007, 10:00:45 pm »
./soldatserver &
doesnt work  with all servers.

./soldatserver -d
neither work on all servers.

screen ./soldatserver
works.

"nohup ./soldatserver &" may also work

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: - Soldat server tutorial for linux -
« Reply #8 on: April 21, 2007, 11:27:21 pm »
./soldatserver > /dev/null &disown also works (it works without the > /dev/null, but then you still get output to the terminal... this may not matter depending upon your use)

I've started using this more lately since it is shorter and more straightforward than using nohup.

From what I undertand:
Code: [Select]
nohup ./soldatserver &
is functionally identical to

Code: [Select]
./soldatserver > nohup.out 2>&1 &disown
« Last Edit: April 21, 2007, 11:29:22 pm by FliesLikeABrick »

Offline Frenchie

  • Camper
  • ***
  • Posts: 358
  • SoldatHQ
Re: - Soldat server tutorial for linux -
« Reply #9 on: April 22, 2007, 03:04:28 am »
tried logging in with netcat and it does.
I can read all details sent by server, but I can't seem to send commands to it.

Can someone tell help/tell me on how to send commands to the server using netcat?  :)
Soldat Lobby Avec Players -New Release! - Updated AGAIN!


Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: - Soldat server tutorial for linux -
« Reply #10 on: April 22, 2007, 09:21:59 am »
just type them  [retard]

you'll get an echo of all you type if it was acknowledged by the server

and the reason i add > /dev/null is to avoid having a huge a.out while logging is turned on

Offline Kazappin

  • Major(1)
  • Posts: 5
Re: Soldat server tutorial for linux
« Reply #11 on: August 20, 2007, 01:42:26 pm »
If I am running this on a domain, where is says "mar77a@scarecrow", would I put in my username@mydomain?

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Soldat server tutorial for linux
« Reply #12 on: August 20, 2007, 03:07:02 pm »
No, just execute the commands after it. user@hostname:~$ is what you get in the terminal, just like C:\Dir\> in Dos prompts.

Offline Kazappin

  • Major(1)
  • Posts: 5
Re: Soldat server tutorial for linux
« Reply #13 on: August 20, 2007, 05:30:37 pm »
Okay, thanks a lot!

Offline {[MS]}Pyro

  • Major(1)
  • Posts: 20
Re: Soldat server tutorial for linux
« Reply #14 on: November 27, 2007, 12:45:47 pm »
How could i (auto)run server at startup on debian? Google has answers which are frustrating and confusing :p
server is located home/user/soldat/
command for starting the server ./soldatserver -d -safe 0

nevermind
like this:
nano /etc/init.d/rc.local
add to the end: home/user/soldat/./soldatserver -d -safe 0
ctrl+x and save
done
« Last Edit: November 27, 2007, 12:52:08 pm by {[MS]}Pyro »

Offline uberspleen

  • Major(1)
  • Posts: 2
Re: Soldat server tutorial for linux
« Reply #15 on: February 09, 2008, 04:53:46 pm »
well im new here and so ya    how do you create a soldat server?

Offline Fubister

  • Major
  • *
  • Posts: 63
Re: Soldat server tutorial for linux
« Reply #16 on: May 27, 2009, 09:20:05 am »
ok, how about to run 2nd server? :> cause when I try to run 2nd process it's automaticlly neutralized, before you ask, 2nd soldat server is in other folder with diffrent settings (like port etc)

Offline Vermithrax

  • Major
  • *
  • Posts: 88
  • Noob
Re: Soldat server tutorial for linux
« Reply #17 on: May 27, 2009, 10:01:18 am »
You run the first server in deamon mode or normal? also, you tiped "./soldatserver" or "./soldatserver -d" ?
English mark: 6 ^^...

typing errors are special effects! :)

All servers are offline!

Offline Fubister

  • Major
  • *
  • Posts: 63
Re: Soldat server tutorial for linux
« Reply #18 on: May 27, 2009, 10:47:59 am »
don't get ya.. I am doing as Mar77a said so

nohup ./soldatserver > /dev/null & and thats it, the same thing when I try to run 2nd server

Offline Vermithrax

  • Major
  • *
  • Posts: 88
  • Noob
Re: Soldat server tutorial for linux
« Reply #19 on: May 27, 2009, 12:45:25 pm »
Try this:

Go into the 2nd server folder, and than type this: "./soldatserver -d".

I don't know much about linux, but may it helps...
English mark: 6 ^^...

typing errors are special effects! :)

All servers are offline!