Red Wine in a GlassHow to Install Wine on Zorin OS 16 Core & LiteCSS HTML Validator Logo
HOME Tutorials & Essays About
Tutorials & Essays About

September 16, 2021

Zorin OS 16 Core screen shot

How to Install Wine on Zorin OS 16

Tested using Zorin OS 16 Core
Expected to apply to Zorin OS 16 Pro

Part I   Installing the latest versions of Wine

Install and configure Wine 6.x and later

Fixing launchers from earlier Wine installations

Part II   Zorin's Wine and Windows App Support

Zorin's Windows Snaps

Installing Wine 5.0.3 or 5.5

Windows App Support and Wine 5.0.3

Install Wine with Zorin's Software app

Install Wine with Terminal commands

Install Wine Mono and Wine Gecko

Configure Wine

Part I   The latest versions of Wine

Install and configure Wine 6.x and later

Optional Before installing Wine 6.x or later, consider installing Zorin OS 16's Windows App Support, as that will preserve the option of installing Windows apps by right-clicking them. Skip this if you do not intend to use Zorin's Windows App Support.

After installing Wine 6.x or later If any earlier version of Wine was previously installed, it will be upgraded. Zorin's Windows App Support (if installed) remains fully functional. Launchers for Windows apps installed before the upgrade will require an edit (as described below).

Remote file
content-ubuntu-20.04.html
does not exist.

Fixing launchers from earlier Wine installations

Launchers for apps installed prior to installing Wine 6.x or later do not work after the installation because the installation changes the name of the command that invokes Wine. Here is an example. The installed Windows app is Notepad3.

This is the desktop launcher for Notepad3 when it was installed in Wine Stable 5.0.3 by Zorin's Windows App Support. The name of the Wine command, is "wine-stable" (in large italic font).

[Desktop Entry]
Name=Notepad3
Exec=env WINEPREFIX="/home/david/.wine" wine-stable C:\\\\Program\\ Files\\\\Notepad3\\\\Notepad3.exe
Type=Application
StartupNotify=true
Comment=Notepad3 5.21.905.1
Path=/home/david/.wine/dosdevices/c:/Program Files/Notepad3
Icon=BBD3_Notepad3.0
StartupWMClass=notepad3.exe

After installing Wine 6.17, I replaced "wine-stable" by "wine". Everything else was left as is. Here is the launcher that works after the upgrade.

[Desktop Entry]
Name=Notepad3
Exec=env WINEPREFIX="/home/david/.wine" wine start C:\\\\Program\\ Files\\\\Notepad3\\\\Notepad3.exe
Type=Application
StartupNotify=true
Comment=Notepad3 5.21.905.1
Path=/home/david/.wine/dosdevices/c:/Program Files/Notepad3
Icon=BBD3_Notepad3.0
StartupWMClass=notepad3.exe

Launchers are text files with file type .desktop and can be edited with a text editor. If you find you have launchers that no longer work after upgrading Wine, locate their files and change the name of the Wine command to wine. This works for desktop launchers and for Start menu launchers.

Desktop launchers appear as icons located on the Desktop. Right-click the icon and choose to open it with your preferred text editor.

Other launchers, including those in the Start menu, can be found in ~/.local/share/applications or /usr/share/applications/. They have the file type .desktop and can be opened for editing with a right-click followed by selecting a text editor.

Launchers need to be executable. If a launcher is not working, right click the .desktop file and select "Properties" followed by "Permissions". Then put a check mark in the box "Allow executing file as program".

Part II   Zorin's Wine and Windows App Support

Zorin's Windows Snaps

Zorin OS makes a number of Windows apps immediately available for installation. These are Snap packagesNew Window Icon which include Wine in order to enable the app to run under Linux. There is a chance that the Windows app you need is already available as a Snap. Click Zorin's software icon Zorin OS 16 Core software icon and do a search to find out.

Installing Wine 5.0.3 or 5.5

Three ways to install Wine from Zorin's repositories will be described. None of these procedures include Wine Mono or Wine Gecko, which means installed Windows apps that rely on Microsoft .NET or that display web pages will not launch. Fortunately, it is easy to add Wine Mono and Wine Gecko to Zorin's Wine, and how to do this will be described subsequently.

Before installing Wine, it is prudent to ensure the latest OS updates are installed. One way to do this is through the Updates tab of the Software app Zorin OS 16 Core software icon. Alternatively, use these Terminal commands.

$ sudo apt update
$ sudo apt upgrade

Windows App Support and Wine 5.0.3

This will install Wine Stable 5.0.3. Wine Development is not an option.

Windows App Support is a built-in feature integrating Wine into Zorin OS. Once activated, both Wine and Play on Linux are installed, and Windows apps can be installed by right-clicking an installation .exe or .msi file and selecting the Open With Install Windows Application option.

There are two ways to install Windows App Support and Wine Stable. One way uses the Software app.

Alternatively …

Whichever of these two procedures you follow …

The Zorin installed apps window showing the new Wine category

You can verify that Wine has been installed by opening a Terminal window and executing

$ wine --version

Install Wine with Zorin's Software app

This will install either Wine Stable 5.0.3 or Wine Development 5.5.

Click Zorin's software icon Zorin OS 16 Core software icon and search for wine. If that seems to take too long, scroll to the bottom of the Software app page and click on Utilities. The two versions of Wine, Wine and Wine (development version), will be toward the bottom of the Utilities page. Click the version of Wine you prefer, and then click the Install button.

You can verify the installation by opening a Terminal window and executing

$ wine --version

Install Wine with Terminal commands

Execute one but not both of the following Terminal commands.

$ sudo apt install wine

$ sudo apt install wine-development

These install Wine Stable 5.0.3 and Wine Development 5.5, respectively.

You can verify the installation by opening a Terminal window and executing

$ wine --version

Install Wine Mono and Wine Gecko

Wine Mono is required for Windows apps that make use of the Microsoft .NET framework, and Wine Gecko is required for Windows apps that display web pages. This section describes how to add them to Zorin 16's Wine.

If you know your Windows apps will not need to handle HTML, the Gecko installations can be skipped.

Mono and Gecko can be installed after installation of a Windows app that requires them. This will make a non-functional Windows app functional.

https://wiki.winehq.org/MonoNew Window Icon explains installing Wine Mono, and https://wiki.winehq.org/GeckoNew Window Icon explains installing Gecko 32-bit and 64-bit. The following are the Terminal commands that install Wine Mono and Wine Gecko specifically for Zorin's Wine versions 5.0.3 and 5.5.

If you are using custom Wine prefixes, this installation must be repeated for each prefix. If you are using only the default Wine prefix, ~/.wine (or if you do not know what a Wine prefix is), a single installation is all that is needed.

Download the installation files into your Downloads folder (or other folder of your choice).

$ cd ~/Downloads
$ wget https://dl.winehq.org/wine/wine-mono/4.9.4/wine-mono-4.9.4.msi
$ wget https://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86.msi
$ wget https://dl.winehq.org/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86_64.msi

Export the Wine prefix. (You can skip this export if you are using the default Wine prefix or don't know what a Wine prefix is.)

$ export WINEPREFIX=~/.wine

$ export WINEPREFIX=your-custom-prefix

Initialize the Wine prefix, if you haven't already. (Don't skip this!)

$ wine winecfg

Install Wine Mono and Wine Gecko into the Wine prefix. Ignore "LoadLibraryShim" errors, if any.

$ wine msiexec /i wine-mono-4.9.4.msi
$ wine msiexec /i wine-gecko-2.47.1-x86.msi
$ wine msiexec /i wine-gecko-2.47.1-x86_64.msi

You can confirm successful installation of Wine Gecko by running Wine's iexplore, which is Wine's built-in version of Microsoft Internet Explorer that, naturally, relies on Gecko. Running iexplore will cause a Web browser to open. Use it to browse the Web.

$ wine iexplore

The only way I know to verify the Wine Mono installation is to install a Windows app that requires Microsoft .NET and see if it launches.

Configure Wine

The default Wine configuration prepares Wine as a Windows 7 environment, which is good for some older Windows apps, but many contemporary apps will be better matched to Windows 8.1 or Windows 10. In addition, other configuration options may be significant.

To bring up Wine's configuration panel, open a Terminal window and execute

$ wine winecfg


Facebook Logo   Twitter Logo  Reddit Logo   Quora Logo

Consider sharing your experience

Did you find this page helpful? Have constructive feedback? Wisdom to share?

Send email to Email Address

Privacy PolicyNew Window Icon

A.Z. (initials or other identifier) (date will be here)

… (your comment appears here) …