How to install *.exe files in Ubuntu

Source: Internet
Author: User
Tags builtin

Download and install if you are using a distribution such as Debian or Ubuntu, you need only one command to complete the installation:
Apt-get Install wine
If you are using a different distribution, please visit the http://winehq.org/site/download query installation method []wine Configuration Run winecfg, which has a detailed configuration.
Note: Wine 1.1. More than 4 versions of Winecfg are already in the Chinese language interface. []wine Chinese garbled solutionWine 1.1. More than 4 versions of Chinese support have been greatly improved。 If you are not satisfied with the older version of wine or the Chinese support for wine, you can save the following text as a Zh.reg file, run regedit to import it
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Nt\currentversion\fontsubstitutes]
"Arial" = "Wenquanyi Zenhei"
"Arial ce,238" = "Wenquanyi Zenhei"
"Arial cyr,204" = "Wenquanyi Zenhei"
"Arial greek,161" = "Wenquanyi Zenhei"
"Arial tur,162" = "Wenquanyi Zenhei"
"Courier New" = "Wenquanyi Zenhei"
"Courier New ce,238" = "Wenquanyi Zenhei"
"Courier New cyr,204" = "Wenquanyi Zenhei"
"Courier New greek,161" = "Wenquanyi Zenhei"
"Courier New tur,162" = "Wenquanyi Zenhei"
"Fixedsys" = "Wenquanyi Zenhei"
"Helv" = "Wenquanyi Zenhei"
"Helvetica" = "Wenquanyi Zenhei"
"MS Sans Serif" = "Wenquanyi Zenhei"
"MS Shell Dlg" = "Wenquanyi Zenhei"
"MS Shell Dlg 2" = "Wenquanyi Zenhei"
"System" = "Wenquanyi Zenhei"
"Tahoma" = "Wenquanyi Zenhei"
"Times" = "Wenquanyi Zenhei"
"Times New Roman ce,238" = "Wenquanyi Zenhei"
"Times New Roman cyr,204" = "Wenquanyi Zenhei"
"Times New Roman greek,161" = "Wenquanyi Zenhei"
"Times New Roman tur,162" = "Wenquanyi Zenhei"
"Tms Rmn" = "Wenquanyi Zenhei"

Wine's easy way to use wine can work in the vast majority of Unix versions, but it still doesn't fully run all Windows programs, but with new versions almost every month, more and more Windows programs are already running on Linux with the help of wine.
1. Run the program directly
Use the command wine
[[email protected] Root] #wine < program name >
2. Using Program Manager
[[email protected] root] #progman
Launch the Manager window, select file from the menu (F)-Execute (X), a directory browser will pop up, select the program.
3, directly double-click EXE Program
Some distributions will automatically associate EXE programs when wine is installed, so a direct double-click can be run.
Some simple programs can be run directly without the need for installation.


In view of the rapid development of wine, this article has been some of the content has not been applied. Wine automation has improved a lot, and many of the previous settings have been unnecessary. Please refer to it for a moment.

In response to some of the most common problems of recent netizens, I hereby make the following statement:
1. If you find that the wine registry does not have a corresponding key value, create it yourself. Sometimes the command can not be used, only manually added.
2, wine or an immature software, often appear bug, all the use of the problem and risk can only be borne by themselves.
3, wine is not perfect, not all programs can be solved with wine, some even can not solve (anti-cheating, where plug-ins, virtual CD-ROM, etc.).

have been suffering from a decent use of the guide, the original foreign friends and I have the same feeling, since he had the first, then I had to translate.
The original author said it will keep the update, this article is very new, introduced a lot of practical wine setting method, very comprehensive, both novice and veteran are worth reading.
Original:
http://sudan.ubuntuforums.com/showthread.php?t=497332

Some of the information I've collected about wine

If you are like me, when you first use wine, you will be troubled by the current situation of wine help article. There are really a lot of howto articles on the internet to teach you to use some programs or games, but I can't find a comprehensive "wine starter tutorial" to really understand the basics of how to actually learn and use wine. I don't need an article that teaches me how to run a Half Life 2, what I need is an article that actually teaches me how to use wine. In the end, I compiled this article from a number of wikis, guides, posts, and howto. Although this article is intended to run the game in wine, almost all of the information it contains can be applied to other programs that use wine to run.

General Information
Usage information for "winecfg"
Special configuration information
Installation Information
General usage Information
Third-party software information
Advanced Setup Information

1 General Information

1.1Wine isn't an emulator
I will not translate this, there is not much technical introduction.

1.2 Using the latest wine
Remember that the latest version of wine will contain bugs that are not available in older versions. The feisty repository contains 0.9.33, while the newest wine is 0.9.44 (when I translate the article). 0.9.33 is more stable, but the latest version contains significant DirectX improvements. Some games that cannot be run under 0.9.33 can run well in 0.9.44. When I ran KotOR2 with some versions between 0.9.37 and 0.9.40, the sound crashed on my system. That's the best example of using the latest version to lead to tricky problems.
(Translator: I personally recommend using the latest version, with the new version will have a better run speed, and basically each bug will be fixed in the next two or three versions)

1.3 Do not install wine from source compilation
(Translator: The author does not say why, probably because there are too many dependencies to be solved by the compiler.)
I personally recommend compiling the installation, so that after the installation of a little bit less, better performance. )

1.4 Using the terminal
If it is installed correctly, wine will link itself to the exe file, so you can simply double-click the exe file to run it. In any case, this is not the recommended way to use wine (translator: I also do not recommend). It would be nice to use a terminal because it would correctly set the path to the program, otherwise the program would not find the required files. In addition, the use of terminals can also display error messages, which is very useful to solve the problem.

1.5 ready to deal with setbacks
Wine is not perfect. Not all things can develop smoothly, sometimes even need you to solve the problem yourself. But you're a Linux user now, and you're ready to deal with it.

2 usage information for "winecfg"

2.1 Running "Winecfg"
At a minimum, you need to run winecfg to set up your wine directory and hardware.

2.2 Virtual Desktops
Use this option to make the software more streamlined to install. I found that when you do not use this option, some programs can cause an activated dialog box, a Cdkey input window, or a confirmation window for a replacement disc to not appear in the front end. Let me think the program is dead, kill off the process. Choosing this option also prevents the program from locking your desktop or changing your screen resolution to an unsightly pattern.

2.3 Using Application Settings
You can customize the individual programs in the Application Settings dialog box in the Winecfg Application tab. It only allows you to set up Windows compatible run mode (Translator: Compatibility tab in EXE properties like Windows), some display settings, and DLL settings.
When you only need to set a program to use certain Windows-specific DLLs, and do not want other programs (including wine) to use these native DLLs (while other programs use these DLLs can cause problems), (translator: Wine comes with a DLL called BUILTIN, This option becomes useful when native DLLs in Windows are called native. I use this method when making DLL settings, in order to prevent some nativedll that are potentially dangerous to wine's operation being called by wine (translator: In general, wine only calls its own builtindll, instead of using native DLLs, copyright issues, Unless set, as described above). So I just modified the executable configuration file, and when I don't need it, I can change it back without damaging the whole wine. (Translator: Before setting these things, ensure that a program's EXE file has been added to the application label's white box, and the inverse color is selected.) Not the default, it is the EXE file you need to set. )

Version 2.4Windows
Try different versions of Windows for different programs. This means that a game designed for XP might work better with the support of wine's 98 mode. Before you do this, make sure you have added the program to the Application white box, and that it is checked and reversed.

2.5 Using ALSA Drive
Some games require OSS to run, but OSS is no longer ready to be developed.
(Translator: Recommended only for standalone sound cards using ALSA, integrated or using OSS best)

2.6 Do not always choose allow the window Manager to control the Windows (WINECFG)
Using this option can sometimes cause problems when the game is running full screen. The current wine version 0.9.39+ has fixed full-screen problems for most games, but introduces a new problem: When this option is not used, the keyboard cannot be entered in the game. This problem can be resolved when using a separate X server to run the game. (See "Advanced Settings Profile")

2.7 Treat DLLs with caution
WINECFG allows you to replace BUILTIN DLLs with native DLLs. The following DLLs are absolutely not replaceable. Kernel32.dll,gdi32.dll,user32.dll, and Ntdll.dll. Some nativedll may also make some programs unable to run. Remember never to overwrite the wine comes with the DLL, if the native can not use the builtin to change back. Some MS DLLs need to be licensed to use, and if you don't have permission, don't use them.

3 Special configuration information

3.1 Creating a link to the CD
Wine will create a link to the folder where you mount the CD, but it will be better to create a link to the device in the real/dev. I found that if I did not do this, wine would build itself into the/dev link, and recognize the CD as E: disk, while my mount directory was linked to D: disk. I think this may cause problems with some programs that use CD installation. Modify the/DEV/HDC to fit your system (translator: 7.04 is generally/dev/scd0).

Code:Ln-s/DEV/HDC ~/.wine/dosdevices/d\:\:

3.2 Useful registry key values
Some settings cannot be set by winecfg, but can be set in the registry. There's an article in wine wiki that keeps up to date
Http://wiki.winehq.org/UsefulRegistryKeys
There are two key values is very useful, one is ALSA driver usedirecthw, you can solve some of the problem of sound jumping, as well as Direct3D videomemorysize, you should be set to your video card accurate memory, the default wine will be set to 64MB.

3.3WINEPREFIXCREATE
I don't translate this for the moment.

3.4 Installing wine Gecko IE engine
Some programs run on IE, but installing IE can seriously break the wine. So you can install wine Gecko IE engine as a substitute.
1. Run the following command under Terminal:

Code:Wine IExplore http://www.winehq.org

2. Answer Yes when installation prompt appears
3, open Http://wiki.winehq.org/UsefulRegistryKeys, find HKEY_LOCAL_MACHINE Plate
4. Add all key values for Internet Explorer to the registry
After the installation is complete, run

Code:Wine IExplore http://www.winehq.org

If successful, the WINEHQ homepage will appear.

3.5 Chinese Support settings
Save the following code as Zh.reg, and then the terminal performs regedit zh.reg. Copy the SIMSUN.TTC from the fonts in the Windows directory into the/home/user/.wine/drive_c/windows/fonts.
Code:REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Nt\currentversion\fontsubstitutes]
"Arial" = "SimSun"
"Arial ce,238" = "SimSun"
"Arial cyr,204" = "SimSun"
"Arial greek,161" = "SimSun"
"Arial tur,162" = "SimSun"
"Courier New" = "SimSun"
"Courier New ce,238" = "SimSun"
"Courier New cyr,204" = "SimSun"
"Courier New greek,161" = "SimSun"
"Courier New tur,162" = "SimSun"
"Fixedsys" = "SimSun"
"Helv" = "SimSun"
"Helvetica" = "SimSun"
"MS Sans Serif" = "SimSun"
"MS Shell Dlg" = "SimSun"
"MS Shell Dlg 2" = "SimSun"
"System" = "SimSun"
"Tahoma" = "SimSun"
"Times" = "SimSun"
"Times New Roman ce,238" = "SimSun"
"Times New Roman cyr,204" = "SimSun"
"Times New Roman greek,161" = "SimSun"
"Times New Roman tur,162" = "SimSun"
"Tms Rmn" = "SimSun"

4 Installation Information

4.1 Do not install the program in the CD directory
(Translator: Do not install the CD-to-CD mount directory)
If you do this, you will be unable to eject the CD when you change the CD, use the following command to install the CD:

Code:Wine/media/cdrom0/setup.exe

4.2 Need to use "wine eject"
If the installer requires you to change the CD and the system says it cannot eject the CD, open a new terminal and enter:

Code:Wine Eject D:

4.3 Installing the InstallShield Bug patch
Installing Http://support.installshield.com/kb/files/Q108322/IkernelUpdate.exe
This patch can solve some CD installation problems.

4.4 Using Uninstaller
Use the command "Uninstaller" to uninstall the installed program, do not use the program in the menu to create the uninstall shortcuts, they sometimes do not work properly, and uninstaller can.

4.5 Installing the. msi file
Some Windows installers are installed using the MSI, then use the following command to install:

Code:Wine msiexec/i Install.msi
Or
Code:Wine Start Install.msi

4.6 Do not install DirectX
Wine has its own DirectX library, and installing Microsoft's DirectX will destroy the wine's DirectX Library and wine.
However, D3dx9_##.dll and D3dx10_33.dll can be used from Windows replication, and may be helpful when starting some games. Using these DLLs you need a Microsoft license certificate.

5 General usage Information

5.1 How to run a program with wine

Code:Wine Application.exe

5.2 Before running the program CD-to-Program installation directory
CD to the program's installation directory to run the program again.

5.3 Turn off Winedebug
In general, wine will constantly produce some debug information (those "Fixme"). That information is useless in many cases, especially if you can run a program normally. You can use the following command to avoid debug information and save resources:

Code:Winedebug=-all Game.exe

5.4 Do not use root or sudo to run wine
System files may be corrupted.

5.5 Orders of other wine
Wineboot emulation of Windows restart
Wine Control Run the dashboard
Wineserver Wineserver will start automatically with the order of wine, but can also be started by the terminal to achieve different purposes.
Some parameters of Wineserver
1,-d# set the display level of debug in terminal.
2.-H display wineserver Help file
3,-K kill the current Wineserver, when the program loses its response and you want to end it use.
4,-P let Wineserver always run, that is to say, even if the program exits, Wineserver continue to run. You can use it when you need to run a continuous program, which shortens the startup time of the program.
5,-W let Wineserver run until the current activated wineserver exits.

5.6 Let wine run more smoothly
When there are problems with slow or fluctuating programs, you can increase the priority of the process to resolve them. After you start the game, you can use the "renice" command to change the priority of the process. The "renice" command can change the priority of the current process, and the value of "nice" is a priority level flag (high priority = low nice value, low priority = high nice value). This command sets the value of the program priority to any integer value from 20 (highest priority) to 19 (lowest priority), and the default value is 0. After starting the game, you need to open another terminal to enter the following command to change the program priority:

Code:sudo renice-10-n game.exe

When running the game in wine, I do not recommend directly to the program priority set to-20, preferably from 10 onwards, if the effect is not obvious, you can step by step to try to improve the small range ( -11,-12 ... )。 You will find that most games do not require a higher priority than 10 to achieve the best performance. Needless to say (I think), in the game you can use the Alt-tab combination keys back to the desktop using the "Renice" command.

The second method of
Use the graphical interface to set the priority level.
1, run the game with terminal, press Alt-tab back to the desktop
2, System Management-System Monitor, switch to process tab
3. Right-click on the process-change priority
4. Input when password is required
5, shut down the system monitoring program, with Alt-tab back to the game


6 Third party software materials

6.1 Winetools
Winetools is a menu-style software that can install more than 90 common Windows programs. It can also help you set up a basic directory for wine. There is no longer a maintenance winetools, it has not been upgraded for two years, but many users find it still useful. And all the things winetools do can be done by themselves through winecfg or terminal.

6.2wine-doors
Wine-doors is a software that helps you install a lot of Windows programs, including a graphical interface of the game. It is still in the development phase, but has released an initial version that can be downloaded. As far as this software is concerned, it is very promising.

6.3Cedega
Cedega is technically a branch of wine that is specifically targeted at the game. The Cedega includes a graphical interface for installing and running the game, plus support for anti-copy protected software (no need to use a hack for CD-free) (translator: Wine's support for anti-copy is not very good). Cedega is not free, the minimum consumption is 3 months of purchase, $3 per month, if prepaid for one year, you can enjoy a discount. Cedega formerly called Winex, in wine or MIT software, rather than the current GPL, Winex from a branch of wine, because Cedega does not belong to Gpl,cedega no longer contribute to the development of wine code. Plus Cedega lack of support, many people will no longer use Cedega under Linux to play games.

6.4CrossOver
CrossOver Technically speaking, CrossOver is not a third-party product of wine, but a major financial supporter of wine. Crossover started out as a target for running Microsoft office software under Linux, but recently it started adding support for the game. Crossover is based on an older, more stable wine version (translator: 0.9.17), but crossover is also upgraded with wine. The Crossover Standard Edition is priced at $39.95.

6.5ReactOS
Like crossover, ReactOS is also a supporter of wine, based on the results that many wine has accomplished, and is committed to creating an operating system that is fully compatible with Windows. Once completed, ReactOS is fully compatible with Windows drivers and software. The program is still in the development phase, but it is available for download of installation CDs, LiveCD, QEMU, and VMware images.

7 Advanced Setup Information

7.1 Use startup scripts (make sure the game works before using)
When you use a separate x server, many games typically play their best performance. Wine does not need a window manager (GNOME or KDE) to run normally, so if you run the game under a separate X server, you will get a noticeable performance boost. Before running the game, turn off GDM or KDM and get a greater performance boost (only through the console console).
1. First, create a script under the terminal
Code:Nano launcher.sh (can replace Nano with VIM)
2, copy the following text into the terminal. If you don't have Nvidia's video card, remove the part of Nvidia settings and replace the path with the correct path to your game.
Code:#!/bin/sh
#uncomment if launching from console session
#sudo/ETC/INIT.D/GDM Stop
#KDE use of this instead
#sudo/ETC/INIT.D/KDM Stop

# launches a new X session on display 3. If you don ' t has an Nvidia card
# Take out the ' & nvidia-settings--load-config-only ' part
X:3-ac & Nvidia-settings--load-config-only

# Goto Game dir (modify as needed)
CD "$HOME/.wine/drive_c/program files/game/directory/"

# forces the system to has a break for 2 seconds, X doesn ' t launch instantly
Sleep 2

# launches game (modify as needed)
Display=:3 Winedebug=-all Wine "C:/Program Files/game/directory/game.exe"
3. Save the file to your home folder (save Ctrl+o, Exit Ctrl+x. VIM first ESC, then shift+:, save W, exit Q)
4. Then, add the executable property to your script
Code:chmod +x ~/launcher.sh
5. Run the script
Code:SH launcher.sh
Or
Code:./launcher.sh
6. After the game is over, use Ctrl-alt-backspace to return to the desktop

The second method of
If your game doesn't work or simply wants to squeeze out better game performance, follow the steps below to try to run the game with the X session turned off.
1. Cancel Logout "SUDO/ETC/INIT.D/GDM stop" statement (delete #) after saving, if you are using KDE, cancel logout "SUDO/ETC/INIT.D/KDM stop".
2. Close all Programs and press CTRL-ALT-F1 to open the console
3. Log in to the console and run the script. You will be asked to enter the password, and the game will run in its own X session, without the hindrance of GDM or KDM.
4. If the script shows that you do not have permission to start the X session, modify the script
Modify the startup statement for X server as follows
Code:sudo x:3-ac & nvidia-settings--load-config-only

Note: To avoid modifying the script, you can modify the xwrapper.config to give the normal user the ability to start X. Use sudo vim to open the/etc/x11/xwrapper.config and change the allowed_users=console to Allowed_users=anybody.

5. After the game is over, you can reboot or ctrl-alt-backspace back to the console and restart X and the desktop:
Code:SUDO/ETC/INIT.D/GDM start
If it is KDE
Code:SUDO/ETC/INIT.D/KDM start
The desktop will appear soon, and if not, enter
Code:StartX

Attention:
1. If you let the game use its own X session, confirm that the virtual desktop in Winecfg is forbidden.
2, let the game use its own X session can solve the game when the keyboard cannot input problems.

Accessories:file Comments:InstallShield's Bug patch
Ikernelupdate.zip [933.21 KiB]
Downloaded 1304 times
Example: Wine run Guotai Junan stock Software If you often use a Linux desktop (such as Ubuntu), you can use the following methods to install the Guotai Junan stock software into the Ubuntu system.
1. Install wine
sudo apt-get install wine
2. Download Guotai Junan stock installation software
3. Change the current directory to a directory with Guotai Junan stock software
Run the following command:
Wine Setup_dzh5_fuyi.exe
At this point, as in Microsoft Windows, the installation interface appears, as prompted to install.
Note: If this is garbled, it may be because the font in wine replaced the problem, please refer to the following link: http://forum.ubuntu.org.cn/viewtopic.php?t=72933
---
4. Run Guotai Junan stock software
Run the following command:
CD ~/.wine/drive_c/dzh5/internet/
Wine Hypmain.exe

How to install *.exe files in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.