First things first, note this very noticeable warning:
You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a
clean 32-bit WINEPREFIX before reporting a bug.
This indicates you need to create a 32bit Wineprefix, as Wine works better with 32bit stuff - this can be done simply by running telling wine what architecture to use before running its commands (this can I think can also be done by uninstalling Wine x86_64 and installing Wine i386/i686 - anyway, keep the terminal open for the other wine commands after running this):
This sets the environment variables wine reads before it launches (see
It would also be a good idea to get it to create it's own WINEPREFIX (where the Wine virtual drive is stored). By default this is
~/.wine, but you can create individual ones for each architecture & program - so to create a WINEPREFIX in directory
The directory doesn't have to exist (ideally it shouldn't exist so stuff doesn't have to be overwritten), but the parent directories probably should - you should also have permission to read & write to it, and I don't think the wineprefix can be on a FAT/NTFS drive for technical reasons (it won't work).
So to setup a 32bit wine prefix for a program:
You can replace
PROGRAM-NAME with the name of the program to make it easier to identify the program later. Just make sure it only includes the letter and numbers as punctuation often has a special function in various command shells.
You should then get a window like this:
Then you are ready to go. Now you can install NET 4.0 using
winetricks (you might want to get the latest version from here first):
This should be in the terminal after the
export WINEPREFIX=... command, or by placing it just before the wine command as so (useful for app launchers that one command line):
env WINEPREFIX=~/.wine-PROGRAM-NAME/" winetricks dotnet40
You may also want to use
winetricks to install some other stuff it might need - e.g. fonts (using the options
tahoma). To list winetricks' options, use
You can then install the program using
wine "~/Downloads/PATH/TO/INSTALLER.exe". Yet again (copy the file, then 'Paste Filenames' into terminal, so it looks like
'/home/wilf/Desktop/name spaces/installer.exe' not
You should make sure the WINEPREFIX has been exported before running this command (especially if you closed the terminal), or in the same line. After getting it to work (or not work) you might want to do a report on how well it works here (including what you did etc so you can help other people). If you have issues, and noticeable errors appear in the output you can report a bug.
Once installed, it should make the launcher of the app appear on the Dash/Menu and sometimes on the Desktop. Otherwise in future to run the app you may need to run the app with the
export WINEPREFIX=... and
wine .... (or
env WINEPREFIX=... wine .....) again, unless you create a launcher (comment below or somewhere if you need to know how to do so....)
More info, troubleshooting etc
How do I install winetricks?
You can a version from the Ubuntu repositories using this command (or installing Winetricks from the Software Center):
sudo apt-get install winetricks
You can then use
winetricks OPTIONS to do stuff.
For the latest version, you can use these commands to download and use the latest version:
chmod +x winetricks
Note you will have to run it as
./winetricks <OPTIONS>, unless it's directory is in the shell's
I don't want to use terminal, what can I do?
The app you want to use may be runnable under PlayOnLinux (it should be if you can find it here) - this is pretty much all GUI and automatically does most of the steps for you.
Otherwise, you can use the terminal to do it very easily (you usually have much more control than if a GUI program is doing it), just be careful what you put in (especially if it includes the commands
rm, etc). Try to understand what is going on with each command first.
Also, some of these steps can be done in other ways - both
winetricks open GUIs through which you can do some steps, but again what you can do is limited.
How do I install the latest Wine version?
The newer wine versions are more up to date, so may be able to run the program better (unless there is a regression which impacts it). To install the current latest version (Wine1.7) you can use the offical Wine PPA:
sudo apt-add-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7
If it can't find the package
wine1.7, try running the install command again but with
wine instead of
For installing and configuring Wine generally, you can also try this question.
The program I want to use is designed for a newer version of Windows, what can I do?
Wine by default replicates Windows XP, which some programs don't support as it is EOL (which I supposes in handy as you probably can run programs for WinXP under Wine under Linux, and you can 'nuke WinXP from orbit' :)
Anyway, first open up the Wine configuration window:
~/.wine-PROGRAM-NAME/ is the WINEPREFIX you created earlier.
And select the Windows version to replicate at the bottom of the 'Applications' tab. Then try installing the app again.
WINDOWS VIRUSES UNDER WINE?!?!
Quite possibly. Don't install random software of the internet, try to ensure it is from a trusted site.