...

Как установить Виндовс программы на ubuntu

How can I install Windows software or games?

.exe files are not binary-compatible with Ubuntu. There are, however, compatibility layers for Linux, such as Wine , that are capable of running .exe.

Detailed answer and solutions

The underlying problem:

Ubuntu is a completely different system than MS Windows. Not only it looks differently, but it also uses different mechanisms for its core functions.

The problem with .exe files is that they are specific to Windows. No other system is capable of running them, because their contents are designed to work on a Microsoft’s system. Linux uses different standards, different concepts, and therefore Ubuntu applications need to be adapted to them to work correctly.

If you have just migrated from Windows and are doing your baby steps with Ubuntu, you may be indeed surprised that .exe files fail to run. There may be different symptoms, either an error message may appear, or there may be no effect at all when double-clicking an .exe. This all happens, because Ubuntu has no idea what should it do to run that file. Ubuntu is not knowledgeable about how MS Windows works “behind the curtain”, and therefore it can’t execute the code that’s within them. In technical jargon, one says that Windows and Linux executables are not binary-compatible.

Looking for alternatives

The first thing you should do is to realise that most likely you do not want to run that .exe file. Most Windows applications you are used to have their Ubuntu alternatives in Ubuntu Software Center.

Therefore the very first step when you try to run an .exe file is to check whether there is a Ubuntu version of the same application (like Firefox – it has both a Windows and Ubuntu edition), or a close alternative, which is not the same app, but does 99% the same stuff. For example, if you want to compose a document, instead of MS Office you will want to use LibreOffice.

How can I find an alternative?

Here are some tips.

  1. Search Ubuntu Software Center.
    • Launch the Ubuntu Software Center, type in the search box what kind of application you are looking for. For example, typing in “photoshop” finds The GIMP, which is a great advanced image editing tool, and is a great substitute for Adobe Photoshop.
    • Many Windows applications are also available for Ubuntu, and have their identical version in Ubuntu Software Center, which is the preferred way of installing software in Ubuntu.
  2. Search Ask Ubuntu (this very site).
    • There are many questions here that explain what applications can be used as substitutes. Also, do not forget to ask a question if you need software-recommendation.
  3. This Ubuntu Help page contains great tips when seeking for alternatives.
  4. http://ubuntuguide.org/wiki/Alternatives
  5. http://alternativeto.net/

Okay, but not all applications have alternatives. There are a number of cases where you will want to run the .exe program anyway. Examples include:

  • You are trying to run an application of which alternative makes no sense. In case of most video games you will want to run them and not an alternative.
  • You may want to run the original application instead of an alternative, because the alternative is not good enough. For example, many people consider Photoshop to be a much better editor than The GIMP.
  • This is a very Windows-specific program, that makes little sense on Linux.

Luckily, you can get .exe files to run on Ubuntu.

Running .exe files on Ubuntu with WINE

What is Wine? Well, technically it’s a compatibility layer. What it means is that it provides an environment similar to Windows to any .exe application you try to run. Therefore, with WINE .exe files will run on Ubuntu.

WINE is not installed by default. You can get it either by:

  • Searching for “wine” in Ubuntu Software Center.
  • Running the command: sudo apt-get install wine .

Details on installing WINE can be found in this question.

Okay, so I installed WINE. Now what?

Proceed to launching your .exe file! Double-click it, and with a bit of luck everything will seem like on Windows. Voilà!

WARNING: Not all applications will behave correctly when run with WINE. WINE is by no means perfect, and because it pretends to be a Windows environment instead of actually being a real one, some applications may malfunction. Common problems may include incorrectly displayed fields, fullscreen issues with video games, copy-protection problems. Some of them can be solved with litte hassle, make sure to check the WINE application database and use google to find hints in case your .exe does not work correctly.

Running Windows applications on Ubuntu with PlayOnLinux

There is another tool you may like which aids you in running Windows applications.

It’s called PlayOnLinux (website) and it supports quite a wide range of software (browse).

What it does is it runs a specific version of Wine which is known to work best with the application you are willing to run. It also installs additional paths to provide maximum compatibility with Ubuntu. But you don’t need to know about that; everything is done automatically.

Because of that, PlayOnLinux tends to provide the best results in case of running a widely known piece of software, including many video games.

Installing PlayOnLinux:

  • Find it in Ubuntu Software Center, or
  • Run sudo apt-get install playonlinux

Using PlayOnLinux:

Instead of double-clicking the .exe (which launches it with WINE), run PlayOnLinux application. Select “Install” button on the toolbar, and choose what application you wish to install. PlayOnLinux will guide you through the installation process (of course you will need installation media).

Once it’s done, your installed application will be displayed in PlayOnLinux main window. Double click to launch it!

Commercial solutions

If you are not satisfied with WINE, there are some commercial softwares that runs Windows applications on Linux. One of the most well-known is CrossOver. In some cases it has significantly better results, yet it is not available for free.

Как установить программы Windows в Ubuntu

wikiHow работает по принципу вики, а это значит, что многие наши статьи написаны несколькими авторами. При создании этой статьи над ее редактированием и улучшением работали авторы-волонтеры.

Количество просмотров этой статьи: 33 717.

В этой статье:

Для установки и запуска программ Windows в Ubuntu необходимо приложение Wine. Если у вас нет этого приложения, эта статья расскажет вам, как его установить. Стоит отметить, что не все программы Windows будут работать в Wine.

Изображение с названием Install Windows Programs in Ubuntu Step 1

Откройте Центр приложений Ubuntu (через боковую панель).

Изображение с названием Install Windows Programs in Ubuntu Step 2

В строке поиска (сверху справа) центра приложений введите wine.

Изображение с названием Install Windows Programs in Ubuntu Step 3

Выделите wine.

Изображение с названием Install Windows Programs in Ubuntu Step 4

Нажмите «Установить». Введите пароль и нажмите Enter.

Изображение с названием Install Windows Programs in Ubuntu Step 5

Спустя некоторое время вам будет предложено подтвердить условия лицензионного соглашения EULA. Для это поставьте галку в соответствующем окошке и нажмите «Forward».

Изображение с названием Install Windows Programs in Ubuntu Step 6

Запустите Wine и просмотрите опции программы.

Изображение с названием Install Windows Programs in Ubuntu Step 7

Теперь найдите файл setup.exe и щелкните по нему правой кнопкой мыши.

Изображение с названием Install Windows Programs in Ubuntu Step 8

Нажмите «Permissions», а затем поставьте галку у «Allow executing file as program». Нажмите «Close».

Изображение с названием Install Windows Programs in Ubuntu Step 9

Теперь, щелкнув левой кнопкой мыши по файлу setup.exe, он запустится.

  • Когда система запрашивает пароль, не удивляйтесь. Это тот же пароль, который вы вводите при входе в систему. При вводе пароля в терминале он не отображается. Просто введите пароль и нажмите Enter. Если вы ввели правильный пароль, процесс будет продолжен.
  • В Центре приложений Ubuntu есть кнопка «Подробно». Нажмите эту кнопку для проверки зависимостей программы (которые тоже нужно скачать и установить). Если зависимости есть, поставьте возле них галки и нажмите «Применить изменения». Таким образом, вы обезопасите себя от ошибок в работе некоторых приложений.

Дополнительные статьи

взломать WPA/WPA2 ключ от Wi–Fi с помощью Kali Linux

взломать WPA/WPA2 ключ от Wi–Fi с помощью Kali Linux

установить Ubuntu в VirtualBox

установить Ubuntu в VirtualBox

использовать Wine в Linux

использовать Wine в Linux

стать суперпользователем в Linux

стать суперпользователем в Linux

заархивировать папку в Linux

заархивировать папку в Linux

добавить или сменить шлюз по умолчанию в Linux

добавить или сменить шлюз по умолчанию в Linux

проверить IP адрес в Linux

проверить IP адрес в Linux

назначить IP адрес в Linux

назначить IP адрес в Linux

создать и отредактировать текстовый файл с помощью терминала в Linux

создать и отредактировать текстовый файл с помощью терминала в Linux

восстановить Ubuntu

восстановить Ubuntu

отформатировать жесткий диск в Ubuntu

отформатировать жесткий диск в Ubuntu

осуществить проверку с помощью ping команды в Linux

осуществить проверку с помощью ping команды в Linux

Об этой статье

wikiHow работает по принципу вики, а это значит, что многие наши статьи написаны несколькими авторами. При создании этой статьи над ее редактированием и улучшением работали авторы-волонтеры. Количество просмотров этой статьи: 33 717.

Запускаем программы Windows на удаленном Linux сервере

Была у меня как то проблема, везде используется linux но вот одна программа
работала только на Windows а именно Litemanager NoIP сервер, держать ради нее отдельную Windows машину не хотелось, да и с учетом того что от программы нужно было только чтобы она “проксировала трафик” и позволяла подключится удаленно было решено перенести это на маленькую ubuntu машину где нибудь в облаке

Подготовка

в данном примере я использую Ubuntu 16.04

Устанавливаем Wine

sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo apt update sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' sudo apt-get install wine 

Устанавливаем необходимое ПО:

sudo apt-get install fluxbox vnc4server xterm

Добавляем пользователя

добавляем пользователя vnc_server

sudo adduser vnc_server

переключаемся напользователя vnc_server

sudo su - vnc_server
vncpasswd
 vncserver -geometry 800x600 -depth 24 vncserver -kill :1 

Настраиваем VNC для инеграции с fluxbox

echo "fluxbox &" >> ~/.vnc/xstartup

Выходим из vnc_server

exit

Добавляем сервис

sudo nano /etc/systemd/system/vnc_server.service

Копируем в этот файл:

[Unit] Description=VNC Server After=network.target [Service] Type=oneshot ExecStart=/bin/sh -c "/usr/bin/vnc_server.sh start" &>/dev/null & ExecStop=/bin/sh -c "/usr/bin/vnc_server.sh stop" RemainAfterExit=yes [Install] WantedBy=multi-user.target 

Сохраняем, перезапускаем systemctl

sudo systemctl daemon-reload 

Создаем скрипт запуска vncserver имени пользователя vnc_server

sudo nano /usr/bin/vnc_server.sh 
#!/bin/sh export PATH="/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin" start() < echo -n "Starting VNC: " su -c "vncserver :1 -geometry 800x600 -depth 24" vnc_server RETVAL=$? return $RETVAL >stop() < echo -n "Stopping VNC: " su -c "vncserver -kill :1 >/dev/null 2>&1" vnc_server RETVAL=$? return $RETVAL > case "$1" in start) start RETVAL=$? ;; stop) stop RETVAL=$? ;; restart) stop sleep 1 start RETVAL=$? ;; condrestart) stop sleep 1 start ;; status) status $service RETVAL=0 ;; *) echo "Usage: $service " RETVAL=1 ;; esac exit $RETVAL 

Включаем серис при запуске:

sudo systemctl enable vnc_server

Делаем файл запускаемый:

sudo chmod 775 /usr/bin/vnc_server.sh
sudo reboot

Копируем программу на сервер

sudo mkdir ~/lm

с машины пользователя

scp -r ~/lm пользовательssh@адрессервера:~/lm

Переносим в папку vnc_server

 sudo mkdir /home/vnc_server/lm & sudo mv ~/lm/* /home/vnc_server/lm sudo chown vnc_server /home/vnc_server/lm/* 

Подключаемся по VNC:

Используя люой vnc клиент подключаемся к серверу
правой кнопкой мыши запускаем Applications>Terminal Emulators>Xterm
и в водим

wine ~/lm/LMNoIpServer.exe 

Автозапуск программы при старте системы:

sudo nano /home/vnc_server/.fluxbox/startup

и перед exec fluxbox добавляем

wine ~/lm/LMNoIpServer.exe

хочу так же добавить что LMNoIpServer была выбрана в качестве примера

При подготовке материала использовались источники:
https://askubuntu.com/questions/988/how-can-i-install-windows-software-or-games
https://ru.wikihow.com/%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C-%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D1%8B-Windows-%D0%B2-Ubuntu
https://habr.com/ru/sandbox/133948/