Hi guys welcome to the Mr.Ethical YT blog.If you are searching for "how to run windows applications in android "then you are reading the right article.Today we are going to learn how can we run .exe files in android with wine.We all know that most of windows applications are compiled for x86.So we are going to install box 86 with wine.
What is box86
Installation
apt-get update && apt-get upgrade
apt-get install wget
wget https://raw.githubusercontent.com/wmcbtech30/termux-prefix-switcher/master/termux-prefix-switcher
./termux-prefix-switcher
apt-get install proot-distro
apt-get install proot-distro
proot-distro login ubuntu
apt-get update && apt-get upgrade
Now Install the sudo nano
apt-get install sudo nano
Add a user to ubuntu with any name(adduser anyname).In my case it's my name jithendar
adduser jithendar
It will asks you to enter a password .Enter a password which you want to set to the user.confirm the password by entering it again.
Now it asks you for some details like full name,Room no etc just ignore them .Skip them by pressing Enter .
We have added the user . Now we have to add this user in sudoers file.For that type the command given below
nano /etc/sudoers
You will see the sudoers file.Scrolldown you will see the text comment "User privilege specification" below this line you can see the root user this line look like
root ALL=(ALL:ALL)ALL
under this line we have to add the user.
jithendar ALL=(ALL:AKL)ALL
replace the the name "jithendar" with the name of the user you have added.
Save the changes you have done by pressing CTRL+s and exit by pressing CTRL+x.
Now remove .bashrc file.
rm .bashrc
Copy the .bashrc file which is in the user directory
cp /home/jithendar/.bashrc .
Replace the name "jithendar" with the username of yours.
logout from ubuntu by the command logout.
logout
Make a file with name ubuntu in the termux directory $PREFIX/bin
nano $PREFIX/bin
paste the below command.
proot-distro login --user jithendar ubuntu
Give your user name in the place of "jithendar"
Then save by pressing CTRL+s and exit by pressing CTRL+x
Give executable permissions to it.
chmod +x $PREFIX/bin/ubuntu
Now when you run the command ubuntu you will login in to the ubuntu as user you have added.
ubuntu
After running the command ubuntu you will get login into the ubuntu now update the ubuntu.
sudo apt update
Now it will ask the password enter the password you have set to the user.
When update gets finished install the Xubunt desktop by the command given below
sudo apt install xubuntu-desktop xfce4-terminal tigervnc-standalone-server
This command will take a while depending upon the internet connection speed wait until it gets finished .
Now run these two commands given belowone by one
echo "vncserver -geometry 1280x720 -xstartup /bin/startxfce4" >> /bin/vncstart.
echo "rm -rf /tmp && mkdir /tmp && vncserver -kill :1" >> /bin/vncstop
Give executable permissions to both vncstart and vncstop
chmod +x /bin/vncstart
chmod +x /bin/vncstop
That's it we have successfully installed Xubuntu GUI on our android phone.Lets run the Xubuntu by typing vncstart
vncstart
It will ask you for a password enter a password and verify then type n for View only password.
This command will start server for Xubuntu and don't remove the termux from background.
Now open the VNC Viewer app and click the plus symbol at bottom right of the screen.
We can see it will ask us two parameters one is Address and another is name.
In the Address section enter the localhost:1
localhost:1
In the Name section give any name and click on create.
Tap on the connect you have enter password you had given for vncstart command enter it and click on ok.
Now open terminal and install these dependencies.
sudo apt install gcc python3 build-essential cmake git wget -y
Clone the Box86 repository from github.
git clone https://github.com/ptitSeb/box86
change directory inside box86.
cd box86
Now compile the Box86.
mkdir build; cd build; cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo ; make ; sudo make install
This will take some time wait until it's get finished.
Once the above process gets completed. Install the wine.
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 the Box86 path
export BOX86_LD_LIBRARY_PATH=~/wine/lib/
export BOX86_LOG=1" >> ~/.bashrc
That's it we installed the box86 and hope you learnt something new and find this post helpful.