个人工具
登录
查看“UbuntuHelp:SteamServer”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:SteamServer”的源代码
来自Ubuntu中文
←
UbuntuHelp:SteamServer
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/SteamServer}} {{Languages|UbuntuHelp:SteamServer}} '''FEEL FREE TO EXPAND THIS PAGE WITH RUNNING INFORMATION''' [http://steampowered.com Steam] is an online gaming platform used with games such as Half-Life 2, Counter-Strike: Source, Left 4 Dead, and Portal. This guide will attempt to instruct you on how to install a game SERVER - that is, you cannot play the game from the computer, but only run an online server - for these games on Ubuntu. This page has been adapted from [http://www.left4deadforums.com/1187-left-4-dead-linux-server-guide.html this source]. === Setting up user accounts === The server should run as its own user. Start by adding a user: <code><nowiki>sudo adduser '''l4d1'''</nowiki></code> In this case, I'm adding a user for Left 4 Dead (l4d), with an ID of '1', in case I need to add more later, I keep chronology this way. Ideas for Counter-Strike: Source names could be css1 and css2, hl2dm1 and hl2dm2 for Half-Life 2: Deathmatch, etc. It doesn't matter, as long as you remember it. Change to the user's home directory, e.g. <code><nowiki>cd /home/'''l4d1'''}}, and sudo to that user with {{{sudo -u '''l4d1''' -i</nowiki></code> (the -i is for initiate, so you don't have to type sudo in front of all your commands). Now create a directory called ''hlds'' with <code><nowiki>mkdir hlds</nowiki></code> and cd to it (<code><nowiki>cd hlds</nowiki></code>). === Getting the software === The software can be downloaded from the Steam website with the following command. <code><nowiki>wget http://storefront.steampowered.com/download/hldsupdatetool.bin</nowiki></code> This sets up the server software, allows you to download the gameservers, etc. Allow it to be executable by executing <code><nowiki>chmod +x hldsupdatetoolbin</nowiki></code> and running it (<code><nowiki>./hldsupdatetool.bin</nowiki></code> You will be asked to agree to Valve's Terms and Conditions. Simply type ''yes'' and hit enter. Next up, the game - hldsupdatetool.bin should have installed a program called '''steam''' in the directory. Type <code><nowiki>chmod +x steam</nowiki></code> to allow it to be executable. Next up, installing the game. The syntax for installing a game is: <code><nowiki>./steam -command update -game '''GAME''' -dir .</nowiki></code> Substitute '''GAME''' by the appropriate game: * For Left 4 Dead: '''l4d_full''' * For Counter-Strike: Source: '''Counter-Strike Source''' For the rest, I'm not sure. The next part will take a while, depending on your server's network connection. You will see a percentage appear on the left. Just sit back and wait. [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:SteamServer
。