So, to get started you need to get the base OS installed using the instructions from the official docs . I chose option 3 since I only wanted the script
pkg update
pkg install wget proot tergent openssh
termux-setup-storage
wget https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh
bash setupTermuxArch.sh
This should download fine using wget and start installing. The install itself will take around 15-30 minutes to extract the system and install everything. When the process finishes you'll be in a root shell in your new Arch distro! Of course, not everything will work out of the box.
You'll need to install sudo first, and the tmux multiplexer for easier multitasking:
pacman -Syu sudo tmux
For more information on using tmux try this article, and to learn how to customize the appearance and behaviors more try this one as well as looking at the tmux-plugins Github organization for community-built add-ons.
sudo chown root:root /etc/resolv.conf
sudo chmod 644 /etc/resolv.conf
Set your root password
sudo passwd root
And then you can make your user account
addauser <user>
This will log you in, so we'll exit back to the root shell to finish up
exit
Then set your user password
sudo passwd <user>
Open the sudoers file for safe editing:
command -v vi &>/dev/null && visudo || yes ""|pacman -S vi && visudo
And add your user's privileges under root's in the "User privilege specification" section:
<user> ALL=(ALL) ALL
If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to
nano /etc/sudo.conf
And add this line:
Set disable_coredump false
Save and close it, and after this you're ready to use your login
su - <user>
Once you're user is set up, you can configure your tmux so you can set up other aspects while the rest of the setup runs. I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:
wget "" && chmod +x fresharch.sh && sudo bash fresharch.sh
If all the instructions were followed correctly yay should install and you'll have a functional Arch Linux with AUR support on your Android device.
sudo bash fresharch.sh не работает