Instructions from https://www.youtube.com/watch?v=oJP3FRTxbnw
- Install
F-Droid
- Install
Termux
fromF-Droid
- Update
Termux
apt update && apt upgrade -y
- Set up Termux storage
termux-setup-storage
- Install X11-repo
pkg install x11-repo
- Install XFCE and VNC server
pkg install xfce4 xfce4-goodies tigervnc xorg-xhost
- Start VNC to setup password
vncserver -geometry 1280x720 -listen tcp :1
- set a password
- allow control
DISPLAY=:1 xhost +
- Close VNC server for now
vncserver -kill :1
- Configure VNC startup
nano ~/.vnc/xstartup
- comment
#aterm ....
- comment
#twm &
- add
startxfce4 &
nano ../usr/bin/vncstart
vncserver -geometry 1280x720 -listen tcp :1
chmod +x ../usr/bin/vncstart
- Start VNC
vncstart
- Install a VNC client on phone
- VNC Viewer
- Connect
- localhost:1
Need to install another distro inside Termux using proot-distro
, and start Firefox in Termux XFCE from that distro.
I noticed that Swap memory on Termux is almost full and I get some crashes... Still don't know how to fix it...
- Install proot-distro
pkg install proot-distro
- Install Debian (Debian has
firefox-esr
in their repository) and login as root
proot-distro install debian
proot-distro login debian
- Install firefox
apt update && apt upgrade
apt install firefox-esr
- Add firefox user
adduser firefox
- Login as firefox user
su - firefox
- Config bashrc to autostart firefox at display :1
echo "DISPLAY=:1 firefox" >> .bashrc
- Go back to Termux
- Install
xorg-xhost
pkg install xorg-xhost
- Add a desktop entry calling firefox from inside Debian
nano ../usr/share/applications/firefox.desktop
[Desktop Entry]
Name=Firefox-esr
Icon=firefox
Type=Application
Categories=Network;WebBrowser;
Exec=proot-distro login --user firefox debian %u
Terminal=true
StartupNotify=false
- Allow display firefox
DISPLAY=:1 xhost +
-
Just run Firefox from XFCE menu
-
Stop VNC server on Termux
- vncserver -kill :1