Frontpage   Releases   Forum   Documents   Downloads   Gallery   Links   Join Us!   Disclaimer   Contact Us


Author Topic: How to install the IL-2 Linux Dedicated Servers  (Read 4680 times)

0 Members and 1 Guest are viewing this topic.

Offline JG54_Emil

  • Administrator
  • IL2 Addict
  • *******
    • JG54 "Grünherz"
How to install the IL-2 Linux Dedicated Servers
« on: November 30, 2009, 11:05:18 AM »
Translated from http://wiki.sturmovik.de/index.php?title=Dedicated_Server_Linux
Quote
Dedicated Linux Server

Most rentable dedicated servers are operating on Linux for cost, security, administration reasons. So for most multiplayer games dedicated server version for Linux are available, even if the game itself is only available on Windows (For example, the Source Dedicated Server Valve Software Half-Life 2 and games based on it).

Unfortunately, this is not the case with the IL-2 Sturmovik series and so far no dedicated server for Linux is available. Nevertheless, it is possible with some tricks, IL-2-a dedicated server running on Linux. Means to an end here is the program Wine, which a lot of Windows API calls is available.

The furthermore the IL-2 Sturmovik Dedicated Server, is going ro be written IL2-DS here.

Contents
1 installation manual of the IL-2 Linux Dedicated Servers
1.1 installation without shell
1.2 Installation via Shell
1.2.1 Preparation and download the necessary files
1.2.2 Installation of Wine
1.2.3 Installation of the IL-2 Dedicated Server
1.2.4 Starting the Server
2 more steps
3 References

How to install the IL-2 Linux Dedicated Servers

The following configurations are already tested and functional:
SuSE 9.3 (kernel 2.6.15) + Wine 0.9.28 + Dedicated Server v4.05m
SuSE 9.3 (kernel 2.6.15) + Wine 0.9.28 + Dedicated Server v4.071m (Partial: Entries in the DS console are ignored, the output function, at least in part.)
SuSE 9.3 (kernel 2.6.15) + Wine 0.9.28 + Dedicated Server v4.08m (Partial: Entries in the DS console are ignored, the output function, at least in part.)
SuSE 10.2 + Wine 0.9.28 + Dedicated Server v4.05m
SuSE 10.2 + Wine 0.9.28 + Dedicated Server v4.071m
Debian 3.1 + wine-0.9.25 + Dedicated Server v4.08 (problem with Skindownload, apparently because of wine-library msvcrt.dll)
Ubuntu Jaunty 64 + Wine 1.0.1 + Dedicated server 4.09m
Ubuntu Jaunty 64 + Wine 1.0.1 + Dedicated server 4.09m Ultrapack 1.8


Notes This guide helps you install Version 4.05m + 4,071, the IL-2DS based on Wine 0.9.28. It will appear continuously new versions, however, is not about guaranteeing that the latest versions of both programs are compatible. However, you should be able to install updated versions on the basis of this Guide.

07/01/2007
The Dedicated Server v4.07m contains a bug that does not allow players may join the game if they have a different operating system. Please upgrade to version 4.071m.

installation without shell

The server is normally installed on a Windows machine and then up to the dedicated server load - it always works, but is recommended, depending on the connection due to the 1.1 gigabytes of data not necessarily.

Installation via Shell


Preparation and download the necessary files

Create a new user account under which the IL2-to run DS, il2server for example, and log in under that username on the shell.

Change to the directory home/il2server/bin /. If the bin folder does not exist, you you create it. Then you download the best download via wget following IL2-DS binaries:
  Example:
 
Code: [Select]
il2server@rootserver:~/bin> wget -c -t 3 http://files.games.1c.ru/perl_harbor/files/patches/server405m.exe
http://ftp.ubi.com/us/games/pacific_fighters/dedicated_servers/pf_dedicated_server_v204.exe
http://by.sturmovik.de/Serverpatch/pf_dedicated_server_2.04_repair_kit.zip
http://ftp.ubi.com/us/games/pacific_fighters/dedicated_servers/pf_dedicated_server_v204_to_v303m.exe
http://ftp.ubi.com/us/games/pacific_fighters/dedicated_servers/pf_dedicated_server_v304m.exe
http://ftp.ubi.com/us/games/pacific_fighters/dedicated_servers/pf_dedicaded_server_v401m.exe
http://ftp.ubi.com/us/games/pacific_fighters/dedicated_servers/pf_dedicated_server_v402m.exe
http://ftp.ubi.com/us/games/pacific_fighters/dedicated_servers/pf_dedicated_server_v403m.exe
http://ftp.ubi.com/us/games/pacific_fighters/dedicated_servers/pf_dedicated_server_v404m.exe
http://by.sturmovik.de/Serverpatch/pf_dedicated_server_v405m.exe
http://by.sturmovik.de/Serverpatch/pf_dedicated_server_v406m.exe
http://by.sturmovik.de/Serverpatch/pf_dedicated_server_v407m.exe
http://by.sturmovik.de/Serverpatch/pf_dedicated_server_v4071m.exe
http://by.sturmovik.de/Serverpatch/pf_dedicated_server_v408m.exe
http://by.sturmovik.de/DaidalosTeam/server409m.exe

Download now Wine from SourceForge.net. http://sourceforge.net/projects/wine/files/Source/

Installing Wine

Once you've downloaded Wine, log in as root.
 
Code: [Select]
il2server@rootserver:~/bin> su
Make up a path in which you want to install Wine. I have / usr / wine chosen. Note that the user have il2server rights to read, write, and has to fulfill. Then change into that directory and unpack Wine:
Code: [Select]
rootserver:/usr/wine # tar -xjf /home/sturmovik/bin/wine-0.9.28.tar.bz2 (replace 0.9.28 with what ever version number you have downloaded)

If the files are installed to a folder in wine-0.9.28, simply move all the files:
Code: [Select]
rootserver:/usr/wine # mv wine-0.9.28/* .
rootserver:/usr/wine # rmdir wine-0.9.28

Now we come to compiling. This may take a while. It is recommended to take this time (up to 30 minutes). Thus, the compilation process is not interrupted if the connection is cut off, restart the process in a screen.
Code: [Select]
rootserver:/usr/wine # screen
From here there are two possibilities:
Self-compiling:
Code: [Select]
rootserver:/usr/wine # ./configure
rootserver:/usr/wine # make depend
rootserver:/usr/wine # make
Per Wine Installation Tool:
Code: [Select]
rootserver:/usr/wine # ./tools/wineinstall
You can now exit via the CTRL-A, CTRL-D to the screen. You want to access back onto the screen, use the command
Code: [Select]
screen -r

Once Wine has been compiled, connect the screen by pressing CTRL-D, CTRL-K, and log back on as il2server. Do you follow the instructions up here, just type
Code: [Select]
exit.

Installation of the IL-2 Dedicated Server

Change to your home directory and run the following command to be able to run Wine in future:
Code: [Select]
il2server@rootserver:~> /usr/wine/programs/wineconsole/wineconsole
Wine should now have created a folder .wine and within it a drive_c folder. Navigate there and create a folder il2server. Unzip the IL2-DS archives that were downloaded earlier, in order, into this folder. It is best to start again a screen (see above).
Code: [Select]
il2server@rootserver:~/.wine/drive_c/il2server> screen
il2server@rootserver:~/.wine/drive_c/il2server> unrar x pf_dedicated_server_v204.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x pf_dedicated_server_v204_to_v303m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x pf_dedicated_server_v304m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x pf_dedicaded_server_v401m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x pf_dedicated_server_v402m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x pf_dedicated_server_v403m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x pf_dedicated_server_v404m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x server405m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x server406m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x server407m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x server4071m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar x server408m.exe
il2server@rootserver:~/.wine/drive_c/il2server> unrar xserver409m.exe

It should be noted that at the time of creation of the IL-2 dedicated server version 2.04, the download was defect, meaning - some files in it were broken. Some of them will be overwritten by future patches, but the others need to be replaced, preferably by the same versions of an IL-2 Sturmovik client installation. These are the following:
fb_maps.SFS
fb_maps01.SFS
fb_maps02.SFS
fb_maps03.SFS
fb_maps04.SFS
fb_maps05.SFS
fb_maps06.SFS
lib / fonts / LucidaSansRegular.ttf

These files are together about 170 MB. Pf_Dedicated_Server_V2.04_Reparatur_Kit http://by.sturmovik.de/Serverpatch/pf_dedicated_server_2.04_repair_kit.zip

Starting the Server

If you are no longer in a screen, start one. Launch the Windows command line with Wine:
Code: [Select]
il2server@rootserver:~/.wine/drive_c/il2server> /usr/wine/programs/wineconsole/wineconsole cmd
Perhaps some errors to occur. The reason is that you have not installed any graphical interface. Nevertheless, the Windows shell environment should be functional. Now change it to c:\il2server\ and run it il2server_new.exe for version 4.05m or release il2server.exe for version 4.071m.

You will again be shown a lot of mistakes. Ignore them. The server should now be running. Type help in the IL2-DS console, for testing. If the help is provided the whole thing works. If not, there were problems on start.

Leave now the screen (CTRL-A, CTRL-D)!

Restart IL-2 Sturmovik and connect to the server. If the connection is successful, everything works.

Congratulations!
JG54 is recruiting!
Check our Website:
www.IIJG54Gruenherz.org
www.Gruenherzjaeger.de

Offline CRO_Ante

  • Administrator
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #1 on: January 08, 2010, 03:26:58 PM »
This guide is outdated. I will replace it as soon as I find enough time. There are much easier ways to run IL-2 servers on Linux.

Offline D13-th_Mytzu

  • Beta-testers
  • Senior Member
  • *
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #2 on: February 18, 2010, 12:13:18 PM »
Any news on the new guide? We decided to put up a dedicated IL2 MDS server that needs to run under Linux - it would be the first time we try to set up an IL2 dedicated server so the help would be welcomed :)

Offline CRO_Ante

  • Administrator
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #3 on: February 18, 2010, 01:11:49 PM »
In following week I can assemble something but if you have specific questions just ask.

Re: How to install the IL-2 Linux Dedicated Servers
« Reply #4 on: February 18, 2010, 04:53:56 PM »
Hello all.

Ante, please help us with the installation as we need some help...
1. I do not know how to get to pass the following error.

[il2@rtx il2server]$ wineconsole cmd
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:wineconsole:WINECON_Fatal Couldn't find a decent font, aborting

2. how do I install UP on linux?

thx
electric

Offline CRO_Ante

  • Administrator
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #5 on: February 18, 2010, 06:03:32 PM »
1.

You can run il2 server  without graphical environment  but there is no server daemon that can run without graph. env. too, conclusion, at the end you will need some kind of desktop.

you need to install free NX server and use one of the lightweight window managers like XFCE (needs less resources than other managers)

A)
Install XFCE desktop

Code: [Select]
    sudo apt-get install xfce4


B)
add this to /etc/apt/sources.list (replace karmic with yours distro)

Code: [Select]
   
    deb http://ppa.launchpad.net/marceloshima/ubuntu karmic main
    deb http://ppa.launchpad.net/freenx-team/ubuntu karmic main

Code: [Select]
   
   sudo apt-get update
   sudo apt-get install freenx-server freenx-session-launcher


C)
How to connect:
from linux: 
Code: [Select]
sudo apt-get install nxclientfrom windows download: http://www.nomachine.com/download-client-windows.php
Download NoMachine client for Windows or use nxclient

Create new connection with following options
* Select Desktop = Unix/Custom, and then
* under Settings, "Run the following command" = /usr/bin/startxfce4
* and also Options = New Virtual Desktop.

NOTE: suspend NX session window with "X" icon and than select suspend from dialog - this is not same as PC suspend, don't make mistake and suspend remote PC that you don't have physical access.

Follow steps and you will have your desktop in no time. When connected try wine command again from desktop terminal.

2.
Code: [Select]
sudo apt-get install rar
rar x UP-firstarchive.exe
enter extracted folder and run setup, after that it's same as on windows
Code: [Select]
wine UPSetup.exe
Regards,
Ante

Re: How to install the IL-2 Linux Dedicated Servers
« Reply #6 on: February 18, 2010, 10:17:28 PM »
Quote from: CRO_Ante
Follow steps and you will have your desktop in no time. When connected try wine command again from desktop terminal.

Thank you Ante, I have installed the xfce and I started the server 4.09m. It works.
Currently I am downloading UP for installation.



Our server is hardware mounted in a rack few km away in a data center. I started the server being remotely connected to it, but I want to be able to shut my local PC and go to sleep while the server is still runing..

One more question: is there any way to let the server run without a remote x session?

Regards,
electric

Offline CRO_Ante

  • Administrator
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #7 on: February 18, 2010, 11:09:24 PM »
You need to suspend session. Close NX window on X icon and message dialog will appear from which you need to click on suspend button.
Coming back later with NX  it will ask you to resume running session and "voila" your suspended session is back.

As I sad you can run IL-2 server without X session but you won't be able to control it because there is no daemon that can run without X. Dedicated server without daemon software is almost unusable. Btw. xcfe is very light on resources, only one advice: disable screen saver (right click on desktop>Application>System>X screensaver)

Re: How to install the IL-2 Linux Dedicated Servers
« Reply #8 on: February 19, 2010, 05:11:37 PM »
Ante, I would like to thank you for your help!
I have managed to install it. Can't wait to run the thing tonite :spiteful:

Offline CRO_Ante

  • Administrator
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #9 on: February 19, 2010, 05:25:43 PM »
No problem at all. Come back for more help if needed :)

Re: How to install the IL-2 Linux Dedicated Servers
« Reply #10 on: February 20, 2010, 12:42:55 AM »
it works very well with 4.09 stock but not with UP.it crashes with:

[il2@rtx il2server]$ ./il2fb.exe
RTS Version 2.2
Core Version 2.0
Ship: Value of [Ship0]:<Mesh> not foundCan't set property
java.lang.RuntimeException: Can't set property
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.getS(BigshipGeneric.java:928)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.LoadShipProperties(BigshipGeneric.java:1003)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.<init>(BigshipGeneric.java:1192)
        at com.maddox.il2.objects.ships.Ship.<clinit>(Ship.java:2956)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.il2.game.Main.<clinit>(Main.java:688)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.rts.LDR.set(LDR.java:77)
Problem in spawn: com.maddox.il2.objects.ships.Ship$Ship0
Ship: Value of [Ship1]:<Mesh> not foundCan't set property
java.lang.RuntimeException: Can't set property
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.getS(BigshipGeneric.java:928)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.LoadShipProperties(BigshipGeneric.java:1003)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.<init>(BigshipGeneric.java:1192)
        at com.maddox.il2.objects.ships.Ship.<clinit>(Ship.java:2957)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.il2.game.Main.<clinit>(Main.java:688)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.rts.LDR.set(LDR.java:77)
Problem in spawn: com.maddox.il2.objects.ships.Ship$Ship1
Ship: Value of [Ship2]:<Mesh> not foundCan't set property
java.lang.RuntimeException: Can't set property
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.getS(BigshipGeneric.java:928)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.LoadShipProperties(BigshipGeneric.java:1003)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.<init>(BigshipGeneric.java:1192)
        at com.maddox.il2.objects.ships.Ship.<clinit>(Ship.java:2958)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.il2.game.Main.<clinit>(Main.java:688)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.rts.LDR.set(LDR.java:77)
Problem in spawn: com.maddox.il2.objects.ships.Ship$Ship2
Ship: Value of [Ship3]:<Mesh> not foundCan't set property
java.lang.RuntimeException: Can't set property
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.getS(BigshipGeneric.java:928)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.LoadShipProperties(BigshipGeneric.java:1003)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.<init>(BigshipGeneric.java:1192)
        at com.maddox.il2.objects.ships.Ship.<clinit>(Ship.java:2959)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.il2.game.Main.<clinit>(Main.java:688)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.rts.LDR.set(LDR.java:77)
Problem in spawn: com.maddox.il2.objects.ships.Ship$Ship3
Ship: Value of [Ship4]:<Mesh> not foundCan't set property
java.lang.RuntimeException: Can't set property
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.getS(BigshipGeneric.java:928)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.LoadShipProperties(BigshipGeneric.java:1003)
        at com.maddox.il2.objects.ships.BigshipGeneric$SPAWN.<init>(BigshipGeneric.java:1192)
        at com.maddox.il2.objects.ships.Ship.<clinit>(Ship.java:2960)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.il2.game.Main.<clinit>(Main.java:688)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.maddox.rts.LDR.set(LDR.java:77)
Problem in spawn: com.maddox.il2.objects.ships.Ship$Ship4
Sound: Native library (build 1.1, target - P IV) loaded.
IL2 FB dedicated server v4.09m
1>mission LOAD net/dogfight/   3/2_Destroyers.mis BEGIN
Loading mission net/dogfight/   3/2_Destroyers.mis...
Loading mission.mis defined airfields:
Loading map.ini defined airfields:
Total number of airports for loaded mission: 0
Load bridges
Load static objects
Mission: net/dogfight/   3/2_Destroyers.mis is Playing
1>f gc.cmd
>GC
Memory: total(24510464) free(1371192)
>GC
Memory: total(24444928) free(1348408)
>GC
Memory: total(24444928) free(1348136)
>timeout 3600000 f gc.cmd
7>err:seh:setup_exception_record stack overflow 424 bytes in thread 0039 eip 601b980b esp 7ea91188 stack 0x7ea90000-0x7ea91000-0x7eba1000

it starts and then exits... for 4.09m stock it works. for UP it is not working.
I use UP2.0 from download section , no fixes - just MDS1.12

Offline rockeye

  • Newbie
  • *
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #11 on: February 23, 2010, 05:50:09 PM »
Hi,

I think that a desktop does not needed. You can run wineconsole with --backend=curses option.

I use this startup script:

Code: [Select]
#!/bin/sh

set -e

USER=il2
#OPT="-dmS $USER"           #detached mode
OPT="-S $USER"
DIR="/home/il2/.wine/drive_c/il2server-4.08m"
SERVER="il2server.exe"

screen $OPT su - $USER -c "cd $DIR; wineconsole --backend=curses $SERVER"

PD: Sorry my english

Bye

Offline CRO_Ante

  • Administrator
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #12 on: February 23, 2010, 09:27:25 PM »
Hi,

I think that a desktop does not needed. You can run wineconsole with --backend=curses option.

I use this startup script:

Code: [Select]
#!/bin/sh

set -e

USER=il2
#OPT="-dmS $USER"           #detached mode
OPT="-S $USER"
DIR="/home/il2/.wine/drive_c/il2server-4.08m"
SERVER="il2server.exe"

screen $OPT su - $USER -c "cd $DIR; wineconsole --backend=curses $SERVER"

PD: Sorry my english

Bye

Is it possible to  run FBDj or any other server daemon without desktop ???

Offline rockeye

  • Newbie
  • *
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #13 on: February 24, 2010, 10:28:43 AM »
I don't know because I never tried others daemons, but I think if output is text mode, yes.

Regards.

Offline CRO_Ante

  • Administrator
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #14 on: February 24, 2010, 12:59:46 PM »
Daemons are not console programs and as I stated before:

...
As I sad you can run IL-2 server without X session but you won't be able to control it because there is no daemon that can run without X. Dedicated server without daemon software is almost unusable. Btw. xcfe is very light on resources, only one advice: disable screen saver (right click on desktop>Application>System>X screensaver)


Offline Vegeta

  • Junior Member
  • **
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #16 on: December 18, 2010, 04:58:36 PM »

Offline CRO_Ante

  • Administrator
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #17 on: December 18, 2010, 05:38:03 PM »
There is  Dedicated server 4.08m here:  http://mission4today.com/index.php?name=Downloads&file=details&id=2417
It's full server download patched up to 4.08m, apply 4.09 on top and you are ready to go.

Note: you will need to register to  access download page.

Offline Vegeta

  • Junior Member
  • **
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #18 on: December 18, 2010, 11:09:09 PM »
tnx, can you help me with the server_v4071m pls?
even if i don't need it, i like to hostit
it will be a shame to louse this kind of data

Offline Gryphon

  • Expert
  • IL2 Addict
  • *****
Re: How to install the IL-2 Linux Dedicated Servers
« Reply #19 on: December 19, 2010, 05:14:33 AM »
I think the 4071 patch was included in 408.

 

Powered by EzPortal