How open exe file on linux

Как запустить .exe из командной строки Linux

Я новичок в Linux. В настоящее время я пытаюсь написать командную строку, которая должна выполнить * .exe внутри папки abc.

Но ошибка говорит no such file or directory .

но если это действительно программа для Windows, вам нужно установить «wine», затем выполните:

но только некоторые программы Windows будут работать под Wine.

Этот ответ объединяет другие ответы на этот вопрос в один.

Файл info.exe будет выполняться в Linux или Windows, но не в обоих случаях.

Выполняется под Windows

Если файл является файлом Windows, он не будет работать под Linux самостоятельно. Так что, если это так, вы можете попробовать запустить его под эмулятором Windows (WINE). Если он не совместим с Wine, вы не сможете выполнить его под Linux.

Прежде чем начать, вам нужно будет установить Wine. Шаги, необходимые для установки wine, будут зависеть от используемой вами платформы linux. Вы можете, вероятно, гуглить «Ubuntu install wine», если, например, вы устанавливаете Ubuntu.

После того, как вы установили Wine, вы сможете выполнять эти команды.

Выполнить под Linux

если вы знаете, что этот файл запускается под linux, то вы захотите выполнить эти команды:

Перейдите в каталог abc

Тогда вы хотите изменить права доступа , чтобы Л.Л. пользователей электронного х ecute этого файл (а + х). Вы могли бы также позволить только ˙U ГЭЭ е х ecute (и + х)

Запустите программу, ./ заставляет командную строку искать в текущем пути файл для выполнения (если директория ‘current’ отсутствует в переменной окружения $ PATH.

Источник

How to Install and Run EXE Files in Linux Environment

Install and run EXE files in Linux environment is very much necessary sometimes. There are few much-needed Windows applications, which require to be installed in Linux and run the exe file on Linux or Ubuntu OS. I am a Ubuntu user, the OS runs in Linux kernel and I am curious to know: “can Linux run exe?”. I need some Windows software occasionally to run in my PC. It is not always possible to shift the OS for running a specific Windows software. Either, you need to boot Windows from a dual booting computer, otherwise you want a separate PC (that has a Windows OS). The best thing is if you, anyhow, manage to install the Windows software or exe files and run it inside Linux or Ubuntu OS.

If you are new at Linux OS and don’t know much about it, then let me define Linux OS at first.

The Linux OS is open source, free distributed and cross-platform operating system which runs on Unix base. Linux can be installed easily on a PC, laptop, mobile, tablet, sever, super computer, video game console (supports low end to high end configuration) etc. Moreover, the operating system is much more secure and light-weight than any other popular OS like Windows, Mac and so on.

Linux mainly uses the ext4 file system; the file format is completely different than the executable file system i.e. .exe file. EXE files are used in Windows OS. So, basically it is hard to use an exe file in Linux architecture. But, using different software like WineHQ, PlayOnLinux, etc. in your Linux operating system, one can easily install and run different favorite Windows software on Linux OS.

How to Open, Run or Install Exe Files on Linux Ubuntu Using ‘Wine’

Do you know the answer of the question: “Can Linux run exe?”. To run exe files on Linux you need to install ‘Wine’ on Linux or on Ubuntu. ‘Wine’ is an open source Linux based free program that allows any Linux version (Ubuntu, Linux Mint) users to install and run Windows applications. Wine is very much useful for programmers and developers (with a software library WineLib) to compile, modify any Windows application in Unix environment.

Читайте также:  Функции межсетевого экрана windows

Download and Install Wine:

You need to download the specific version of Wine from the official website WineHQ (https://www.winehq.org/). In the download page, you will get all the major wine versions of Linux. Select the Linux version (among all the versions of Linux like Ubuntu, Red Hat, etc.) you are using and download the Wine program. If you are unable to find the exact version of the OS, then try to find the related version from the list that is the base version (for example, Debian is the base version of Linux Mint). Related version of Wine should work on your Linux PC. Click on the preferred link and click on on-screen installation instruction. After you download the Wine software from the link, right click on the icon of the program, select install option and follow the steps. After successful installation of Wine apps, it will create a new folder (.wine) at the home/user-name (user name must be the user name given by you at the time of user profile creation) directory.
Initially, .wine folder will be invisible to you unless you press the Ctrl+H together to show hidden files. Then open .wine folder and navigate to the path ../.wine/drive_C/Program Files . The full path will be:

This is your program files folder where you can put Windows apps and install it to Linux. In the next step, you have to download .exe file and move the file to program files folder. Then right-click on that file and select open with option. Choose Wine windows program loader to install and run the Windows application in Linux.

Linux Ubuntu 10.04 and later version users can install Wine on their Linux system direct from the ‘Ubuntu Software Center’. Method is as follows:

  • Open Applications and navigate to Software Center.
  • In the search bar, enter ‘Wine’ and press Enter to search for that.
  • Click on Install button of Wine that you get from the search list.
  • It will create a virtual C:\ drive on your Ubuntu automatically.
  • Now you can open .exe files and install them in virtual c:\ drive of your Linux system.

Older versions and other versions users should follow these steps to add Wine to Linux:

  • Navigate to System >> Administration >> Software Sources.
  • Select the other software section and select Add button.
  • Then to install the Wine program in Linux, add the following line in the terminal box: ppa:ubuntu-wine/ppa
  • Alternatively, you can use the command from the terminal to install add Wine:

Every Linux version follows separate installation procedure. But there is a common method to install Wine program to any Linux OS. You need to run a command at the Linux terminal to install Wine.

You must have an active internet connection and super user permission (root access) to add Wine to Linux. A Ubuntu user can use Alt+F2 shortcut to open run box, type “gnome-terminal” and press Enter to open the terminal. Type su to change your access to root access. You will be asked for Administrative or root password and then run the commands.

Steps to Install Wine on Linux Ubuntu:

Ubuntu is the most popular version of Linux environment. Here I mention the steps to install Wine in Ubuntu 19.10. For different version of the Ubuntu, the mentioned command needs some modifications which I also mention in the detail below.

  1. Press and hold Ctrl+Alt+T together to open up the Terminal window in Ubuntu.
  2. Enter the following terminal command to enable 32-bit support. Account password is mandatory in this step.
  3. To add and install Wine repository key, enter the following command to add support:
  4. Now, execute the mentioned command to add the Wine repository only in Ubuntu 19.10:
  5. Use the modified command to add the Wine repository for Ubuntu 18.04 and Linux Mint 19.x:
  6. Use the command to add the Wine repository in Ubuntu 16.04 and Linux Mint 18.x:
  7. libfaudio0 is very much required to use WineHQ and use the following command to add it.
  8. That’s all. Now, your Ubuntu OS is ready to run Windows files/.exe files.
Читайте также:  M4n68t le v2 драйвера для windows 10

How to Run and Install Exe File on Linux or Ubuntu:

Method#1: In the above section, I have already mentioned the process of installing a Windows program on a Linux OS. However, if the method does not work, you can use the command method to open and run exe file. The command should be something like this:

A Linux Mint user can use the command for the same purpose:

Note: Replace the ‘app-setup-file-name’ with actual the setup file name.
Before doing that change the directory location to that folder, exactly where the setup file is located. For example, if you keep the exe set-up file to desktop, then before run the above command, you need to run another command i.e.

Otherwise, by navigating Applications >> Wine >> Programs and from the program’s list, you can run the exe program in your Linux PC.

Method #2 (Alternative method):

  • After performing the above mentioned steps to install WineHQ on your Linux PC, you need to restart the computer and make sure that the WineHQ is installed correctly to your PC.
  • Now, download the Windows executable file i.e. .exe file on your Linux computer.
  • Right click on the file and select Wine Windows Program Loader option from the right-click context menu. If the option is not available in the right-click context menu, try the Other option and find the Wine Windows Program Loader option there.
  • Wine might prompt for the installation of Wine Gecko and Wine Mono installers. Install them accordingly.
  • Now, you are ready to go through the Windows software installation wizard.
  • Finish the Windows .exe file/software installation process and run it on your Linux OS.

Note: Wine creates an environment to install and run windows applications in Linux. But, sometime Wine fails to run some applications. In that case, you can give a try with PlayOnLinux to run those programs.

Install Windows Apps on Linux Ubuntu Using ‘PlayOnLinux’

Like ‘Wine’, PlayOnLinux provides a compatibility layer which allows Linux users to install Windows-based software and exe files. A Linux novice user gets in trouble while installing Wine. However, PlayOnLinux is very easy to install. It has the identical functionality just like Wine. Apart from it, the software supports a wide variety of applications. You may call it the graphical front end tool of Wine which provides a very simple solution for installing Windows OS.

PlayOnLinux supports popular Windows applications like Adobe Photoshop, Safari Browser, MS Office etc. The company fixes all the bugs and gives uses a smooth experience with Windows software, applications and .exe files installation. It also supports modern games and patches as well.

You can download the PlayOnLinux from the following link:

To install the software use the following commands step wise:

A game-maniac can take help of Lutris to play some simple and strategic game on a Linux PC. Use the following command to install Lutris:

In this tutorial, I have described how to install and run exe files (Windows executable files) on a Linux computer (Ubuntu or Linux Mint PC). So far, Wine is the only program which allows Windows program to be installed on Linux. However, PlayOnLinux is the modern alternative that helps you installing .exe to Linux so that you can run your favorite Windows applications on your Linux OS.

Источник

Запуск EXE-файлов в Linux

Шаг 1: Установка Wine

Запуск EXE-файлов в Linux — задача несложная, однако небольшие трудности заключаются в поиске инструментов, позволяющих справиться с этим. Популярной программой является Wine, и ее аналогов почти нет, а существующие неизвестны практически никому. Поэтому в сегодняшней статье мы поговорим именно об этом решении. Начать стоит с его добавления в дистрибутив, поскольку по умолчанию Wine отсутствует в любой сборке ОС, основанной на Linux.

Способ 1: Менеджер приложений

Существует несколько доступных вариантов инсталляции Wine. Первый подразумевает использование менеджера приложений, который встроен в популярные дистрибутивы, основанные на Debian или RedHat. В первую очередь рассмотрим именно этот вариант, а осуществляется поставленная цель так:

  1. Откройте основное меню, кликнув по соответствующей кнопке, и запустите оттуда «Менеджер приложений».

Отыщите кнопку поиска, чтобы открыть строку для ввода названия программы.

Напишите Wine и опуститесь вниз по списку, чтобы найти подходящий вариант.

Для начала этой процедуры придется подтвердить подлинность учетной записи, введя пароль.

Читайте также:  Windows 10 ярлыки быстрого запуска

Ожидайте завершения инсталляции. Данная операция займет несколько минут, поскольку Wine является объемным приложением.

После нажмите на кнопку «Запустить», чтобы выполнить предварительную конфигурацию.

Сейчас давайте приступим к рассмотрению альтернативного варианта инсталляции, если этот вам не подходит, а о предварительной настройке установленного инструмента поговорим в отдельном шаге данного материала.

Способ 2: Официальные репозитории

Как известно, программы в «Менеджере приложений» находятся в официальных репозиториях, а принцип их установки основан на терминальных командах. Именно их и следует задействовать в тех случаях, когда нет возможности открыть решение с GUI или оно попросту отсутствует в используемом дистрибутиве. Не переживайте, управление консолью не является чем-то сложным, в чем и удостоверимся далее.

    Запустите «Терминал» удобным для вас образом, например, через меню приложений или горячую клавишу Ctrl + Alt + T.

В появившейся строке введите sudo apt install wine-stable . Если вы используете дистрибутив, основанный, например, на RedHat, следует заменить пакетный менеджер APT на установленный в текущей сборке. Это может быть, например, YUM или Pacman.

Подтвердите действие, написав пароль суперпользователя. Учитывайте, что символы, вводимые таким образом, никогда не отображаются в консоли, однако существуют и исключения. В некоторых дистрибутивах при указании символов в строке появляются звездочки.

Вы будете уведомлены об увеличении количества занятого пространства. Подтвердите это сообщение, выбрав вариант Д.

Ожидайте окончания инсталляции. Во время этого не закрывайте «Терминал», иначе весь процесс будет сброшен.

На этом инсталляция завершена. Имеются еще и другие альтернативные методы добавления Wine в операционную систему, но их детальный разбор сейчас не имеет смысла, поэтому перемещаемся к следующему этапу.

Шаг 2: Первый запуск и настройка Wine

К счастью, большинство параметров рассматриваемой программы уже настроены автоматически, а недостающие компоненты так же самостоятельно загружаются. Однако юзеру все-таки придется выполнить несколько действий перед переходом к запуску EXE-файлов.

    Запустите софт, например, через «Менеджер приложений» или введя его название в консоли.

Дождитесь завершения обновления конфигурации. Во время этого на экране будут появляться сообщения о надобности инсталляции дополнительных компонентов, включая .NET Framework и Gecko.

После этого отобразится графическое меню с пользовательской конфигурацией. Здесь присутствуют детальные описания каждого пункта на русском языке, поэтому мы предлагаем разобраться с этим самостоятельно. Связано это и с тем, что все параметры устанавливаются по желанию пользователей.

На этом процедура конфигурации успешно завершена, а значит, можно переходить к непосредственному запуску имеющихся EXE-файлов.

Шаг 3: Запуск EXE-файлов через Wine

Перед началом выполнения поставленной задачи хотим отметить, что не стоит рассматривать Wine как полноценное средство работы с программами для Windows. Конечно, он является эмулятором, но потребление системных ресурсов при запуске софта поднимается в несколько раз, а также могут отсутствовать какие-либо опции, изначально работающие в Windows. Далее мы расскажем о более подходящих решениях для использования ПО в Linux, а сейчас давайте все-таки разберемся с выполнением EXE-объектов.

    Откройте файловый менеджер и переместитесь к расположению необходимого файла.

Щелкните по нему правой кнопкой мыши и в контекстном меню выберите пункт «Открыть в другом приложении».

Появится отдельное окно «Выбрать приложение». Здесь вас интересует пункт «Wine — загрузчик Windows программ».

Если это уже полноценный софт, он откроется в новом окне и им можно управлять. В случае взаимодействия с инсталлятором начните стандартную операцию установки.

Дождитесь окончания этой операции. Она может занять много времени, поскольку процессор в большинстве ситуаций нагружается на максимум.

После этого вы можете запустить программу через значок на рабочем столе, графический интерфейс Wine или меню приложений.

Как уже было сказано ранее, запуск EXE-файлов — не лучший способ взаимодействовать с программами в Linux. Сейчас многие разработчики создают версии, корректно функционирующие в разных дистрибутивах, однако часто их нет в официальных репозиториях, то есть скачать из менеджеров приложений такой софт не получится. Приходится скачивать отдельные DEB или RPM-пакеты либо же вообще вручную распаковывать архивы. Не потрудитесь отыскать сборку требуемого софта для вашего дистрибутива, а затем установите ее, используя инструкции из приведенной далее статьи.

Это было все, что мы хотели рассказать о запуске ПО для Windows в Linux. Как видно, лучшее решение всего одно, поэтому его и задействуют абсолютно все пользователи, желающие реализовать данную цель. Остается только следовать инструкциям, чтобы без каких-либо проблем открыть EXE-элемент и начать взаимодействие с ним.

Помимо этой статьи, на сайте еще 12315 инструкций.
Добавьте сайт Lumpics.ru в закладки (CTRL+D) и мы точно еще пригодимся вам.

Отблагодарите автора, поделитесь статьей в социальных сетях.

Источник

Оцените статью