How to install and use Wine on Ubuntu 20.04

s2 0

Wine is an open source compatibility layer that allows you to run Windows applications on Unix-like operating systems like Linux, FreeBSD, and macOS. Wine
is an acronym for “Wine Is Not an Emulator”. It translates Windows system calls into equivalent POSIX calls used by Unix-based operating systems so that you can seamlessly integrate Windows programs into your desktop environment.

Not all Windows applications run in Wine, and even if they do, they may not behave as they normally would. the Wine AppDB
is a database that contains a list of applications that have been tested and verified to work under Wine.

Wine isn’t always the best option for running Windows programs on Linux. You can also use a virtualization tool like VirtualBox or VMware, but these require more system resources and a Windows installation file.

This article describes how to install Wine on Ubuntu 20.04. We’ll show you how to install the standard version 5.0 of the distribution and the latest version 6.x from the WineHQ repositories. The same instructions apply to any Ubuntu-based distribution, including Zorin OS, Linux Mint, and Elementary OS.

Install Wine 5.0 on Ubuntu

The Wine packages are contained in the standard Ubuntu repositories and can easily be installed with the apt Package manager. This is the easiest way to install Wine on Ubuntu. However, the distribution version may lag behind the latest version of Wine.

Most Windows applications are built for the 32-bit architecture. The first step is to enable Multiarch, which allows you to install both 64- and 32-bit packages on the computer:

sudo dpkg --add-architecture i386sudo apt update

Install Wine:

sudo apt install wine64 wine32

Once the installation is complete, check it out by printing out the Wine version:

wine --version

The current version of Wine available in the Ubuntu 20.04 repositories is 5.0.

wine-5.0 (Ubuntu 5.0-3ubuntu1)

That’s it. Wine has been installed on your computer and you are ready to use it.

Install Wine 6.0 on Ubuntu

This section provides step-by-step instructions for installing Wine version 6 on Ubuntu 20.04.

If you’re running a 64-bit Ubuntu system, enable 32-bit architecture and update the package list:

sudo dpkg --add-architecture i386sudo apt update

Import the GPG key from the WineHQ repository:

wget -qO- https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Add the WineHQ repository to your system:

sudo apt install software-properties-commonsudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main"

Install Wine by typing:

sudo apt install --install-recommends winehq-stable

This installs a number of packages. When done, verify the Wine installation by typing:

wine --version

At the time of this writing, the latest major version of Wine is version 6.0:

wine-6.0

Wine has been installed and is ready to use.

Configure Wine

To start configuring Wine, run this winecfg Command in your terminal. The command installs Mono and Gecko and sets the Wine environment:

winecfg

A dialog appears asking whether you want to install the wine-mono package:

Click the “Install” button and the installation will start. Then a new dialog will appear asking you to install Gecko. Click the Install button again.

When the installation is complete, the Wine configuration dialog will be displayed. Here you can configure various Wine settings. The default settings should be sufficient in most cases. When you’re done, close the dialog box.

Install Notepad ++ on Ubuntu

After Wine is installed and configured, we will explain how to install Windows applications on your Ubuntu.

In this tutorial, we are going to show you how to install Notepad ++, one of the most popular Windows text editors. Start your browser and download the installation file from the Notepad ++ download page
.

As soon as the download is complete, start the installation with a right click on the .exe File and select “Open with Wine Windows Program Loader”.

The installation wizard starts, selects the language, and installs Notepad ++ the same way you would install any application on a Windows computer.

Windows applications are installed in the ~/.wine/drive_c/ Directory.

To start the Notepad ++ editor, navigate to the ~/.wine/drive_c/Program Files (x86)/Notepad++ Directory and double click on the notepad++.exe File.

You can also start the application from the Activities search bar.

diploma

We showed you how to install Wine on the Ubuntu 20.04 desktop and how to install Windows applications.

If you run into any problem or have any feedback, please leave a comment below.