Cedega的安装

出自Ubuntu中文

目录

1. Acquiring Cedega(获取 cedega)

 

Cedega allows many popular Windows games, including Battlefield 2, Half Life 2, and world of Warcraft to be played under Linux.

Cedega可以使许多Windows下的游戏,包括战地2,半条命2,和魔兽世界在Linux下得以运行。

Cedega is a proprietary product, that must be purchased from <a href="http://transgaming.com" class="http">http://transgaming.com</a> for full functionality. It is a fork of the Wine project, which is available and is still free. See <a href="http://127.0.0.1:8000/Wine">Wine</a>.

cedega是一个商业软件,可以通过订购凭证在http://transgaming.com购买。它是Wine工程的一个分支,而wine至今仍可免费获得。参见<a href="http://127.0.0.1:8000/Wine">Wine</a>。

You can use a CVS version of cedega (this is free), instructions on how to install this are at

你也可以使用cedega的CVS版本(这是免费的),这个的安装说明在

<a href="http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Cedega+CVS" class="http">http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Cedega+CVS</a>

If the link to the script doesn't work, you can use this one: <a href="http://winecvs.linux-gamers.net/WineCVS.sh" class="http">http://winecvs.linux-gamers.net/WineCVS.sh</a>

如果(在该安装说明网页上)到脚本的链接失效,你可使用下面这个:<a href="http://winecvs.linux-gamers.net/WineCVS.sh" class="http">http://winecvs.linux-gamers.net/WineCVS.sh</a>

 

2. How To Install Cedega(如何安装 cedega)

 

Install the debian file:

安装debian文件

 

sudo dpkg  -i  cedega_[version].deb<br />

 

 

3. Installing a Game Using Cedega(使用 cedega 安装游戏)

 

 

3.1. Installing from CD or DVD(从 CD 或 DVD 安装)

 

Locate the correct installer executable and install the game using:

找出正确的可执行安装程序使用如下的命令安装游戏:

 

cedega  /media/cdrom/setup.exe<br />

 

Assuming your cdrom is mounte to /media/cdrom and the installer is called setup.exe

<img title="attachment:IconsPage/IconTip.png" src="IconsPage?action=AttachFile&amp;do=get&amp;target=IconTip.png" alt="" /> You may experience some graphical errors during the copying process. These are generally not harmful.

假设你的cdrom挂载在/media/cdrom并且安装程序名为setup.exe

<img title="attachment:IconsPage/IconTip.png" src="IconsPage?action=AttachFile&amp;do=get&amp;target=IconTip.png" alt="" /> 你可能在复制过程中遇到一些显示错误。这通常是无害的。

 

3.2. Installing from the HD(从硬盘安装)

 

If you have enough free space, you can copy the content of each CD in Transgaming_Drive in your home directory. In that case, you don't run in the cd changing problem.

如果你拥有足够的空闲空间,你可以复制每一张CD的内容到你主文件夹的Transgaming_Drive目录下。这样你就不会有换CD的问题。

 

cd ~/TransGaming_Drive<br />

 

Locate the correct installer executable and install the game using:

找出正确的可执行安装程序使用如下的命令安装游戏:

 

cedega setup.exe<br />

 

 

3.3. Multi-Disc Installers(多张光盘安装)

 

You should run the installer with the -monitor-cdrom-eject option, and then you may press the eject button on CD-RW or DVD drives and the disc will unmount and eject automatically.

<img title="attachment:IconsPage/IconWarning3.png" src="IconsPage?action=AttachFile&amp;do=get&amp;target=IconWarning3.png" alt="" /> Care should be taken when enabling this option on systems which have compact flash drives.

运行安装程序并加上-monitor-cdrom-eject参数,接下来你可能要按下CD-RW或DVD驱动器的弹出按键,光盘将会被卸载并自动弹出。

<img title="attachment:IconsPage/IconWarning3.png" src="IconsPage?action=AttachFile&amp;do=get&amp;target=IconWarning3.png" alt="" /> 如果系统存在便携闪存驱动器,在启用这个选项的时候你应该要小心。

 

4. Playing a Game Using Cedega(使用 cedega 玩游戏)

 

There are three methods for starting a game once it has been installed.

如果游戏已经安装好了,有三种方法来开始游戏。

 

4.1. Using the Desktop Icon(使用桌面图标)

 

Some games will create a desktop icon during the installation process. If you wish to pass special options to Cedega or the game, edit the desktop shortcut.

一些游戏在安装过程中会创建一个桌面图标。如果你想给cedega或这个游戏加上特殊的参数,请编辑这个桌面快捷方式。

 

4.2. Using the Start Menu(使用开始菜单)

 

Some games will add a link to the start menu. Simply click the start menu, go to TransGaming -> Programs and then the game name/vendor and select the game icon. If you wish to pass special options to Cedega or the game, edit the menu item shortcut.

有些游戏会在开始菜单上创建一个链接。点击开始菜单,选<a href="http://127.0.0.1:8000/TransGaming" class="nonexistent">TransGaming</a> -> Programs ->游戏名或厂商名并选择游戏的图标。如果你想给cedega或这个游戏加上特殊的参数,请编辑这个菜单快捷方式。

 

4.3. Using the Command Line(使用命令行)

 

enter the Game Directory:

进入游戏所在目录:

 

cd ~/.transgaming/c_drive/Program Files/[Game Directory]<br />

 

Start the game:

开始游戏:

 

cedega [wine options] game.exe [game options]<br />

 

Options can be passed both to Cedega and the game using the command line.

用命令行,既可以给Cedega传递参数,也可给游戏本身传递参数。

Important options for Cedega are:

cedega的一些重要的参数:

-bigexe</dt>
This option is required for executables of a "large" size. Typically this is only for demo installers who come packaged up in one large executable.

  • 这个参数是大的可执行文件所需的。这些的典型是被打包成一个大的可执行文件的试完版游戏的安装程序。

</dd>

-use-pthreads</dt>
A way to override the use of pthreads. This option should be automatically set by Cedega, however, if problems exist it may be useful to change the pthreads option. Acceptable values are yes or no.

  • 一种避免使用pthreads(PISOX线程包)的方法。这个参数应该由cedega自动设置,如果存在问题的话它可以用来更改pthreads选项。可选值是yes或no。

</dd>

-monitor-cdrom-eject</dt>
Enables the CD eject polling functionality. This option is off by default and typically only needs to be enabled for some multidisk installers.

  • 开启CD弹出功能。这个选项默认是关闭的,仅仅在一些多张光盘安装程序里需要开启。
  • <img title="attachment:IconsPage/IconWarning3.png" src="IconsPage?action=AttachFile&amp;do=get&amp;target=IconWarning3.png" alt="" /> Care should be taken when enabling this option on systems which have compact flash drives.

  • <img title="attachment:IconsPage/IconWarning3.png" src="IconsPage?action=AttachFile&amp;do=get&amp;target=IconWarning3.png" alt="" /> 如果系统存在便携闪存驱动器,在启用这个选项的时候你应该要小心。

</dd>

 

5. Play a game without CD(不使用 CD 玩游戏)

 

You can get NO-CD PC Games fixes from <a href="http://www.megagames.com/" class="http">MegaGames</a>

你可以在 <a href="http://www.megagames.com/" class="http">MegaGames</a> 得到免CD补丁

 

6. Configuring Cedega(配置 cedega)

 

To edit the Cedega configuration settings open ~/.transgaming/config in your favorite text editor. For more details read the supplied Cedega_howto txt file!

用你常用的文本编辑器打开~/.transgaming/config来编辑cedega配置设定。更多的细节请参阅提供的Cedega_howto txt文件。

 

7. Troubleshooting(故障排除)

 

 

7.1. OpenGL Support(OpenGL支持)

 

To test your graphics card for OpenGL support execute the following command:

执行下面的命令行来测试你的显卡对OpenGL的支持:

 

glxinfo | grep 'direct rendering'<br />

 

output will return "direct rendering:"

If this is 'Yes' or 'Enabled' then OpenGL is likely set up correctly. If it is listed as 'no' or 'disabled' then double check your 3D setup.

结果将输出到"direct rendering:"

如果结果是“yes”或“enable”那么OpenGL很可能已经正确的设置好了。如果列出像“no”或“disable”请重新检查你的3D设置。

 

7.2. Performance Test(性能测试)

 

If 3D acceleration is correctly enabled for your video card then the reported FPS should be well over 500 FPS, at the default window size. If the output shows less than 500 FPS then you should double check your 3D setup.

如果你的显卡已经正确开启了3D加速功能,那么在默认的窗口大小下,所报告的FPS应该在500FPS以上。如果输出结果表明低于500FPS请重新检查你的3D设置。

 

glxgears -iacknowledgethatthistoolisnotabenchmark<br />

 

 

7.3. multiple OpenGL libraries(复合 OpenGL 库)

 

  • (FIXME汗……,谁能给我一个正式的译名)

Check if you have multiple OpenGL libraries:

检查是否存在复合OpenGL库:

 

locate libGL<br />

 

This will display any OpenGL libraries you have on your system. In particular, you should be cautious of having libGL in both /usr/lib as well as in /usr/<a href="http://127.0.0.1:8000/X11R6" class="nonexistent">X11R6</a>/lib. Sometimes, the software-only Mesa OpenGL libraries are installed in /usr/<a href="http://127.0.0.1:8000/X11R6" class="nonexistent">X11R6</a>/lib and hardware accelerated drivers are installed elsewhere. We do not recommend removing the Mesa libraries from /usr/<a href="http://127.0.0.1:8000/X11R6" class="nonexistent">X11R6</a>/lib unless you are seeing slow rendering in games running under Cedega.

这将显示你的系统上所存在的OpenGL库。值得注意的是,你应该留心在 /usr/lib 和 /usr/<a href="http://127.0.0.1:8000/X11R6" class="nonexistent">X11R6</a>/lib 都要有 libGL 。有时候,software-only Mesa(请告诉我这是什么)OpenGL库安装在/usr/<a href="http://127.0.0.1:8000/X11R6" class="nonexistent">X11R6</a>/lib而硬件加速驱动安装在别的地方。我们不建议你从/usr/<a href="http://127.0.0.1:8000/X11R6" class="nonexistent">X11R6</a>/lib移除Mesa库除非你在cedega下玩游戏时速度非常缓慢。

=== CD Drives and Mountpoints permissions(CD驱动器和挂载点许可) ==

Many Windows games use copy protection systems that requires Cedega to have 'read' access to your CD-ROM device, as well as 'read' and 'execute' access to your CD-ROM mount point. Change permissions:

许多windows下的游戏使用防复制系统,这需要cedega有在你的CD-ROM驱动器上读取的权限,和在你的CD-ROM挂载点同时读取和执行的权限。更改许可:

 

sudo chmod a+r [CD-ROM Device]<br />sudo chmod a+rx [CD-ROM mount point]<br />

 

Check for symbolically linked devices and change the permissions

检查到驱动器的软链接并更改许可:

 

ls -la [CD-ROM Device]<br />

 

 

7.4. User Access on CD-ROM mountpoint(在 CD-ROM 挂载点上的用户权限)

 

Under some circumstances, you may need to edit your /etc/fstab file to ensure that all users have access to the CD-ROM mount point.

在某些情况下,你需要编辑/etc/fstab文件以保证所有用户拥有CD-ROM挂载点的使用权限。

 

7.5. Graphic Problems(显示故障)

 

Games often attempt to change your screen resolution to fit their needs. Make sure that the 'Screen' section of your xorg.conf or XF86Config-4 file has a number of resolutions. The most common resolutions are: 1600X1200, 1280X1024, 1024X768, 800X600, 640X480. If the game is not running at full screen check the game settings to see what resolution it is attempting to use and make sure that resolution is listed in the xorg.conf or XF86Config-4 file.

游 戏常常会试图改变你的屏幕分辨率来适合它们的需要。请确保你的xorg.conf或XF86Config-4文件的“Screen”部分存在若干分辨率。 最常见的分辨率是1600X1200, 1280X1024, 1024X768, 800X600, 640X480。如果游戏不是在全屏下运行请检查游戏设置,看看游戏正在尝试使用哪一种分辨率并确保这个分辨率已经在xorg.conf或 XF86Config-4文件中列出。

<img title="attachment:IconsPage/IconTip.png" src="IconsPage?action=AttachFile&amp;do=get&amp;target=IconTip.png" alt="" /> You may experience improved performance with some games when running the X server at 16 bit color depth.

<img title="attachment:IconsPage/IconTip.png" src="IconsPage?action=AttachFile&amp;do=get&amp;target=IconTip.png" alt="" /> 当你在16位色深下运行X server时,你可能会在某些游戏体验到性能的提升。

 

7.6. Sound Problems(声音故障)

 

If you are having sound problems make sure to disable any sound servers or other applications that may be using sound, such as 'xmms'.

如果你遇到声音故障,请确保关掉了声音服务(音效服务?)或其他可能正在使用声音的应用程序,比如“xmms”。

 

7.7. Free space limitations(空闲空间限制)

 

Some systems may be set up with restrictive space quotas on the /home directory. You may experience problems installing games if the available space is reported incorrectly, or if there is not enough space available on your system:

 

disable quotas<br />

 

or

 

symbolically link to a device with more free space available.<br />

 

一些系统可能在/home目录设置了空间配额。如果可用的空间没有被正确的侦测到或你系统上的可用空间不足,你可能在安装游戏的过程中遇到问题:

 

取消配额<br />

 

 

做个软链接到一个有更多可用空间的驱动器上。<br />

 

FIXME 翻译以下部分

 

7.8. Low FPS(FPS 过低)

 

If you get only 15-30 fps

如果你只得到15-30fps(每秒15-30帧)

 

renice 17 -p `pgrep wineserver`<br />

 

 

7.9. No 3D acceleration in 64bit version Ubuntu(在Ubuntu的64位版本上没有3D加速)

 

In glxgears you get good results, but cedega 3D test failed and games are slowly. Set enviroment variable :

用glxgears测试后,你得到一个满意的结果,但是没通过cedega的3D测试而且游戏运行得很慢。如下设置环境变量:

 

export LIBGL_DRIVERS_PATH=/usr/X11R6/lib32/modules/dri/:/usr/lib32/:/usr/X11R6/lib/modules/dri/:<br />/usr/lib/<br />

 

 

8. Resources(资源)

 

<a href="http://www.pcinpact.com/articles/d/51/1.htm" class="http">Install and configure Cedega (CVS and normal version) and install World of Warcraft (in french)</a>


<a href="http://127.0.0.1:8000/CategoryDocumentation">CategoryDocumentation</a> <a href="http://127.0.0.1:8000/CategoryGames">CategoryGames</a>

Cedega (2007-03-10 07:04:36由localhost编辑)