We provide wine-staging. To install wine-staging using the MX Package Installer (AKA metapackage-installer). After launcing the package Installer, click the Full App Catalog tab then the Stable Repo Tab. Type winehq in the search box and select the single item (winehq-staging) that shows up in the list, then click the install/upgrade button. There will be a relatively recent version of wine-staging in the default repositories for MX. A more up-to-date version will usually be in the MX Test Repo also using MX Package Installers Full App Catalog. Avoid Debian’s wine – it’s generally quite old.
The latest wine-staging can be installed by selecting the MX test repo in the same tool and following the instructions above.
If the Windows program needs to support a version < Windows XP, you’ll need to set up a 32 bit wine prefix (.wine folder under home/account name) To do this, open a terminal and as a regular user execute the following command:
WINEARCH=win32 WINEPREFIX=~/.wine winecfg
Alternatively, a 64 bit prefix can be created by running the following command in a terminal window as a regular user.
WINEARCH=win64 WINEPREFIX=~/.wine winecfg
winetricks is a script written by Dan Kegel which can help you install a variety of free and non-free software to help wine function better. Download the script by right-clicking on the link and selecting “save link as…”. Right-click the downloaded file > Properties, Permissions tab, and check Allow this file to run as a program. Then run it in a terminal with the command:
This will give you a list of things you can install with winetricks.
Configuring and Using WINE
After you have installed WINE you will need to configure it by entering the command
* or locate the ‘other’ pick in the whisker menu and click Configure Wine.
winecfg sets up a folder, sometimes referred to as a prefix, in your home directory called “.wine/” which contains some configuration files and a virtual “C drive”. This GUI program will also allow you to make some additional tweaks, such as mapping additional drive letters, configuring video and audio options, or selecting the version of windows to emulate (all of which can be done on a per-program basis).
Once you have done this, you can start a Windows program like this:
1. Put program install CD in your drive
2. Right-click CD icon and select “mount”
3. Once CD mounted, click the icon and you should get a file manager window with /media/cdrom already in the main pane – displaying the contents of the CD. Have a look and locate the normal install file for windows (often “install.exe” or “setup.exe”)
4.Open a terminal in /media/cdrom directory
where progname is the install file name. Make sure you have uppercase
/ lowercase correct, and include the extension “.exe” or “.bat” etc.
6. With luck, the installer should start just as if Windows were operating.
* Alternatively you can launch thunar and navigate to your windows program’s executable, Right Click on it and thunar should provide a Open with “Wine Windows Program” Loader pick.
Tips and Tweaks
Fix the Terrible Looking Fonts
Copy and paste the following text into a new text file and name it fontsmooth.reg
Then open a terminal in the same folder as fontsmooth.reg and execute:
In winecfg, in the Desktop Integration tab, under Themes, you can also choose different fonts for certain window elements.
Install Windows installer
Now, you want to install Windows installer. Installer 2 will do fine if you install it under the Windows 98 emulation. Note that you may only install this if you have a valid license of Windows. Get it from here:
If you run that in Wine and nothing happens, run winecfg and make sure you’ve set it to emulate Windows 98 by default. The installer won’t run if you’re in 2000 or XP mode.
You can also install it using winetricks with the command:
sh winetricks msi2
Install Microsoft fonts
Get the Microsoft core fonts, otherwise Wine windows might be unreadable. It’s in the repositories, just install the package msttcorefonts. Since you are there install fontforge package too.
You can also install corefonts through winetricks:
sh winetricks corefonts
- Remember that WINE configurations are per-user, which means that if you set up WINE and install Windows software as one user, the programs will not be available to other users. They will need to set up WINE and install the programs individually.
- With all due respect to the Wine developers, do not expect miracles from Wine. A lot of Windows programs work really well under Wine, however it pays to check the Winehq compatibility database before trying to install a program. This site often has pointers on how to install certain programs, dlls or patches required, and if it runs well / erratically / or not at all under the Wine environment.
- Don’t be surprised if you experience erratic behavior, failure to start, or failure to install. And don’t expect immediate compatibility with the latest Windows games / programs. Wine often works best with older (more established) and more popular Windows applications.
- If you have Windows installed on a second partition, and mount that partition and try to run programs installed there with WINE, it generally does not work. You usually need to reinstall the programs in WINE so that the proper registry entries and DLL files can be present in the WINE install.
- In order for Wine to see the printer on a 64 bit system, install libcups2:i386 and reboot.
By now you’ve installed and run winecfg in a terminal to create the /home/yourusername/.wine directory, and subsequent subfolders used by wine to simulate the Windows environment.
To check that you have everything, open your file manager, select View > Show Hidden Files, and you should now see the .wine folder. If you open this folder, you should see a subfolder called drive_c one called dosdevices, and some files called system.reg and user.reg.
If you open the drive_c subfolder,you’ll see 2 very important folders Program Files and Windows. The Program Files folder is where most of your programs will be installed under wine. The Windows folder is where a lot of the required libraries (dll files) live.
What To Do Before Installing A program With Wine
1. Go to the WineApp Database and search for the program you want to install. Have a look to see what successes people have had running it. Pay close attention to hints on what makes the program run better – especially dll files & settings.
2. If dll files are recommended, a good resource to find them is DLL-files.com. Usually you’ll be told to put them in your /.wine/drive_c/windows/system32 folder. You then have to run winecfg in a terminal,and set up (under the libraries tab) for wine to run the program either natively or using the built in libraries.
How to install a program using Wine
Method 1. If you are installing from a downloaded file, open the folder (where it’s stored) in a terminal window, then type
to run the install program. Usually the filename will be setup.exe or install.exe. From a CD / DVD, it’s just as easy. Mount the CD/DVD, open the contents in a file manager and do the same as for a single downloaded file.
If the installer is working OK, the program will install just as if it was in a normal Windows environment. It is usually best to just accept the default locations during the install (most of the time new installs will create their own directory under your /.wine/drive_c/Program Files/ directory).
Method 2. Use PlayonLinux, which allows you to easily install and use numerous games and apps designed to run with Microsoft Windows. It is in the repos, and a more up-to-date version may be available from the PlayonLinux Download page. The list of supported software is here.
How to run the program with Wine
If the install was successful, your program should now be displayed under Start menu > Wine
The winecfg command is a powerful tool, and when run from the konsole, opens up the configuration utility. Note under the Applications tab that you can choose the Windows version you want to emulate. This can be set globally, and also per program. If it’s a reasonably modern program, try XP emulation first. If it’s older, a lot of apps work well under Win98 emulation. It may be trial and error to find the right setting. The other tabs allow you to choose to manually install and work with native Windows dlls (Libraries tab), tweak your graphics set-up, choose options for desktop integration, adjust audio settings and drivers, and map drives (real and virtual). Once you become more familiar with wine, you can also change the settings in the wine registry by running regedit (or wine regedit – both seem to work)
Uninstalling programs in Wine
Easiest way is to run a konsole, type wine uninstaller, and then from the program list that appears in the new window, highlight the program and click the uninstall button.
If you need further help – check the documentation on the WineHq website
32/64 bit (mikesinsantarosa)
Submitted by Jerry3904 on Tue, 04/05/2016 – 14:24 For 64 bit desktops you can change it to run 32 bit applications <= win85 by initializing a 32 bit operating environment running. Code: WINEARCH=win32 WINEPREFIX=~/.wine winecfg from a terminal as a regular user. if you want to run true 64 bit apps just rename your .wine folder to .wine32 and run configure wine from the menu or from a terminal run Code: WINEARCH=win64 WINEPREFIX=~/.wine winecfg You can tell when you’re in 64 bit mode on a 64 bit desktop because windows version will be limited to >= XP. We should be able to switch back & forth between 32 & 64 bit by protecting the one not in service and renaming it to something other than .wine. Note: If you already have wine-staging installed on a 64 bit desktop and you want 32 bit, you’ll need to rename your .wine folder before changing it to 32 bit using the command above.
Complete removal (mikesinsantarosa)
Submitted by Jerry3904 on Tue, 04/05/2016 – 14:25 In case anyone needs to completely remove it themselves, here’s what I did: Code: sudo apt-get –purge remove wine-staging* -s sudo apt-get –purge remove wine-mono* -s sudo apt-get –purge remove wine-gecko* -s then Code: rm $HOME/.wine rm $HOME/.config/menus/applications-merged/wine* rm $HOME/.local/share/applications/wine rm $HOME/.local/share/desktop-directories/wine* rm $HOME/.local/share/icons/????_*.xpm And finally: Code: sudo apt-get update sudo apt-get autoclean sudo apt-get clean sudo apt-get autoremove leveraged from an ask ubuntu thread. Now you can reinstall wine-staging. If installing from synaptic, you’ll also need to select wine-staging-compat.