Android side must be 64bit
On the contrary, 64bit seems to be okay (I don't know because it wasn't 64bit)
Download TermuxArch with git.
If you just clone it, you can create a
TermuxArch directory, but it is difficult to type capital letters when moving the directory, so the directory name is changed to
$ git clone https://github.com/SDRausty/TermuxArch.git termuxarch/
Enter the created directory and execute the setup file.
~/termuxarch $ bash setupTermuxArch.sh
Somehow get angry.
necessaryfunctions.sh: line 106: /data/data/com.termux/files/usr/bin/applets/uname: No such file or directory TermuxArch WARNING: Generated script signal 201 near or at line number 600 by `trap`!
It is said that there is no ʻuname
The WARNING directly below is probably a problem caused by it.
When I check the location with
which uname, it says
/data/data/com.termux/files/usr/bin/uname, and it certainly does not exist in the applets directory directly under bin.
I can't help it, so I'll put a link on the applets. I made it a hard link, but it's okay to use the -s option as a symlink.
$ ln /data/data/com.termux/files/usr/bin/uname /data/data/com.termux/files/usr/bin/applets/uname
setupTermuxArch.sh again and it works fine.
But also a similar error.
necessaryfunctions.sh: line 298: /data/data/com.termux/files/usr/bin/applets/md5sum: No such file or directory WARNING md5sum mismatch! The download failed and was removed! ...
Similarly, it seems that there is no
/data/data/com.termux/files/usr/bin/applets/ this time. It's hard. Put the link with no heart.
$ ln -s /data/data/com.termux/files/usr/bin/md5sum /data/data/com.termux/files/usr/bin/applets/md5sum
You can now install it. When finished, you will be asked as follows.
Cleaning up installation files: DONE Arch Linux in Termux is installed. Configuring and updating Arch Linux. Change the worldwide CMIRROR to a CMIRROR that is geographically nearby. Choose only ONE active CMIRROR in the CMIRRORs file that you are about to edit. Would you like to use nano or vi to edit the Arch Linux configuration files? Answer nano or vi [n|V]?
You are asked which editor is better,
vim, for editing Arch Linux config files.
I use vim, so press
v and Enter (you can just enter).
If you use nano, press
n and press Enter.
The Arch Linux configuration file opens. If you do not select a server here, you will get stuck. Since TermuxArch does not have an editor by default, it says "I want to install a package, but I can't because the server is not selected, and I want to rewrite the file to select the server, but there is no editor". Why not include an editor?
Arch Linux boots when you save and exit.
Return to Termux with the following message.
Arch Linux in Termux PRoot is installed in /data/data/com.termux/files/home/arch. ... Use ~/arch/startarch and startarch in a BASH shell to launch Arch Linux in Termux PRoot for future sessions. ...
In short, "Arch Linux was installed under the
/data/data/com.termux/files/home/arch directory. To start it, run
startarch with the bash command."
(When I try to run
setupTermuxArch.sh, I get an error because it is already installed.)
Written here => https://github.com/sdrausty/termux-archlinux/issues/3
Just type the following command in Termux.
$ bash setupTermuxArch.sh purge
what a DNS server is not set. ~~ If you can't connect to the net, it's just a box ~~
So when I try to update the package, I get angry with
Could not resolve host.
Moreover, there is no editor. I can't do anything anymore. It's too terrible.
Forcibly edit with the echo command as a measure of pain. Add the name server settings to
$ echo "nameserver 184.108.40.206" >> /etc/resolv.conf
Even after resolving the DNS problem, the default server says
The requested URL returned error: 404 Not Found. Terrible.
For example, the exact URL is:
core: http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/core/os/x86_64/ extra: http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/extra/os/x86_64/
Add these to
I can't use the editor, so press the echo command. Like this.
$ echo "Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/core/os/x86_64/" >> /etc/pacman.d/mirrorlist
Now you can use package management.
With Arch Linux installed with Termux Arch, the following operations are required for package management. Displayed at startup.
Welcome to Arch Linux in Termux! Install a package: pacman -S package More information: pacman -[D|F|Q|R|S|T|U]h Search packages: pacman -Ss query Upgrade packages: pacman -Syu
But these are for 64bit. There are packages like
jdk8-openjdk, but when I try to install it says
package xxx does not have a valid architecture.
It seems that the 32-bit version of the library can be used by allowing
multilib in addition to
core and ʻextra`, but jdk was not found there.
It seems to be useless if it is not 64bit.