Caution
READ CAREFULLY! When using Chroot environments to exit completely close the Termux application even from the background apps or if necessary force close it. Otherwise, in case you do some command like "rm -rf chrootFolder" the device will go crazy and you will have to force reboot it.
Note
All the process is described in this video
- First you need to have your device rooted.
- Go to the official Box64Droid repository and follow the install instructions
curl -o install https://raw.githubusercontent.com/Ilya114/Box64Droid/main/installers/install.sh && chmod +x install && ./install
- Start Box64Droid and wait until all the configuration is applied
box64droid --start
- Start box64droid and select
Terminal mode
(option8
)
box64droid --start
# Type 8 and Enter
- Configure Box64Droid to be able to install packages and use
apt
and Internet
echo "127.0.0.1 localhost" > /etc/hosts
groupadd -g 3003 aid_inet
groupadd -g 3004 aid_net_raw
groupadd -g 1003 aid_graphics
usermod -g 3003 -G 3003,3004 -a _apt
usermod -G 3003 -a root
apt update
apt upgrade
You can install some basic packages to see that everything is fine:
apt install nano vim net-tools sudo git -y
- Install XFCE4 Desktop (or the one that you prefer)
apt install xfce4 -y
- Disable
Snapd
(it doesn't work on Termux) and installFirefox
sudo apt install software-properties-common
sudo add-apt-repository ppa:mozillateam/ppa
sudo apt-get update
sudo apt-get install firefox-esr
- Create a script to run the graphical desktop:
nano startGUI.sh
Copy and paste the following content:
sudo chmod -R 777 /tmp
export DISPLAY=:0 PULSE_SERVER=tcp:127.0.0.1:4713
rm -rf /root/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
dbus-launch --exit-with-session startxfce4 &
Execute it
chmod +x starGUI.sh
./startGUI.sh
- To run Wine you can just execute the following command:
box64 wine
- I recommend that you change the DPI to make the Wine menus larger. Open
Winecfg
, go to theGraphics
tab and increase the DPI slide.
box64 wine winecfg