Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install and Use Wine on Ubuntu 20.04 - DesignLinux

Feb 08 2021
designlinux 0 Comments

Wine is an open-source compatibility layer that allows you to run Windows applications on Unix-like operating systems such as 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, allowing you to seamlessly integrate Windows programs into your desktop environment.

Not all Windows applications will run in Wine, and even if they do, they may not behave in the same way they normally would. The Wine AppDB is a database containing a list of applications that have been tested and confirmed to work under Wine.

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

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

Installing Wine 5.0 on Ubuntu #

The Wine packages are included in the default Ubuntu repositories and can be easily installed with the apt package manager. This is the easiest way to install Wine on Ubuntu. However, the distro version may lag behind the latest release of Wine.

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

sudo dpkg --add-architecture i386sudo apt update

Install Wine:

sudo apt install wine64 wine32

Once the installation is complete, verify it by printing 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 machine, and you can start using it.

Installing Wine 6.0 on Ubuntu #

In this section, we will provide a step by step instructions about how to install Wine version 6 on Ubuntu 20.04.

If you are running a 64-bit Ubuntu system, enable the 32-bit architecture and update the packages list:

sudo dpkg --add-architecture i386sudo apt update

Import the WineHQ repository’s GPG key:

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 http://dl.winehq.org/wine-builds/ubuntu/ $(lsb_release -cs) main"

Install Wine by typing:

sudo apt install --install-recommends winehq-stable

This will install a bunch of packages. Once completed, verify the Wine installation by typing:

wine --version

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

wine-6.0

Wine has been installed and ready to be used.

Configuring Wine #

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

winecfg

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

Ubuntu winecfg mono

Click on the “Install” button, and the installation will start. Once done, a new dialog will appear, prompting you to install Gecko. Again click on the “Install” button.

When the installation is completed, the Wine configuration dialog will be shown. Here you can configure various Wine settings. The default settings should be sufficient in most cases. Once finished, close the dialog box.

Ubuntu wine configuration

Installing Notepad++ on Ubuntu #

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

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

Once the download is complete, start the installation by right-clicking on the .exe file and selecting “Open With Wine Windows Program Loader”.

Ubuntu Notepad++ download

The installation wizard will start, select the language, and install Notepad++ in the same way you would install any application on a Windows computer.

Ubuntu Notepad++ install

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.

Ubuntu Notepad++

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

Conclusion #

We’ve shown you how to install Wine on Ubuntu 20.04 desktop and how to install Windows applications.

If you hit a problem or have feedback, leave a comment below.

wine ubuntu

Related

Tags: ubuntu, wine

8 Top Open Source Reverse Proxy Servers for Linux

Prev Post

Top 7 Apps to Install for Your Nextcloud Instance

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 595
  • 572,988

DesignLinux.com © All rights reserved

Go to mobile version