linuxa cs server kurulumu

cemadak

0
İyinet Üyesi
Katılım
26 Şubat 2005
Mesajlar
1,487
Reaction score
0
Konum
istanbul
yakın zamanda dedicated server almayı planlıyorum ama linux hakkında fazla bilgim yok acaba sunucu yönetimi ve cs server kurulumu hakkında dökümanlar bulabilicegim bi yer varmı ?
 

Sönmez

0
İyinet Üyesi
Katılım
6 Kasım 2005
Mesajlar
248
Reaction score
0
Konum
Adana
» Installing the server
Once logged in, do not start x-windows, rather stay in the command line interface (hereafter referred to as the CLI). If your Linux box automatically starts x-windows don't worry... when it starts up, just click on the Terminal Emulation icon - you may have it on your taskbar or you may need to look in the "Start Menu" to find it. When you do find it and click on it, a box should open up that has something similar to this:

root@jwm [/root] #

What you have may differ slightly depending upon who you logged in as and the name of your Linux box. In this case, user "root" is logged into the Linux server named "jwm" which defaults to the directory "/root".

Now at your CLI, you want to type:

cd /

Now type this:

mkdir /hlds

Now type:

cd /hlds

If all is well, you should see this at the CLI:

[root@jwm /hlds]

Again, it may differ slightly depending upon who you logged in as and the server name, but you need to make sure you have the "/hlds" part in there. If you don't see it there, go back and start again from the beginning - you did something wrong.

Now a quick side note that you do not have to use this directory ("/hlds"), and in most cases it would be better to use a directory such as "/usr/local/games/hlds" to install your Counter-Strike dedicated server into. If you choose to use this directory instead (usually there is more disk space there) simply substitute

/usr/local/games/hlds

wherever you see

/hlds

And just start over at the top using this new directory. Just remember to substitute your directory (/usr/local/games/hlds) wherever you see (/hlds) for the rest of this tutorial if you chose to go that route!

Now you have a new directory at the top level called "hlds". This is where we are going to install your Counter-Strike server. We need to download 2 files to get started. You should be in the "/hlds" directory on your server, so when we download the files, they will be saved in this directory. If you are not in the /hlds directory we created, or are not sure, simply type:

cd /hlds

You should now be in the correct directory.

Next, click here to download the latest full version of the Half-Life dedicated server for Linux. The most current full version is called "hlds_l_3111.full.bin".

The package is no longer distributed as a tar/gz file. It is distributed as a .bin file that needs to be directly executed. So, after downloading the file, make it executable and then execute it. For example:

chmod a+x hlds_l_3111_full.bin
./hlds_l_3111_full.bin

You will be presented with a EULA, after which the usual tar/gz package will be extracted. From there you gunzip and untar as usual.
So let's type:

tar zxvf hlds_l_3111.tar.gz

The computer will then proceed to unpack and install the dedicated server in the hlds directory we created earlier in a directory called "hlds_l". When it finishes, type:

cd hlds_l

You should now be in the directory "/hlds/hlds_l". Now you need to download the Counter-Strike mod. Click here to download the latest full version of it for Linux dedicated servers. The most current version is called "cs_15_full.tar.gz".

Once the file has downloaded, type this in the CLI you are at:

tar zxvf cs_>15_full.tar.gz

This will unpack and install the Counter-Strike mod on your dedicated server.


» First start
You should now be able to run the basic Counter-Strike dedicated server. Let's test it and see if it works. Make sure you are in the "/hlds/hlds_l" directory and type the following in the CLI:

./hlds_run -game cstrike +maxplayers 10 +map cs_assault

The computer should then proceed to start a dedicated 10 player server with the cs_assault map. At the end of starting the server you should see the following if all went okay:

root@jwm [/hlds] # ./hlds_run -game cstrike +maxplayers 10 +map cs_assault
Using JWM Optimised binary.
Auto-restarting the server on crash
Console initialized.
Protocol version 46
Exe version 3.1.1.1
Exe build: 21:44:58 Jun 5 2003 (2415)
WON Auth Server
Server IP address 192.168.1.1:27015
Downloading Security Module from Speakeasy.net ...
Completed downloading Security Module from Speakeasy.net
Server is in Secure Mode.
[...]
Adding Auth server 65.73.232.251:27040
Adding Auth server 65.73.232.253:27040
Adding master server 65.73.232.251:27010
Adding master server 65.73.232.253:27010
Adding master server 65.73.232.252:27010

. . .

If you see something similar - congratulations, first step is done. If not, don't worry - we will have a closer look at the 2 possible ways to start the server.
Let's have a closer look at the INTERNET-server.


» Internet-server
The easiest way to start a internet-server is as told above:

./hlds_run -game cstrike +maxplayers 10 +map cs_assault

This line is very important:
WON Auth Server

If you see it: great. If not - let's check it step-by-step.
Maybe your server uses the wrong IP. As you see above, the server used for the example uses 192.168.1.1 - the LAN-IP (and interface) of the server. So we should change this.
<If your IP address is not what it should be (one you don't recognize), quit the server by typing this:

quit

Now let's try running it again with a new line, type:

./hlds_run -game cstrike +ip <your IP here> +maxplayers 10 +map cs_assault

For instance, if the IP address of my server were 213.128.127.2, I would type this:

./hlds_run -game cstrike +ip 213.128.127.2 +maxplayers 10 +map cs_assault

Now after you run that, let the game load and wait to see if it gives you "WON Auth Server" this time. If it does, you re set!

If you still do not get the "WON Auth Server" it could be that you are behind a firewall. If so, the only hope for you my friend is to speak to the network administrator and have him open the ports you need (27015 is the default). In any case, he will be able to help you get it opened up to the internet.


Kurulumu bu şekilde ama ingilizce takıldığınız bir yer olursa sorun yardımcı olmaya çalışalım. (Daha önce CS Server kurmadım :))
 

SLaYeR

0
İyinet Üyesi
Katılım
28 Ocak 2006
Mesajlar
812
Reaction score
0
Konum
?
windows için kurlumuda aynımı ve kaynak adresi yollarmısın :)
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Elektronik Sigara
Üst