diff --git a/README.md b/README.md index 6ccfeaa..c3306b8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # termux-fedora A script to install a Fedora chroot into Termux. -Currently it supports Fedora 36 ARM64 and Fedora 35 ARM64. +Currently it supports Fedora 38 and 37 ARM64. Starting from Fedora 28, Container image for 32bit ARM is no longer provided. @@ -13,8 +13,9 @@ You can also try running https://github.com/nmilosev/anyfed which is a bit more Supported images: -- f35_arm64 -- f36_arm64 +- f37_arm64 +- f38_arm64 +- (older images too, but Fedora 36 is End-of-life) ``` pkg install wget -y && /data/data/com.termux/files/usr/bin/wget https://raw.githubusercontent.com/nmilosev/termux-fedora/master/termux-fedora.sh @@ -25,7 +26,7 @@ sh termux-fedora.sh [desired image] For example: ``` -sh termux-fedora.sh f35_arm64 +sh termux-fedora.sh f38 ``` To uninstall: diff --git a/termux-fedora.sh b/termux-fedora.sh index aa0bbe8..c6b81bf 100644 --- a/termux-fedora.sh +++ b/termux-fedora.sh @@ -2,12 +2,11 @@ # input validator and help +# https://github.com/fedorapackaging/docker-images + case "$1" in - f37_arm64) - DOCKERIMAGE=https://download.fedoraproject.org/pub/fedora/linux/releases/37/Container/aarch64/images/Fedora-Container-Base-37-1.7.aarch64.tar.xz - ;; - f36_arm64) - DOCKERIMAGE=https://download.fedoraproject.org/pub/fedora/linux/releases/36/Container/aarch64/images/Fedora-Container-Base-36-1.5.aarch64.tar.xz + f39) + DOCKERIMAGE=https://mirror.init7.net/fedora/fedora/linux/releases/39/Container/aarch64/images/Fedora-Container-Minimal-Base-39-1.5.aarch64.tar.xz ;; uninstall) chmod -R 777 ~/fedora @@ -16,7 +15,7 @@ case "$1" in exit 0 ;; *) - echo $"Usage: $0 {f36_arm64|f37_arm64|uninstall}" + echo $"Usage: $0 {f37|f38|uninstall}" exit 2 ;; esac @@ -28,7 +27,7 @@ pkg install proot tar wget -y # get the docker image -mkdir ~/fedora +mkdir -p ~/fedora cd ~/fedora /data/data/com.termux/files/usr/bin/wget $DOCKERIMAGE -O fedora.tar.xz @@ -47,8 +46,9 @@ rm layer.tar rm fedora.tar.xz # fix DNS - -echo "nameserver 8.8.8.8" > ~/fedora/etc/resolv.conf +mkdir -p ~/fedora/etc/systemd/resolved.conf.d/ +echo "DNS=185.95.218.42 185.95.218.43" > ~/fedora/etc/systemd/resolved.conf.d/DNS-Overwrite.conf +echo "FallbackDNS=78.46.244.143 45.91.92.121" >> ~/fedora/etc/systemd/resolved.conf.d/DNS-Overwrite.conf # make a shortcut