How to run .exe files on Android using termux.

  Exe files are the application executable files of Windows Operating system, It requires special libraries to run these extension formats. Android using apk extension to Run their Applications. And they are run Windows operating system and Linux Operating system Respectively.

What if we are able to run the Windows exe files in android without any hassle though normal cases exe files need to be converted into apl libraries which can be hectic and time consuming so.

In this Tutorial we will try the termux way to install the exe files in android.


Requirements:

  • VNC Viewer.(Available in Playstore)

Method:

Installation of required apps:

  • Install the required apps from the above mentioned link, termux need to be downloaded from the third party website as it is not available in playstore.
  • Install latest version of termux to avoid any errors.


Configuration inside the termux.

  • Follow the below commands to get started.
  • First update and upgrade the packages using the following link:
  • Command:
pkg update -y && pkg upgrade -y

  • Command:
apt update -y && apt upgrade -y

  • Now Install the wget using the below command:
  • Command:
apt install wget -y

  • After installing wget, we need to install termux Switcher by the below command.
  • You can skip this part, if your phone is 32 bit.
  • Command:
wget https://bit.ly/3p4ZTq2

  • Now enter the next command is to switch the 64 bit to 32 bit.
  • Command:
bash 3p4ZTq2 switch

  • After Switching to 32 bit, update and upgrade the termux once again to avoid any issues.
  • Command:
apt update -y && apt upgrade -y && pkg update -y && pkg upgrade -y

  • Now install openssl and proot pacakages.
  • Command:
apt install openssl-tool -y && apt install proot -y

  • Command:
hash -r

  • Command:
wget https://bit.ly/3aHp1ut

  • Command:
bash 3aHp1ut



Starting Ubuntu

  • Type the below command to start the ubuntu session.
  • Command:
./start-ubuntu.sh

  • Update the packages inside the ubuntu, Install the curl package and Install sudo package.
  • Command:
apt update -y && apt upgrade -y && apt install curl -y && apt install sudo -y

  • Command:
curl -L -o 3vhBK0z https://bit.ly/3vhBK0z


  • Command:
bash 3vhBK0z

  • Command:
apt purge libfprint-2-2:armhf

  • Command:
apt purge fprintd

  • Command:
apt purge libpam-fprintd:armhf

  • Update the packages inside the ubuntu so that there are no errors after entering the above commands.
  • Command:
apt update -y && apt upgrade -y

  •  Navigate to the vnc directory.
  • Command:
cd .vnc

  • Give sudo permission to the vncserver.
  • Command:
sudo vncserver

  • Install nano package.
  • Command:
apt install nano

  • Edit the xstartup file using nano package.
  • Command:
nano xstartup

  • Add the below code to the xstartup file.
  • Code:
#!/bin/sh unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS startxfce4 & 
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup 
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources 
xsetroot -solid grey 
vncconfig -iconic &

  • Stop the vncserver using below command.
  • Command:
sudo vncserver -kill :1

  • Enter below command to exit.
  • Command:
exit

  • Restart the Ubuntu session.
  • Command:
./start-ubuntu.sh

  • Give sudo permission to the vncserver.
  • Command:
sudo vncserver

  • Below command will start the xfce4 session.
  • Command:
startxfce4

  • After the entering above command, create a new session by swipping left and clicking on new session.
  • Clean up the package updation by using below command.
  • Command:
apt update -y && apt upgrade -y

  • Add the user to the ubuntu by below command.
  • Command:
adduser joy

  • Open the sudoers file by nano package.
  • Command:
nano /etc/sudoers

  • Add the below code in the sudoers file.
  • Code:
joy ALL=(ALL:ALL) ALL

  • Enter the below command to get root access inside ubuntu.
  • Command:
su

  • Update packages using sudo command.
  • Command:
sudo apt update -y && sudo apt upgrade -y

  • Enter the below command to install all the required  packages.
  • Command:
apt install git -y && apt install wget -y && apt install curl -y && apt install tar -y && apt install gzip -y && apt install bzip2 -y && apt install python -y && apt install python2 -y && apt install python3 -y && apt install cmake -y && apt install build-essential -y && apt install gcc-arm-linux-gnueabihf -y

  • Update packages after installation.
  • Command:
sudo apt update -y && sudo apt upgrade -y

  • Clone the box86 repository.
  • Command:
git clone https://github.com/ptitSeb/box86

  • Navigate to the box86 directory.
  • Command:
cd box86

  • Create a directory named build.
  • Command:
mkdir build

  • Navigate to the build directory.
  • Command:
cd build

  • Command:
cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo

  • Enter the below command to compile.
  • Command:
make

  • Download the wine packages by using below command.
  • Command:
wget https://bit.ly/3mS4XeJ --no-check-certificate

  • Extract the downloaded wine package.
  • Command:
tar zxvf 3mS4XeJ

  • Remove the downloaded wine package after extraction.
  • Command:
rm 3mS4XeJ

  • Download the 7-Zip application by using below command.
  • Command:
wget https://7-zip.org/a/7z1900.exe --no-check-certificate

  • Command:
/root/box86/build/box86 /root/wine/bin/wine /root/7z1900.exe

  • Command:
/root/box86/build/box86 /root/wine/bin/wine /root/.wine/drive_c/7-Zip/7zFM.exe



Conclusion:

  • By using the above method, you can run .exe files on android using termux.
  • The downside of this method is that it can take some time to download and install certain packages. 
  • If you like this tutorial post, you might be interested in running windows 11 on android which you can check it out here or,
  • If you want to learn some coding with visual studio on android, you can check it out from here.
  • If you want to checkout the tutorial video of this post, you can click below play button to view.


Tutorial: