In this article, we will examine how to set up Wine Stable 7.0, which allows you to run and use Windows-based programs on Ubuntu 22.10 (Kinetic Kudu) distribution, and how to run an exe software.
How to Set Up and Use WineHQ 7.0 on Ubuntu 22.10
If you are using a Linux-based Ubuntu operating system and need to use an application supported by a Windows operating system, you can choose the completely legal and free software Wine.
Under normal circumstances, you cannot run a Windows application on Linux/Ubuntu. Therefore, by using the program called Wine to run a Windows program on your system, you can install and run any program on your computer.
You can run Windows applications with WineHQ software on old and new distributions of Ubuntu. After installing this program, you can also install programs such as Microsoft Office, and Adobe PhotoShop on your computer and run them easily.
The latest version of Wine software is 7.0. The WineHQ team released versions of Wine 7.0 Stable, Devel, and Staging on January 18, 2022.
How to Install Wine 7.0
You can install, for example, a Notepad++, or Photoshop program on your Ubuntu 22.10 system, and you can even run the most popular computer games on your computer today.
First, Ping Google with the command “ping -c 2 www.google.com” in the terminal to test the Internet connection. Then, if your Ubuntu system is 64-Bit, enable 32-Bit architecture. To do this, execute the “sudo dpkg –add-architecture i386” command in the terminal.
Before downloading Wine Key from WineHQ, edit the folder permissions by using the “sudo mkdir -pm755 /etc/apt/keyrings” command in the terminal. Then execute the “sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key” command in the terminal to download the Winehq-archive.key file to /etc/apt/keyrings and add it to your system.
Press Y and then Enter to confirm the installation of dependent packages for Wine.
After installing Wine on Ubuntu, execute the “winecfg” command in the terminal to start the program. Some necessary files may need to be configured at this stage, so wait for the process to complete.
Click the Install button to install the Wine Mono package, which enables the applications that need the .NET framework to run correctly.
After installing the Wine Mono package, you can check the Wine version with the “wine –version” command in the terminal or from the GUI interface.
How to Run Windows Programs on Ubuntu
After installing Wine to run Windows programs on macOS, Linux and Android, we will run Notepad++ as an example.
Download the latest version of the Notepad program to your Ubuntu system from the website and go to the Downloads location. To open the Notepad.exe file with Wine, right-click on the file, then click Open With Other Application and then select Wine Windows Program Loader as in the image below.
NOTE: If you want to install via terminal, copy the download link of the program and download it using the wget command, and then you can start the wizard with the “wine FileName.exe” command.
When the Notepad setup wizard opens, select the language of the program and click the OK button.
Continue by clicking the Next button in the Wizard window.
Click the I Agree button to accept the Notepad++ license agreement.
You can manually select the installation location or select the location configured by default. Just click Next at this step to install to the default location specified during the installation phase.
Since you will be installing it on the Linux distribution in the components selection window, you may not see some options here, but this is not a problem that will prevent the program from running. Therefore, continue the installation by clicking the Next button.
After installing the Windows-based program, select the Create Shortcut on Desktop option and click the Install button to create a desktop shortcut.
After the Notepad++ installation is complete, start it.
You can now see a Windows program running smoothly on the Ubuntu distribution.
NOTE: Finally, to make the desktop shortcut icon visible, right-click on it and then click Allow Launching. In the right part of the image below, you can see that the icon is now visible and working.
How to Uninstall Wine
If you want to uninstall or delete Wine from your Linux computer, we recommend that you first backup your projects.
Execute the “sudo apt remove wine*” command in the terminal to remove all WineHQ-related packages from your system.
sudo apt remove wine*
Press Y followed by Enter to confirm removing all dependent packages related to Wine-Stable, WineHQ-Stable-AMD64, and WineHQ-Stable.
After completely uninstalling Wine, execute the “sudo apt autoremove && sudo apt autoclean” command in the terminal to automatically clean unnecessary residual files and packages on your system.
sudo apt autoremove && sudo apt autoclean
The total size of unnecessary residual files on your Ubuntu PC is 1 GB. Press Y and Enter if you confirm deleting all files from your system.
Finally, to delete WineHQ resources from your system’s repo list, execute the commands below in the terminal and then check that the program is uninstalled with the “wine –version” command.