Wine android setting up the windows environment

Wine на Windows 10. Он работает

Wine — программа для запуска приложений Windows на компьютерах под Unix.

Запуск Wine на Windows был мечтой фанатов, которые следуют зову сердца «Мы делаем то, что должны, потому что не обязаны это делать», по крайней мере, с 2004 года, когда кто-то попытался скомпилировать Wine в Cygwin и сломал реестр хост-системы.

Оправдание: «А как же старые приложения, которые не работают должным образом в последних Windows?». Но мы-то понимаем, что истинная причина — «Я долго страдал за своё искусство, теперь ваша очередь».

В конце 2008 года меня одолела навязчивая мысль — и я (кажется, это был я) создал страничку WineOnWindows на вики Wine. Вкратце: это было вообще невозможно, поскольку всё работало через Cygwin, MinGW или Windows Services для Unix. Текущая страница не намного успешнее.

Windows 10 представила подсистему Windows для Linux, а Ubuntu удобно загружается из Microsoft Store. В результате наша глупая идея реализуется практически сама собой, разве что надо вручную установить переменную среды DISPLAY.

До сих пор это умопомрачительно бесполезно. Wine работает только с 64-разрядными приложениями Windows, то есть даже не со всеми приложениями, которые идут в составе самой Windows 10.

(Первоначальный проект стартовал после того, как кто-то не смог запустить Encarta 97 на Windows 10. Таким образом, как и любое настоящее гиковское решение, оно на самом деле не решает оригинальную проблему пользователя).

Но я хочу ещё раз подчеркнуть: сейчас это работает тривиально. Я не какой-то сумасшедший гений, который реализовал фантастический проект — просто я, кажется, первым публично объявил о данном факте.

Как сделать эту глупую вещь

1. У вас же 64-битная Windows 10, верно? Это единственная версия с WSL.

2. Установите WSL. Панель управления -> Приложения -> Программы и компоненты -> Включение и отключение компонентов Windows. Поставьте галочку «Подсистема Windows для Linux». Перезапустите Windows.

3. Зайдите Microsoft Store, установите Ubuntu (в основном, для её запуска и создан WSL). Я установил Ubuntu 18.04 LTS. Откройте Ubuntu, и вы увидите терминал bash.

4. Установите следующее из командной строки bash:

Можете установить более актуальную версию Wine, если хотите помаяться дурью (не забывайте о двух новых библиотеках, которые нужны для wine-devel >=4.5 и которые ещё не вошли в Ubuntu!). Дайте знать, если это сработает.

5. Добавьте к своему .bashrc такую строчку:

Вероятно, вы захотите запустить это и в текущем окне bash.

6. Установите VcXsrv, красиво упакованную версию xorg, скомпилированную для Windows, — просто возьмите последнюю версию исполняемого файла и запустите его. Запустите X Server через кнопку «Пуск» и XLaunch. Он проведет вас через дефолты — оставьте большинство из них как есть. Я на всякий случай поставил галочку «Отключить контроль доступа». Сохраните конфигурацию.

6а. Если хотите проверить, что X-сервер настроен правильно, установите sudo apt install x11-apps и запустите xeyes для краткого путешествия обратно в 80-90-е.

7. Сам wine не работает, потому что 32-битные бинарники не запускаются в WSL. На нашей 64-битной Windows 10 выдаётся ошибка /usr/bin/wine: 40: exec: /usr/lib/wine/wine: Exec format error . Видимо, это исправили в WSL 2.

А пока запустим Блокнот в Wine!

TO DO: 32-битная поддержка. Придётся подождать выхода WSL 2. Интересно, будут ли работать древние программы Win16 — по идее, они должны запуститься в Wine, даже если больше не работают в самой Windows.

Читайте также:  One plus one android version

32-битные приложения через qemu

Спасибо анонимному комментатору, который предложил, как подступиться к запуску 32-битных приложений.

И теперь мы можем сделать:

Впрочем, Encarta 97 всё равно не работает:

Для тех, кто в теме: file говорит SETUP.EXE: MS-DOS executable, NE for MS Windows 3.x , так что нам нужно спуститься до редких 16-битных программ.

Encarta 97 устанавливается и работает безупречно в Wine 4.13 на Linux… но в 4.13 на Windows 10 все ещё нет:

Конечно, он выдаёт разные сообщения об ошибках в нескольких запусках…

Источник

Wine android setting up the windows environment

Post by Rincewind » Wed Feb 03, 2021 3:25 pm

Serious Wine Newbie
Android 8 (LG V20)
Wine 6.1 downloaded today
Install seems to go OK but suddenly finishes.

When I start up Wine from the icon the screen moves to landscape; a message «setting up the Windows environment» appears briefly and the Wine shuts down
.
How can I move this further forward?
Thanks for any suggestions

Re: Wine crashes setting up windows environment

Post by Rincewindwiz » Sat Feb 20, 2021 3:35 am

Update 20/2
1. LG V20 (32GB SD) runs Android 7.0 not 8. Sorry.

2. Wine 6.2 ARM install locks up on ‘Setting up the Windows Environment — had the spinning wheel for 20 minutes now,

3. Killing Wine install produces a Wine icon. Clicking the wine icon produces the same ‘Setting up Windows environment spinning wheel.

How can I get Wine to Install?
Does it work better with Android 9?

Thanks for any information

Re: Wine crashes setting up windows environment

Post by CivBase » Wed May 05, 2021 10:59 am

I’m experiencing a similar issue. The Wine app gets stuck on the «Setting up the Windows environment. » dialog.

Version: Wine 6.7 (ARM)
OS: Android 9
Device: LG V30

I’ve also tried Wine 5.22, 6.0-rc2, and 6.2. 5.22 and 6.2 behave the same way. I specifically chose 6.0-rc2 because it included a fix for bug 49892 (commit 758e75cc46afe7d0349615998f533abca5eeca26). It is the only version which makes it past that dialog, but it crashes immediately after that.

Источник

How to Run Windows Apps on Android with Wine 5.0

Wine is one of my must-have tools for working on Linux. If you do not know Wine, it is a compatibility layer between Windows and Linux, that bridges the gap between the two and allows Windows applications to work on Linux; almost magically.

While Wine has been available since a long time, but the 3.0 release brought an important update — support for Android. That means, now you can easily run Windows apps on Android. And through this post, I will tell you just how to do that.

Let’s take a look.

Wine + 6 Other Apps To Run Windows Programs On Other Platforms

Make no mistake, Windows is still the most used (and popular) operating systems for desktops and laptops. So. Read more

Prerequisites

Wine for Android is a simple app, and you only require an Android device with a working Internet connection to download and run it.

You can also download the required app (Wine’s APK) and Windows apps (.exe’s) on your computer and transfer them to your mobile device in case your smartphone does not have a working network connection.

Download & Install Wine

Please follow the below instructions to get started with this tutorial:

  1. Open “https://dl.winehq.org/wine-builds/android/” in your mobile.
  2. Download the latest available release per your device platform. For instance, I downloaded “wine-3.2-arm.apk” on my phone, but you may need its “x86” version if your device has an Intel CPU in place of an ARM CPU (as mine).
  3. Open the downloaded APK, and install Wine app on your device.

Try out Wine on Android

After you have downloaded and installed Wine on your device, it is time to experiment with it. Just follow the below steps to continue with this guide:

Читайте также:  Рейтинг лучших гонок для андроид

  1. Open the Wine app on your Android device. If you are starting it for the first time, it will take some time to extract its files and set up the Windows environment, but from the second time onwards, it will be much faster.
  2. Once Wine is loaded, you will see a classic desktop of Windows, which instantly reminds me of Windows 98. You may click the Start button, and to your surprise, you will see just two options there, suggesting there is a lot more to do.

Download apps & tools

As most of us own a device powered by an ARM CPU, we can only run WinRT apps using Wine on Android. The list of supported WinRT apps is small, as you must have guessed by now; and you can access the complete app list on this thread on XDA Developers.

However, if you are fortunate enough to hold a device with an Intel CPU like ASUS ZenFone 2, you have a lot more choices to pick from the supported apps.

That is because you can run Win32 apps, i.e., x86 aka 32-bit apps using Wine for Android.

If you need to install a Windows app inside Wine, the process is as simple as below steps:

  1. On Wine’s desktop, click on the Start button.
  2. Choose Control Panel and go to “Add/Remove Programs” from the options.
  3. A new window will open. Click the Install button in it.
  4. A file dialog will open. Here you can browse and select the app (.exe) you wish to install.
  5. You will see the program’s installer. Follow the on-screen instructions provided by the installer and install the app as you install any other program in Windows.

Alternatively, you can use Wine Command Prompt to install or run a program inside Wine. Just type the full path of the executable in the command prompt, and Wine will show the program’s installer.

Afterward, simply follow the on-screen instructions and at the end of the process, the program will be installed. And you will see its entry under Start menu.

For example, if you are trying to install Notepad++ (with “npp.exe” as its file) and its installer is present in your device’s Downloads directory, which is located at “/sdcard/Downloads”. Then you must type “/sdcard/Downloads/npp.exe” inside the command prompt window.

Troubleshooting issues

Following are some of the most common Wine issues and some instructions on how to troubleshoot them.

1. Wine won’t install on my Android device.

If you can’t install it, maybe the downloaded APK file is corrupt. In this case, just download it fresh and try installing it again. While installing Wine, if you are getting a message saying “not allowed to install unknown apps“, then you need to change a setting.

You can do it by heading over to Settings > Security and then toggling on “Unknown sources”.

If you are not using Google’s flavor of Android, then this setting may reside at a different place — just search for it in Settings or google the procedure for your device. After you have changed this option, you can try installing this app — it shall work.

2. Wine won’t start/run on my Android device.

If you are able to install Wine but not able to start or run the same, then there is some issue with your device — probably a compatibility problem.

Also, please note that Wine 3.x (up to 3.2 at the time of writing) does not support Android 8 (Oreo) platform. That said, Wine 3.x on Android 8 will always get stuck on the “Setting up the Windows environment…” screen.

Moreover, during my tests using Android Emulator, I found that Wine 3.2 is not working on emulated devices — for both ARM and x86 versions. Though the devices are assigned enough resources yet I could not reach the classic desktop on Wine using an emulator. That being said, please know that Wine 3.2 may not work on AVD (Android Virtual Device).

Читайте также:  Как отменить подписку градиент андроид
3. Soft aka on-screen keyboard is not showing up.

Wine 3.2 is not yet complete in terms of features and this bug is one of the proofs of its imperfection. That being said, you will need a physical keyboard (like Bluetooth keyboard) to work with Wine. It is because soft keyboard won’t show up on the screen in case you wish to type something, and the only workaround is to plug in a hard keyboard.

4. I cannot choose a directory or a file in the file dialog.

Windows default setting needs you to double-click an item (say a file or folder) to open it, as you must have done in Windows. Since we are talking about touch-enabled devices, we need to double tap to emulate a double-click. And I found it does not work very well, at least for now.

That’s why, it is good to use a physical keyboard and use its navigation keys to navigate through windows, options, directories, etc. or choose a file or folder.

10 Apps to Connect Computer to Android Devices

When you’re a vivid smartphone user, you may need to connect your device to your PC or Mac. Read more

That’s all about using Wine on Android

Hope you are successful at installing and running Windows apps on Android using Wine. If you get into problems, you can ask for a solution on WineHQ Forums, and you can also write a comment below to ask me directly.

Источник

Как начать использовать Wine для запуска Windows-приложений на Android

Авторизуйтесь

Как начать использовать Wine для запуска Windows-приложений на Android

Если вы ещё не в курсе, Wine — это бесплатный open source слой совместимости с Windows API, позволяющий запускать программы этой платформы на Unix-подобных системах. Wine находится в разработке с 1993 года и позволяет запускать множество Windows-программ на Linux и macOS, хотя иногда требуются танцы с бубном.

Что там с Android

CodeWeavers работает над портированием Wine на Android на протяжении последних нескольких лет, и первый альфа-релиз вышел в августе 2016. Несмотря на то, что компания выпускает коммерческий продукт, она вносит большой вклад в развитие Wine. Недавно вышел Wine 3.0, который вы можете установить как приложение на Android. Вам будет доступно полноэкранное окно Windows, почти как в первых сборках CrossOver для Android, с меню «Пуск» в нижнем левом углу. Имеется поддержка аудио и простой графики.

Вот небольшой видео обзор:

Так как Wine для Android только вышел, у него есть ряд ограничений. Автору англоязычной статьи, которая использована в качестве источника для этого перевода, удалось полноценно запустить приложение на OnePlus 5T; на Galaxy Tab S и Pixel 2016 наблюдались фризы и краши. Масштабирование DPI (dots per inch, точек на дюйм) тоже корявое, так что пользоваться Wine на тачскрине довольно проблематично. Графический драйвер на данный момент не поддерживает Direct 3D, поэтому много программ (особенно игр) не будут работать до тех пор, пока вы с помощью настроек не заставите их использовать OpenGL.

Как начать использовать

Wine — слой совместимости, а не полноценный эмулятор, поэтому вам понадобится x86 Android-устройство, чтобы выжать из него максимум. Wine поддерживает ARM устройства, но вы сможете использовать только те программы, которые были портированы на Windows RT. На форуме XDA можно найти несколько примеров. Также ведётся работа над использованием QEMU для эмуляции инструкций x86-процессора на ARM.

Если вы хотите попробовать Wine на своём Android-устройстве (или Chromebook, если у вас разрешён режим разработчика), вы можете скачать последние сборки на сайте Wine. Убедитесь, что скачиваете стабильные версии («wine-3.0-arm» или «wine-3.0-x86»), а не релиз-кандидатов (*rc*.apk).

Источник

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