I had a lot of review regarding to the Linux and Windows software. When ever people install Linux then they often look for the Windows software. Most of Free software which are available might be available to the windows platform only, But do not worry i have a best way to deal with it. Most of people wish to have an emulator for exe. When ever they want to use the Windows Software.
WINE (Wine is not Emulator)
Wine is the platform which create the environment on Linux to run the windows software. It Runs windows software as the Linux software and don't make you to feel you are using the external software or emulator. There are two way to install Wine. Either you Choose the GUI process of CUI process it depend on you. If you want to install Through GUI
just go to Software manager>Type wine> Select Wine-stable>Make it install.
Wine will be installed in /opt/wine-stable/ directory. After the installation is complete, we need to add /opt/wine-stable/bin/ to the user PATH. Run the following command to open the .profile file. Nano is a command line text editor. The ~ (tilde) represents your home directory.
nano ~/.profile
Press Ctrl+W, then Ctrl+V to move the cursor to the bottom. Add the following line at the end of the file.
export PATH="$PATH:/opt/wine-stable/bin"
To save the file, press Ctrl+O, then press Enter to confirm. To exit the file, press Ctrl+X. After that, log out and log back in for changes in .profile to take effect.
Now Lets go to the CUI style.
Open the terminal or press Ctrl+Alt+T.
Click command "uname -p" to check if you have a 32 bit or 64 bit system. If it is 32-bit then x86 will appear and x86_64 for 64 bit.
If your system is 64 bit, enable 32 bit architecture with the following command.
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
Next, run the following command to download the public key for the Wine repository.
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
Now import this key to the system keyring
sudo apt-key add winehq.key
Then, issue the following command to add Wine repository.
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Update package repository cache and install Wine stable version.
sudo apt update
sudo apt install --install-recommends winehq-stable
When Wine is installed then just type
winecfg
It will create a .wine directory, also known as wine prefix or wine bottle, under you home directory. The virtual C drive will be created in this directory. Also this command will help you install Wine mono and Wine gecko package. Now download any Exe file and run it with wine. Just right click on the .exe then "open with wine windows program loader" will appear. You can run any windows software.
Purge Wine from Ubuntu
To purge Wine from Ubuntu, start by opening up a terminal window. You can do this by pressing Ctrl + Alt + T on the keyboard. Or, search for “Terminal” in the app menu.
Once the terminal window is open, start by deleting the Wine folder in your home directory using the rm command.
rm -rf ~/.wine
After deleting this folder, uninstall all Wine packages. Be sure to use the –purge command-line switch to erase any configuration files that Wine has on Ubuntu.
sudo apt-get remove wine* --purge
When the installation is complete, you’ll also have to run the autoremove command to eliminate any leftover Wine packages that might still be there on the system.
sudo apt-get autoremove -y
EmoticonEmoticon