个人工具

“UbuntuHelp:CounterStrike”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/CounterStrike}}
 
{{From|https://help.ubuntu.com/community/CounterStrike}}
 
{{Languages|UbuntuHelp:CounterStrike}}
 
{{Languages|UbuntuHelp:CounterStrike}}
Parent: [[Games]]
+
Parent: [[UbuntuHelp:Games|Games]]
 
A guide to install CS will be available soon!
 
A guide to install CS will be available soon!
/!\ NOT COMPLETED - PLEASE JUST SEE THE LINKS IN THE BOTTOM OF THE PAGE!
+
/!\ NOT COMPLETED? - PLEASE REFER TO THE LINKS AT THE BOTTOM OF THE PAGE FOR TROUBLESHOOTING!
First some installation from the repository - Run this command:
+
=== Wine ===
 +
Use the Package Manager to locate Wine and install or type the following into a console:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install wine
 
sudo apt-get install wine
 
</nowiki></pre>
 
</nowiki></pre>
Fetch the tahoma font, needed for steam to function:
+
=== Fonts ===
 +
The Tahoma font is required for CS:S and other fonts may also be required dependant on where the information comes from and who is asked.
 +
==== Manual Font Installation ====
 +
Fetch the Tahoma font and move it to the Wine font directory:
 
<pre><nowiki>
 
<pre><nowiki>
 
wget www.rzs.rs.ba/Fontovi/Tahoma.TTF
 
wget www.rzs.rs.ba/Fontovi/Tahoma.TTF
 +
mv Tahoma.TTF ~/.wine/drive_c/windows/fonts/
 
</nowiki></pre>
 
</nowiki></pre>
Move the font to the wine font directory:
+
==== Winetricks Font Installation ====
 +
Another way to fetch the needed fonts is to download winetricks from the [http://wiki.winehq.org/winetricks WineHQ]. Follow WineHQ's instructions for installation. Once completed, open a console window and run one of the following commands:
 
<pre><nowiki>
 
<pre><nowiki>
mv Tahoma.TTF ~/.wine/drive_c/windows/fonts/
+
winetricks allfonts
 +
winetricks corefonts
 +
winetricks tahoma
 
</nowiki></pre>
 
</nowiki></pre>
Download the Steam installer. Search for '''SteamInstall.exe''' on Google, or download it from [[http://www.steampowered.com/|steampowered.com]]
+
or simply type the following command and make a selection from the list provided.
 +
<pre><nowiki>
 +
winetricks
 +
</nowiki></pre>
 +
=== Steam ===
 +
Download the Steam installer. Search for '''SteamInstall.msi''' on Google, or download it from [http://www.steampowered.com/ steampowered.com]
 
After the download, go to the download-directory and run this command:
 
After the download, go to the download-directory and run this command:
 
<pre><nowiki>
 
<pre><nowiki>
wine SteamInstall.exe
+
wine SteamInstall.msi
 +
</nowiki></pre>
 +
If that doesn't work try:
 +
<pre><nowiki>
 +
wine msiexec /i SteamInstall.msi
 +
</nowiki></pre>
 +
=== CounterStrike: Source ===
 +
Start Steam from your desktops application menu or, if you prefer, in a console type:
 +
<pre><nowiki>
 +
env WINEPREFIX="/home/araknyd/.wine" wine "C:\Program Files\Steam\Steam.exe"
 +
</nowiki></pre>
 +
Navigate to the Games tab and begin downloading the files for CS:S. If attempting the installation of CS:S via the installation CD's, be aware that the operation may fail due to the locking of the ROM device. There exists a couple ways to eject the drive however, experience with CD installation dictates that either set of commands will result in failure. Please refer to other guides which may be of some assistance in this matter.
 +
<pre><nowiki>
 +
umount /media/cdrom
 +
eject /dev/cdrom
 +
</nowiki></pre>
 +
Change CD's
 +
<pre><nowiki>
 +
mount /dev/cdrom /media/cdrom
 +
</nowiki></pre>
 +
OR
 +
<pre><nowiki>
 +
wine eject x:
 +
</nowiki></pre>
 +
Where x represents the drive letter of the ROM device.
 +
Once download or CD installation is complete, Launch the game.
 +
=== Common Problems ===
 +
==== Audio ====
 +
If you encounter audio problems, ensure that ALSA sound system is in use, not OSS and that your sound card drivers are up to date. Also, do not use PulseAudio.
 +
==== Video ====
 +
If you encounter video problems such as stuttering try launching the game with the following command from a console:
 +
<pre><nowiki>
 +
cd ~/.wine/drive_c/Program\ Files/Steam && WINEDEBUG=-all wine steam -applaunch 240 -dxlevel 80 -console -w 1152 -h 864
 +
</nowiki></pre>
 +
Width and Height can be set to your screens resolution or removed to launch the game at the default resolution. Upon exiting the game, your system resolution may have changed to match that of the game.
 +
FPS (Frames Per Second) may also be quite low depending on your systems hardware. Many options exist within CounterStrike:Source configuration files. Any instability or damage caused by the modification of these files is the sole responsibility of the user.
 +
<pre><nowiki>
 +
.../Steam/steamapps/user_name/counter-strike source/cstrike/cfg/config.cfg
 +
</nowiki></pre>
 +
For those with AMD, adding these lines may increase your FPS:
 +
<pre><nowiki>
 +
r_sse "1"
 +
r_sse2 "1"
 +
r_3dnow "1"
 +
r_mmx "1"
 
</nowiki></pre>
 
</nowiki></pre>
 +
For those familiar with the console within CS:S, you will recognize some/many options in this file. It is recommended that, if you modify these options, modify only those that you understand and, again, do so at your own risk.
 
=== External links ===
 
=== External links ===
 
Please see this while working on the content for this site:
 
Please see this while working on the content for this site:
* [[http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Steam&back=HOWTO+INDEX+Wine+Games|Steam, Half-Life, Half-Life 2, Counter-Strike 1.6 and Source with Wine]]
+
* [http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Steam&back=HOWTO+INDEX+Wine+Games Steam, Half-Life, Half-Life 2, Counter-Strike 1.6 and Source with Wine]
 
* Steam4Linux (In Danish language)
 
* Steam4Linux (In Danish language)
* [[http://www.linuxin.dk/artikler/index.php?id=8385|Steam på Linux vha Steam4linux]] (in Danish language)
+
* [http://www.linuxin.dk/artikler/index.php?id=8385 Steam på Linux vha Steam4linux] (in Danish language)
 +
* [http://appdb.winehq.org/objectManager.php?sClass=version&iId=3731 WineHQ - Counter-Strike: Source Retail / Steam]
 +
* [http://ubuntuforums.org/showthread.php?t=533189 Ubuntu Forums - Direct3D HAL error - Counter-Strike Source]
 +
* [http://www.foxholeunderground.com/serendipity/index.php?/archives/1-The-Ultimate-Counter-Strike-Source-Ubuntu-Installation-Guide.html The Ultimate Counter Strike Source Ubuntu Installation Guide]
 
----
 
----
 
[[category:CategoryGames]]
 
[[category:CategoryGames]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 21:57的最新版本


Parent: Games A guide to install CS will be available soon! /!\ NOT COMPLETED? - PLEASE REFER TO THE LINKS AT THE BOTTOM OF THE PAGE FOR TROUBLESHOOTING!

Wine

Use the Package Manager to locate Wine and install or type the following into a console:

sudo apt-get install wine

Fonts

The Tahoma font is required for CS:S and other fonts may also be required dependant on where the information comes from and who is asked.

Manual Font Installation

Fetch the Tahoma font and move it to the Wine font directory:

wget www.rzs.rs.ba/Fontovi/Tahoma.TTF
mv Tahoma.TTF ~/.wine/drive_c/windows/fonts/

Winetricks Font Installation

Another way to fetch the needed fonts is to download winetricks from the WineHQ. Follow WineHQ's instructions for installation. Once completed, open a console window and run one of the following commands:

winetricks allfonts
winetricks corefonts
winetricks tahoma

or simply type the following command and make a selection from the list provided.

winetricks

Steam

Download the Steam installer. Search for SteamInstall.msi on Google, or download it from steampowered.com After the download, go to the download-directory and run this command:

wine SteamInstall.msi

If that doesn't work try:

wine msiexec /i SteamInstall.msi

CounterStrike: Source

Start Steam from your desktops application menu or, if you prefer, in a console type:

env WINEPREFIX="/home/araknyd/.wine" wine "C:\Program Files\Steam\Steam.exe"

Navigate to the Games tab and begin downloading the files for CS:S. If attempting the installation of CS:S via the installation CD's, be aware that the operation may fail due to the locking of the ROM device. There exists a couple ways to eject the drive however, experience with CD installation dictates that either set of commands will result in failure. Please refer to other guides which may be of some assistance in this matter.

umount /media/cdrom
eject /dev/cdrom

Change CD's

mount /dev/cdrom /media/cdrom

OR

wine eject x:

Where x represents the drive letter of the ROM device. Once download or CD installation is complete, Launch the game.

Common Problems

Audio

If you encounter audio problems, ensure that ALSA sound system is in use, not OSS and that your sound card drivers are up to date. Also, do not use PulseAudio.

Video

If you encounter video problems such as stuttering try launching the game with the following command from a console:

cd ~/.wine/drive_c/Program\ Files/Steam && WINEDEBUG=-all wine steam -applaunch 240 -dxlevel 80 -console -w 1152 -h 864

Width and Height can be set to your screens resolution or removed to launch the game at the default resolution. Upon exiting the game, your system resolution may have changed to match that of the game. FPS (Frames Per Second) may also be quite low depending on your systems hardware. Many options exist within CounterStrike:Source configuration files. Any instability or damage caused by the modification of these files is the sole responsibility of the user.

.../Steam/steamapps/user_name/counter-strike source/cstrike/cfg/config.cfg

For those with AMD, adding these lines may increase your FPS:

r_sse "1"
r_sse2 "1"
r_3dnow "1"
r_mmx "1"

For those familiar with the console within CS:S, you will recognize some/many options in this file. It is recommended that, if you modify these options, modify only those that you understand and, again, do so at your own risk.

External links

Please see this while working on the content for this site: