Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Tut] Installing a Dedicated Server on Linux

Опубликовано:

Setting up an IW4M dedicated server on Linux

 

Requirements: Basic Linux command line knowledge.

 

Some of the commands below will only work on Debian based distributions (Debain, Ubuntu, ...). If you're using something else, you'll most likely run into problems installing the packages (e.g. you have to use yum instead of apt-get on RHEL/CentOS) and compiling wine. Please use google to find out how to do so on other distributions.

 

//Update Jul 19: Got rid of Xvfb, added tutorial on how to compile wine.

//Update Jan 2: Added CentOS/Fedora/RHEL instructions (thanks to mission)

 

When you see a list like this, execute each line consecutively through the shell:

 


  • command 1
    command 2
    command 3

But now let's get started:

 

1. Installing necessary packages

Login as root. Install the following packages:

 

Debian, Ubuntu etc.:

 


  • apt-get install unzip mono-complete wget nano tar bzip2 make

Fedora, CentOS, RHEL (?):

 


  • yum install unzip mono-core wget nano

2. Installing wine

If you already have at least version 1.4 of wine installed, skip this step.

Use

 


  • wine --version

to determine your version of wine. If you have a version older than 1.4 installed, remove it.

 

Debian, Ubuntu etc.:

 

Download the latest version of wine from http://sourceforge.net/projects/wine/files/Source/ and extract it to /usr/src. As I write this, it's wine-1.5.9:

 


  • cd /usr/src
    wget -O wine-1.5.9.tar.bz2
http://sourceforge.net/projects/wine/files/Source/wine-1.5.9.tar.bz2/download
tar xvf wine-1.5.9.tar.bz2
rm wine-1.5.9.tar.bz2

Install the building dependencies of wine:

 


  • apt-get build-dep wine

Compile and install wine. This will take quite a while.

 


  • cd /usr/src/wine-1.5.9
    ./configure
    make && make install

Note that you need to adjust the commands to whatever version you downloaded!

 

Fedora, CentOS, RHEL (?):

 


  • wget
http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6*.rpm
yum --enablerepo=epel install wine

3. Creating a new user account

Don't use your root account to run a server. Instead, create a new one, e.g.

 

  • adduser gameserver

and log in with it.

 

4. Getting the game files

Create a new folder for your gameserver files. I chose

 


  • mkdir ~/iw4m/

Upload the following files from your local MW2 installation into your newly created folder:

 


  • binkw32.dll
    mss32.dll
    localization.txt
     
    main\iw_00.iwd
     
    zone\dlc\* (all files)
    zone\english\*mp*.ff (every file that has "mp" somewhere in it's name)
    zone\english\contingency.ff
    zone\english\gulag.ff
    zone\english\oilrig.ff

(Note that instead of 'english' the folders' name will be the language of your game installation).

 

Your gameserver folder should look like this now:

acx0fr.png

 

5. Getting the server files

CD to your gameserver folder. Download the dedicated server update tool and run it. Rename iw4m.dat to iw4m.exe.

 


  • cd ~/iw4m/
    wget
http://fourdeltaone.net/iw4m/dsut.zip
unzip dsut.zip
rm dsut.zip
mono iw4m_updater.exe
mv iw4m.dat iw4m.exe

6. Creating a config file

Create a folder called 'players'. Download the preconfigured server.cfg and customize it as desired.

 


  • mkdir players
    cd players
    wget -O server.cfg
http://pastebin.com/download.php?i=5wSjHTQT
nano server.cfg

7. Port forwarding

Pick a port you want to run the server on and forward it in your firewall (TCP and UDP). I chose 28960 (standard).

 

8. Running the server

Start your server without the -console parameter using wine, for example:

 


  • cd ~/iw4m/
    wine iw4m.exe -dedicated +set net_port 28960 +set party_maxplayers 18 +exec server.cfg +map_rotate &

Stop your server by killing iw4m.exe:

 


  • killall -9 iw4m.exe

You can download the following scripts to manage your server easily:

 


  • cd ~/iw4m/
    wget -O start.sh
http://pastebin.com/download.php?i=Nd8khDRU
wget -O stop.sh http://pastebin.com/download.php?i=5E43ZKq4
chmod +x start.sh stop.sh

This will start your server with 18 slots on port 28960 in the background. It will also execute your server.cfg. Edit start.sh to change the parameters.

 

And that's it! Run start.sh to start your server and stop.sh to stop it:

 


  • cd ~/iw4m/
    ./start.sh
     
    ./stop.sh

Check whether your server is running via

 


  • ps -ef | grep iw4m.exe

You might see errors when starting the server. Before asking, please check if the server is running correctly despite those errors.

 

Updating the server

 

Stop your server and run the updater.

 


  • cd ~/iw4m/
    ./stop.sh
    mono iw4m_updater.exe
  • Ответы 127
  • Просмотры 11,7k
  • Created
  • Последний ответ

Top Posters In This Topic

Featured Replies

Опубликовано:

Ok now my server runs just fine.

Doesn't need much CPU and its totaly lagfree.

 

I'm running on a VPS with 1GB Ram and Single CPU and 10GB HDD

On the server runs also a Teamspeak3 with 5 Servers a Website and a Socks

I'm not using vnc only Xfvb

 

 

Here a screenshot:

vps.JPG

 

htop.JPG

Опубликовано:

But how do I get those files on my VPS?

I have a very slow connection, but my vps is 100mb/s (which is uber fast for me)

can I use wget (or some command like that?)

Sorry, this is my first time doing this stuff with vps and servers.

I would really appreciate some help!!

 

Kind regards,

Pielewapper.

Опубликовано:
  • Автор
Pielewapper":20i9p4sm]But how do I get those files on my VPS?

I have a very slow connection, but my vps is 100mb/s (which is uber fast for me)

can I use wget (or some command like that?)

Sorry, this is my first time doing this stuff with vps and servers.

I would really appreciate some help!!

 

Kind regards,

Pielewapper.

 

You could download the files Linux posted earlier:

viewtopic.php?f=7&t=4618#p30286

Опубликовано:

Yes, Thank you very much.

So I just do the commmand (if I am right wget) and than paste the url and my (centos) VPS will download it to its hard disk?

After that I download the installer and follow your tut?

Is it also possible to play on a server, if your language files are different than the server ones? Just curious to try out some other cod styles :P

 

Thank you for willing to explain this to a n00b :)

 

Kind regards,

Kerbz.

Опубликовано:
  • Автор
Pielewapper":1a95qbzy]Yes, Thank you very much.

So I just do the commmand (if I am right wget) and than paste the url and my (centos) VPS will download it to its hard disk?

After that I download the installer and follow your tut?

Is it also possible to play on a server, if your language files are different than the server ones? Just curious to try out some other cod styles :P

 

Thank you for willing to explain this to a n00b :)

 

Kind regards,

Kerbz.

 

Yes, yes and yes :P

You need to unzip the files though (see step 1 and 6 on how to use unzip).

Опубликовано:
Someone could give me new download url for the iw4m.exe

binkw32.dll

iw_00.iwd

 

zone\dlc\* (all files)

zone\english\*mp*.ff (every file that has "mp")

 

Because the links are down :/ Thanks

._____________________.

Look around! Look at that stickied Common errors topic. It has ALL of what you just asked for.

Опубликовано:
  • Автор
i have all of things but missing the maps, I tried to use the one on your post Woofy but ip doesn't seem to respond.

@Toolbox I used the commons to download the iw_00.iwd early thanks for helping me

Yeah it wont respond for me either (10 minutes ago it did though). I guess it will be back up in a while. I dont have another mirror unfortunately.

  • 2 weeks later...
Опубликовано:

hi i have try to make a server on my linux root but if i try to start it i bekome only this anyone know how i can fix it ?

ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: Datei oder Verzeichnis nicht gefunden

fixme:powrprof:DllMain (0x7e300000, 1, 0x1) not fully implemented

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

fixme:system:SystemParametersInfoW Unimplemented action: 59 (SPI_SETSTICKYKEYS)

fixme:system:SystemParametersInfoW Unimplemented action: 53 (SPI_SETTOGGLEKEYS)

fixme:system:SystemParametersInfoW Unimplemented action: 51 (SPI_SETFILTERKEYS)

Опубликовано:
  • Автор
hi i have try to make a server on my linux root but if i try to start it i bekome only this anyone know how i can fix it ?
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: Datei oder Verzeichnis nicht gefunden

fixme:powrprof:DllMain (0x7e300000, 1, 0x1) not fully implemented

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

[...]

fixme:system:SystemParametersInfoW Unimplemented action: 51 (SPI_SETFILTERKEYS)

 

You can ignore the errors that have a fixme: prefix. Please post the output of

ps -ef

(maybe the server is running despite the errors).

 

ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: Datei oder Verzeichnis nicht gefunden

That error looks like you're not launching the server correctly. Are you sure you added -dedicated?

Опубликовано:
hi i have try to make a server on my linux root but if i try to start it i bekome only this anyone know how i can fix it ?
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: Datei oder Verzeichnis nicht gefunden

fixme:powrprof:DllMain (0x7e300000, 1, 0x1) not fully implemented

fixme:ntdll:NtPowerInformation Unimplemented NtPowerInformation action: 11

[...]

fixme:system:SystemParametersInfoW Unimplemented action: 51 (SPI_SETFILTERKEYS)

 

You can ignore the errors that have a fixme: prefix. Please post the output of

ps -ef

(maybe the server is running despite the errors).

 

ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: Datei oder Verzeichnis nicht gefunden

That error looks like you're not launching the server correctly. Are you sure you added -dedicated?

 

output from ps -ef [only from the gs user]

 

mw2      18325 18317  0 14:45 ?        00:00:00 sshd: mw2@pts/0
mw2      18326 18325  0 14:45 pts/0    00:00:00 -bash
mw2      18491     1 25 14:49 pts/0    00:00:01 Xvfb :9 -screen 9 800x600x16
mw2      18492     1 37 14:49 pts/0    00:00:01 /home/mw2/iw4m.exe -dedicated -console +set net_port 28960
mw2      18497     1  1 14:49 ?        00:00:00 /usr/lib/wine/wineserver
mw2      18501     1  0 14:49 ?        00:00:00 C:\windows\system32\services.exe
mw2      18503 18501  0 14:49 ?        00:00:00 C:\windows\system32\winedevice.exe MountMgr
mw2      18515     1  2 14:49 ?        00:00:00 C:\windows\system32\explorer.exe /desktop
mw2      18523 18326  0 14:49 pts/0    00:00:00 ps -ef

Опубликовано:
You server seems to be running. Have you tried connecting?

Are you using one of the scripts from the tutorial to start the server?

 

yes i have now try to connec in my console of iw4m stand now

Dropping all reliable packets for client at '93.186.192.118:28960' since they haven't ack'd a reliable message in 20000ms

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.