https://wiki.archlinux.org/api.php?action=feedcontributions&user=DarkAudit&feedformat=atomArchWiki - User contributions [en]2024-03-28T12:03:51ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=World_of_Warcraft&diff=49036World of Warcraft2008-09-07T22:52:06Z<p>DarkAudit: /* Kernel Timing Bug */ addition to sysctl.conf</p>
<hr />
<div>[[Category:Games and entertainment (English)]]<br />
[[Category:Wine (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|World of Warcraft}}<br />
{{i18n_links_end}}<br />
<br />
World of Warcraft (WoW) is a Massively Multiplayer Online Role-Playing Game (MMORPG) by Blizzard Entertainment taking place in the fictional world of Azeroth, the world that previous Blizzard titles in the Realtime Stategy (RTS) Warcraft series. For more information about the game itself, visit [http://www.worldofwarcraft.com/ the Official World of Warcraft website].<br />
<br />
This article will describe how install and run in on Arch Linux using [http://winehq.org/ Wine].<br />
<br />
Some of this information was provided by http://www.wowwiki.com/Linux/Wine which is the best general source of information on WoW on Wine.<br />
<br />
==Introduction==<br />
As Blizzard so kindly created World of Warcraft with OpenGL support, we don't need [http://www.transgaming.com/products_linux.php Transgaming's Cedega], which is a non-free version of Wine with better DirectX support. Wine has as good, or better, OpenGL support than Cedega, and doesn't cost you a penny. <br />
<br />
Running WoW is slightly more difficult than some other games with Wine, but still relatively easy. It's quite possible that you will need to patch Wine to work with WoW, however, even this process is rather simple with Arch. The following guide will explain it all, step by step.<br />
<br />
If you do choose to purchase Cedega, which runs some games that Wine does not, for example, Guild Wars, the process is almost identical. I use Cedega myself because Wine currently doesn't cope with my Wireless USB keyboard well.<br />
<br />
==Installing Wine==<br />
<br />
Wine now no longer requires it's own special "World of Warcraft" version. The one in the repositories works fine (currently 0.9.38.1). Install both wine and unzip, which you will need later.<br />
<br />
pacman -S unzip wine<br />
<br />
==Installing Cedega==<br />
<br />
Cedega 6.01 is available in the AUR. To get the cedega program you will need to subscribe to Transgaming ; this currently costs about £3 per month. <br />
<br />
You also need dbus-python, which isn't a dependency of Cedega.<br />
<br />
pacman -S dbus-python<br />
<br />
==Installing the Game==<br />
There are four options for installing World of Warcraft. <br />
<br />
===Copying the CDs to a folder===<br />
<br />
My preferred method is to copy the 5 install CDs to a folder. This seems to solve problems with deciding whether a CD is mounted and needs changing or not ; I think this is a fundamental problem because Windows doesn't have the basic concept of mounting and unmounting drives.<br />
<br />
mkdir /mnt/temp<br />
cd /mnt/temp<br />
<br />
mount /mnt/cdrom<br />
cp -R /mnt/cdrom/* /mnt/temp<br />
umount /mnt/cdrom<br />
(repeat above for each of the 5 CDs)<br />
<br />
Then run the World of Warcraft Installer with :<br />
<br />
wine Installer.exe<br />
<br />
===Copying an Existing Installation===<br />
<br />
The second is to simply copy an exisiting WoW installation from a Windows drive to Linux. <br />
<br />
'''NOTE:''' If you do not alreay have Wine installed, or have not run World of Warcraft with Wine before, you should skip down to [[#Installing Wine]], then come back to this section. ''Please DO NOT SKIP this section unless you are absolutely sure you know what you are doing.''<br />
<br />
Copy the C:\Program Files\World of Warcraft directory from Windows to ~/.wine/drive_c/Program Files/World of Warcraft.<br />
<br />
Example (assuming your windows partition is mounted at <tt>/mnt/windows</tt> and you are in your home directory) (Quotes are needed because of the spaces in the file names):<br />
<br />
cp -R "/mnt/windows/Program Files/World of Warcraft" ".wine/drive_c/Program Files/World of Warcraft"<br />
<br />
This will ensure that Wine knows about your WoW and will be able to configure it properly, and also ensures that WoW won't notice it has even been moved at all.<br />
<br />
Now that you have WoW installed, skip down to [[#Post-Installation]].<br />
<br />
===New Installation from CD===<br />
'''NOTE:''' We will assume that your Wine CD-ROM drive is "D:\" for this guide. Please use the correct letter as set up in the [[#Installing Wine]] section.<br />
<br />
Insert the first CD, mount it, and start the installation with:<br />
<br />
wine "D:\Installer.exe"<br />
<br />
When it asks for the next cd, simply unmount your CD drive and mount the next CD. Make absolutely sure that you mount the CD before telling the installer to load the CD, or it may make the installation fail. If you have any issues installing using the CDs, please read the next section.<br />
<br />
The WoW installation uses all 5 CDs, so it will take a while. Go outside and get some fresh air while the CD loads, because soon you won't have any "free time". :P<br />
<br />
===New Installation from DVD===<br />
'''NOTE:''' Note that on some WoW DVD's the installer executable is hidden and you need to mount the disc with the 'unhide' option. To do this type in a terminal:<br />
mount -t iso9660 -o ro,unhide /dev/cdrom /media/cdrom/<br />
<br />
Insert first the DVD. If it will be mounted automatically - just unmount.<br />
<br />
# umount /media/dvd<br />
<br />
Now mount manually<br />
<br />
# mount -t iso9660 /dev/dvd0 /mnt/dvd<br />
<br />
Now you will find the Install.exe on the DVD<br />
<br />
~ wine /mnt/dvd/Installer.exe<br />
<br />
==Installing Patches==<br />
Now we will need to update WoW. As of today (1st July 2007), the latest version of WoW is 2.1.2.6803 . This will change over time, of course. The best place I have found to access the latest patches is http://www.wowwiki.com/Patch_mirrors<br />
<br />
I think the simplest way of updating World of Warcraft is to download the patches (links are at the Patch Wiki) and copy them into the working directory for World of Warcraft. I have had problems with the Blizzard Downloaders either not working at all, or working very slowly. If you download them, you can reuse them if you reinstall or have an accident.<br />
<br />
The current patches which are needed for 2.1.2.6803 are listed below <br />
<br />
WoW-1.12.0-enGB-patch.exe<br />
wow-1.12.x-to-2.0.1-engb-patch-3.zip<br />
WoW-2.1.0-enGB-patch.exe<br />
WoW-2.1.0.6692-to-2.1.0.6729-enGB-patch.exe<br />
WoW-2.1.0.6729-to-2.1.1.6739-enGB-patch.exe<br />
WoW-2.1.1.6739-to-2.1.2.6803-enGB-patch.exe<br />
<br />
I am British (pauses to sing "God Save the Queen"), so I use the enGB patches. There exist other patches for other versions of the game in the USA, France, Germany and Spain.<br />
<br />
When you have downloaded the files into their own folder for neatness, copy these patches into the World of Warcraft working directory (paulr is my user name, you will need to use yours)<br />
<br />
cp * /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
<br />
The 1.12.x patch needs to be unzipped into the working directory<br />
<br />
cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
unzip wow-1.12.x-to-2.0.1-engb-patch-3.zip<br />
<br />
The simplest way to install the patches seems to be to run World of Warcraft. It detects that you have downloaded the patches and doesn't do it again.<br />
<br />
cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
wine WoW.exe<br />
<br />
You have to keep going round 5 times, it does get a bit dull, but it's fairly reliable. Accept the offer to Install the Gecko renderer when it comes up on your first patch install.<br />
<br />
The original Wiki says you can install patches with Wine as follows:<br />
<br />
wine wow-VERSION-LANG-patch.exe<br />
<br />
I haven't tried this, so I can't say if this works, and I don't know how to install the zip file this way :) <br />
<br />
If the Launcher (it displays a little box with News and Play) seems to stop when downloading, close its window and re-run WoW.exe<br />
<br />
==Installing in Cedega==<br />
<br />
Installing in Cedega is done by running the program from the menus, selecting Install, typing "World of Warcraft" in the Game name, selecting the WoW profile, navigating to the Installer.exe file using browse, and then clicking continue.<br />
<br />
===Fixes for Cedega===<br />
<br />
On my Gnome system, Cedega will not run using Alsa, it is necessary to switch to OSS. <br />
<br />
The current version of Cedega requires you to edit the following file<br />
<br />
gedit .cedega/configuration_profiles/cedega_6.0.1 <br />
<br />
and add the following line to the [d3dgl] section<br />
<br />
"VertexShadersLevel" = "1.1" <br />
<br />
==Configuration==<br />
<br />
The World of Warcraft configuration file is kept in the WTF directory (do Blizzard have a sense of humour ?)<br />
<br />
Edit it with<br />
<br />
gedit WTF/Config.wtf<br />
<br />
===Using OpenGL===<br />
<br />
Add the following line which makes WoW run in OpenGL (hurrah !) instead of grotty old DirectX Mode (boo). <br />
<br />
SET gxApi "opengl"<br />
<br />
This is a REQUIREMENT for Wine, but is not required for Cedega.<br />
<br />
===Resolution and Colour depth===<br />
<br />
You can change the following two lines to set the default WoW resolution. I have a 19" Monitor so I can use the following.<br />
<br />
SET gxColorBits "24"<br />
SET gxResolution "1440x900"<br />
<br />
===Windowing===<br />
<br />
You can run in a Window by setting this, but I haven't tried it.<br />
<br />
SET gxWindow "1" <br />
<br />
===Sound Issues===<br />
<br />
====Configuring the Buffer====<br />
If the sound makes a horrendous racket with squeaks and white noise try :<br />
<br />
SET SoundOutputSystem "1" <br />
SET SoundBufferSize "100"<br />
<br />
====Stuttering or Static Sound====<br />
Run <tt>winecfg</tt>, and in the "Audio" tab, selected "OSS" as the sound driver, using "Standard" hardware acceleration and driver emulation enabled.<br />
<br />
You can also set WoW to run at a higher "nice level", which will usually improve sound performance (<tt>renice</tt> must be run as root):<br />
<br />
sudo renice -15 `pidof WoW.exe`<br />
<br />
==A customised version of Wine==<br />
If you wish to compile wine from source yourself, you will need to edit the Wine PKGBUILD.<br />
(Note that patching Wine with fixes for WoW is no longer necessary)<br />
<br />
First, update your ABS with this command:<br />
<br />
pacman -S cvsup<br />
abs<br />
<br />
Next, copy the Wine PKGBUILD to <tt>/var/abs/local/wine</tt>:<br />
<br />
cp -R /var/abs/extra/x11/wine /var/abs/local<br />
<br />
and edit the PKGBUILD so that it looks something like this:<br />
<br />
<pre># $Id: PKGBUILD,v 1.12 2006/04/04 17:10:07 tpowa Exp $<br />
# Maintainer: Dale Blount <dale@archlinux.org><br />
# Contributor: Matt Smith (Majik) <darkknight@helpdesk.zaz.net><br />
pkgname=wine<br />
pkgver=0.9.12<br />
pkgrel=1<br />
pkgdesc="Emulator of the Windows 3.x and Win32 APIs"<br />
url="http://www.winehq.com"<br />
# don't add arts, it's only a dep if configured<br />
depends=('x-server' 'libjpeg' 'libungif' 'alsa-lib' 'glut' 'openldap' 'libxslt' 'lcms' 'libxxf86dga' 'freeglut')<br />
makedepends=('alsa-lib' 'arts' 'sane')<br />
install=<br />
source=(http://ibiblio.org/pub/linux/system/emulators/wine/wine-$pkgver.tar.bz2 \<br />
wine-$pkgver-wow_fixes.patch)<br />
<br />
build() {<br />
cd $startdir/src/$pkgname-$pkgver<br />
msg "Patching Wine..."<br />
patch -Np0 ../$pkgname-0.9.11-wow-fixes.patch<br />
<br />
msg "Done patching, starting build..."<br />
./configure --prefix=/usr --sysconfdir=/etc --enable-opengl --with-x<br />
make depend || return 1<br />
make || return 1<br />
make prefix=$startdir/pkg/usr install || return 1<br />
# expand conflicts with textutils ( doesn't exist anymore ? )<br />
# mv $startdir/pkg/usr/bin/expand $startdir/pkg/usr/bin/wine-expand || return 1<br />
mkdir -p $startdir/pkg/etc/wine<br />
# mkdir -p $startdir/pkg/etc/profile.d<br />
# cp -r $startdir/src/$pkgname-$pkgver/documentation/samples $startdir/pkg/etc/wine<br />
}<br />
#md5sums=('b21d359b75f07255bb5cd34384bdc3cf' 'a65f6f2d422e5ee50af8492ebd38470f')<br />
</pre><br />
<br />
'''NOTE:''' You can get the <tt>wine-$pkgver-wow_fixes.patch</tt> from here: http://appdb.winehq.org/appview.php?versionId=4031<br />
<br />
Now execute the following commands to build and install your custom wine:<br />
<br />
cd /var/abs/local/wine<br />
makepkg -w `pwd`<br />
pacman -U wine-*.pkg.tar.gz<br />
<br />
You now have a working version of Wine!<br />
<br />
==Performance Tweaks==<br />
<br />
1. Here is a performance tweak that can boost your FPS significantly (everything without quotes):<br />
<br />
- Open wine's version of the registry editor by running "regedit"<br />
- Navigate to HKEY_CURRENT_USER\Software\Wine\ <br />
- Select the "Wine" folder, right-click onto the folder symbol and select New-> Key and rename it to "OpenGL"<br />
- Select the OpenGL-Key, then right-click into the right-hand pane, chose New-> String Value and hit enter<br />
- Rename "New Value #1" to "DisabledExtensions"<br />
- Double-Click on the renamed Key and enter "GL_ARB_vertex_buffer_object" into the "value" field<br />
<br />
That was it, close the registry editor again, your changes will be saved automatically.<br />
<br />
2. If you are finding it annoying that turning your character by let's say 90 degree takes n seconds normally, but n+m seconds in pupolated areas (in other words: that the polygon count of your surroundings affects the camera turning speed), apply something to "GL_ARB_vertex_buffer_object", like let's say a "2", so it looks like this: "GL_ARB_vertex_buffer_object2". You will still have the performance boost of the above tweak, but with a smoother feeling.<br />
<br />
==Kernel Timing Bug==<br />
<br />
If you are having problems with choppy video every 15 seconds or so, it is related to the kernel scheduler. There is a custom version of the kernel in AUR [http://aur.archlinux.org/packages.php?ID=17195 here], or you can roll your own with ABS.<br />
<br />
cp -r /var/abs/core/kernel26 ~/abs (or whatever your preferred abs directory is)<br />
cd abs/kernel26<br />
gedit config<br />
<br />
At this point, look for CONFIG_SCHED_DEBUG. Change<br />
<br />
# CONFIG_SCHED_DEBUG is not set<br />
to<br />
CONFIG_SCHED_DEBUG=y<br />
and save. Repeat for config.x86_64.<br />
<br />
After the config files are changed, run<br />
md5sum config<br />
md5sum config.x86_64<br />
<br />
Note the sums provided. They will be needed to update PKGBUILD. Look at<br />
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2<br />
ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2<br />
# the main kernel config files<br />
config config.x86_64<br />
# standard config files for mkinitcpio ramdisk<br />
kernel26.preset)<br />
and<br />
md5sums=('5169d01c405bc3f866c59338e217968c'<br />
'003e89dd71b32ae9b93cd1601da3b1b0'<br />
'499d4841fbff665d0d0c768513018ba8'<br />
'5b5c7a9266af17d6ca3ebff420cd5381'<br />
'25584700a0a679542929c4bed31433b6')<br />
Config and config.x86_64 are the 3rd and 4th entries in md5sums. Replace with your newly generated md5sums and save. Run makepkg as per normal.<br />
<br />
After compiling and installing the new kernel, it may be necessary to compile new custom video drivers. For nVidia, see [[NVIDIA#How to install NVIDIA Driver with custom kernel|here]].<br />
<br />
Once the new kernel has been compiled and installed, add the following to /etc/sysctl.conf:<br />
kernel.sched_features=21<br />
kernel.sched_batch_wakeup_granularity_ns=25000000<br />
kernel.sched_min_granularity_ns=4000000<br />
and reboot.<br />
<br />
==Links==<br />
<br />
[http://appdb.winehq.org/appview.php?iVersionId=6482 World of Warcraft in the wine APPDB]<br />
<br />
[http://www.wowwiki.com/Main_Page WoWWiki]<br />
<br />
[http://www.wowwiki.com/Patch_mirrors Patch Mirrors]</div>DarkAudithttps://wiki.archlinux.org/index.php?title=World_of_Warcraft&diff=48598World of Warcraft2008-09-01T14:31:36Z<p>DarkAudit: /* Kernel Timing Bug */ pointer to nvidia module rebuild</p>
<hr />
<div>[[Category:Games and entertainment (English)]]<br />
[[Category:Wine (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|World of Warcraft}}<br />
{{i18n_links_end}}<br />
<br />
World of Warcraft (WoW) is a Massively Multiplayer Online Role-Playing Game (MMORPG) by Blizzard Entertainment taking place in the fictional world of Azeroth, the world that previous Blizzard titles in the Realtime Stategy (RTS) Warcraft series. For more information about the game itself, visit [http://www.worldofwarcraft.com/ the Official World of Warcraft website].<br />
<br />
This article will describe how install and run in on Arch Linux using [http://winehq.org/ Wine].<br />
<br />
Some of this information was provided by http://www.wowwiki.com/Linux/Wine which is the best general source of information on WoW on Wine.<br />
<br />
==Introduction==<br />
As Blizzard so kindly created World of Warcraft with OpenGL support, we don't need [http://www.transgaming.com/products_linux.php Transgaming's Cedega], which is a non-free version of Wine with better DirectX support. Wine has as good, or better, OpenGL support than Cedega, and doesn't cost you a penny. <br />
<br />
Running WoW is slightly more difficult than some other games with Wine, but still relatively easy. It's quite possible that you will need to patch Wine to work with WoW, however, even this process is rather simple with Arch. The following guide will explain it all, step by step.<br />
<br />
If you do choose to purchase Cedega, which runs some games that Wine does not, for example, Guild Wars, the process is almost identical. I use Cedega myself because Wine currently doesn't cope with my Wireless USB keyboard well.<br />
<br />
==Installing Wine==<br />
<br />
Wine now no longer requires it's own special "World of Warcraft" version. The one in the repositories works fine (currently 0.9.38.1). Install both wine and unzip, which you will need later.<br />
<br />
pacman -S unzip wine<br />
<br />
==Installing Cedega==<br />
<br />
Cedega 6.01 is available in the AUR. To get the cedega program you will need to subscribe to Transgaming ; this currently costs about £3 per month. <br />
<br />
You also need dbus-python, which isn't a dependency of Cedega.<br />
<br />
pacman -S dbus-python<br />
<br />
==Installing the Game==<br />
There are four options for installing World of Warcraft. <br />
<br />
===Copying the CDs to a folder===<br />
<br />
My preferred method is to copy the 5 install CDs to a folder. This seems to solve problems with deciding whether a CD is mounted and needs changing or not ; I think this is a fundamental problem because Windows doesn't have the basic concept of mounting and unmounting drives.<br />
<br />
mkdir /mnt/temp<br />
cd /mnt/temp<br />
<br />
mount /mnt/cdrom<br />
cp -R /mnt/cdrom/* /mnt/temp<br />
umount /mnt/cdrom<br />
(repeat above for each of the 5 CDs)<br />
<br />
Then run the World of Warcraft Installer with :<br />
<br />
wine Installer.exe<br />
<br />
===Copying an Existing Installation===<br />
<br />
The second is to simply copy an exisiting WoW installation from a Windows drive to Linux. <br />
<br />
'''NOTE:''' If you do not alreay have Wine installed, or have not run World of Warcraft with Wine before, you should skip down to [[#Installing Wine]], then come back to this section. ''Please DO NOT SKIP this section unless you are absolutely sure you know what you are doing.''<br />
<br />
Copy the C:\Program Files\World of Warcraft directory from Windows to ~/.wine/drive_c/Program Files/World of Warcraft.<br />
<br />
Example (assuming your windows partition is mounted at <tt>/mnt/windows</tt> and you are in your home directory) (Quotes are needed because of the spaces in the file names):<br />
<br />
cp -R "/mnt/windows/Program Files/World of Warcraft" ".wine/drive_c/Program Files/World of Warcraft"<br />
<br />
This will ensure that Wine knows about your WoW and will be able to configure it properly, and also ensures that WoW won't notice it has even been moved at all.<br />
<br />
Now that you have WoW installed, skip down to [[#Post-Installation]].<br />
<br />
===New Installation from CD===<br />
'''NOTE:''' We will assume that your Wine CD-ROM drive is "D:\" for this guide. Please use the correct letter as set up in the [[#Installing Wine]] section.<br />
<br />
Insert the first CD, mount it, and start the installation with:<br />
<br />
wine "D:\Installer.exe"<br />
<br />
When it asks for the next cd, simply unmount your CD drive and mount the next CD. Make absolutely sure that you mount the CD before telling the installer to load the CD, or it may make the installation fail. If you have any issues installing using the CDs, please read the next section.<br />
<br />
The WoW installation uses all 5 CDs, so it will take a while. Go outside and get some fresh air while the CD loads, because soon you won't have any "free time". :P<br />
<br />
===New Installation from DVD===<br />
'''NOTE:''' Note that on some WoW DVD's the installer executable is hidden and you need to mount the disc with the 'unhide' option. To do this type in a terminal:<br />
mount -t iso9660 -o ro,unhide /dev/cdrom /media/cdrom/<br />
<br />
Insert first the DVD. If it will be mounted automatically - just unmount.<br />
<br />
# umount /media/dvd<br />
<br />
Now mount manually<br />
<br />
# mount -t iso9660 /dev/dvd0 /mnt/dvd<br />
<br />
Now you will find the Install.exe on the DVD<br />
<br />
~ wine /mnt/dvd/Installer.exe<br />
<br />
==Installing Patches==<br />
Now we will need to update WoW. As of today (1st July 2007), the latest version of WoW is 2.1.2.6803 . This will change over time, of course. The best place I have found to access the latest patches is http://www.wowwiki.com/Patch_mirrors<br />
<br />
I think the simplest way of updating World of Warcraft is to download the patches (links are at the Patch Wiki) and copy them into the working directory for World of Warcraft. I have had problems with the Blizzard Downloaders either not working at all, or working very slowly. If you download them, you can reuse them if you reinstall or have an accident.<br />
<br />
The current patches which are needed for 2.1.2.6803 are listed below <br />
<br />
WoW-1.12.0-enGB-patch.exe<br />
wow-1.12.x-to-2.0.1-engb-patch-3.zip<br />
WoW-2.1.0-enGB-patch.exe<br />
WoW-2.1.0.6692-to-2.1.0.6729-enGB-patch.exe<br />
WoW-2.1.0.6729-to-2.1.1.6739-enGB-patch.exe<br />
WoW-2.1.1.6739-to-2.1.2.6803-enGB-patch.exe<br />
<br />
I am British (pauses to sing "God Save the Queen"), so I use the enGB patches. There exist other patches for other versions of the game in the USA, France, Germany and Spain.<br />
<br />
When you have downloaded the files into their own folder for neatness, copy these patches into the World of Warcraft working directory (paulr is my user name, you will need to use yours)<br />
<br />
cp * /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
<br />
The 1.12.x patch needs to be unzipped into the working directory<br />
<br />
cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
unzip wow-1.12.x-to-2.0.1-engb-patch-3.zip<br />
<br />
The simplest way to install the patches seems to be to run World of Warcraft. It detects that you have downloaded the patches and doesn't do it again.<br />
<br />
cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
wine WoW.exe<br />
<br />
You have to keep going round 5 times, it does get a bit dull, but it's fairly reliable. Accept the offer to Install the Gecko renderer when it comes up on your first patch install.<br />
<br />
The original Wiki says you can install patches with Wine as follows:<br />
<br />
wine wow-VERSION-LANG-patch.exe<br />
<br />
I haven't tried this, so I can't say if this works, and I don't know how to install the zip file this way :) <br />
<br />
If the Launcher (it displays a little box with News and Play) seems to stop when downloading, close its window and re-run WoW.exe<br />
<br />
==Installing in Cedega==<br />
<br />
Installing in Cedega is done by running the program from the menus, selecting Install, typing "World of Warcraft" in the Game name, selecting the WoW profile, navigating to the Installer.exe file using browse, and then clicking continue.<br />
<br />
===Fixes for Cedega===<br />
<br />
On my Gnome system, Cedega will not run using Alsa, it is necessary to switch to OSS. <br />
<br />
The current version of Cedega requires you to edit the following file<br />
<br />
gedit .cedega/configuration_profiles/cedega_6.0.1 <br />
<br />
and add the following line to the [d3dgl] section<br />
<br />
"VertexShadersLevel" = "1.1" <br />
<br />
==Configuration==<br />
<br />
The World of Warcraft configuration file is kept in the WTF directory (do Blizzard have a sense of humour ?)<br />
<br />
Edit it with<br />
<br />
gedit WTF/Config.wtf<br />
<br />
===Using OpenGL===<br />
<br />
Add the following line which makes WoW run in OpenGL (hurrah !) instead of grotty old DirectX Mode (boo). <br />
<br />
SET gxApi "opengl"<br />
<br />
This is a REQUIREMENT for Wine, but is not required for Cedega.<br />
<br />
===Resolution and Colour depth===<br />
<br />
You can change the following two lines to set the default WoW resolution. I have a 19" Monitor so I can use the following.<br />
<br />
SET gxColorBits "24"<br />
SET gxResolution "1440x900"<br />
<br />
===Windowing===<br />
<br />
You can run in a Window by setting this, but I haven't tried it.<br />
<br />
SET gxWindow "1" <br />
<br />
===Sound Issues===<br />
<br />
====Configuring the Buffer====<br />
If the sound makes a horrendous racket with squeaks and white noise try :<br />
<br />
SET SoundOutputSystem "1" <br />
SET SoundBufferSize "100"<br />
<br />
====Stuttering or Static Sound====<br />
Run <tt>winecfg</tt>, and in the "Audio" tab, selected "OSS" as the sound driver, using "Standard" hardware acceleration and driver emulation enabled.<br />
<br />
You can also set WoW to run at a higher "nice level", which will usually improve sound performance (<tt>renice</tt> must be run as root):<br />
<br />
sudo renice -15 `pidof WoW.exe`<br />
<br />
==A customised version of Wine==<br />
If you wish to compile wine from source yourself, you will need to edit the Wine PKGBUILD.<br />
(Note that patching Wine with fixes for WoW is no longer necessary)<br />
<br />
First, update your ABS with this command:<br />
<br />
pacman -S cvsup<br />
abs<br />
<br />
Next, copy the Wine PKGBUILD to <tt>/var/abs/local/wine</tt>:<br />
<br />
cp -R /var/abs/extra/x11/wine /var/abs/local<br />
<br />
and edit the PKGBUILD so that it looks something like this:<br />
<br />
<pre># $Id: PKGBUILD,v 1.12 2006/04/04 17:10:07 tpowa Exp $<br />
# Maintainer: Dale Blount <dale@archlinux.org><br />
# Contributor: Matt Smith (Majik) <darkknight@helpdesk.zaz.net><br />
pkgname=wine<br />
pkgver=0.9.12<br />
pkgrel=1<br />
pkgdesc="Emulator of the Windows 3.x and Win32 APIs"<br />
url="http://www.winehq.com"<br />
# don't add arts, it's only a dep if configured<br />
depends=('x-server' 'libjpeg' 'libungif' 'alsa-lib' 'glut' 'openldap' 'libxslt' 'lcms' 'libxxf86dga' 'freeglut')<br />
makedepends=('alsa-lib' 'arts' 'sane')<br />
install=<br />
source=(http://ibiblio.org/pub/linux/system/emulators/wine/wine-$pkgver.tar.bz2 \<br />
wine-$pkgver-wow_fixes.patch)<br />
<br />
build() {<br />
cd $startdir/src/$pkgname-$pkgver<br />
msg "Patching Wine..."<br />
patch -Np0 ../$pkgname-0.9.11-wow-fixes.patch<br />
<br />
msg "Done patching, starting build..."<br />
./configure --prefix=/usr --sysconfdir=/etc --enable-opengl --with-x<br />
make depend || return 1<br />
make || return 1<br />
make prefix=$startdir/pkg/usr install || return 1<br />
# expand conflicts with textutils ( doesn't exist anymore ? )<br />
# mv $startdir/pkg/usr/bin/expand $startdir/pkg/usr/bin/wine-expand || return 1<br />
mkdir -p $startdir/pkg/etc/wine<br />
# mkdir -p $startdir/pkg/etc/profile.d<br />
# cp -r $startdir/src/$pkgname-$pkgver/documentation/samples $startdir/pkg/etc/wine<br />
}<br />
#md5sums=('b21d359b75f07255bb5cd34384bdc3cf' 'a65f6f2d422e5ee50af8492ebd38470f')<br />
</pre><br />
<br />
'''NOTE:''' You can get the <tt>wine-$pkgver-wow_fixes.patch</tt> from here: http://appdb.winehq.org/appview.php?versionId=4031<br />
<br />
Now execute the following commands to build and install your custom wine:<br />
<br />
cd /var/abs/local/wine<br />
makepkg -w `pwd`<br />
pacman -U wine-*.pkg.tar.gz<br />
<br />
You now have a working version of Wine!<br />
<br />
==Performance Tweaks==<br />
<br />
1. Here is a performance tweak that can boost your FPS significantly (everything without quotes):<br />
<br />
- Open wine's version of the registry editor by running "regedit"<br />
- Navigate to HKEY_CURRENT_USER\Software\Wine\ <br />
- Select the "Wine" folder, right-click onto the folder symbol and select New-> Key and rename it to "OpenGL"<br />
- Select the OpenGL-Key, then right-click into the right-hand pane, chose New-> String Value and hit enter<br />
- Rename "New Value #1" to "DisabledExtensions"<br />
- Double-Click on the renamed Key and enter "GL_ARB_vertex_buffer_object" into the "value" field<br />
<br />
That was it, close the registry editor again, your changes will be saved automatically.<br />
<br />
2. If you are finding it annoying that turning your character by let's say 90 degree takes n seconds normally, but n+m seconds in pupolated areas (in other words: that the polygon count of your surroundings affects the camera turning speed), apply something to "GL_ARB_vertex_buffer_object", like let's say a "2", so it looks like this: "GL_ARB_vertex_buffer_object2". You will still have the performance boost of the above tweak, but with a smoother feeling.<br />
<br />
==Kernel Timing Bug==<br />
<br />
If you are having problems with choppy video every 15 seconds or so, it is related to the kernel scheduler. There is a custom version of the kernel in AUR [http://aur.archlinux.org/packages.php?ID=17195 here], or you can roll your own with ABS.<br />
<br />
cp -r /var/abs/core/kernel26 ~/abs (or whatever your preferred abs directory is)<br />
cd abs/kernel26<br />
gedit config<br />
<br />
At this point, look for CONFIG_SCHED_DEBUG. Change<br />
<br />
# CONFIG_SCHED_DEBUG is not set<br />
to<br />
CONFIG_SCHED_DEBUG=y<br />
and save. Repeat for config.x86_64.<br />
<br />
After the config files are changed, run<br />
md5sum config<br />
md5sum config.x86_64<br />
<br />
Note the sums provided. They will be needed to update PKGBUILD. Look at<br />
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2<br />
ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2<br />
# the main kernel config files<br />
config config.x86_64<br />
# standard config files for mkinitcpio ramdisk<br />
kernel26.preset)<br />
and<br />
md5sums=('5169d01c405bc3f866c59338e217968c'<br />
'003e89dd71b32ae9b93cd1601da3b1b0'<br />
'499d4841fbff665d0d0c768513018ba8'<br />
'5b5c7a9266af17d6ca3ebff420cd5381'<br />
'25584700a0a679542929c4bed31433b6')<br />
Config and config.x86_64 are the 3rd and 4th entries in md5sums. Replace with your newly generated md5sums and save. Run makepkg as per normal.<br />
<br />
After compiling and installing the new kernel, it may be necessary to compile new custom video drivers. For nVidia, see [[NVIDIA#How to install NVIDIA Driver with custom kernel|here]].<br />
<br />
==Links==<br />
<br />
[http://appdb.winehq.org/appview.php?iVersionId=6482 World of Warcraft in the wine APPDB]<br />
<br />
[http://www.wowwiki.com/Main_Page WoWWiki]<br />
<br />
[http://www.wowwiki.com/Patch_mirrors Patch Mirrors]</div>DarkAudithttps://wiki.archlinux.org/index.php?title=World_of_Warcraft&diff=48595World of Warcraft2008-09-01T14:26:53Z<p>DarkAudit: /* Performance Tweaks */ add kernel bug fix</p>
<hr />
<div>[[Category:Games and entertainment (English)]]<br />
[[Category:Wine (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|World of Warcraft}}<br />
{{i18n_links_end}}<br />
<br />
World of Warcraft (WoW) is a Massively Multiplayer Online Role-Playing Game (MMORPG) by Blizzard Entertainment taking place in the fictional world of Azeroth, the world that previous Blizzard titles in the Realtime Stategy (RTS) Warcraft series. For more information about the game itself, visit [http://www.worldofwarcraft.com/ the Official World of Warcraft website].<br />
<br />
This article will describe how install and run in on Arch Linux using [http://winehq.org/ Wine].<br />
<br />
Some of this information was provided by http://www.wowwiki.com/Linux/Wine which is the best general source of information on WoW on Wine.<br />
<br />
==Introduction==<br />
As Blizzard so kindly created World of Warcraft with OpenGL support, we don't need [http://www.transgaming.com/products_linux.php Transgaming's Cedega], which is a non-free version of Wine with better DirectX support. Wine has as good, or better, OpenGL support than Cedega, and doesn't cost you a penny. <br />
<br />
Running WoW is slightly more difficult than some other games with Wine, but still relatively easy. It's quite possible that you will need to patch Wine to work with WoW, however, even this process is rather simple with Arch. The following guide will explain it all, step by step.<br />
<br />
If you do choose to purchase Cedega, which runs some games that Wine does not, for example, Guild Wars, the process is almost identical. I use Cedega myself because Wine currently doesn't cope with my Wireless USB keyboard well.<br />
<br />
==Installing Wine==<br />
<br />
Wine now no longer requires it's own special "World of Warcraft" version. The one in the repositories works fine (currently 0.9.38.1). Install both wine and unzip, which you will need later.<br />
<br />
pacman -S unzip wine<br />
<br />
==Installing Cedega==<br />
<br />
Cedega 6.01 is available in the AUR. To get the cedega program you will need to subscribe to Transgaming ; this currently costs about £3 per month. <br />
<br />
You also need dbus-python, which isn't a dependency of Cedega.<br />
<br />
pacman -S dbus-python<br />
<br />
==Installing the Game==<br />
There are four options for installing World of Warcraft. <br />
<br />
===Copying the CDs to a folder===<br />
<br />
My preferred method is to copy the 5 install CDs to a folder. This seems to solve problems with deciding whether a CD is mounted and needs changing or not ; I think this is a fundamental problem because Windows doesn't have the basic concept of mounting and unmounting drives.<br />
<br />
mkdir /mnt/temp<br />
cd /mnt/temp<br />
<br />
mount /mnt/cdrom<br />
cp -R /mnt/cdrom/* /mnt/temp<br />
umount /mnt/cdrom<br />
(repeat above for each of the 5 CDs)<br />
<br />
Then run the World of Warcraft Installer with :<br />
<br />
wine Installer.exe<br />
<br />
===Copying an Existing Installation===<br />
<br />
The second is to simply copy an exisiting WoW installation from a Windows drive to Linux. <br />
<br />
'''NOTE:''' If you do not alreay have Wine installed, or have not run World of Warcraft with Wine before, you should skip down to [[#Installing Wine]], then come back to this section. ''Please DO NOT SKIP this section unless you are absolutely sure you know what you are doing.''<br />
<br />
Copy the C:\Program Files\World of Warcraft directory from Windows to ~/.wine/drive_c/Program Files/World of Warcraft.<br />
<br />
Example (assuming your windows partition is mounted at <tt>/mnt/windows</tt> and you are in your home directory) (Quotes are needed because of the spaces in the file names):<br />
<br />
cp -R "/mnt/windows/Program Files/World of Warcraft" ".wine/drive_c/Program Files/World of Warcraft"<br />
<br />
This will ensure that Wine knows about your WoW and will be able to configure it properly, and also ensures that WoW won't notice it has even been moved at all.<br />
<br />
Now that you have WoW installed, skip down to [[#Post-Installation]].<br />
<br />
===New Installation from CD===<br />
'''NOTE:''' We will assume that your Wine CD-ROM drive is "D:\" for this guide. Please use the correct letter as set up in the [[#Installing Wine]] section.<br />
<br />
Insert the first CD, mount it, and start the installation with:<br />
<br />
wine "D:\Installer.exe"<br />
<br />
When it asks for the next cd, simply unmount your CD drive and mount the next CD. Make absolutely sure that you mount the CD before telling the installer to load the CD, or it may make the installation fail. If you have any issues installing using the CDs, please read the next section.<br />
<br />
The WoW installation uses all 5 CDs, so it will take a while. Go outside and get some fresh air while the CD loads, because soon you won't have any "free time". :P<br />
<br />
===New Installation from DVD===<br />
'''NOTE:''' Note that on some WoW DVD's the installer executable is hidden and you need to mount the disc with the 'unhide' option. To do this type in a terminal:<br />
mount -t iso9660 -o ro,unhide /dev/cdrom /media/cdrom/<br />
<br />
Insert first the DVD. If it will be mounted automatically - just unmount.<br />
<br />
# umount /media/dvd<br />
<br />
Now mount manually<br />
<br />
# mount -t iso9660 /dev/dvd0 /mnt/dvd<br />
<br />
Now you will find the Install.exe on the DVD<br />
<br />
~ wine /mnt/dvd/Installer.exe<br />
<br />
==Installing Patches==<br />
Now we will need to update WoW. As of today (1st July 2007), the latest version of WoW is 2.1.2.6803 . This will change over time, of course. The best place I have found to access the latest patches is http://www.wowwiki.com/Patch_mirrors<br />
<br />
I think the simplest way of updating World of Warcraft is to download the patches (links are at the Patch Wiki) and copy them into the working directory for World of Warcraft. I have had problems with the Blizzard Downloaders either not working at all, or working very slowly. If you download them, you can reuse them if you reinstall or have an accident.<br />
<br />
The current patches which are needed for 2.1.2.6803 are listed below <br />
<br />
WoW-1.12.0-enGB-patch.exe<br />
wow-1.12.x-to-2.0.1-engb-patch-3.zip<br />
WoW-2.1.0-enGB-patch.exe<br />
WoW-2.1.0.6692-to-2.1.0.6729-enGB-patch.exe<br />
WoW-2.1.0.6729-to-2.1.1.6739-enGB-patch.exe<br />
WoW-2.1.1.6739-to-2.1.2.6803-enGB-patch.exe<br />
<br />
I am British (pauses to sing "God Save the Queen"), so I use the enGB patches. There exist other patches for other versions of the game in the USA, France, Germany and Spain.<br />
<br />
When you have downloaded the files into their own folder for neatness, copy these patches into the World of Warcraft working directory (paulr is my user name, you will need to use yours)<br />
<br />
cp * /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
<br />
The 1.12.x patch needs to be unzipped into the working directory<br />
<br />
cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
unzip wow-1.12.x-to-2.0.1-engb-patch-3.zip<br />
<br />
The simplest way to install the patches seems to be to run World of Warcraft. It detects that you have downloaded the patches and doesn't do it again.<br />
<br />
cd /home/paulr/.wine/drive_c/Program\ Files/World\ of\ Warcraft/<br />
wine WoW.exe<br />
<br />
You have to keep going round 5 times, it does get a bit dull, but it's fairly reliable. Accept the offer to Install the Gecko renderer when it comes up on your first patch install.<br />
<br />
The original Wiki says you can install patches with Wine as follows:<br />
<br />
wine wow-VERSION-LANG-patch.exe<br />
<br />
I haven't tried this, so I can't say if this works, and I don't know how to install the zip file this way :) <br />
<br />
If the Launcher (it displays a little box with News and Play) seems to stop when downloading, close its window and re-run WoW.exe<br />
<br />
==Installing in Cedega==<br />
<br />
Installing in Cedega is done by running the program from the menus, selecting Install, typing "World of Warcraft" in the Game name, selecting the WoW profile, navigating to the Installer.exe file using browse, and then clicking continue.<br />
<br />
===Fixes for Cedega===<br />
<br />
On my Gnome system, Cedega will not run using Alsa, it is necessary to switch to OSS. <br />
<br />
The current version of Cedega requires you to edit the following file<br />
<br />
gedit .cedega/configuration_profiles/cedega_6.0.1 <br />
<br />
and add the following line to the [d3dgl] section<br />
<br />
"VertexShadersLevel" = "1.1" <br />
<br />
==Configuration==<br />
<br />
The World of Warcraft configuration file is kept in the WTF directory (do Blizzard have a sense of humour ?)<br />
<br />
Edit it with<br />
<br />
gedit WTF/Config.wtf<br />
<br />
===Using OpenGL===<br />
<br />
Add the following line which makes WoW run in OpenGL (hurrah !) instead of grotty old DirectX Mode (boo). <br />
<br />
SET gxApi "opengl"<br />
<br />
This is a REQUIREMENT for Wine, but is not required for Cedega.<br />
<br />
===Resolution and Colour depth===<br />
<br />
You can change the following two lines to set the default WoW resolution. I have a 19" Monitor so I can use the following.<br />
<br />
SET gxColorBits "24"<br />
SET gxResolution "1440x900"<br />
<br />
===Windowing===<br />
<br />
You can run in a Window by setting this, but I haven't tried it.<br />
<br />
SET gxWindow "1" <br />
<br />
===Sound Issues===<br />
<br />
====Configuring the Buffer====<br />
If the sound makes a horrendous racket with squeaks and white noise try :<br />
<br />
SET SoundOutputSystem "1" <br />
SET SoundBufferSize "100"<br />
<br />
====Stuttering or Static Sound====<br />
Run <tt>winecfg</tt>, and in the "Audio" tab, selected "OSS" as the sound driver, using "Standard" hardware acceleration and driver emulation enabled.<br />
<br />
You can also set WoW to run at a higher "nice level", which will usually improve sound performance (<tt>renice</tt> must be run as root):<br />
<br />
sudo renice -15 `pidof WoW.exe`<br />
<br />
==A customised version of Wine==<br />
If you wish to compile wine from source yourself, you will need to edit the Wine PKGBUILD.<br />
(Note that patching Wine with fixes for WoW is no longer necessary)<br />
<br />
First, update your ABS with this command:<br />
<br />
pacman -S cvsup<br />
abs<br />
<br />
Next, copy the Wine PKGBUILD to <tt>/var/abs/local/wine</tt>:<br />
<br />
cp -R /var/abs/extra/x11/wine /var/abs/local<br />
<br />
and edit the PKGBUILD so that it looks something like this:<br />
<br />
<pre># $Id: PKGBUILD,v 1.12 2006/04/04 17:10:07 tpowa Exp $<br />
# Maintainer: Dale Blount <dale@archlinux.org><br />
# Contributor: Matt Smith (Majik) <darkknight@helpdesk.zaz.net><br />
pkgname=wine<br />
pkgver=0.9.12<br />
pkgrel=1<br />
pkgdesc="Emulator of the Windows 3.x and Win32 APIs"<br />
url="http://www.winehq.com"<br />
# don't add arts, it's only a dep if configured<br />
depends=('x-server' 'libjpeg' 'libungif' 'alsa-lib' 'glut' 'openldap' 'libxslt' 'lcms' 'libxxf86dga' 'freeglut')<br />
makedepends=('alsa-lib' 'arts' 'sane')<br />
install=<br />
source=(http://ibiblio.org/pub/linux/system/emulators/wine/wine-$pkgver.tar.bz2 \<br />
wine-$pkgver-wow_fixes.patch)<br />
<br />
build() {<br />
cd $startdir/src/$pkgname-$pkgver<br />
msg "Patching Wine..."<br />
patch -Np0 ../$pkgname-0.9.11-wow-fixes.patch<br />
<br />
msg "Done patching, starting build..."<br />
./configure --prefix=/usr --sysconfdir=/etc --enable-opengl --with-x<br />
make depend || return 1<br />
make || return 1<br />
make prefix=$startdir/pkg/usr install || return 1<br />
# expand conflicts with textutils ( doesn't exist anymore ? )<br />
# mv $startdir/pkg/usr/bin/expand $startdir/pkg/usr/bin/wine-expand || return 1<br />
mkdir -p $startdir/pkg/etc/wine<br />
# mkdir -p $startdir/pkg/etc/profile.d<br />
# cp -r $startdir/src/$pkgname-$pkgver/documentation/samples $startdir/pkg/etc/wine<br />
}<br />
#md5sums=('b21d359b75f07255bb5cd34384bdc3cf' 'a65f6f2d422e5ee50af8492ebd38470f')<br />
</pre><br />
<br />
'''NOTE:''' You can get the <tt>wine-$pkgver-wow_fixes.patch</tt> from here: http://appdb.winehq.org/appview.php?versionId=4031<br />
<br />
Now execute the following commands to build and install your custom wine:<br />
<br />
cd /var/abs/local/wine<br />
makepkg -w `pwd`<br />
pacman -U wine-*.pkg.tar.gz<br />
<br />
You now have a working version of Wine!<br />
<br />
==Performance Tweaks==<br />
<br />
1. Here is a performance tweak that can boost your FPS significantly (everything without quotes):<br />
<br />
- Open wine's version of the registry editor by running "regedit"<br />
- Navigate to HKEY_CURRENT_USER\Software\Wine\ <br />
- Select the "Wine" folder, right-click onto the folder symbol and select New-> Key and rename it to "OpenGL"<br />
- Select the OpenGL-Key, then right-click into the right-hand pane, chose New-> String Value and hit enter<br />
- Rename "New Value #1" to "DisabledExtensions"<br />
- Double-Click on the renamed Key and enter "GL_ARB_vertex_buffer_object" into the "value" field<br />
<br />
That was it, close the registry editor again, your changes will be saved automatically.<br />
<br />
2. If you are finding it annoying that turning your character by let's say 90 degree takes n seconds normally, but n+m seconds in pupolated areas (in other words: that the polygon count of your surroundings affects the camera turning speed), apply something to "GL_ARB_vertex_buffer_object", like let's say a "2", so it looks like this: "GL_ARB_vertex_buffer_object2". You will still have the performance boost of the above tweak, but with a smoother feeling.<br />
<br />
==Kernel Timing Bug==<br />
<br />
If you are having problems with choppy video every 15 seconds or so, it is related to the kernel scheduler. There is a custom version of the kernel in AUR [http://aur.archlinux.org/packages.php?ID=17195 here], or you can roll your own with ABS.<br />
<br />
cp -r /var/abs/core/kernel26 ~/abs (or whatever your preferred abs directory is)<br />
cd abs/kernel26<br />
gedit config<br />
<br />
At this point, look for CONFIG_SCHED_DEBUG. Change<br />
<br />
# CONFIG_SCHED_DEBUG is not set<br />
to<br />
CONFIG_SCHED_DEBUG=y<br />
and save. Repeat for config.x86_64.<br />
<br />
After the config files are changed, run<br />
md5sum config<br />
md5sum config.x86_64<br />
<br />
Note the sums provided. They will be needed to update PKGBUILD. Look at<br />
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2<br />
ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2<br />
# the main kernel config files<br />
config config.x86_64<br />
# standard config files for mkinitcpio ramdisk<br />
kernel26.preset)<br />
and<br />
md5sums=('5169d01c405bc3f866c59338e217968c'<br />
'003e89dd71b32ae9b93cd1601da3b1b0'<br />
'499d4841fbff665d0d0c768513018ba8'<br />
'5b5c7a9266af17d6ca3ebff420cd5381'<br />
'25584700a0a679542929c4bed31433b6')<br />
Config and config.x86_64 are the 3rd and 4th entries in md5sums. Replace with your newly generated md5sums and save. Run makepkg as per normal.<br />
<br />
==Links==<br />
<br />
[http://appdb.winehq.org/appview.php?iVersionId=6482 World of Warcraft in the wine APPDB]<br />
<br />
[http://www.wowwiki.com/Main_Page WoWWiki]<br />
<br />
[http://www.wowwiki.com/Patch_mirrors Patch Mirrors]</div>DarkAudithttps://wiki.archlinux.org/index.php?title=Firefox&diff=47857Firefox2008-08-19T15:37:10Z<p>DarkAudit: /* Recompile */ Clarify which version procedure is for and link to FF 3.x</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
Firefox is an open-source graphical web browser from [http://www.mozilla.com Mozilla]. The Firefox package in Arch Linux is compiled without official branding. This means that when you start Firefox it will use a blue globe for its icon and will be named after its release series' codename. This has to be done because a distribution may use the name "Firefox" and its artwork only if there are no unofficial modifications (i.e. no custom patches).<br />
<br />
<br />
= Enable Firefox Branding =<br />
If you would like to enable branding or simply change the user agent there are a fews ways to do it. You can recompile, modify the browser with extensions, or use the advanced configuration. Please note that distributing such a version would be against the law!<br />
<br />
== Recompile ==<br />
The following procedure is for the 2.x version of Firefox. A branded version of Firefox 3.0.1-2 is available via AUR [http://aur.archlinux.org/packages.php?ID=18019 here]. We will use [[ABS]] to rebuild Firefox. Make sure you have '''cvsup''' and '''wget''' installed. Now run <br />
abs<br />
If this is your first time running abs it may take a while. Subsequent runs will be much faster. Before you make any custom package you should run abs. Now perform the following.<br />
<br />
mkdir -p /var/abs/local/firefox<br />
cp /var/abs/extra/firefox/* /var/abs/local/firefox<br />
cd /var/abs/local/firefox<br />
<br />
Now use your favorite editor and open the mozconfig file. Add the following line to the end of the file.<br />
<br />
ac_add_options --enable-official-branding<br />
<br />
Save and exit, then run<br />
<br />
md5sum mozconfig<br />
<br />
Copy the string and then open the PKGBUILD file. Now look at the source and md5sums arrays. You can match up the md5sum to the file by comparing these two. Mozconfig is second on the sources list. So we would modify the second md5sum with the string we obtained earlier.<br />
<br />
Replace this line:<br />
<br />
convert ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
with the following:<br />
<br />
convert ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png<br />
<br />
Now scroll down and look for these two lines.<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/<br />
<br />
Replace them with the following<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/<br />
install -m644 ${startdir}/src/mozilla/dist/branding/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/ <br />
<br />
<br />
Save and exit, then run<br />
makepkg<br />
This may take some time depending on your system. Once it has created the package, remove your current version of Firefox if you have it installed.<br />
pacman -Rd firefox<br />
Then install the new version with<br />
pacman -A firefox-*.pkg.tar.gz<br />
You may also try upgrading your current Firefox with.<br />
pacman -U firefox-*.pkg.tar.gz<br />
<br />
Of course, replace * with your version number.<br />
<br />
== Extensions ==<br />
*[https://addons.mozilla.org/firefox/2553/ CCK Wizard] - Allows you to customize every aspect of Firefox. Title bar, user agent, icons, about graphic, and a lot more. <br />
<br />
*[https://addons.mozilla.org/firefox/59/ User Agent Switcher] - Adds a menu and a toolbar button to switch the user agent of the browser.<br />
<br />
== Advanced Configuration ==<br />
Enter <code>about:config</code> in your Firefox address bar to access the advanced configuration. In the filter enter <code>useragent.extra.firefox</code>. You will see your current user-agent string; you may put whatever you want in there. If you want to make it appear as the default version of Firefox to websites enter: <code>'''Firefox/2.0.0.11'''</code>. Modify accordingly if there is a newer version.<br />
<br />
== Branding without recompilation ==<br />
To brand "Bon Echo" without recompiling the whole browser, you need to replace the Bon Echo icons with the official Firefox icons, and change the strings "Bon Echo" and "BonEcho" in a few files. The [http://bbs.archlinux.org/viewtopic.php?pid=333606#p333606 firebrand] script takes care of this. Run it after an upgrade or installation of firefox. To revert to the Bon Echo brand again, simply reinstall firefox. The script will by default download the icons every time it is run. To "cache" the icons locally for later firefox upgrades, set the NEWICONSDIR variable to a suitable directory, for instance<br />
NEWICONSDIR=/usr/local/share/firebrand<br />
<br />
= Extensions =<br />
Before you try to install extensions, make sure that your /tmp directory was created with the right permissions. If addons won't install, chmod 777 /tmp should fix it.<br />
*[https://addons.mozilla.org/firefox/1865/ Adblock Plus] - Surprisingly, it blocks ads.<br />
*[https://addons.mozilla.org/firefox/446/ MediaPlayerConnectivity] - Allow you to launch an embedded video from a website in an external application. Good for those who have problems with media plugins.<br />
<br />
= Plugins =<br />
To find out what plugins you have installed enter <code>about:plugins</code> in the Firefox address bar.<br />
*Flash<br />
pacman -S flashplugin<br />
''You may need to install ttf-ms-fonts'' (pacman -S ttf-ms-fonts) ''for flashplayer to render text properly.''<br />
<br />
*Mplayer - Mplayer's multimedia plugin is one of the most mature. This will generally cover everything you need.<br />
pacman -S mplayer-plugin<br />
<br />
*Java<br />
pacman -S jre<br />
<br />
*Citrix<br />
(see [[Citrix]] how-to)<br />
<br />
= Tips =<br />
== Fonts ==<br />
===DPI===<br />
Modifying the following value has been known to improve the way fonts looks in Firefox. Type about:config into your address bar. Type dpi into the filter and change '''layout.css.dpi''' to '''0'''.<br />
===Font Replacement===<br />
Another way to improve how fonts look is to replace them with another. Add or create a ''[[.fonts.conf]]'' with the following.<br />
<br />
<match target="pattern" name="family" ><br />
<test name="family" qual="any" ><br />
<string>'''Helvetica'''</string><br />
</test><br />
<edit mode="assign" name="family" ><br />
<string>'''Bitstream Vera Sans'''</string><br />
</edit><br />
</match><br />
<br />
<br />
The first font name is the one we would like to replace. The second is the one we will be replacing it with.<br />
<br />
=== Font Configuration ===<br />
For more information on font configuration, please read [[Xorg Font Configuration]].<br />
<br />
== Lighten, Speed-up Firefox / Fix fonts and controls issues ==<br />
''Also font fix for Mozilla suite''<br />
<br />
Try to add<br />
<br />
export MOZ_DISABLE_PANGO=1<br />
<br />
to /etc/profile and logout.<br />
<br />
== Why do I get this error when I click the middle mouse button? ==<br />
! The URL is not valid and cannot be loaded.<br />
You may also get unexpected behavior like looking up a random webpage.<br />
<br />
The reason stems from the use of the middle mouse buttons in <code>UNIX</code>-like operating systems. The middle mouse button is used to paste whatever text has been highlighted/added to the clipboard. Also, there is a feature in Firefox which defaults to loading the url of the corresponding text when it is depressed. This can be disabled like so:<br />
<br />
Open the browser, and type the following into the address bar:<br />
<br />
about:config<br />
search for 'middlemouse.contentLoadURL' and set it to false.<br />
<br />
== Tip Articles==<br />
*[[Firefox Tips and Tweaks]]<br />
*[[Adding Firefox Search Engines As User]]<br />
*[[Firefox Widgets|Beautify the form widgets in firefox, e.g. buttons]]<br />
<br />
= Firefox Derivatives =<br />
*[http://en.wikipedia.org/wiki/Iceweasel Iceweasel] - The name of '''two''' different Firefox forks. One is a GNU project based on Firefox 1.5. The other is being developed by Debian and is based on 2.0. At the time of writing the [[AUR]] does have the GNU version of Iceweasel.<br />
<br />
*[http://getswiftfox.com/ Swiftfox] - An optimized and processor-specific build of Firefox. Currently available via AUR. It should be noted that, considering Arch Linux has ABS, you could build your own optimized build of Firefox.<br />
<br />
*[http://swiftweasel.sourceforge.net/ Swiftweasel] - Mostly like Swiftfox, but the binaries aren't under proprietary license. Some PKGBUILDs are available in AUR.<br />
<br />
= Firefox Alternatives =<br />
*[[Opera]] - A very full-featured web suite. Closed source but free (as in beer).<br />
*[http://en.wikipedia.org/wiki/Epiphany_%28browser%29 Epiphany] - GNOME's default web browser. Uses the same rendering engine as Firefox. <br />
*[http://en.wikipedia.org/wiki/Konqueror Konqueror] - KDE's default web browser. Uses the KHTML rendering engine.<br />
*[http://en.wikipedia.org/wiki/Dillo Dillo] - A very lightweight web browser.<br />
*[http://en.wikipedia.org/wiki/SeaMonkey SeaMonkey] - The continuation of the original Mozilla suite. Includes web browser, email client, etc.<br />
<br />
= External Links =<br />
*[http://www.howtocreate.co.uk/browserSpeed.html Browser Speed Comparisons] - Dated but still useful.<br />
*[http://web.glandium.org/blog/?p=97 Facts about Debian and Mozilla® Firefox] - An account of the trademark issues from the Firefox package maintainer for Debian.<br />
*[http://www.gnu.org/software/gnuzilla/ Gnuzilla and IceWeasel] - Official website for the GNU Mozilla forks.</div>DarkAudit