• Ubuntu
  • Python
  • Windows
  • VirtualBox
  • Git
  • Docker
  • Windows
Chat
Writy.
No Result
View All Result
My Account
Writy.
No Result
View All Result
sxi
No Result
View All Result

Home Installing Wine on Debian 10

Installing Wine on Debian 10

SXI ADMIN by SXI ADMIN
February 13, 2020
in Windows
Reading Time: 9 mins read
A A
0
Share on FacebookShare on Twitter
Wine is a Windows compatibility layer for Linux. It is used to run Windows applications on Linux.  In this article, I am going to show you how to install Wine on Debian 10 and run a Windows application on Debian 10 using Wine. So, let’s get started.

Enable 32-Bit Support:

In order to run Wine, you need to enable 32-bit support on Debian 10.

To enable 32-bit support on Debian 10, run the following command:

$ sudo dpkg –add-architecture i386

Enabling contrib and non-free Repositories:

Now, to enable the Debian 10 contrib repository, run the following command:

$ sudo apt-add-repository contrib

The contrib repository should be enabled.

Now, to enable the Debian 10 non-free repository, run the following command:

$ sudo apt-add-repository non-free

The non-free repository should be enabled.

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

$ sudo apt update

The APT package repository cache should be updated.

Installing Wine:

Now, you can install Wine with the following command:

$ sudo apt install wine wine64 wine32 winbind winetricks

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

APT package manager will download and install all the required packages from the internet.

If you want WINS support, then, select <Yes>. Otherwise, select <No>. If you don’t know what it is, just select <yes>. Then, press <Enter>.

Wine should be installed.

Installing Windows Programs Using Wine:

I’ve downloaded 64-bit version of Notepad++ EXE installer from the official website of Notepad++. I will be showing you how to install this program using Wine in this section. You should be able to install other Windows applications the same way. Not every Windows applications work. So, you will have to try and see what works and what does not.

First, navigate to the directory where you have your EXE installer file. In my case, it’s the ~/Downloads directory.

$ cd ~/Downloads

The Notepad++ installer file (npp.7.7.1.Installer.x64.exe) is here as you can see.

Now, to start the installer, run the following command:

$ wine npp.7.7.1.Installer.x64.exe

As you can see, the Notepad++ installer has started. Now, you can install Notepad++ the same way you install it on Windows. Click on OK.

Click on Next >.

Click on I Agree.

Click on Next >.

Click on Next >.

Click on Install.

Notepad++ is being installed.

Once the installation is complete, uncheck Run Notepad++ checkbox (optional) and click on Finish.

Starting Notepad++:

Now that you’ve installed Notepad++, it should automatically be listed in the Application Menu of Debian 10 as you can see in the screenshot below. Just click on the Notepad++ icon to start it.

As you can see, Notepad++ is running correctly.

Some apps may not be accessible from the Debian 10 Application Menu. In that case, you have to start it manually.

Wine keeps all the files in the ~/.wine directory. To open the ~/.wine directory with nautilus file manager, run the following command:

$ nautilus ~/.wine

In the ~/.wine directory, there should be a drive_c/ directory. This is the virtual C:/ drive for the windows apps you’ve installed using Wine.

In the drive_c/ directory, you have your usual Program Files/ and Program Files (x86)/ windows directories. 64-bit software will be installed on the Program Files/ directory and 32-bit software will be installed on the Program Files (x86)/ directory unless specified during the installation.

The Notepad++ app I’ve installed is a 64-bit program. So, it’s available under Program Files/ directory as you can see.

In the Notepad++/ directory, the notepad++.exe is available. This is the main executable file responsible for starting the Notepad++ program.

Now, open a terminal in this directory by Right Mouse Clicking on the directory and selecting Open in Terminal.

Now, to verify whether notepad++.exe can start Notepad++, run the following command:

$ wine notepad++.exe

Notepad++ runs. Great!

Now, find the full path to the notepad++.exe executable with the following command:

$ echo "$(pwd)/notepad++.exe" | sed ‘s/ /\ /g’

NOTE: Replace notepad++.exe with the program name that you’re trying to run.

Note the output of this command as you will need it shortly.

Now, create a desktop shortcut file notepad.desktop in the ~/.local/share/applications directory with the following command:

$ nano ~/.local/share/applications/notepad.desktop

Now, type in the following lines of code in the file.

[Desktop Entry]
Name=Notepad++
Categories=Development
Comment=Simple Text Editor
Encoding=UTF-8
Exec=wine /home/shovon/.wine/drive_c/Program Files/Notepad++/notepad++.exe
StartupNotify=false
Terminal=false
Type=Application
Version=1.0

NOTE: Don’t forget to replace the bold text with the output of the command that I told you to note earlier.

The final notepad.desktop file looks as follows. Now, save the file by pressing <Ctrl> + X followed by Y and <Enter>.

Now, add executable permission to the notepad.desktop file with the following command:

$ chmod +x ~/.local/share/applications/notepad.desktop

Now, you should be able to find a new desktop entry in the Application Menu of Debian 10. Click on it to start your desired program.

As you can see, Notepad++ starts as usual.

So, that’s how you install Wine on Debian 10 and install Windows application using Wine on Debian 10. Thanks for reading this article.

Total
0
Shares
Share 0
Tweet 0
Pin it 0
Share 0
SXI ADMIN

SXI ADMIN

Related Stories

Remote Desktop Manager Enterprise Edition 2021 Full key

Remote Desktop Manager Enterprise Edition 2021 Full key

by SXI ADMIN
May 17, 2021
0

Download Remote Desktop Manager Download Full Name Email Serial AppNee Freeware Group. [email protected] 31J86B851WNW9OXFIN8K52G45 41NRGEY8NS3UHKI5XFOF1M0Q7 11D5RTK07R3YMJ74XXAQWYOX9 21GK964KFEWOJOLWRIVECVUW8 019D1W9W71QILSPOLM3DO6Q39 Download and...

How to Install Samba on Ubuntu

How to Install Samba on Ubuntu

by SXI ADMIN
February 13, 2020
0

In this article, I am going to show you how to install Samba on Ubuntu and share files with Windows...

How to remotely control Linux Systems from Windows

How to remotely control Linux Systems from Windows

by SXI ADMIN
February 13, 2020
0

With remote access, a user can access the files and the data in another system from a remote location without...

Install and Configure WINE on Ubuntu 18.04 LTS

Install and Configure WINE on Ubuntu 18.04 LTS

by SXI ADMIN
February 13, 2020
0

WINE is a windows compatibility layer for Linux. WINE is used to run Windows applications on Linux.  In this article,...

How to Install virtio Drivers on KVM-QEMU Windows Virtual Machines

How to Install virtio Drivers on KVM-QEMU Windows Virtual Machines

by SXI ADMIN
February 13, 2020
0

In this article, I am going to show you how to install Windows on KVM/QEMU virtual machines that uses virtio...

How to Create a Windows 10 Installer USB from Linux

How to Create a Windows 10 Installer USB from Linux

by SXI ADMIN
February 13, 2020
0

If you need to build a booteable USB stick with Windows under Linux this tutorial shows the steps to follow...

Load More
Next Post
How to Format USB Drive on Linux

How to Format USB Drive on Linux

Popular Story

  • EMEDITOR PROFESSIONAL Full Key V11~V19

    645 shares
    Share 258 Tweet 161
  • Plesk Obsidian Lifetime license Key Version 18.0.15

    644 shares
    Share 258 Tweet 161
  • Plesk Onyx + Obsidian 18 Web Host Edition Nulled/Crack

    614 shares
    Share 246 Tweet 154
  • How To Start/Stop/Restart Cron Service In Linux Centos 7

    610 shares
    Share 244 Tweet 153
  • Download Windows Templates for Virtualizor KVM Windows server 2008,2012,2016,2019

    608 shares
    Share 243 Tweet 152
SXI.IO

© 2022 Vps giá rẻ

Navigate Site

  • Ubuntu
  • Python
  • Windows
  • VirtualBox
  • Git
  • Docker
  • Windows

Follow Us

No Result
View All Result
  • Ubuntu
  • Python
  • Windows
  • VirtualBox
  • Git
  • Docker
  • Windows

© 2022 Vps giá rẻ