ArchLinux on Android Simple Chroot
Автор: ExtraSpecialK
Загружено: 2021-12-04
Просмотров: 2141
Описание:
Who doesn't want to run Arch Linux on their android phone?
Step 1: Visit
https://archlinuxarm.org/about/downloads
DETERMINE WHICH ARCH IS RIGHT FOR YOUR DEVICE (MY PHONE HAS AARCH64)
Step 2: open ADB shell to Android
become ROOT
Goto /data/local/
Step 3:
Download rootfs for arch linux:
wget http://os.archlinuxarm.org/os/ArchLin...{YOUR-ARCH}-latest.tar.gz
Step 4:
mkdir arch
cd arch
tar -xvf ../http://os.archlinuxarm.org/os/ArchLin...{YOUR-ARCH}-latest.tar.gz
Step 5:
Type out these commands individually
##########################################
#Set up veriables #
##########################################
export bin=/system/bin
export mnt=/data/local/arch
export PATH=$bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=xterm
export HOME=/root
export USER=root
STEP 6:
##########################################
#Set up mountpoints #
##########################################
mkdir -p $mnt/media/sdcard
mount -o bind /dev $mnt/dev/
mount -t proc proc $mnt/proc/
mount -t sysfs sysfs $mnt/sys/
mount -t devpts devpts $mnt/dev/pts/
mount -o bind /sdcard $mnt/media/sdcard
mount -t tmpfs /cache $mnt/var/cache
STEP 7: ONLY ON FIRST RUN
##########################################
#Sets up network forwarding #
##########################################
busybox sysctl -w net.ipv4.ip_forward=1
cd /data/local
nano into resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
save exit
mv -vf resolv.conf $mnt/etc/resolv.conf
nano hosts
127.0.0.1 localhost
save exit
mv -vf hosts $mnt/etc/hosts
STEP 8:
##########################################
#CHROOT #
##########################################
chroot $mnt /bin/bash
STEP 9: ONLY ON FIRST RUN
##########################################
#edit /etc/pacman.conf #
##########################################
Comment out CheckSpace with #
STEP 10: ONLY ON FIRST RUN
##########################################
#initialize pacman keys #
##########################################
rm -r /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinuxarm
pacman-key --refresh-keys
⚠ By watching this video, you agree that I do not hold accountable for any application/software/hardware mentioned and is for entertainment purposes only. I am not sponsored by anyone and cannot guarantee the safety of these application/software. Please do your own research before downloading/purchasing any application/software/hardware. The amazon links are affiliated which means I get a small commission every time someone purchase through the amzn links.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: