Uwagi i sugestie

Installing the required software on the system CentOS versions 5/6 32 bit.

[root@centos ~]# yum install wget ncompress screen

...
Is this ok [y/N]:
y
[root@centos ~]# mkdir -p /usr/local/css/game1
[root@centos ~]# cd /usr/local/css/game1
[root@centos game1]# wget http://storefront.steampowered.com/download/hldsupdatetool.bin
--2010-10-06 23:51:10--  http://storefront.steampowered.com/download/hldsupdatetool.bin
Translacja storefront.steampowered.com... 87.248.218.49, 87.248.217.81
Łączenie się z storefront.steampowered.com|87.248.218.49|:80... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 200 OK
Długość: 3513408 (3,4M) [application/octet-stream]
Zapis do: `hldsupdatetool.bin'

100%[================================================================================>] 3.513.408   1002K/s   w  3,5s

2010-10-06 23:51:14 (968 KB/s) - zapisano `hldsupdatetool.bin' [3513408/3513408]

[root@centos game1]# chmod +x hlsupdatetool.bin
[root@centos game1]# ./hldsupdatetool.bin
STEAMTM SUBSCRIBER AGREEMENT

This Agreement is written only in the English language, which language will be controlling in all respects.  All communications to be made or given pursuant to this Agreement will be in the English language, except as may be required under applicable law.

1.  REGISTRATION AND ACTIVATION.

Steam is an online service (.Steam.) offered by Valve Corporation (.Valve.).

You become a subscriber of Steam (.Subscriber.) by installing the Steam client software and completing the Steam registration.  Additionally, as a Subscriber you may obtain access to certain services, software and content (.Subscriptions.) available to Subscribers. This Steam Subscriber Agreement (.Agreement.) is a legal document that explains your rights and obligations as a Subscriber. Please read it carefully.

...

Enter 'yes' to accept this agreement, 'no' to decline: yes
extracting steam.tar.Z...done
[root@centos game1]# chmod +x steam
[root@centos game1]# ./steam
Checking bootstrapper version ...
Getting version 40 of Steam HLDS Update Tool
Downloading. . . . . . . . . . . .
Steam Linux Client updated, please retry the command

[root@centos game1]# ./steam -command update -game "Counter-Strike Source" -dir .
Checking bootstrapper version ...
Updating Installation
No installation record found at .
Checking/Installing 'Counter-Strike Source Shared Content' version 96

0.20%   downloading ./orangebox/cstrike/bin/server.dll
0.55%   downloading ./orangebox/cstrike/bin/server.dylib
1.10%   downloading ./orangebox/cstrike/bin/server.so
1.28%   downloading ./orangebox/cstrike/cfg/ai.cfg
...
100.00% downloading ./orangebox/hl2/navplace.db
100.00% downloading ./orangebox/hl2/pure_server_whitelist.txt
100.00% downloading ./orangebox/srcds_linux
100.00% downloading ./orangebox/srcds_run

 

To start the game, type:

[root@centos game1]# cd orangebox
[root@centos orangebox]# screen -A -m -d -S css-game1 ./srcds_run -game cstrike +ip +sys_ticrate 100 +exec server.cfg +map de_dust -maxplayers


Po wpisaniu w konsoli screen -ls ukaże nam się:

[root@centos game1]# screen -ls
There is a screen on:
        25895.css-game1     (Detached)
1 Socket in /var/run/screen/S-root.

  To access the game console, type screen -r css-game1
  If you want to get out of the console game not excluding the game press the key combination CTRL + A + D.
  To turn off the game, type kill PID where nr. PID is in our case 25895. Type in console: kill 25895.