From 4afd201732a1aad50fdd4b9ca42ba97a50c83d51 Mon Sep 17 00:00:00 2001 From: trytomakeyouprivate <113100745+trytomakeyouprivate@users.noreply.github.com> Date: Fri, 19 May 2023 21:36:25 +0000 Subject: [PATCH 1/4] updated Fedora version --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ccfeaa..2950452 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 37 ARM64 and Fedora 36 ARM64. Starting from Fedora 28, Container image for 32bit ARM is no longer provided. @@ -13,8 +13,8 @@ You can also try running https://github.com/nmilosev/anyfed which is a bit more Supported images: -- f35_arm64 - f36_arm64 +- f37_arm64 ``` 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 +25,7 @@ sh termux-fedora.sh [desired image] For example: ``` -sh termux-fedora.sh f35_arm64 +sh termux-fedora.sh f37_arm64 ``` To uninstall: From cbd154e98ac2dc74981d079512a3075961088182 Mon Sep 17 00:00:00 2001 From: trytomakeyouprivate <113100745+trytomakeyouprivate@users.noreply.github.com> Date: Sun, 25 Jun 2023 13:56:15 +0000 Subject: [PATCH 2/4] Update to F38, fixed DNS overwrite, removed Google, added Fallback --- termux-fedora.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/termux-fedora.sh b/termux-fedora.sh index aa0bbe8..1930df1 100644 --- a/termux-fedora.sh +++ b/termux-fedora.sh @@ -3,11 +3,11 @@ # input validator and help case "$1" in - f37_arm64) + f37) 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 + f38) + DOCKERIMAGE=https://mirror.init7.net/fedora/fedora/linux/releases/38/Container/aarch64/images/Fedora-Container-Minimal-Base-38-1.6.aarch64.tar.xz ;; uninstall) chmod -R 777 ~/fedora @@ -16,7 +16,7 @@ case "$1" in exit 0 ;; *) - echo $"Usage: $0 {f36_arm64|f37_arm64|uninstall}" + echo $"Usage: $0 {f37|f38|uninstall}" exit 2 ;; esac @@ -47,8 +47,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 From ed5caae5a7d4f19b482750f3722a78f4f8992343 Mon Sep 17 00:00:00 2001 From: trytomakeyouprivate <113100745+trytomakeyouprivate@users.noreply.github.com> Date: Sun, 25 Jun 2023 13:57:47 +0000 Subject: [PATCH 3/4] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2950452..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 37 ARM64 and Fedora 36 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: -- 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 f37_arm64 +sh termux-fedora.sh f38 ``` To uninstall: From 772a1a3d23373b4c7989f5b58f4314bd502196c7 Mon Sep 17 00:00:00 2001 From: trytomakeyouprivate <113100745+trytomakeyouprivate@users.noreply.github.com> Date: Tue, 19 Dec 2023 03:14:15 +0000 Subject: [PATCH 4/4] updates updated the image to f39 fixed the mkdir -p spello todo: add a rawhide source (Docker hub needs auth token) --- termux-fedora.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/termux-fedora.sh b/termux-fedora.sh index 1930df1..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) - DOCKERIMAGE=https://download.fedoraproject.org/pub/fedora/linux/releases/37/Container/aarch64/images/Fedora-Container-Base-37-1.7.aarch64.tar.xz - ;; - f38) - DOCKERIMAGE=https://mirror.init7.net/fedora/fedora/linux/releases/38/Container/aarch64/images/Fedora-Container-Minimal-Base-38-1.6.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 @@ -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,7 +46,7 @@ rm layer.tar rm fedora.tar.xz # fix DNS -mkdir -P ~/fedora/etc/systemd/resolved.conf.d/ +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