Install Manjaro on Android using Termux
Just download and proot into rootfs using Termux
View manjaro-rootfs-arm64
It is recommended to downgrade Tigervnc to 1.10.1. View this for more
- Android device running arm64 architecture and minimum version of 7.0 Nougat.
- At least 5GB free storage space
- Termux
- A VNC viewer
Copy this and paste it in termux and follow steps to install
pkg install wget && wget https://raw.githubusercontent.com/infinyte7/Manjaro-Linux-on-Android/master/manjaro.sh && chmod +x manjaro.sh && ./manjaro.sh
-
Install wget and get
manjaro.sh
scriptpkg install wget wget https://raw.githubusercontent.com/infinyte7/Manjaro-Linux-on-Android/master/manjaro.sh chmod +x manjaro.sh ./manjaro.sh
Note: Do not install
tigervnc
and desktop environment likexfce4
, instead install it manually.So, select
None
from Manjaro setup menuNone
,xfce4
,LxQt
,Mate
,i3
-
Install DE or WM
a) If want to use xfce4 then install it
pacman -Sy xfce4
b) If want to use openbox then install it
pacman -Sy openbox
-
Install tigervnc
wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Pacman/tigervnc-fix.sh chmod +x tigervnc-fix.sh ./tigervnc-fix.sh
View tigervnc-fix.sh
pacman -S tar wget sed --noconfirm pacman -U https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/tigervnc-1.10.1-1-aarch64.pkg.tar.xz --noconfirm curl -s https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/lib.tar.xz -o /usr/lib/a.tar.xz && tar xf /usr/lib/a.tar.xz -C /usr/lib sed -i '27i IgnorePkg = tigervnc' /etc/pacman.conf
-
Now run DE or WM
a) DE
vncserver export DISPLAY=:1 startxfce4 &
b) WM
vncserver export DISPLAY=:1 openbox &
A laucher script can be created for running vncserver, export and xfce4 or openbox
-
Now customize as per requirements
The software, code and website links available in this GitHub repo are provided "as is" without warranty of any kind, either express or implied.
Use at your own risk.
Termux | RealVNC |
---|---|
- To install Manjaro, copy following and paste it in termux
pkg install wget && wget https://raw.githubusercontent.com/infinyte7/Manjaro-Linux-on-Android/master/manjaro.sh && chmod +x manjaro.sh && ./manjaro.sh
- It will install missing dependencies. (For audio)
- Select "Install the latest rootfs"
- Specify the installation directory
- Wait for the first installation to finish
- Select desktop environment, select as per your requirements
Size
xfce4 | lxqt |
---|---|
- Select an username
- Enter password for the username
- Continue to install TigerVNC
- Wait for setup to finish
- Access it in VNC viewer android app. Run vncserver and
Enter new password and confirm password
at first run, inside manjaro terminal
vncserver
- Open RealVNC app and enter following
Address
localhost:1
Name
manjaro
Enter password for the user to access it.
- Open termux
- To run Manjaro
./manjaro.sh
Select Chroot into existing rootfs
- May be
vncserver
not closed successfully, then re-run it.
vncserver -kill :1
Then
vncserver
- Now open VNC viewer android app and type name and password and access it.
If Manjaro installed with desktop environment then continue.
- Run Manjaro
./manjaro.sh
- Then in Manjaro, run following.
sudo pacman -S anki
It will install Anki 2.1.15-1
- Type anki to run it
anki
Or by selecting it in desktop environment
- Change
Picture Quality
toHigh
in VNC viewer android app - Change to lower resolution inside
Manjaro Display Settings
for small screen devices - Uninstall unused programs from Manjaro to get more storage space
- Hacker Keyboard from Play store can be used
5. vncserver
may be re-run to view it in vncviewer
Inside Manjaro console
vncserver -kill :1
vncserver
Then open VNC viewer android app to access it.
6. Add script to .bashrc
to run script at startup.
Inside Manjaro terminal
cd ~
nano startup.sh
Add this to startup.sh
, To run anki at startup
anki
CTRL + o
and CTRL + x
to save and exit.
Add this to .bashrc
nano .bashrc
Add ./startup.sh
the end of .bashrc
file
Again, CTRL + o
and CTRL + x
to write and exit.
But opening terminal in Manjaro will again run that script.
There are many solutions for that. But in some cases reinstalling desktop environment may solve the problems.
For example: xfce4, run this to install xfce4.
sudo pacman -S xfce4 xfce4-goodies
ItsMeKuroro
https://forum.manjaro.org