Leya 发表于 2008-10-8 16:11:48

Linux Steam系统与CS1.6 安装指南

这是Steam官方论坛(http://forums.steampowered.com/forums/index.php?s=df4444b451678441826ecbe55ba455a0)Linux Dedicated Server 版块区中的一篇置顶的文章,主要讲述Linux CS1.6服务器纯净版的制作和服务器建立。比较经典,特翻译出来和大家分享一下。Enjoy!!!
原文:
Linux

Steam and Cs1.6 Install Guide


--------------------------------------------------------------------------------

Install Guide:


Intro:

This Guide is written for help with installing the new steam linux 1.6 server.
It will take you step by step through the installation until you have a basic Counter-Strike server running.


Requirements:


Acces to Linux server with ssh, or your own server with a keybord.
An Internet connection on the linux server.
An homedir where you have write acces.
Enough space on your hard drive, 600Mb At least.
wget or an ftp program.
Gzip unpack program.


Guide:

Ok, Lets get started.
Go to your homedir and lets make a new dir for the server, and then go into that dir.
Should you already have a installation you want to update, just use the hlds_l dir you using now

   mkdir hlds_l

Now lets go in the dir.

   cd hlds_l

Now we are going to download the steam install files (file is called steam) I use wget here to get the file.
If you are having problems downloading this file from this location there are some mirrors listed at the bottom of this page.
if your linux doesnt have wget, use the http/ftp program provided with your distribution to get it.

   wget http://users.lichtsnel.nl/~jap/steam/steam.tar.gz

We now have the file we need, now lets unpack it!

   tar -zxvf steam.tar.gz

Now make sure it executable.

   chmod +x steam

now lets runs steam:

   ./steam

it will response with:

   Checking bootstrapper version ...
   Getting version X of Steam HLDS Update Tool
   Downloading. . . . . . . . . . .
   Steam Linux Client updated, please retry the command

Now we are all ready to start getting an acount for steam, and to get the files!
The thing we are going to do is create an account for our dedicated server, ill give the correct syntax plus an example:

   ./steam -command create -username <username> -email <email> -password <password> -question <question> -answer <answer>

   ./steam -command create -username Japje -email jap@valvesoftware.com -password hard2guess -question "does steam r0x?" -answer yes

Now you know how it must be done, so lets do it, go make an account.

After creating the account steam will response with:

   Checking bootstrapper version ...
   Creating Account
   Account Created successfully

So we now have an updated steam client, and an account for this server, cool huh now lets get those server files.

   ./steam -command update -game <game> -dir /path/to/your/hlds_l -username <username> -password <password> -remember_password

As you can see we can choose our game, install dir, with our username and password we just created,
and putting -remember_password at the end will make sure it remembers the password.
The install dir is the path to the hlds_l dir we made in the beginning, ill use /home/jap/hlds_l as an example.

   ./steam -command update -game cstrike -dir /home/jap/hlds_l -username Japje -password hard2guess -remember_password

if you typed it correctly it will response with:

   No installation record found at /home/jap/hlds_l
   Checking/Installing 'Counter-Strike Base Content' version XX

It will now start downloading files, go and watch tv, come chat in the irc channel, it will take some time.
Dont worry about the no installation record found error, its just an message that it didnt found any installion, since its the first time


If steam is done downloading all those files, you will be back at the prompt, and you basicly now have an ready to use cs server
you can test the server if it works with:

   ./hlds_run -game cstrike +map de_dust -autoupdate

This wil run the most basic cs server with the map de_dust.
The option -autoupdate will make sure that if there is a Counter-Strike game update that it wil download it Automaticly

Because we made steam remember our password, all we need to do to update next time is run:

   ./steam -command update -game <game>

Thats all, How to config the server, thats all up to you, that im hoping, i dont need to explain.
I wish you best of luck with your new Dedicated Linux Counter-Strike Server!
I would like to thank the whole valve team for 2 things, this linux version, and the use of their Readme file while creating this guide!

If there are tips/suggestions/errors plz do mail them to me so i can change it! mail: cs16@japje.nl


Also if you have any questions or you just want to chat, join us on irc:
for server problems/questions:
#counter-server on Gamesurge
or for chatting:
#steam-hangout on Gamesurge

Mirrors for steam.tar.gz

http://users.lichtsnel.nl/~jap/steam/steam.tar.gz
http://68.90.68.35/steam.tar.gz
http://japje.nl/steam/steam.tar.gz
http://tehshith0le.net/japje/steam.tar.gz


译文:Linux
Steam系统与CS1.6 安装指南
--------------------------------------------------------------------------------
安装指南:

简介:
为了给新的基于Steam的CS1.6系统安装提供更多帮助撰写本手册
通过本手册您可以循序渐进直到完成CS1.6的安装

系统要求:
在Linux下通过SSH的权限或者您通过键盘操作自己的服务端.
Linux服务器必须接入互连网.
在您的归属目录下有写权限.
足够的磁盘空间(译者注:您归属目录的磁盘空间), 最少需要600Mb.
wget 或ftp程序.
Gzip解压缩程序.

手册:
好吧,让我们开始.
登陆服务器到达您的归属目录并创建一个新目录,并进入这个新创建的目录.
在这里我们假设在hlds_l进行我们的操作
   创建目录:                            mkdir hlds_l
   进入新创建的目录:            cd hlds_l
现在我们开始下载Steam的安装文件(这个文件称为Steam)我使用wget来获得这个文件.
您可以在本页底部提供的多个下载镜像来解决您下载过程中遇见的问题.
如果您的Linux系统没有wget,您可以使用http/ftp来得到它.(译者注:lynx同样可以获得)
   wget http://users.lichtsnel.nl/~jap/steam/steam.tar.gz
我们现在已经有了这个我们需要的文件,现在开始解压缩!
   tar -zxvf steam.tar.gz
确定她可以被执行.
   chmod +x steam
现在让它运行Steam:
   ./steam
响应提示如下:
   Checking bootstrapper version ...
   Getting version X of Steam HLDS Update Tool
   Downloading. . . . . . . . . . .
   Steam Linux Client updated, please retry the command
现在我们已经可以创建Steam帐号与获得其它Steam文件!
   命令行:    ./steam -command create -username <您的帐号> -email <您的邮件> -password <您的密码> -question <密码保护问题> -answer <密码保护答案>
   实际范例:    ./steam -command create -username Japje -email jap@valvesoftware.com -password hard2guess -question "does steam r0x?" -answer yes
在您完成创建帐号操作之后,Steam响应提示:
   Checking bootstrapper version ...
   Creating Account
   Account Created successfully
我们现在有一个升级的Steam客户端与一个用于服务端的帐号,通过这些我们可以完成其它Steam的创建.
   命令行:      ./steam -command update -game <游戏类型> -dir /您的归属目录/hlds_l -username <Steam帐号> -password <Steam帐号密码> -remember_password
正如你所看见的,我们可以通过我们创建的的Steam帐号与密码选择游戏类型,安装目录,
在行尾使用 -remember_password 将使系统记住密码.
安装目录 hlds_l 将基于您的目录层次, 我使用/home/jap/hlds_l 作为范例.
   实际范例:      ./steam -command update -game cstrike -dir /home/jap/hlds_l -username Japje -password hard2guess -remember_password
您的输入正确的话,系统响应如下:
   No installation record found at /home/jap/hlds_l
   Checking/Installing 'Counter-Strike Base Content' version XX
现在开始下载文件,您可以去做其它事情,比如看电视与聊天,因为下载需要花费一些时间(译者注:不要在Steam系统下载的服务端上同时运行其它占用带宽的服务).
如果Steam已经完成了下载安装,您可以返回到命令提示符,您可以使用基本配置来使用CS服务器
您可以使用下面的操作来测试服务器是否工作:
   ./hlds_run -game cstrike +map de_dust -autoupdate
这将运行最基础的服务器,开机地图是de_dust.
-autoupdate 项将使您的服务器自动升级

因为我们的Steam自动记录了我们的帐户密码,下一次我们运行升级时应该使用:
   ./steam -command update -game <game>
前期工作完成, 怎样配置服务器这应该是您所知道的,并且是我所希望应该知道的,毋须我多解释具体步骤.
诚挚祝愿您能幸运的拥有基于Linux的Counter-Strike 服务器!
感谢valve提供的这个linux版本与随安装包发行的Readme文件来帮助我完成本手册的撰写
如果有提示/建议/错误请用邮件告诉我,以方便我修改它,我的邮件是: cs16@japje.nl
如果您有任何问题或者您想聊天沟通,通过IRC加入我们:
服务器问题与回答:
#counter-server on Gamesurge
聊天:
#steam-hangout on Gamesurge

steam.tar.gz下载镜像
http://users.lichtsnel.nl/~jap/steam/steam.tar.gz
http://68.90.68.35/steam-bin.tar.gz
http://japje.nl/steam/steam.tar.gz
http://tehshith0le.net/japje/steam.tar.gz

Jack 发表于 2008-10-8 17:34:56

Leya你翻译的?你个臭流氓 英文水平比我强多了

Leya 发表于 2008-10-9 05:13:19

转的不是我翻译的我英语水平那么好就好了(ppb107^

Jack 发表于 2008-10-9 18:01:19

(ppb131^ (ppb131^
页: [1]
查看完整版本: Linux Steam系统与CS1.6 安装指南