How to: Linux Dedicated server (WINE)

Support and discussion for server operators!

How to: Linux Dedicated server (WINE)

Postby SHOT(by)GUN » Fri Oct 26, 2012 9:58 am

Hi,

Guide revision 2

This guide is for Debian based distributions, like Ubuntu for example. This guide has been created using Ubuntu Server 64-bit 12.04 LTS version.

1. install wine and screen
Code: Select all
sudo apt-get install wine
sudo apt-get install screen


2. download LINUX steamcmd from https://developer.valvesoftware.com/wiki/SteamCMD
Code: Select all
wget http://blog.counter-strike.net/wp-content/uploads//2012/04/steamcmd.tar.gz
tar xvfz steamcmd.tar.gz


3. run steamcmd:
Code: Select all
chmod ug+x steam.sh
STEAMEXE=steamcmd ./steam.sh


IF YOU GET DOWNLOAD ERROR
Code: Select all
sudo apt-get install libnss-mdns
sudo apt-get install ia32-libs
sudo apt-get remove lib32nss-mdns


4. You are in steamcmd prompt NOTE: you should have own steam account for steamcmd tool so you don't risk losing your main steam account login information
Code: Select all
login steamuser steampassword
force_install_dir ./chivalryserver/
app_update 220070
quit


5. Create start up script
Code: Select all
nano start.sh

cd chivalryserver/Binaries/Win32
wine UDK.exe AOCFFA-Arena3_P?steamsockets -dedicated=true -seekfreeloadingserver -Port=7777 -QueryPort=7778 -maxplayers=32

CTRL + O to save the file, CTRL + X to exit



6. Create script to start up the server on background screen
Code: Select all
nano startWithScreen.sh

screen -S chivalry -d -m ./start.sh

CTRL + O to save the file, CTRL + X to exit


For unknown reason the server needs pretty new DirectX audio file: X3DAudio1_7.dll

7. Copy it from your windows/system32 folder or download http://kaahane.viuhka.fi/data/X3DAudio1_7.dll
put it in chivalryserver/Binaries/Win32/ folder

Code: Select all
wget http://kaahane.viuhka.fi/data/X3DAudio1_7.dll
mv X3DAudio1_7.dll chivalryserver/Binaries/Win32/


8. Set execute / read write permissions to files for user and group
Code: Select all
sudo chmod ug+x start*
sudo chmod ug+x chivalryserver/Binaries/Win32/UDK.exe
sudo chmod ug+rw * -R


9. Start up server
Code: Select all
./startWithScreen.sh


10. View all your screens
Code: Select all
screen -ls


11. Connect to screen to shut down server
Code: Select all
screen -r chivalry
CTRL + C

screen should get destroyed when chivalry server shuts down


12. Optional: You can observe your processor and memory usages by using htop command
Code: Select all
sudo apt-get install htop
htop

Example:
UDKexe.png
4 instances of chivalry servers running on dual core processor
UDKexe.png (71.75 KiB) Viewed 5004 times


When it launches and you observe the screen.. you get mysterous messages... but it WORKS

IF YOU GET ERROR: cant-find-gnome-keyring-pkcs11-so then follow instuctions from the link
http://askubuntu.com/questions/127848/wine-cant-find-gnome-keyring-pkcs11-so


HOW TO UPDATE?

- Stop your server by doing steps 10. and 11.
- Do the steps 3. and 4. to update server files
- Do the step 9. to start up your server again



Please report success / fail stories here so we can work up this guide.
*edit* thanks for the feedback!
Last edited by SHOT(by)GUN on Fri Nov 23, 2012 6:44 pm, edited 9 times in total.
SHOT(by)GUN
User avatar
SHOT(by)GUN
Yeoman
 
Posts: 100
Joined: Tue Nov 22, 2011 8:35 am
Location: Finland

Re: How to: Linux Dedicated server

Postby b3h47pte » Fri Oct 26, 2012 10:15 am

Awesome! Thanks!
Stickied :)
Please do not send me any support issues over PM -- I will not respond to them, please post it inside the Support forum thread and someone will get back to you.
User avatar
b3h47pte
I Used To be Important
Moderator
 
Posts: 1301
Joined: Tue May 18, 2010 3:29 am
Location: California

Re: How to: Linux Dedicated server

Postby SHOT(by)GUN » Fri Oct 26, 2012 4:50 pm

*EDIT*

I was telling that cpu usage is too damn high on wine version... but I was mistaken...look for my second post about this from second page.
Last edited by SHOT(by)GUN on Thu Nov 22, 2012 5:55 pm, edited 1 time in total.
SHOT(by)GUN
User avatar
SHOT(by)GUN
Yeoman
 
Posts: 100
Joined: Tue Nov 22, 2011 8:35 am
Location: Finland

Re: How to: Linux Dedicated server

Postby wisesifu » Sat Oct 27, 2012 6:07 pm

Hi,

Could I ask your machine specs so that I can put the CPU usage in perspective? I plan on doing some testing on this later today to see how it runs and knowing your machines specs would help me put it in perspective.

Thank you for your hard work.
wisesifu
Peasant
 
Posts: 15
Joined: Tue Oct 16, 2012 5:29 pm

Re: How to: Linux Dedicated server

Postby Temeez » Sat Oct 27, 2012 9:31 pm

Hi,

I am using Arch Linux and my crusade died here: http://pastie.org/private/urkpawxyyav2e67q2z1xq
UDK showed in top and it was around 10% (C2D E8500). No server was found, or maybe was and I even went there but it was a mess and my game crashed quite fast.

EDIT: Hmm, looks like its working somehow, but needs configuration... 10% CPU @ no players is too much afaik.

EDIT2: http://pastie.org/private/sqxrx8kygtfhyre7nantw When I join my server, CPU goes up around 5% :(
Temeez
Peasant
 
Posts: 2
Joined: Tue Oct 23, 2012 12:07 pm

Re: How to: Linux Dedicated server

Postby TaG » Tue Oct 30, 2012 9:44 am

Your guide worked great for me, thanks a lot! I set it to run in screen and haven't encountered any problems. For the record, I am using CentOS 6.3 (the latest version).

I have a few questions:
  • How do I give the server a name?
  • How do I make it show up on the server list? Right now I have to connect using the `open` console command.
TaG
Peasant
 
Posts: 2
Joined: Tue Oct 30, 2012 9:37 am

Re: How to: Linux Dedicated server

Postby b3h47pte » Tue Oct 30, 2012 10:37 am

Temeez wrote:Hi,

I am using Arch Linux and my crusade died here: http://pastie.org/private/urkpawxyyav2e67q2z1xq
UDK showed in top and it was around 10% (C2D E8500). No server was found, or maybe was and I even went there but it was a mess and my game crashed quite fast.

EDIT: Hmm, looks like its working somehow, but needs configuration... 10% CPU @ no players is too much afaik.

EDIT2: http://pastie.org/private/sqxrx8kygtfhyre7nantw When I join my server, CPU goes up around 5% :(


The game server is pretty heavy on the CPU. C2D's are kind of old.
On a E3-1270 running the game on a single core, we usually see 6%-10% idle usage and as you increase the number of players the CPU usage % increases geometrically
Please do not send me any support issues over PM -- I will not respond to them, please post it inside the Support forum thread and someone will get back to you.
User avatar
b3h47pte
I Used To be Important
Moderator
 
Posts: 1301
Joined: Tue May 18, 2010 3:29 am
Location: California

Re: How to: Linux Dedicated server

Postby TaG » Tue Oct 30, 2012 10:49 am

b3h47pte wrote:The game server is pretty heavy on the CPU. C2D's are kind of old.
On a E3-1270 running the game on a single core, we usually see 6%-10% idle usage and as you increase the number of players the CPU usage % increases geometrically

That is what I am seeing on an AMD FX-8120 (factory clock, 3.1 GHz). Is there any way to enable multi-threading?
TaG
Peasant
 
Posts: 2
Joined: Tue Oct 30, 2012 9:37 am

Re: How to: Linux Dedicated server

Postby caramelsauce » Sat Nov 03, 2012 4:21 am

SHOT(by)GUN wrote:Make startserver.bat to chivalryserver folder with:
Binaries/Win32/UDK.exe AOCTD-Moor_p?steamsockets -dedicated=true -seekfreeloadingserver -Port=7777 -QueryPort=7778 -maxplayers=24

wine cmd
find your batfile and start it


Can you explain this part? New to Ubuntu and have no idea what to do at this point.
caramelsauce
Peasant
 
Posts: 22
Joined: Fri Nov 02, 2012 10:40 pm

Re: How to: Linux Dedicated server

Postby Coestar » Mon Nov 05, 2012 7:24 pm

Having a strange problem after using this guide: the server is seemingly running, but I can never connect to it.

Here are the outputs of freshly starting the server: http://pastebin.com/raw.php?i=i843tURx Nothing there really indicates ...well, much of anything. But, the OP did say there would be some gibberish.

At this point, I can see the server in the server list! So I try to connect, and never can. Here's what the server has to say about that: http://pastebin.com/raw.php?i=ZZvCrMpZ As long as I allow Chivalry to continue attempting to connect, the server will continue to sporadically barf those messages.

I don't really understand those messages, and unfortunately I've yet to find anything specifically helpful on Google either. Any help is greatly appreciated! :)
Coestar
Peasant
 
Posts: 1
Joined: Mon Nov 05, 2012 7:15 pm

Next

Return to Server Operator's Hub

Who is online

Users browsing this forum: No registered users and 15 guests