Créer un serveur Supraball sous Linux

OS utilisé: Centos 6
Hébergeur: 1and1 (serveur virtuel)

Pré-requis:

  • Connexion FTP + SSH (FileZilla & Putty par exemple)
  • Accès root
  • Bonnes notions linuxiennes

Installation wine (se connecter en tant que root):

  • Configurer les repositories RHEL & EPEL (source):

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

  • Rechercher les packages wine:

# yum search wine
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/metalink | 27 kB 00:00
* epel: mirror.de.leaseweb.net
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
nginx | 2.9 kB 00:00
updates | 3.4 kB 00:00
epel/pkgtags | 1.0 MB 00:00
============================== N/S Matched: wine ===============================
[...]
wine.i686 : A compatibility layer for windows applications
wine.x86_64 : A compatibility layer for windows applications
[...]

  •  Installer wine32 (& wine64, ça peut être utile):

# yum install wine.i686 wine.x86_64

Installation de winetricks:

# cd /usr/bin
# wget http://winetricks.org/winetricks
# chmod u+x winetricks

(source)

Installation des librairies pour UDK:

# winetricks -q d3dx9_43
# winetricks -q d3dx11_43
# winetricks -q dotnet40

Copie des fichiers du jeu sur le serveur:

# mkdir /srv/supraball

Mettez tous les fichiers de votre PC vers /srv/supraball/Supraball en utilisant FTP (FileZilla par exemple).

Après avoir lancé au moins une fois le jeu sur votre PC, copiez les fichiers X3Audio1_7.dll and XAPOFX1_5.dll de votre répertoire System32 (pour Windows 32bits) ou SysWOW64 (pour Windows 64bits) sur votre serveur dans /srv/supraball/Supraball/Binaries/Win32 (faîtes un chmod 755 sur les fichiers au besoin).

Votre répertoire Windows où se trouve ses fichiers est par exemple: C:\Windows\SysWOW64. Si ce répertoire n’existe pas, il est ici: C:\Windows\System32.

Création d’un script de lancement du jeu:

#  cd /srv/supraball/
# vi (ou nano) launch_root (utilisez votre éditeur préféré)

Contenu du fichier /srv/supraball/launch_root:
cd /srv/supraball/Supraball/Binaries/Win32
wine UDK server db-pitch_walls?timelimit=20?MaxPlayers=12?MaxSpectators=10?
AdminPassword=<VOTRE MOT DE PASSE>?Matchtitle='<LE NOM DU SERVEUR>'?
MatchDescription='<LA DESCRIPTION DU SERVEUR>'?ServerIP=<ADRESSE IP DU SERVER>
-port=6161 -multihome=<ADRESSE IP DU SERVEUR> > /srv/supraball/server_supraball.log 2>&1

Vous devez remplacer:
<VOTRE MOT DE PASSE>: votre mot de passe favori
<LE NOM DU SERVEUR>: le nom du serveur qui permettra à tous de vous retrouver
<LA DESCRIPTION DU SERVEUR>: une petite description de votre serveur
<ADDRESS IP DU SERVEUR> (X2): l’adresse IP de votre serveur

Exemple (histoire de):
# cat launch_root
cd /srv/supraball/Supraball/Binaries/Win32
wine UDK server db-pitch_walls?timelimit=20?MaxPlayers=12?MaxSpectators=10?
AdminPassword=customizeme?Matchtitle='[FR] PlayToLive.fr - Venez voir nos lives!'?
MatchDescription='Le serveur de PlayToLive.fr animé par Edonis & Grindhall. On aime les
oignons!'?ServerIP=212.227.107.9 -port=6161 -multihome=212.227.107.9 >
/srv/supraball/server_supraball.log 2>&1

Lancement du serveur:

Toujours en tant que root:
# /srv/supraball/launch_root

Si celui-ci ne sort pas en erreur, vous avez réussi votre coup!

Vous pouvez faire un CTRL+Z et ensuite lancez la commande:

# ./launch_root
^Z
[1]+ Stopped ./launch_root
# bg
[1]+ ./launch_root &

Et suivre les logs dans /srv/supraball/server_supraball.log et voir si tout se passe bien.

Have fun!!!
N’hésitez pas à me dire si vous avez besoin d’un coup de main…

 Pour plus de détails:

4 thoughts on “Créer un serveur Supraball sous Linux

  1. Merci ! !
    Mais…
    # /srv/supraball/launch_root
    wine: created the configuration directory ‘/root/.wine’
    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:systray:initialize_systray Could not create tray window
    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.
    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.
    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.
    Could not load wine-gecko. HTML rendering will be disabled.
    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.
    Could not load wine-gecko. HTML rendering will be disabled.
    wine: configuration in ‘/root/.wine’ has been updated.
    err:module:import_dll Library d3dx11_43.dll (which is needed by L »Z:\\srv\\supraball\\Supraball\\Binaries\\Win32\\UDK.exe ») not found
    err:module:import_dll Loading library XAPOFX1_5.dll (which is needed by L »Z:\\srv\\supraball\\Supraball\\Binaries\\Win32\\UDK.exe ») failed (error c000007b).
    err:module:LdrInitializeThunk Main exe initialization for L »Z:\\srv\\supraball\\Supraball\\Binaries\\Win32\\UDK.exe » failed, status c0000135

  2. Maintenant…

    ~# /srv/supraball/launch_root
    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:systray:initialize_systray Could not create tray window
    fixme:mscoree:ConfigFileHandler_startElement Unknown element L »runtime » in state 1
    fixme:mscoree:ConfigFileHandler_startElement Unknown element L »generatePublisherEvidence » in state 3
    fixme:mscoree:ConfigFileHandler_startElement Unknown element L »assemblyBinding » in state 3
    fixme:mscoree:ConfigFileHandler_startElement Unknown element L »probing » in state 3
    wine: Install Mono for Windows to run .NET applications.
    fixme:msvcrt:__clean_type_info_names_internal (0x3ce834c) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3cca464) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3cd601c) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3b3c5d4) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3b0e58c) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3ad70a4) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3a795cc) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x37a42a4) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3872fec) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x39ee51c) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x39c3d2c) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3936644) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x3de454) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x102f5724) stub
    fixme:msvcrt:__clean_type_info_names_internal (0x37d574) stub

    1. Salut Ro,
      Il faut un serveur sur lequel il y a un environnement X (type Gnome ou KDE).
      Tu peux trouver des infos ici: http://www.idevelopment.info/data/Unix/Linux/LINUX_AddGNOMEToCentOSMinimalInstall.shtml.
      En fait, là, tu n’as pas de serveur X sur ta bécane, d’ailleurs, il faudra sans doute faire un SSH avec le X11 d’activé (putty avec l’option qui va bien) et lancer un serveur X aussi sur ton PC (type Cygwin).
      Pour installer les librairies directX avec wine, un fenêtre s’affiche et tu dois cliquer sur OK.

      Là, tu n’as pas d’environnement graphique sur ton serveur, il faut donc l’installer…
      Tiens-moi au courant, j’hésitais à faire un tuto pour l’installation et l’utilisation d’un serveur X mais… j’ai pas vraiment eu le temps.
      Au pire, dis-moi si tu y arrives ou non et je te filerai un coup de main. 🙂

      1. Bonjour Edonis,
        Voila j’ai un problème j’ai un serveur dédier sous debian, et je n’arrive pas a faire l’étape winetricks.
        j’ai aussi fait tout le reste.
        Quand j’essaye de le lancer, rien ne ce passe aucun message (ni erreur, ni lancement).
        pourrais-tu m’aider?

Répondre à Ro Annuler la réponse

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.