Меню сайта

Все для CS 1.6

Статистика

Онлайн всего: 1
Гостей: 1
Пользователей: 0

Главная » Статьи » Сервер Counter-Strike

Как создать сервер на Linux
1. Что мы будем использовать для работы с серваком?

Первое: шелл клиент.

1.1.1 Если вы уж привыкли к виндам, то милости просим в WinSCP.


Он предлагает фактически уникальную возможность заливки/выливки файлов
через ssh. Это очень удобно т.к. например у меня на сервере нет фтп.

1.1.2 Нам все-таки нужен нормальный консольный клиент. Довольно удобно в связке с WinSCP работает PuTTY.

Краткий список команд шелла который вам может понадобится:

Quote
vi [filename] - ясно smile
mkdir [dirname] - делаем директорию
cd [dir] - переходим в дир.
mv - (move) - передвигать файлы
cp - (copy) - копировать

rm (-rf) [dir] - команда удаления. Рекомендую если удаляем директорию,
то использовать ключи -rf для рекурсивного удаления ® и игнорирования
всех ошибок и вопросов(f).
chmod - изменение прав на запуск. Если
коротко, то делайте 777 и не ошибетесь. Опять-таки используем ключ -R
(именно большая) для рекурсивного удаления.
chown - изменение владельца.

Согласитесь, теперь перед нами стоит вопрос чем редактировать файлы?

1.2.1 Если вы выбрали WinSCP, то в принципе это не проблема - там есть встроеный редактор файлов.

Но если все-таки вы выбрали шелл, то:


1.2.2 Vi - Выбор настоящих админов. Другое дело что его понять - не
один день. На его тему есть даже шутка - "Vi имеет два режима работы -
бибикать и все портить". В принципе не рекомендую.

Итак, будем считать что первый пункт пройден - и мы таки зашли на сервер и готовы его мучать.

========================= Часть 2. Установка.

2.1 давайте сделаем нового юзера для запуска серверов(потому что запускать под рутом ето изврат)

Quote
useradd games

У меня он называется геймс, хотя можно назвать как хотите )

2.2 Ставить сервак я буду в /usr/games/hlds_dm (т.к. как раз нужен ЦСДМ сервак ) )

Quote
stp-b:~# mkdir /usr/games/hlds_dm
stp-b:~# chown games:games /usr/games/hlds_dm
stp-b:~# cd /usr/games/hlds_dm/

Под рутом ясное дело.

2.3 После чего нам его права уже не понадобятся

Quote
su games

Итак, скачиваем наш сервак с оффа.

2.4
Даем файлу права на исполнение и выполняем его

Quote
chmod +x hldsupdatetool.bin

Quote
./hldsupdatetool.bin

Так как нам наплевать на вальв и его соглашения, то вводим yes

После чего лично у меня вышли такие 2 последние строчки:

Quote
Enter 'yes' to accept this agreement, 'no' to decline: yes
extracting steam.tar.Z...done

Если у вас не такое - то лучше задайте вопрос что сделали не так.

2.5

У нас после этого появился файлик readme.txt:

Code
Half-Life Dedicated Server (Steam) Update Tool <br> [4.07.05] </p>

HldsUpdateTool is an application that will update an existing Half-Life <br> Dedicated Server installation to the latest version or will download the <br> latest version (from scratch) if an existing version is not found. <br> To save time/bandwidth downloading files, it's better to install <br> HldsUpdateTool into the root folder of an existing Half-Life Dedicated <br> Server installation. </p>

Installation <br> ------------ </p>

1) Creating an account </p>

It is no longer necessary to have a Steam account to use this tool. </p>

2) Getting the latest version of the Dedicated Server </p>

To download the latest version of the dedicated server to your machine: </p>

a) Open a command prompt. </p>

b) Change to the directory where the HLDS Update Tool is installed. </p>

c) Run the HLDS Update Tool with the "update" command: </p>

>HldsUpdateTool.exe -command update -game -dir </p>

"cstrike", "dmc", "dod", "ricochet", "tfc", "valve", "Counter-Strike Source", or "hl2mp" </p>

is the path where you want the files installed <br> e.g. . (for the current directory) or c:\hlserver </p>

e.g. <br> >HldsUpdateTool.exe -command update -game cstrike -dir . </p>

or </p>

>HldsUpdateTool.exe -command update -game cstrike -dir c:\hlserver </p>

(NOTE: that will be ./steam instead of HldsUpdateTool.exe for <br> Linux users) </p>

d) Steam remembers the options you use, so when you need to update <br> next time you only need to run: </p>

>HldsUpdateTool.exe -command update </p>

e) You can also install multiple copies of the server by specifying a <br> different . </p>

f) Half-Life mods (eg cstrike, dod) and Source mods (eg hl2mp) must <br> be installed to separate directories </p>

3) Updating your Dedicated Server </p>

If your dedicated server becomes out-of-date you will see the following <br> message in your server console and in the server log: </p>

"Your server needs to be restarted in order to receive the latest update." </p>

To update, stop your dedicated server and run the update commands described <br> in Section 2 (above). </p>

4) Help </p>

To see this info and info about other options of the tool, run it with "-?" <br> and it will print them on the screen. </p>

About Steam <br> ----------- <br> Steam is a broadband business platform for direct software delivery and <br> content management. At its core, Steam is a distributed file system and <br> shared set of technology components that can be implemented into any <br> software application. </p>

Privacy <br> ------- <br> Valve respects the privacy of its users. The details of our privacy policy <br> can be viewed at: </p>

<a class="link" target="_blank" href="http://u.to/b6Q8" title="http://www.valvesoftware.com/privacy.htm" rel="nofollow">http://www.valvesoftware.com/privacy.htm

Категория: Сервер Counter-Strike | Добавил: Cs-Just (17.05.2011)
Просмотров: 818 | Комментарии: 1 | Рейтинг: 0.0/0
Всего комментариев: 0
Добавлять комментарии могут только зарегистрированные пользователи.
[ Регистрация | Вход ]
Мини-профиль

Партнеры
Counter Strike Globak Offensive