Skip to content

Instantly share code, notes, and snippets.

@TopperBG
Last active November 22, 2022 07:19
Show Gist options
  • Save TopperBG/f94890ef72703013048e4b10a0ba0014 to your computer and use it in GitHub Desktop.
Save TopperBG/f94890ef72703013048e4b10a0ba0014 to your computer and use it in GitHub Desktop.

Revisions

  1. TopperBG revised this gist Nov 22, 2022. 1 changed file with 1 addition and 5 deletions.
    6 changes: 1 addition & 5 deletions termux-debian-jackett.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,5 @@
    #!/bin/sh
    pkg update
    pkg upgrade -y
    pkg install proot-distro wget
    pkg clean
    pkg autoclean
    pkg update && pkg upgrade -y && pkg install proot-distro wget && pkg clean && pkg autoclean
    ver=$( curl -s -H 'Pragma: no-cache' "https://api.github.com/repos/Jackett/Jackett/releases/latest" | awk -F '"' '/tag_name/{print $4}' | tr -d '[:cntrl:]' )
    echo ">>> Latest Jackett version $ver"

  2. TopperBG revised this gist Nov 14, 2022. 1 changed file with 9 additions and 6 deletions.
    15 changes: 9 additions & 6 deletions termux-debian-jackett.sh
    Original file line number Diff line number Diff line change
    @@ -8,12 +8,15 @@ ver=$( curl -s -H 'Pragma: no-cache' "https://api.github.com/repos/Jackett/Jacke
    echo ">>> Latest Jackett version $ver"

    case $( uname -m | tr '[:upper:]' '[:lower:]') in
    "x86_64" )
    targetos=LinuxAMD;;
    "aarch64" )
    targetos=LinuxARM64;;
    "aarch32"|"armv7*" )
    targetos=LinuxARM32;;
    x86_64 )
    targetos=LinuxAMD
    ;;
    aarch64 )
    targetos=LinuxARM64
    ;;
    aarch32 | armv7* )
    targetos=LinuxARM32
    ;;
    * )
    echo "Unsupported OS, exiting..."
    exit 1
  3. TopperBG revised this gist Nov 10, 2022. 1 changed file with 22 additions and 4 deletions.
    26 changes: 22 additions & 4 deletions termux-debian-jackett.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,29 @@
    #!/bin/sh
    pkg update
    pkg upgrade -y
    pkg install -y proot-distro wget
    pkg autoremove -y
    wget https://github.com/Jackett/Jackett/releases/download/v0.20.2163/Jackett.Binaries.LinuxAMDx64.tar.gz -O /sdcard/Download/Jackett.Binaries.LinuxAMDx64.tar.gz
    pkg install proot-distro wget
    pkg clean
    pkg autoclean
    ver=$( curl -s -H 'Pragma: no-cache' "https://api.github.com/repos/Jackett/Jackett/releases/latest" | awk -F '"' '/tag_name/{print $4}' | tr -d '[:cntrl:]' )
    echo ">>> Latest Jackett version $ver"

    case $( uname -m | tr '[:upper:]' '[:lower:]') in
    "x86_64" )
    targetos=LinuxAMD;;
    "aarch64" )
    targetos=LinuxARM64;;
    "aarch32"|"armv7*" )
    targetos=LinuxARM32;;
    * )
    echo "Unsupported OS, exiting..."
    exit 1
    ;;
    esac
    URL=$( curl -s -H 'Pragma: no-cache' "https://api.github.com/repos/Jackett/Jackett/releases/latest" | grep browser_download_url | cut -d '"' -f 4 | grep ${targetos} )
    wget "$URL" -O /sdcard/Download/Jackett.Binaries.tar.gz
    #rm -rf /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/root/Jackett
    proot-distro install debian
    proot-distro login debian -- tar -xvzf /sdcard/Download/Jackett.Binaries.LinuxAMDx64.tar.gz
    proot-distro login debian -- tar -xvzf /sdcard/Download/Jackett.Binaries.tar.gz
    echo "~/Jackett/jackett_launcher.sh" >> /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/root/.bashrc
    echo "proot-distro login debian" > ~/.bashrc
    sync
  4. TopperBG revised this gist Oct 25, 2022. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion termux-debian-jackett.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    #!/bin/sh
    set -eu
    pkg update
    pkg upgrade -y
    pkg install -y proot-distro wget
  5. TopperBG created this gist Oct 25, 2022.
    13 changes: 13 additions & 0 deletions termux-debian-jackett.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/bin/sh
    set -eu
    pkg update
    pkg upgrade -y
    pkg install -y proot-distro wget
    pkg autoremove -y
    wget https://github.com/Jackett/Jackett/releases/download/v0.20.2163/Jackett.Binaries.LinuxAMDx64.tar.gz -O /sdcard/Download/Jackett.Binaries.LinuxAMDx64.tar.gz
    proot-distro install debian
    proot-distro login debian -- tar -xvzf /sdcard/Download/Jackett.Binaries.LinuxAMDx64.tar.gz
    echo "~/Jackett/jackett_launcher.sh" >> /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/root/.bashrc
    echo "proot-distro login debian" > ~/.bashrc
    sync
    exit 0