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 13, 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

Contents – Part I describes Zorin 16's integration of Wine into the operating system, including its innovative Windows App Support.

Contents – Part II shows how to install Wine 6.x and later.

Parts I and II are independent, and Part I is not a prerequisite to Part II.

Contents – Part I

Zorin's Windows Snaps

Installing Zorin's Wine 5.0.3 or 5.5

Install Wine with Zorin's Software app

Install Wine with Zorin's Windows App Support

Install Wine with Terminal commands

Configure Wine

Install Wine Mono and Wine Gecko

Contents – Part II

Installing Wine 6.x and later

Fixing launchers from earlier Wine installations

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 Zorin's Wine 5.0.3 or 5.5

Three ways to install Wine from Zorin's repositories will be described here. None of these methods include Wine Mono or Wine Gecko, which means installed Windows apps that rely of 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.

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, you can use these Terminal commands.

$ sudo apt update
$ sudo apt upgrade

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 Zorin's Windows App Support

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 installing Windows apps in Zorin is much like installing Windows apps in Windows.

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 the installation by opening a Terminal window and executing

$ wine --version

Install Wine with Terminal commands

Execute either (but not both) of the following Terminal commands.

$ sudo apt install wine-stable

$ 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

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

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. Both are normally included with every Wine installation. This section describes how to add them to Zorin 16's Wine.

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 if you are using the default Wine prefix or don't know what a Wine prefix is.)

Do either this, to export the default Wine prefix

$ export WINEPREFIX=~/.wine

or this, to export a custom Wine prefix.

$ 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.

Installing Wine 6.x and later

Consider installing Zorin OS 16's Windows App Support before installing Wine 6.x or later, as that will preserve the option of installing Windows apps by right-clicking them.

If any previous version of Wine has already been installed, it will be upgraded. Wine Mono and Wine Gecko are included in the upgrade. Zorin OS and Zorin's Windows App Support remain fully functional, though launchers for Windows apps installed before the upgrade will need an easy edit (to be described below).

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

Fixing launchers from earlier Wine installations

Launchers for apps installed prior to upgrading Wine will not work after the upgrade because the upgrade 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. Note the name of the Wine command (underlined), is "wine-stable".

[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 the upgrade, I replaced "wine-stable" by "wine". Everything else is 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 simple 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/. These also can be opened for editing with a right-click.


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) …