+4 votes
359 views
How to install Wine on Ubuntu 19.04

in Linux / Unix by (552k points)
reopened | 359 views

1 Answer

+5 votes
Best answer

1. How to install Wine on Ubuntu 19.04
2. How to configure Wine on Ubuntu 19.04
3. How to use Windows applications with Wine in Ubuntu 19.04
4. How to upgrade to WineHQ 4.17 in Ubuntu 19.04

Would you like to run Windows applications on Ubuntu? If your answer is “Yes” you are in the right place since TechnoWikis will talk about an application that has been developed for all those who want to run Windows .exe applications on Linux. As you may have noticed, when you download a Windows application, it will be impossible to install it on Ubuntu 19.04 due to the file system, and the Windows applications are varied and too many. So in order to execute them we will see a utility called Wine and you will understand how it is useful for this type of process..

What is wine?
Wine (Wine Is Not an Emulator), was created as a compatibility layer where it is possible to run Windows applications on POSIX- compatible operating systems, such as Ubuntu 19.04. This is achieved because Wine translates Windows APIs into POSIX calls instead of using virtualization methods and this will include improvements in execution, performance and compatibility.

So, instead of having a dual boot (Windows and Linux) separately, the best solution is to use Wine to achieve this compatibility by managing all internal instructions for Linux to recognize Windows applications as executable.

Wine features
Among the characteristics of Wine we find:
  • It offers graphics support for macOS and Android.
  • Supports alternative input devices such as graphic tablets.
  • It is compatible for the execution of Win64, Win32, Win16 and DOS programs.
  • X11-based graphic display which supports remote access to terminal X.
  • Supports optional use of DLL files from external providers.
  • DirectX compatible for games and multimedia.
  • Compatible with sound drivers such as ALSA, OSS, PulseAudio and CoreAudio.
  • Winsock TCP / IP network support.
  • Integrates a PostScript interface driver to use standard PostScript Unix printing services.
  • Compatible with the ASPI (SCSI) interface which supports scanners, CD drives and more devices.
  • Advanced Unicode support and world languages.

Now we will see how to install Wine on Ubuntu 19.04.

1. How to install Wine on Ubuntu 19.04

Step 1

The first step to take will be to add the 32-bit architecture (x86) since many applications are compatible only with said architecture, for this we execute the following:
 sudo dpkg --add-architecture i386 

image

Step 2

Once we have done this, we will import the WineHQ key by executing the following:
 wget -nc https://dl.winehq.org/wine-builds/winehq.key 

image

We will make a parenthesis to explain what WineHQ is. Wine is normally known as WineHQ by development issue and WineHQ offers releases based on two branches that are stable and development..

Step 3

The stable branch uses an annual release schedule, and offers minor updates usually every 2 weeks while the development branch has a biweekly release schedule with new features.
Once we import the key we proceed to add it by executing:
 sudo apt-key add winehq.key 

image

Step 4

The next step will be to add the Wine repository so that its installation is possible, for Ubuntu 19.04 we execute the following:
 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu disk main' 

image

Step 5

When this process ends we will see the following:

image

Step 6

After this we update the system packages including the repositories:
 sudo apt update 

image

Step 7

Finally we proceed with the installation of the stable version of Wine on Ubuntu 19.04 by running the following:
 sudo apt install --install-recommends winehq-stable 

image

There we enter the letter "S" to proceed with the download and installation of the stable version of WineHQ in Ubuntu 19.04.

Step 8

When this process comes to an end we will see the following:

image

Step 9

We can check the version of Wine installed by running:
 wine --version 

image


2. How to configure Wine on Ubuntu 19.04

Step 1

We will configure some aspects of Wine, for this we will use the following command:
 winecfg 
Step 2

The following message will be displayed:

image

Step 3

There we click on Install to proceed with these dependencies:

image

Step 4

After that, the following pop-up window will be displayed where we can configure details such as:
  • Storage units.
  • Audio
  • Applications
  • Bookstores
  • Application Graphics
  • Desks and more
image
Step 5

We will see that in the "Applications" tab it is possible to select the edition of Windows to imitate, these range from Windows 7 to Windows 10: image

3. How to use Windows applications with Wine in Ubuntu 19.04


We will be ready to run Wine on Ubuntu 19.04.
Step 1

We will go to the browser and download a Windows application:

image

Step 2

Once downloaded we verify that it is an executable file:

image

Step 3

We right click on the application and select "Open with another application":

image

Step 4

In the options window we select “Wine Windows Program Loader”:

image

Step 5

We click on “Select” to open this application, based on the downloaded application you will be deployed the wizard, for example, if we download Notepad ++ we will see the following:

image

Step 6

There we select the language and click OK and the typical Windows wizard will open:

image

Step 7

After completing the steps of the wizard we will see that the installation is correct:

image

Step 8

We can easily access the application installed on Ubuntu 19.04: image
Step 9

We check that Wine 4.0 has been updated:

image


4. How to upgrade to WineHQ 4.17 in Ubuntu 19.04


This is the new version of Wine recently launched which gives us functions such as:
  • Support for MSI patch files
  • Unicode data updated to Unicode 12.0
  • Joystick support improvements
  • Compatible with most programs in PE format
  • Correction of various errors
Step 1

The first step is to import and install the key which we did previously:
 wget -nc https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key 
If we don't have it, we must add the repository as seen in previous steps:
 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main' 
Now it is time to install dependencies not satisfied, in this case wine devel requires the libfaudio0 library which is not available in the Ubuntu 19 repositories, to solve this we will execute the following:
 sudo add-apt-repository ppa: cybermax-dexter / sdl2-backport 

image

Step 2

After this we install Wine 4.17 by executing the following:
 sudo apt install --install-recommends winehq-devel 

image

Step 3

Let's see that in this case the term “devel” (Development) has been used and not the term “stable”. Once this process is finished we can validate the Wine version:
 wine –version 

image

Step 4

Also, we can check it from the winecfg command:

image

Uninstalling Wine in Ubuntu 19.04
If for some reason we do not want to use more Wine, just run the following for uninstallation:
 sudo apt remove --auto-remove winehq-devel 

We have seen how we can run Windows applications in Ubuntu 19.04 with the same compatibility features, but it is good to clarify that not all 100% of the applications can be executed successfully in Ubuntu 19 but the vast majority..


by (3.5m points)
edited

Related questions

+3 votes
1 answer
asked Nov 6, 2020 in Linux / Unix by backtothefuture (552k points) | 789 views
+4 votes
1 answer
asked Feb 13, 2020 in Linux / Unix by backtothefuture (552k points) | 13.9k views
+4 votes
1 answer
asked Mar 19, 2020 in Linux / Unix by backtothefuture (552k points) | 972 views
+4 votes
1 answer
asked Sep 16, 2019 in Linux / Unix by backtothefuture (552k points) | 577 views
+5 votes
1 answer
asked Sep 16, 2019 in Linux / Unix by backtothefuture (552k points) | 239 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users