Install and Configure WINE on Ubuntu 18.04 LTS

29/12/2020
Chưa phân loại
WINE is a windows compatibility layer for Linux. WINE is used to run Windows applications on Linux.  In this article, I am going to show you how to install and configure WINE on Ubuntu 18.04 LTS. So, let’s get started.

Enable 32-bit Support:

In order to run Wine, you need to enable 32-bit support on Ubuntu 18.04 LTS.

To enable 32-bit support on Ubuntu 18.04 LTS, run the following command:

$ sudo dpkg –add-architecture i386

Adding Required Packages Repositories for Wine:

The latest version of Wine (Wine 5) is not available in the official package repository of Ubuntu 18.04 LTS. But you can easily add the official package repository of Wine on Ubuntu 18.04 LTS and install Wine 5 from there.

First, download the GPG key of the official Wine package repository with the following command:

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key

The GPG key should be downloaded.

Now, add the Wine GPG key to Ubuntu 18.04 LTS with the following command:

$ sudo apt-key add winehq.key

Now, add the official Wine package repository with the following command:

$ sudo apt-add-repository ‘deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main’

The official Wine package repository should be added.

Wine depends on some libraries that are not available in the official package repository of Ubuntu 18.04 LTS. So, we will have to download and install it from the OpenSUSE’s Wine repository.

Now, download the OpenSUSE Wine repository’s GPG key with the following command:

$ wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/
xUbuntu_18.04/Release.key

The GPG key should be downloaded.

Now, add the GPG key to Ubuntu 18.04 LTS with the following command:

$ sudo apt-key add Release.key

Now, add the OpenSUSE Wine repository to Ubuntu 18.04 LTS with the following command:

$ echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:
/Debian/xUbuntu_18.04 ./"
| sudo tee /etc/apt/sources.list.d/wine-obs.list

Now, update the APT package repository cache with the following command:

$ sudo apt update

The APT package repository cache should be updated.

Installing Wine 5 on Ubuntu 18.04 LTS:

Now, you’re ready to install Wine 5 on your Ubuntu 18.04 LTS machine.

To install Wine 5, run the following command:

$ sudo apt install –install-recommends winehq-stable

To confirm the installation, press Y and then press <Enter>.

APT should start downloading all the required packages from the internet.

Once all the packages are downloaded, APT should start installing them.

At this point, Wine 5 should be installed.

Configuring Wine 5:

Now that Wine 5 is installed, you can configure it.

To configure Wine 5, run the winecfg command as follows:

$ winecfg

Wine will do some initial configuration. It may take a while.

Wine will ask you to install the wine-mono package. Click on Install.

wine-mono package is being installed.

After wine-mono is installed, you will be asked to install Gecko. Click on Install.

Gecko package is being installed.

After Gecko is installed, you will be asked to install Gecko. Click on Install.

Gecko package is being installed.

Once everything is installed, you should see the Wine configuration window.

Click on the About tab. You should be running Wine 5.0.

From the Applications tab, you can select your Windows version.

From the Libraries tab, you can manage Windows libraries used by the installed Windows applications.

You can add override for libraries using the dropdown menu. Select your desired library and click on Add to add it as an override library.

You can also select an override library and click on Edit… to change override settings for the library.

Select your desired override setting and click on OK.

You can also remove override libraries. Just select the one you want to remove and click on Remove.

Finally, click on Apply for the changes to take effect.

From the Graphics tab, you can configure graphics settings for the Windows apps.

From the Desktop Integration tab, you can install themes, change themes, change theme settings, font size, colors etc. for the Windows apps.

From the Audio tab, you can configure audio for the Windows apps.

From the Drives tab, you can map a Linux path to certain Windows drive letter and access them from your Windows apps.

Installing Windows Apps Using Wine:

Once Wine 5 is installed and configured, you can easily install Windows apps on your Ubuntu 18.04 LTS machine.

In the ~/Downloads directory, I have Notepad++ windows installer file npp.7.8.4.Installer.exe as you can see in the screenshot below.

Now, run npp.7.8.4.Installer.exe installer with Wine 5, run the following command:

$ wine npp.7.8.4.Installer.exe

As you can see, the Notepad++ installer is running. Now, you can install Notepad++ as usual.

Notepad++ setup window.

Notepad++ is being installed.

Notepad++ is installed.

Notepad++ is running on Ubuntu 18.04 LTS using Wine 5.

Once Notepad++ is installed, you should be able to access it from the Application Menu of Ubuntu 18.04 LTS as you can see in the screenshot below.

Notepad++ started from the Application Menu of Ubuntu 18.04 LTS. It’s fully functional.

Not all Windows application will function properly under Wine. Some applications work without any problem, some work with limited features, some work after a few tweaks, some doesn’t work at all.

Before you try to install any Windows software using Wine on Ubuntu 18.04 LTS, check whether Wine can run it in the official application database website of Wine.

So, that’s how you install and configure Wine 5 on Ubuntu 18.04 LTS. Thanks for reading this article.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Postfix Mail Queue Management

Postfix Mail System is the one of the most widely used mail systems along with Exim. In the initial days postfix was widely...
29/12/2020

How to install Apache JMeter in Ubuntu

After developing a new website, it is very important to perform some tests to find out the limitation of the site, and...
29/12/2020

Battle For Wesnoth 1.13.6 Development Released, Install on Ubuntu 17.04 Zesty

Battle For Wesnoth 1.13.6 released last month, is the sixth development release in the 1.13.x series and it delivers a...
28/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Hướng Dẫn Chọn Dịch Vụ Thuê Địa Chỉ IPv4
10/03/2025

Reliable IPv4 and IPv6 Subnet Rental Services: The Perfect Solution for Global Businesses
23/12/2024

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024