How To install Wine And Box86 On Android

Hello guys in this article, in going to write on how to install box86 and wine on Android phone, this article is just a brief setup on how to install the tool, it's usage and other things will be discussed in coming articles.

What is box86

Box86 is an emulator for x86 userspace tools on ARM Linux systems (32bit systems), allowing such systems to execute video games and other programs that have been compiled for x86 Linux systems. Box86 is an alternative to QEMU for user-mode emulation.

What is wine

Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop. Source: wine HQ 
.
NOTE: this tutorial supports 32bit devices only, if your device is 64-bit then learn how to change your termux Prefix to 32-bit by reading this article  Before proceeding with the installation 

Prerequisites:

Any Linux distro: Debian, Ubuntu or Kali Linux
NOTE: this article only work and as applicable for devices with 32-bits architecture only

Reminder: 

commands may vary in different distros as for this Tutorial I am using Ubuntu with Lxde GUI interface .

Procedures:

The first thing you should do is login to your Terminal, for Ubuntu on Termux the command to do that is 
proot-distro login ubuntu 
After logging in, update ubuntu terminal with the command
sudo apt update 
Now we're going to install some packages that are dependencies for box86 and wine
sudo apt install git python3 gcc build-essential cmake
After installing the packages, we clone in box86 to our terminal and change our directories to it by using the command;
git clone https://github.com/ptitSeb/box86 ; cd box86
Once the clone is completed and we're in the box86 directory, we compile box86
mkdir build; cd build; cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo ; make ; sudo make install ; cd
Once the compilation has been completed, install wget , you can do that with the command
sudo apt install wget
we can now proceed to installing wine. I created a shortcut command to finish all process at once below 
mkdir ~/wine ; wget https://www.playonlinux.com/wine/binaries/phoenicis/upstream-linux-x86/PlayOnLinux-wine-7.0-rc5-upstream-linux-x86.tar.gz ; tar -xvf  PlayOnLinux-wine-7.0-rc5-upstream-linux-x86.tar.gz  -C ~/wine/ ; echo "export BOX86_PATH=~/wine/bin
export BOX86_LD_LIBRARY_PATH=~/wine/lib
export BOX86_LOG=1 " >> ~/.bashrc
Now you can login to your Terminal GUI and use wine . To configure wine Windows on your Gui use the command;
article
box86 wine winecfg

Below are some examples of how to Use wine.

1. To Open wine windows file manager, you can type the below command on your Terminal.
box86 wine explorer
2. To launch Applications on wine you can use the command;
box86 wine filename
Example is a WinRAR 32-bits file I downloaded to my terminal, I installed it with the command
  • box86 wine winrar-x32-611.exe
Watch the video tutorial below to see exactly how this is done in practical, And you can leave me a message in the comments section below if you have a question regarding this article

Watch the video here :



Post a Comment

Previous Post Next Post