Wine

Aller à : navigation, rechercher
Language.png Cette page n'est pas encore traduite (ou pas complètement)

Cet article a besoin d'être traduit. Merci de participer au travail si vous en avez le temps et la compétence.
Si vous cherchez quelque chose à faire, regardez les autres Pages à traduire.

Wine est une implémentation en code libre des API Windows sur Linux, rendant possible l'exécution de vos programmes Windows favoris sous Linux.

Wine fait "poser" Linux en tant que Windows. Contrairement à VMWare, Xen et autres qui feignent être un ordinateur sur lesquels vous pouvez alors lancer le vrai Microsoft Windows comme sur une machine physique, Wine, lui, feint d'être Windows en offrant aux applications l'API Windows et les fonctions qu'ils usent, en les faisant correspondre avec l'API Linux.

Etant donné que Wine essaie d'être Windows, et que Windows est complexe et alambiqué, cela fonctionne donc seulement dans une certaine mesure et dépend beaucoup de quelle application Windows vous utilisez, quelles fonctions elle utilise et à quel point l'implémentation de Wine est complète. Vous pouvez jeter un oeil à la "Wine Application Database" (en anglais) pour des témoignages en rapport au logiciel que vous utilisez. Les applications de bureau et les jeux sont supportés par la version OpenSource de Wine proposée avec OpenSuSE. Cependant, il existe également des versions non-libres de Wine qui supportent d'autres applications.

Utilisation

Bien sûre il faut que Wine soit installé à partir des dépots présentés plus loin.

Pour utiliser utiliser un programmes Windows il faut tout d'abord, avoir accés à l'installateur du logiciel disponnible avec le CD ou sur internet. Ensuite executé le avec Wine.

Par defaut le lecteur émulé par Wine est C:. Il sera émulé sur la partition linux. Ce sera ici que vous pourrez installez vos programmes Windows. Vous n'avez pas besoin d'avoir Windows installé ou une partition windows accessible pour utiliser Wine.

Une fois installé il suffit juste de lancé le prorammes avec une des façons cité ci dessous.

A partir de Konqueror

POur lancer le .exe il faut juste l'ouvir à partir de votre explorateur de fichier comme Nautilus pour Gnome.

CDs that you insert should appear under /media/, and the C: drive in Wine is mapped by default to ~/.wine/drive_c/ - paste that in your Konqueror address bar and make a bookmark.

Depuis un terminal

Si vous ouvrez un terminal (Par exemple Konsole, vous pouvez tapezwine « chemin/d'accés/jusqu'au/fichier/d'installation » (ex:wine /media/dvd/setup.exe) vous pouvez aussi ouvrir une executable de la même maniere en mettant le chemin de celui ci à la place du chemin d'installation). Le chemin d'accés peut varié d'un système à l'autre. Vous ete obligé de mettre les guillemet si le chemin jusqu'à l'executable contient des espaces.

Depuis le menu démaré

La plupart des programmes Windows créer des menus et des icônes lors de leur installation et ceux-ci apparaissent le menue de démarrage GNOME ou KDE

Version commercial de Wine

Vous pouvez installer la version gratuit et open-source de Wine (procédure décrite plus bas). Mais il ya aussi deux produits commerciaux basés en grande partie sur Wine: Crossover Office et Cedega. Tous deux ont apporté des modifications a Wine afin d'améliorer l'exécution de certaines applications spécifiques sur lesquels ils se concentrent. Vous devriez vérifier leur liste d'applications supportées.

Crossover Office (de CodeWeavers) prend en charge l'utilisation d'es logiciel de bureau comme MS Office et Adobe Photoshop.Voir des logiciels compatibles.

Cedega (de TransGaming) peut être utilisé pour jouer à certains jeux Windows.Voir la liste des jeux compatibles.

Depôt

WINE est disponnible sous toute les version d'OpenSUSE.

Utilities

winetricks

Winetricks a small shell program which is included in the above packages. Just start winetricks. It will open a dialog offering to automatically download and install various common programs like Win32 Firefox, Apple QuickTime / iTunes, multimedia codecs, various truetype fonts, and also helper runtime dlls like the visual c runtimes.

The snapshot packages always contain the latest winetricks, a description can be found here.

Wine Doors

Wine Doors is a menu driven installer for standard Windows components, with option of downloading components.

Wine Doors is in the wine-doors package in above repositories.

Internet Explorer on Wine

As a frequently asked question, how to install Internet Explorer on Wine ...

Run:

winetricks ie6

or

winetricks ie7


(In former times there was a tool called "ies4linux", but this script is not maintained nor working anymore with current Wine.)

Picasa2

Google Labs has ported the Picasa2 photo organizer through its own implementation of wine.
Picasa for Linux

Source

The possibility to install from source is also an option. This is usually needed only if you are debugging Wine, or if you want to compile an older separate version of wine for different programs.

Building on x86 (32bit)

Necessary RPM: gcc, make, flex, bison, ncurses-devel, giflib-devel, liblcms-devel, libxslt-devel, Mesa-devel, libpng-devel, libxml2-devel, freeglut-devel, zlib-devel, glibc-devel, fontconfig-devel, xorg-x11-devel, libjpeg-devel, unixODBC-devel, freetype2-devel, openssl-devel, openldap2-devel

Configure: ./configure --prefix=<where to install wine>

64-bit

Necessary RPM: gcc, make, flex, bison, ncurses-devel-32bit, giflib-devel-32bit, liblcms-devel-32bit, libxslt-devel-32bit, Mesa-devel-32bit, libpng-devel-32bit, libxml2-devel-32bit, freeglut-devel-32bit, zlib-devel-32bit, glibc-devel-32bit, fontconfig-devel-32bit, xorg-x11-devel-32bit, xorg-x11-libXext-32bit, xorg-x11-libXp-32bit, xorg-x11-libXt-32bit, capi4linux-32bit, xorg-x11-libICE-32bit, xorg-x11-libXext-devel-32bit, sane-32bit, cups-libs-32bit, libjpeg-devel-32bit, unixODBC-devel-32bit, freetype2-devel-32bit, openssl-devel-32bit, openldap2-devel-32bit, freetype2-devel-32bit, hal-32bit, hal-devel,

NOTE: This list may not contain every requirement and may vary between openSUSE versions.

Configure: ./configure --prefix=<where to install wine> --x-libraries=/usr/X11R6/lib --x-includes=/usr/include/X11/ --with-x

Configuration

Wine is configured by typing winecfg on the command line. This will map all drives for wine and create a .wine on your home folder the first time it's run and then open the Wine configuration dialog. It's recommended that you eject all removable drives before running winecfg as these may confuse the installation.

The file user.reg inside the .wine folder controls wine's appearance.

Here is a "How to" by minio that shows how to make wine look more like the GTK industrial theme: http://ubuntuforums.org/showthread.php?t=55286

Sometimes, an application can depend on a Windows font that is not directly available by wine; it will then use to alphabetically the first font available, which might be some obscure fixed-space font, hebrew font or something. Try to cp /usr/share/wine/fonts/* ~/.wine/drive_c/windows/fonts/ in case you hit this problem.


Configuration of Windows programs

If you run Wine from a terminal command line you will get an idea of how often calls are failing, even when the program runs.

Check http://bugs.winehq.org/ for solutions.

Wine Doors might help as you can load some extra microsoft dlls but will change the configuration quite markedly.

ChemSketch

ChemSketch (version 12 and before) has a windowing bug which means set up is slightly challenging, although it may seem to have worked fine the first time on a KDE session. After this ChemSketch and associated programs are unusable with a hidden window unless you take the steps in SDB:ChemSketch with wine.