If you are using a Linux-based Ubuntu operating system and need to use a Windows-supported application, you can opt for Wine, which is completely legal and free.
How to Configure and Use Wine on Ubuntu
Under normal circumstances, you cannot run a Windows application on Linux / Ubuntu. Therefore, to run a Windows program on your system using the Wine program, you can install and run any program on your computer.
You can run Windows applications with WineHQ software on Ubuntu 14.04 / 16.04 / 16.10 / 17.04 / 17.10 / 18.04 and Ubuntu 18.10 / 19.04. After installing this program on your computers, you can install easily run the Microsoft Office, Adobe PhotoShop programs.
In this article, we will examine step by step how to install WineHQ on Ubuntu, one of the most popular Linux distributions.
The latest version of Wine is 5.0. WineHQ team released Wine 5.0 Stable, Devel and Staging versions on January 22, 2019.
How to Install Wine 5.0
The latest version of Linux / Ubuntu is 19.10. You can install a Notepad ++, Photoshop program on your Ubuntu 18.10 system, and even run the most popular mobile game PUBG Mobile and PUBG PC on your Ubuntu computer today.
To build Wine on your system, follow the steps below.
First, ping Google with the “ping -c 2 www.google.com” command in Ubuntu Terminal to test the Internet connection.
ping -c 2 www.google.com
If your Ubuntu system is 64-Bit, enable 32-Bit architecture. To do this, execute the command “sudo dpkg –add-architecture i386” in the Terminal.
sudo dpkg --add-architecture i386
You need to download Key from WineHQ. In the terminal, execute the command “wget -nc https://dl.winehq.org/wine-builds/winehq.key“.
wget -nc https://dl.winehq.org/wine-builds/winehq.key
To add the Key, execute the command “sudo apt-key add winehq.key” in the Terminal.
sudo apt-key add winehq.key
Apply one of the following commands, depending on the type of system you use to add WineHQ to your repo.
Run the following command for Ubuntu 19.10:
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main'
For Ubuntu 18.04 and 18.10, run this command:
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
Run the “sudo apt update” command to update the Ubuntu package list.
sudo apt update
Now run “sudo apt install –install-recommends winehq-stable” to start the installation.
sudo apt install --install-recommends winehq-stable
Press Y to confirm the installation of dependent packages for Wine, then press Enter.
Click on the Install button to install the Mono package to ensure that applications that require the .NET framework run correctly.
Also, click the Install button to install the Gecko package required for embedded HTML applications.
After installing Wine, you can learn the Wine version by using the “wine –version” command on the Terminal. You must also use the “winecfg” command to run it.
After you have successfully set up Wine, you can check the version of the program in the About section.
Step-by-Step Wine Configuration ⇒ Video
You can watch the video below to install Wine step by step and also subscribe to our YouTube channel to support us.
How to Install Wine on Ubuntu 17.10
After you make sure you have an Internet connection to run WineHQ on Ubuntu 17.10, you can proceed to the installation steps.
To check your Internet connection, open Terminal in Ubuntu and test your connection with the ping -c 2 www.google.com command.
Open Ubuntu Terminal and type sudo dpkg –add-architecture i386 and press Enter.
To download the Wine Key file, type the following command and press Enter.
wget -nc https://dl.winehq.org/wine-builds/Release.key
After downloading the Key file for Wine, execute the sudo apt-key Release.key command.
To add the wine program to the repository, perform the following command.
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
To update the Ubuntu package list, use the sudo apt-get update command.
Finally, follow the command below to start the installation.
sudo apt-get install --install-recommends winehq-stable
In the image below, it states that the necessary packages for Wine will install. Press Y to continue Wine installation.
The WineHQ installation will complete in approximately 5 minutes.
How to Run Windows Programs on Linux
After setting up Wine to run Windows programs on macOS, Linux, and Android, we will run Notepad++ as an example.
To install Notepad ++, first download Notepad. Move the Notepad ++ program you downloaded to the Ubuntu desktop and then follow the steps below.
Click on the other applications to open Notepad.exe with Wine and select Wine Windows Program Loader as in the image below.
The installation of Notepad on Ubuntu will start as follows. Set the language for Notepad installation and click OK.
Continue by clicking Next in the Wizard window.
Click on the I Agree button to accept the Notepad++ ++ license agreement.
After installing Notepad ++, start the program.
As you can see in the image below, we ran a Windows program using the Wine program!
In this article, we have examined how to use Wine to run Windows applications or games on Ubuntu. Thanks for following us!
♦ How to Update the Softwares in Ubuntu
♦ How to Install VMware on Ubuntu
♦ How to Install Ubuntu on VMware
♦ How to Reset Root Password in Ubuntu
♦ How to Install VMware Tools in Ubuntu