Wine Install - Do I need Mono, Gecko, etc

Mono

You need Mono to run certain applications and components.

It is recommended to install the Microsoft core fonts, some applications require it to work properly.

I suggest you to install PlayOnLinux, so you can manage your Wine prefixes easily by installing the components required for each one.

For example, if you want to install Microsoft Office, PlayOnLinux already has a script which automatically installs the required complements and packages.

You can install mono by using:

sudo apt install mono-complete

or (for Ubuntu versions prior to 16.04)

sudo apt-get install mono-complete

Gecko

For Gecko, check https://wiki.winehq.org/Gecko


To ignore Mono and Gecko popup, you can export the following variable before running your app:

export WINEDLLOVERRIDES="mscoree,mshtml="

If you do that, rendering of HTML is going to be disabled in some apps.

See: How to disable Gecko package popup for Wine?


Alternatively install Gecko by: sudo apt-get install wine-gecko\*.

And .NET library by via winetricks:

sudo apt-get install winetricks
winetricks dotnet45

See: Why is Wine not seeing that I have mono 3 installed?


Other answers were not working for me on 18.04 LTS with winehq-stable package. I needed .NET framework packages to run a certain application, so I did not need Mono in particular, just something that would run C# programs.

The workaround I found was to recreate wine32 and wine64 prefixes and install .NET on those with the automatic prompt of winetricks.


    # Create dir for 32 bit prefix
    mkdir ~/.wine32
    # destroy default configuration (64 bit prefix)
    rm -rf ~/.wine 

    # Initial setup (create prefixes)
    WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wine wineboot
    WINEPREFIX="$HOME/.wine" WINEARCH=win64 wine64 wineboot

    # To install dotnet35 on 32-bit prefix
    WINEPREFIX="$HOME/.wine32" WINEARCH=win32 winetricks dotnet35