├── .conf └── VERSIONID ├── .github ├── FUNDING.yml └── workflows │ ├── greetings.yml │ ├── label.yml │ └── stale.yml ├── CHANGE.log ├── LICENSE ├── README.md ├── debug ├── README.md ├── deprecated │ ├── README.md │ └── raf.sh ├── sraf.sh ├── t.sh └── test.harness.device.info.bash ├── docs ├── LICENSE.apa ├── LICENSE.mit └── README.md ├── files ├── README.md ├── mirrors ├── revisions.txt ├── stable │ ├── archlinuxconfig.sh │ ├── espritfunctions.sh │ ├── getimagefunctions.sh │ ├── knownconfigurations.sh │ ├── maintenanceroutines.sh │ ├── necessaryfunctions.sh │ ├── printoutstatements.sh │ ├── setupTermuxArch.sh │ ├── v0.4.id464713857 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.4.id495210462 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.4.id545099196 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.4.id584277212 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.4.id907814152 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.5.id559408569 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.6.1.id182523960 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.7.id060011659 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.7.id199579293 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.7.id206231686 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.1.id502434699 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.10 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.2.id760111554 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.2.id774097627 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.3.id282764378 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.3 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.4 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.5 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.6 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.7 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.8 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.9 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id097122283 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id124506942 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id243891638 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id298596924 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id342721413 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id349411327 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id398882548 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id405274886 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id454006349 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.8.id477066127 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.9.1 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v0.9 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v1.2 │ │ ├── a.sh │ │ ├── archsystemconfigs.sh │ │ ├── enfrag.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v1.3 │ │ ├── a.sh │ │ ├── archsystemconfigs.sh │ │ ├── enfrag.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v1.4 │ │ ├── a.sh │ │ ├── archsystemconfigs.sh │ │ ├── enfrag.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v1.5 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v1.6 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ ├── v1.6id1294 │ │ ├── archlinuxconfig.sh │ │ ├── espritfunctions.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── maintenanceroutines.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ └── setupTermuxArch.sh │ ├── v1.6id1636 │ │ ├── archlinuxconfig.sh │ │ ├── espritfunctions.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── maintenanceroutines.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ └── setupTermuxArch.sh │ ├── v1.6id2021 │ │ ├── archlinuxconfig.sh │ │ ├── espritfunctions.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── maintenanceroutines.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ └── setupTermuxArch.sh │ ├── v1.6id4195 │ │ ├── archlinuxconfig.sh │ │ ├── espritfunctions.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── maintenanceroutines.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ └── setupTermuxArch.sh │ └── v2.0.603 │ │ ├── archlinuxconfig.bash │ │ ├── espritfunctions.bash │ │ ├── getimagefunctions.bash │ │ ├── knownconfigurations.bash │ │ ├── maintenanceroutines.bash │ │ ├── necessaryfunctions.bash │ │ ├── printoutstatements.bash │ │ ├── setupTermuxArch │ │ ├── setupTermuxArch.bash │ │ └── setupTermuxArch.sh ├── todo ├── unstable │ ├── genv1.6id069188314455 │ │ ├── archlinuxconfig.sh │ │ ├── espritfunctions.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── maintenanceroutines.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ └── setupTermuxArch.sh │ ├── genv1.6id295684629084 │ │ ├── archlinuxconfig.sh │ │ ├── espritfunctions.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── maintenanceroutines.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ └── setupTermuxArch.sh │ ├── genv1.6id494205653499w │ │ ├── archlinuxconfig.sh │ │ ├── espritfunctions.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── maintenanceroutines.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── t │ ├── u0.4.657924532 │ │ ├── archsystemconfigs.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh │ └── vpre1.7 │ │ ├── archlinuxconfig.sh │ │ ├── espritfunctions.sh │ │ ├── getimagefunctions.sh │ │ ├── knownconfigurations.sh │ │ ├── necessaryfunctions.sh │ │ ├── printoutstatements.sh │ │ ├── setupTermuxArch.sh │ │ └── systemmaintenance.sh ├── version └── working │ ├── archlinuxconfig.sh │ ├── espritfunctions.sh │ ├── getimagefunctions.sh │ ├── knownconfigurations.sh │ ├── maintenanceroutines.sh │ ├── necessaryfunctions.sh │ ├── printoutstatements.sh │ └── setupTermuxArch.sh ├── frags ├── 500KBfile.txt ├── BASHshortcuts.txt ├── README.md ├── aarray.sh ├── aia.sh ├── colors │ ├── 16-colors.sh │ ├── 256-colors.sh │ ├── 256a-colors.sh │ ├── 259+colorswithformats.sh │ ├── blnk │ ├── colorchart │ └── colortable ├── copy.to.multiply.files.txt ├── depreciated │ ├── README.md │ ├── espritfunctions.bash │ └── frags.sh ├── es │ └── sieve.sh ├── file ├── fperms.sh ├── frags ├── funky │ └── command ├── gm │ └── wae ├── header.sh ├── init.sh ├── int-or-string.sh ├── isocountrycodes.bash ├── lf │ ├── lf │ ├── lf1 │ ├── lf2 │ ├── lf3 │ └── lf4 ├── libshm │ ├── libandroid-shmem-gnu.log │ ├── libandroid-shmem-gnu2.log │ ├── libandroid-shmem-gnu3.log │ ├── libandroid-shmem-gnu4.log │ └── libandroid-shmem.log ├── manjaro.sh ├── oneliners ├── pk.sh ├── proot │ ├── ktest.sh │ └── proots.md ├── pullScripts.TermuxArchSubmodules.bash ├── pwd.sh ├── qemugetarchlinux32dual.bash ├── qemugeti686.bash ├── returntest.sh ├── rnd │ ├── 9.11.sh │ ├── 9.12.sh │ ├── 9.13.sh │ ├── 9.14.sh │ ├── 9.15.sh │ ├── 9.16.sh │ ├── 9.17.sh │ ├── a │ └── we.sh ├── rwl.sh ├── sed1line.txt ├── sed1line2.txt ├── sp.sh ├── space.sh ├── spinning ├── stdoutbench.sh ├── systemvars.txt ├── taprootuserland.bash ├── taqemualpinex86.bash ├── tmp ├── unsetfuva.bash ├── wl └── wul ├── incoming └── androidcommandlinetools.install.sh ├── maintenance ├── addSubmoduleDocs.sh ├── addSubmoduleImgs.sh ├── addSubmoduleScripts.sh ├── addSubmoduledfa.sh ├── addSubmodulegen.sh ├── addSubmodules.sh ├── do.trees.bash ├── fixperms.sh ├── gsn.sh ├── makechangelog.sh ├── makedownload.sh ├── makegen.sh ├── pullTermuxArchSubmodules.sh ├── pullTermuxArchSubmodules2.sh ├── resetTermuxArch.sh ├── sn.sh ├── updateSubmodules.sh └── uprTermuxArch.bash └── sha512.sum /.conf/VERSIONID: -------------------------------------------------------------------------------- 1 | 2.0.27 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: https://paypal.me/SDRausty 2 | -------------------------------------------------------------------------------- /.github/workflows/greetings.yml: -------------------------------------------------------------------------------- 1 | name: Greetings 2 | 3 | on: [pull_request, issues] 4 | 5 | jobs: 6 | greeting: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/first-interaction@v3 10 | with: 11 | repo-token: ${{ secrets.GITHUB_TOKEN }} 12 | issue-message: 'Thank you for contributing to make this project better😎 Keep up and follow to solve this issue. Please feel free to draft a [pull request here](https://github.com/TermuxArch/TermuxArch/pulls) too to resolve this issue by tapping "new" at [this link](https://github.com/TermuxArch/TermuxArch/pulls). Do not worry if it is not perfect on your first attempt. This is what pull requests are for, in order to improve the published source code.' 13 | pr-message: 'Thank you for contributing to make this project better🎉' 14 | -------------------------------------------------------------------------------- /.github/workflows/label.yml: -------------------------------------------------------------------------------- 1 | # This workflow will triage pull requests and apply a label based on the 2 | # paths that are modified in the pull request. 3 | # 4 | # To use this workflow, you will need to set up a .github/labeler.yml 5 | # file with configuration. For more information, see: 6 | # https://github.com/actions/labeler/blob/master/README.md 7 | 8 | name: Labeler 9 | on: [pull_request] 10 | 11 | jobs: 12 | label: 13 | 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - uses: actions/labeler@v3 18 | with: 19 | repo-token: "${{ secrets.GITHUB_TOKEN }}" 20 | -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | name: Mark stale issues and pull requests 2 | 3 | on: 4 | schedule: 5 | - cron: "0 0 * * *" 6 | 7 | jobs: 8 | stale: 9 | 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/stale@v3 14 | with: 15 | repo-token: ${{ secrets.GITHUB_TOKEN }} 16 | stale-issue-message: 'Stale issue message' 17 | stale-pr-message: 'Stale pull request message' 18 | stale-issue-label: 'no-issue-activity' 19 | stale-pr-label: 'no-pr-activity' 20 | -------------------------------------------------------------------------------- /CHANGE.log: -------------------------------------------------------------------------------- 1 | Computed on 20190611 branch master. 2 | Size in KB 3 | 5508 .git 4 | 12448 . 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | TermuxArch 2 | =============== 3 | [![Join the chat at https://gitter.im/termux](https://badges.gitter.im/termux/termux.svg)](https://gitter.im/termux) 4 | 5 | This Termux bash shell script will attempt to set up Arch Linux on Amazon Fire OS, Android and Chromebook using [Termux](https://github.com/termux). 6 | 7 | Install Arch Linux into a Termux PRoot container with [`bash setupTermuxArch.sh`](https://raw.githubusercontent.com/sdrausty/TermuxArch/master/setupTermuxArch.sh). 8 | 9 | See https://TermuxArch.github.io/docsTermuxArch/install for options how to run [`setupTermuxArch.sh`](https://TermuxArch.github.io/TermuxArch/setupTermuxArch.sh) on device. 10 | 11 | This repository uses submodules. To get all the pieces of this repository run [`pullTermuxArchSubmodules.bash`](https://github.com/TermuxArch/TermuxArch/blob/master/pullTermuxArchSubmodules.bash)after cloning in the root directory of this repository. 12 | 13 | * Comments are welcome at https://github.com/TermuxArch/TermuxArch/issues ✍ 14 | * Pull requests are welcome at https://github.com/TermuxArch/TermuxArch/pulls ✍ 15 | 16 | Thank you for making this project work better and please contribute 🔆  [Contributors](https://termuxarch.github.io/TermuxArch/CONTRIBUTORS) and [Notice to Contributors](https://termuxarch.github.io/TermuxArch/NOTICE) have more information about this project. 17 | 18 | -------------------------------------------------------------------------------- /debug/README.md: -------------------------------------------------------------------------------- 1 | These debugging scripts are a pleasure to use: 2 | 3 | 1) `sraf.sh` has a very simple function. It is to remove `$HOME/arch` completely. Please use `sraf.sh` with caution, ideally on a device dedicated to debugging. 4 | -------------------------------------------------------------------------------- /debug/deprecated/README.md: -------------------------------------------------------------------------------- 1 | Obsolete README.md Sat Nov 25 20:20:33 EST 2017 2 | These debugging scripts are a pleasure to use: 3 | 4 | 1) `raf.sh` does one iteration of Arch Linux in Termux install and purge from start to finish. It runs `setupTermuxArch.sh`, then removes all files that were installed. A word of warning, the script can malfunction and wipe all the data in the `$HOME` directory if you run more than one session at a time. To reproduce this effect, run two sessions of `raf.sh` simultaneously. Finish one. Then exit the other. Please use `raf.sh` with caution, ideally on a device dedicated to debugging. 5 | 6 | 2) `sraf.sh` has a much simpler function. It is to remove `$HOME/arch` completely. Please use `sraf.sh` with caution, ideally on a device dedicated to debugging. 7 | -------------------------------------------------------------------------------- /debug/deprecated/raf.sh: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/bash -e 2 | # Website for this project at https://sdrausty.github.io/TermuxArch 3 | # See https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank You! 4 | # Copyright 2017 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 5 | # Run the following before using `raf.sh` to debug `setupTermuxArch.sh`: 6 | # apt-get -qq update && apt-get -qq upgrade --yes 7 | # apt-get -qq install findutils --yes 8 | # See README.md for instructions and warning! 9 | ##################################################################### 10 | if [ ! -d $HOME/arch ] ;then 11 | wget -N https://raw.githubusercontent.com/sdrausty/TermuxArch/master/setupTermuxArch.sh 12 | bash setupTermuxArch.sh 13 | printf "Exited setupTermuxArch.sh\nContinuing raf.sh \n" 14 | cd $HOME/arch 15 | rm -rf * 2>/dev/null||: 16 | find -type d -exec chmod 700 {} \; 2>/dev/null||: 17 | cd .. 18 | rm -rf arch 19 | printf "raf.sh done\n" 20 | else 21 | printf "raf.sh exiting\nnothing to do\n" 22 | fi 23 | 24 | -------------------------------------------------------------------------------- /debug/sraf.sh: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/bash -e 2 | # Website for this project at https://sdrausty.github.io/TermuxArch 3 | # See https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank You! 4 | # Copyright 2017 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 5 | # Run the following before using `raf.sh` to debug `setupTermuxArch.sh`: 6 | # apt-get -qq update && apt-get -qq upgrade --yes 7 | # apt-get -qq install findutils --yes 8 | # See README.md for instructions and warning! 9 | ##################################################################### 10 | if [ -d $HOME/arch ] ;then 11 | cd $HOME/arch 12 | rm -rf * 2>/dev/null||: 13 | find -type d -exec chmod 700 {} \; 2>/dev/null||: 14 | cd .. 15 | rm -rf arch 16 | printf "sraf.sh done\n" 17 | else 18 | printf "sraf.sh exiting\nnothing to do\n" 19 | fi 20 | 21 | -------------------------------------------------------------------------------- /debug/t.sh: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/bash 2 | #RELEASE_URL=$(wget -q -O - http://www.rstudio.org/download/daily/desktop/ubuntu64 | grep -o -m 1 "https[^\']*" ) 3 | RELEASE_URL=$(wget -q -O - http://mirrors.evowise.com/archlinux/iso/latest/ | grep -o -m 1 "https[^\']*" |less ) 4 | RELEASE_URL=$(wget -q -O - http://mirrors.evowise.com/archlinux/iso/latest/ | grep -o -m 1 "https[^\']*tar.gz" ) 5 | RELEASE_URL=$(wget -q -O - http://mirrors.evowise.com/archlinux/iso/latest/ | less ) 6 | RELEASE_URL=$(wget -q -O - http://mirrors.evowise.com/archlinux/iso/latest/ | grep -o -m 1 "https[^\']*" ) 7 | 8 | # check version from name ... 9 | 10 | 11 | echo ${RELEASE_URL} 12 | echo $RELEASE_URL 13 | echo RELEASE_URL 14 | wget ${RELEASE_URL} 15 | -------------------------------------------------------------------------------- /debug/test.harness.device.info.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Copyright 2020 by SDRausty. All rights reserved. See LICENCE 🌎 🌍 🌏 🌐 🗺 3 | # Hosted sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/README has info about this project. 5 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 6 | ################################################################################ 7 | bash setupTermuxArch.bash sysinfo 8 | bash setupTermuxArch.bash aria2c sysinfo 9 | bash setupTermuxArch.bash axel sysinfo 10 | bash setupTermuxArch.bash curl sysinfo 11 | bash setupTermuxArch.bash lftp sysinfo 12 | bash setupTermuxArch.bash wget sysinfo 13 | # knownconfigurations.bash EOF 14 | -------------------------------------------------------------------------------- /docs/LICENSE.mit: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright 2017 by SDRausty. All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | TermuxArch 2 | =============== 3 | [![Join the chat at https://gitter.im/termux](https://badges.gitter.im/termux/termux.svg)](https://gitter.im/termux) 4 | 5 | This Termux bash shell script will attempt to set up Arch Linux on Amazon Fire OS, Android and Chromebook using [Termux](https://termux.com). 6 | 7 | Install Arch Linux into a Termux PRoot container with [`bash setupTermuxArch.sh`](setupTermuxArch.sh). 8 | 9 | See https://sdrausty.github.io/TermuxArch/docs/install for options how to run [`setupTermuxArch.sh`](https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh) on device. 10 | 11 | This repository uses submodules. To get all the pieces of this repository run [`scripts/maintenance/pullTermuxArchSubmodules.sh`](scripts/maintenance/pullTermuxArchSubmodules.sh)after cloning in the root directory of this repository. 12 | 13 | * Comments are welcome at https://github.com/sdrausty/TermuxArch/issues ✍ 14 | * Pull requests are welcome at https://github.com/sdrausty/TermuxArch/pulls ✍ 15 | 16 | Thank you for making this project work better and please contribute 🔆  [Contributors](CONTRIBUTORS.md) and [Notice to Contributors](NOTICE.md) have more information about this project. 17 | 18 | -------------------------------------------------------------------------------- /files/README.md: -------------------------------------------------------------------------------- 1 | TermuxArch 2 | =============== 3 | [![Join the chat at https://gitter.im/termux](https://badges.gitter.im/termux/termux.svg)](https://gitter.im/termux) 4 | [![Join the IRC chat at Freenode](https://badges.gitter.im/termux/termux.svg)](https://gitter.im/termux/termux) 5 | 6 | This Termux bash setup shell script will attempt to set Arch Linux up in your Termux environment. Use [`bash setupTermuxArch.sh`](setupTermuxArch.sh) to install Arch Linux in a Termux PRoot container on your Android smartphone and tablet, and Chromebook too. When successfully completed, you will be experiencing the pleasure of the Linux command prompt in Arch Linux in Termux on your device. See https://sdrausty.github.io/TermuxArch/docs/install for options how to run [`setupTermuxArch.sh`](https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh) on device. This repository uses submodules. To get all the pieces of this repository run [`scripts/maintenance/pullTermuxArchSubmodules.sh`](scripts/maintenance/pullTermuxArchSubmodules.sh) after cloning in the root directory of this repository. Use [`scripts/maintenance/makedownload.sh`](scripts/maintenance/makedownload.sh) to generate the md5sum and tar.gz files in the stable and testing directories. 7 | 8 | * Comments are welcome at https://github.com/sdrausty/TermuxArch/issues ✍ 9 | * Pull requests are welcome https://github.com/sdrausty/TermuxArch/pulls ✍ 10 | 11 | Thank you for making this project work better and please contribute 🔆  [Contributors](CONTRIBUTORS), [README.md](https://raw.githubusercontent.com/sdrausty/TermuxArch/master/README.md) and [Notice to Contributors](../../NOTICE) have more information about this project. 12 | 13 | 14 | -------------------------------------------------------------------------------- /files/mirrors: -------------------------------------------------------------------------------- 1 | https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/core/pacman-mirrorlist/mirrorlist 2 | https://www.archlinux.org/mirrorlist/ 3 | https://github.com/archlinuxarm 4 | https://archlinuxarm.org/about/mirrors 5 | https://www.archlinux.org/mirrors/status/ 6 | -------------------------------------------------------------------------------- /files/revisions.txt: -------------------------------------------------------------------------------- 1 | Error codes added. 2 | Help expanded; Verbose help added. 3 | libandroid-shmem support added. 4 | set -Eeou pipefail added. 5 | sysinfo () enchanced to accept custom directores. 6 | Traps implemented. 7 | -------------------------------------------------------------------------------- /files/stable/printoutstatements.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TermuxArch/scripts.TermuxArch/0abeaa8299200ca8df7d8c3fdf72cf1f08d12380/files/stable/printoutstatements.sh -------------------------------------------------------------------------------- /files/stable/v0.4.id464713857/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Detected configurations. Change mirror to your desired geographic location. 7 | # Please add configurations to this list if you find one that is not listed. 8 | ################################################################################ 9 | 10 | aarch64 () 11 | { 12 | file=ArchLinuxARM-aarch64-latest.tar.gz 13 | mirror=mirror.archlinuxarm.org 14 | path=/os/ 15 | makesystem 16 | } 17 | 18 | armv5l () 19 | { 20 | file=ArchLinuxARM-armv5-latest.tar.gz 21 | mirror=mirror.archlinuxarm.org 22 | path=/os/ 23 | makesystem 24 | } 25 | 26 | armv7lAndroid () 27 | { 28 | file=ArchLinuxARM-armv7-latest.tar.gz 29 | mirror=mirror.archlinuxarm.org 30 | path=/os/ 31 | makesystem 32 | } 33 | 34 | armv7lChrome () 35 | { 36 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 37 | mirror=mirror.archlinuxarm.org 38 | path=/os/ 39 | makesystem 40 | } 41 | 42 | i686 () 43 | { 44 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 45 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 46 | mirror=archive.archlinux.org 47 | path=/iso/2017.03.01/ 48 | makesystem 49 | } 50 | 51 | x86_64 () 52 | { 53 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 54 | mirror=mirrors.evowise.com 55 | path=/archlinux/iso/latest/ 56 | makesystem 57 | } 58 | 59 | uImage () 60 | { 61 | # default image download configuration data set function 62 | file=imageFile.tar.gz 63 | mirror=mirror.server.org 64 | path=/os/ 65 | makesystem 66 | } 67 | 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.4.id495210462/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Detected configurations. Change mirror to your desired geographic location. 7 | # Please add configurations to this list if you find one that is not listed. 8 | ################################################################################ 9 | 10 | aarch64 () 11 | { 12 | file=ArchLinuxARM-aarch64-latest.tar.gz 13 | mirror=mirror.archlinuxarm.org 14 | path=/os/ 15 | makesystem 16 | } 17 | 18 | armv5l () 19 | { 20 | file=ArchLinuxARM-armv5-latest.tar.gz 21 | mirror=mirror.archlinuxarm.org 22 | path=/os/ 23 | makesystem 24 | } 25 | 26 | armv7lAndroid () 27 | { 28 | file=ArchLinuxARM-armv7-latest.tar.gz 29 | mirror=mirror.archlinuxarm.org 30 | path=/os/ 31 | makesystem 32 | } 33 | 34 | armv7lChrome () 35 | { 36 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 37 | mirror=mirror.archlinuxarm.org 38 | path=/os/ 39 | makesystem 40 | } 41 | 42 | i686 () 43 | { 44 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 45 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 46 | mirror=archive.archlinux.org 47 | path=/iso/2017.03.01/ 48 | makesystem 49 | } 50 | 51 | x86_64 () 52 | { 53 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 54 | mirror=mirrors.evowise.com 55 | path=/archlinux/iso/latest/ 56 | makesystem 57 | } 58 | 59 | uImage () 60 | { 61 | # default image download configuration data set function 62 | file=imageFile.tar.gz 63 | mirror=mirror.server.org 64 | path=/os/ 65 | makesystem 66 | } 67 | 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.4.id545099196/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Detected configurations. Change mirror to your desired geographic location. 7 | # Please add configurations to this list if you find one that is not listed. 8 | ################################################################################ 9 | 10 | aarch64 () 11 | { 12 | file=ArchLinuxARM-aarch64-latest.tar.gz 13 | mirror=mirror.archlinuxarm.org 14 | path=/os/ 15 | makesystem 16 | } 17 | 18 | armv5l () 19 | { 20 | file=ArchLinuxARM-armv5-latest.tar.gz 21 | mirror=mirror.archlinuxarm.org 22 | path=/os/ 23 | makesystem 24 | } 25 | 26 | armv7lAndroid () 27 | { 28 | file=ArchLinuxARM-armv7-latest.tar.gz 29 | mirror=mirror.archlinuxarm.org 30 | path=/os/ 31 | makesystem 32 | } 33 | 34 | armv7lChrome () 35 | { 36 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 37 | mirror=mirror.archlinuxarm.org 38 | path=/os/ 39 | makesystem 40 | } 41 | 42 | i686 () 43 | { 44 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 45 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 46 | mirror=archive.archlinux.org 47 | path=/iso/2017.03.01/ 48 | makesystem 49 | } 50 | 51 | x86_64 () 52 | { 53 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 54 | mirror=mirrors.evowise.com 55 | path=/archlinux/iso/latest/ 56 | makesystem 57 | } 58 | 59 | uImage () 60 | { 61 | # default image download configuration data set function 62 | file=imageFile.tar.gz 63 | mirror=mirror.server.org 64 | path=/os/ 65 | makesystem 66 | } 67 | 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.4.id584277212/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Detected configurations. Change mirror to your desired geographic location. 7 | # Please add configurations to this list if you find one that is not listed. 8 | ################################################################################ 9 | 10 | aarch64 () 11 | { 12 | file=ArchLinuxARM-aarch64-latest.tar.gz 13 | mirror=mirror.archlinuxarm.org 14 | path=/os/ 15 | makesystem 16 | } 17 | 18 | armv5l () 19 | { 20 | file=ArchLinuxARM-armv5-latest.tar.gz 21 | mirror=mirror.archlinuxarm.org 22 | path=/os/ 23 | makesystem 24 | } 25 | 26 | armv7lAndroid () 27 | { 28 | file=ArchLinuxARM-armv7-latest.tar.gz 29 | mirror=mirror.archlinuxarm.org 30 | path=/os/ 31 | makesystem 32 | } 33 | 34 | armv7lChrome () 35 | { 36 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 37 | mirror=mirror.archlinuxarm.org 38 | path=/os/ 39 | makesystem 40 | } 41 | 42 | i686 () 43 | { 44 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 45 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 46 | mirror=archive.archlinux.org 47 | path=/iso/2017.03.01/ 48 | makesystem 49 | } 50 | 51 | x86_64 () 52 | { 53 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 54 | mirror=mirrors.evowise.com 55 | path=/archlinux/iso/latest/ 56 | makesystem 57 | } 58 | 59 | uImage () 60 | { 61 | # default image download configuration data set function 62 | file=imageFile.tar.gz 63 | mirror=mirror.server.org 64 | path=/os/ 65 | makesystem 66 | } 67 | 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.4.id907814152/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Detected configurations. Change mirror to your desired geographic location. 7 | # Please add configurations to this list if you find one that is not listed. 8 | ################################################################################ 9 | 10 | aarch64 () 11 | { 12 | file=ArchLinuxARM-aarch64-latest.tar.gz 13 | mirror=mirror.archlinuxarm.org 14 | path=/os/ 15 | makesystem 16 | } 17 | 18 | armv5l () 19 | { 20 | file=ArchLinuxARM-armv5-latest.tar.gz 21 | mirror=mirror.archlinuxarm.org 22 | path=/os/ 23 | makesystem 24 | } 25 | 26 | armv7lAndroid () 27 | { 28 | file=ArchLinuxARM-armv7-latest.tar.gz 29 | mirror=mirror.archlinuxarm.org 30 | path=/os/ 31 | makesystem 32 | } 33 | 34 | armv7lChrome () 35 | { 36 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 37 | mirror=mirror.archlinuxarm.org 38 | path=/os/ 39 | makesystem 40 | } 41 | 42 | i686 () 43 | { 44 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 45 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 46 | mirror=archive.archlinux.org 47 | path=/iso/2017.03.01/ 48 | makesystem 49 | } 50 | 51 | x86_64 () 52 | { 53 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 54 | mirror=mirrors.evowise.com 55 | path=/archlinux/iso/latest/ 56 | makesystem 57 | } 58 | 59 | uImage () 60 | { 61 | # default image download configuration data set function 62 | file=imageFile.tar.gz 63 | mirror=mirror.server.org 64 | path=/os/ 65 | makesystem 66 | } 67 | 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.5.id559408569/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Detected configurations. Change mirror to your desired geographic location. 7 | # Please add configurations to this list if you find one that is not listed. 8 | ################################################################################ 9 | 10 | aarch64 () 11 | { 12 | file=ArchLinuxARM-aarch64-latest.tar.gz 13 | mirror=mirror.archlinuxarm.org 14 | path=/os/ 15 | makesystem 16 | } 17 | 18 | armv5l () 19 | { 20 | file=ArchLinuxARM-armv5-latest.tar.gz 21 | mirror=mirror.archlinuxarm.org 22 | path=/os/ 23 | makesystem 24 | } 25 | 26 | armv7lAndroid () 27 | { 28 | file=ArchLinuxARM-armv7-latest.tar.gz 29 | mirror=mirror.archlinuxarm.org 30 | path=/os/ 31 | makesystem 32 | } 33 | 34 | armv7lChrome () 35 | { 36 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 37 | mirror=mirror.archlinuxarm.org 38 | path=/os/ 39 | makesystem 40 | } 41 | 42 | i686 () 43 | { 44 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 45 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 46 | mirror=archive.archlinux.org 47 | path=/iso/2017.03.01/ 48 | makesystem 49 | } 50 | 51 | x86_64 () 52 | { 53 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 54 | mirror=mirrors.evowise.com 55 | path=/archlinux/iso/latest/ 56 | makesystem 57 | } 58 | -------------------------------------------------------------------------------- /files/stable/v0.6.1.id182523960/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | adjustmd5file () 9 | { 10 | if [ $(getprop ro.product.cpu.abi) = x86_64 ] || [ $(getprop ro.product.cpu.abi) = x86 ];then 11 | if [[ $dm = wget ]];then 12 | wget -N --show-progress http://$mirror${path}md5sums.txt 13 | else 14 | curl -q --fail --retry 4 -O -L http://$mirror${path}md5sums.txt 15 | fi 16 | filename=$(ls *tar.gz) 17 | sed '2q;d' md5sums.txt > $filename.md5 18 | rm md5sums.txt 19 | else 20 | if [[ $dm = wget ]];then 21 | wget -N --show-progress http://$mirror$path$file.md5 22 | else 23 | curl -q --fail --retry 4 -O -L http://$mirror$path$file.md5 24 | fi 25 | fi 26 | } 27 | 28 | ftchstnd () 29 | { 30 | curl -v http://os.archlinuxarm.org/ 2>gmirror 31 | nmirror=$(grep Location gmirror | awk {'print $3}') 32 | curl -q --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 33 | } 34 | 35 | getimage () 36 | { 37 | if [ $(getprop ro.product.cpu.abi) = x86_64 ];then 38 | if [[ $dm = wget ]];then 39 | wget -A tar.gz -m -nd -np http://$mirror$path 40 | else 41 | printf "\nDefaulting to \`wget\` for x86_64 system image download. \n" 42 | wget -A tar.gz -m -nd -np http://$mirror$path 43 | fi 44 | else 45 | if [[ $dm = wget ]];then 46 | wget -c --show-progress http://$mirror$path$file 47 | else 48 | curl -q -C - --fail --retry 4 -O -L http://$mirror$path$file 49 | fi 50 | fi 51 | } 52 | 53 | preproot () 54 | { 55 | if [ $(du ~/arch/*z | awk {'print $1}') -gt 112233 ];then 56 | if [ $(getprop ro.product.cpu.abi) = x86_64 ] || [ $(getprop ro.product.cpu.abi) = x86 ];then 57 | proot --link2symlink -0 bsdtar -xpf $file --strip-components 1 58 | else 59 | proot --link2symlink -0 bsdtar -xpf $file 60 | fi 61 | else 62 | printf "\n\nDownload Exception! Exiting!\n\n" 63 | exit 64 | fi 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.6.1.id182523960/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `~/setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash ~/setupTermuxArch.sh` and `~/setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | ################################################################################ 11 | 12 | aarch64 () 13 | { 14 | file=ArchLinuxARM-aarch64-latest.tar.gz 15 | mirror=os.archlinuxarm.org 16 | path=/os/ 17 | makesystem 18 | } 19 | 20 | armv5l () 21 | { 22 | file=ArchLinuxARM-armv5-latest.tar.gz 23 | mirror=os.archlinuxarm.org 24 | path=/os/ 25 | makesystem 26 | } 27 | 28 | armv7lAndroid () 29 | { 30 | file=ArchLinuxARM-armv7-latest.tar.gz 31 | mirror=os.archlinuxarm.org 32 | path=/os/ 33 | makesystem 34 | } 35 | 36 | armv7lChrome () 37 | { 38 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 39 | mirror=os.archlinuxarm.org 40 | path=/os/ 41 | makesystem 42 | } 43 | 44 | i686 () 45 | { 46 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 47 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 48 | mirror=archive.archlinux.org 49 | path=/iso/2017.03.01/ 50 | makesystem 51 | } 52 | 53 | x86_64 () 54 | { 55 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 56 | mirror=mirrors.evowise.com 57 | path=/archlinux/iso/latest/ 58 | makesystem 59 | } 60 | -------------------------------------------------------------------------------- /files/stable/v0.7.id060011659/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | adjustmd5file () 9 | { 10 | if [ $(getprop ro.product.cpu.abi) = x86_64 ] || [ $(getprop ro.product.cpu.abi) = x86 ];then 11 | if [[ $dm = wget ]];then 12 | wget -N --show-progress http://$mirror${path}md5sums.txt 13 | else 14 | curl -q --fail --retry 4 -O -L http://$mirror${path}md5sums.txt 15 | fi 16 | filename=$(ls *tar.gz) 17 | sed '2q;d' md5sums.txt > $filename.md5 18 | rm md5sums.txt 19 | else 20 | if [[ $dm = wget ]];then 21 | wget -N --show-progress http://$mirror$path$file.md5 22 | else 23 | curl -q --fail --retry 4 -O -L http://$mirror$path$file.md5 24 | fi 25 | fi 26 | } 27 | 28 | ftchstnd () 29 | { 30 | curl -v http://os.archlinuxarm.org/ 2>gmirror 31 | nmirror=$(grep Location gmirror | awk {'print $3}') 32 | curl -q --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 33 | } 34 | 35 | getimage () 36 | { 37 | if [ $(getprop ro.product.cpu.abi) = x86_64 ];then 38 | if [[ $dm = wget ]];then 39 | wget -A tar.gz -m -nd -np http://$mirror$path 40 | else 41 | printf "\nDefaulting to \`wget\` for x86_64 system image download. \n" 42 | wget -A tar.gz -m -nd -np http://$mirror$path 43 | fi 44 | else 45 | if [[ $dm = wget ]];then 46 | wget -c --show-progress http://$mirror$path$file 47 | else 48 | curl -q -C - --fail --retry 4 -O -L http://$mirror$path$file 49 | fi 50 | fi 51 | } 52 | 53 | preproot () 54 | { 55 | if [ $(du ~/arch/*z | awk {'print $1}') -gt 112233 ];then 56 | if [ $(getprop ro.product.cpu.abi) = x86_64 ] || [ $(getprop ro.product.cpu.abi) = x86 ];then 57 | proot --link2symlink -0 bsdtar -xpf $file --strip-components 1 58 | else 59 | proot --link2symlink -0 bsdtar -xpf $file 60 | fi 61 | else 62 | printf "\n\nDownload Exception! Exiting!\n\n" 63 | exit 64 | fi 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.7.id060011659/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `~/setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash ~/setupTermuxArch.sh` and `~/setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | ################################################################################ 11 | 12 | aarch64 () 13 | { 14 | file=ArchLinuxARM-aarch64-latest.tar.gz 15 | mirror=os.archlinuxarm.org 16 | path=/os/ 17 | makesystem 18 | } 19 | 20 | armv5l () 21 | { 22 | file=ArchLinuxARM-armv5-latest.tar.gz 23 | mirror=os.archlinuxarm.org 24 | path=/os/ 25 | makesystem 26 | } 27 | 28 | armv7lAndroid () 29 | { 30 | file=ArchLinuxARM-armv7-latest.tar.gz 31 | mirror=os.archlinuxarm.org 32 | path=/os/ 33 | makesystem 34 | } 35 | 36 | armv7lChrome () 37 | { 38 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 39 | mirror=os.archlinuxarm.org 40 | path=/os/ 41 | makesystem 42 | } 43 | 44 | i686 () 45 | { 46 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 47 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 48 | mirror=archive.archlinux.org 49 | path=/iso/2017.03.01/ 50 | makesystem 51 | } 52 | 53 | x86_64 () 54 | { 55 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 56 | mirror=mirrors.evowise.com 57 | path=/archlinux/iso/latest/ 58 | makesystem 59 | } 60 | -------------------------------------------------------------------------------- /files/stable/v0.7.id199579293/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `~/setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash ~/setupTermuxArch.sh` and `~/setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | ################################################################################ 11 | 12 | aarch64 () 13 | { 14 | file=ArchLinuxARM-aarch64-latest.tar.gz 15 | mirror=os.archlinuxarm.org 16 | path=/os/ 17 | makesystem 18 | } 19 | 20 | armv5l () 21 | { 22 | file=ArchLinuxARM-armv5-latest.tar.gz 23 | mirror=os.archlinuxarm.org 24 | path=/os/ 25 | makesystem 26 | } 27 | 28 | armv7lAndroid () 29 | { 30 | file=ArchLinuxARM-armv7-latest.tar.gz 31 | mirror=os.archlinuxarm.org 32 | path=/os/ 33 | makesystem 34 | } 35 | 36 | armv7lChrome () 37 | { 38 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 39 | mirror=os.archlinuxarm.org 40 | path=/os/ 41 | makesystem 42 | } 43 | 44 | i686 () 45 | { 46 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 47 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 48 | mirror=archive.archlinux.org 49 | path=/iso/2017.03.01/ 50 | makesystem 51 | } 52 | 53 | x86_64 () 54 | { 55 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 56 | mirror=mirrors.evowise.com 57 | path=/archlinux/iso/latest/ 58 | makesystem 59 | } 60 | -------------------------------------------------------------------------------- /files/stable/v0.7.id206231686/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `~/setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash ~/setupTermuxArch.sh` and `~/setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | ################################################################################ 11 | 12 | aarch64 () 13 | { 14 | file=ArchLinuxARM-aarch64-latest.tar.gz 15 | mirror=os.archlinuxarm.org 16 | path=/os/ 17 | makesystem 18 | } 19 | 20 | armv5l () 21 | { 22 | file=ArchLinuxARM-armv5-latest.tar.gz 23 | mirror=os.archlinuxarm.org 24 | path=/os/ 25 | makesystem 26 | } 27 | 28 | armv7lAndroid () 29 | { 30 | file=ArchLinuxARM-armv7-latest.tar.gz 31 | mirror=os.archlinuxarm.org 32 | path=/os/ 33 | makesystem 34 | } 35 | 36 | armv7lChrome () 37 | { 38 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 39 | mirror=os.archlinuxarm.org 40 | path=/os/ 41 | makesystem 42 | } 43 | 44 | i686 () 45 | { 46 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 47 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 48 | mirror=archive.archlinux.org 49 | path=/iso/2017.03.01/ 50 | makesystem 51 | } 52 | 53 | x86_64 () 54 | { 55 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 56 | mirror=mirrors.evowise.com 57 | path=/archlinux/iso/latest/ 58 | makesystem 59 | } 60 | -------------------------------------------------------------------------------- /files/stable/v0.8.1.id502434699/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | #cmirror="http://mirror.archlinuxarm.org/" 23 | cmirror="http://os.archlinuxarm.org/" 24 | if [[ $dm = wget ]];then 25 | printf "\033[0;32mContacting mirror \033[1;32m$cmirror. " 26 | curl -v $cmirror 2>gmirror 27 | nmirror=$(grep Location gmirror | awk {'print $3'}) 28 | rm gmirror 29 | printdownloadingftch 30 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 31 | wget $dmverbose -N --show-progress $nmirror$path$file 32 | else 33 | printf "\033[0;32mContacting mirror \033[1;32m$cmirror. " 34 | curl -v $cmirror 2>gmirror 35 | nmirror=$(grep Location gmirror | awk {'print $3'}) 36 | rm gmirror 37 | printdownloadingftch 38 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 39 | fi 40 | } 41 | 42 | getimage () 43 | { 44 | if [[ $dm = wget ]];then 45 | printdownloadingx86 46 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 47 | file=$(grep boot md5sums.txt | awk {'print $2'}) 48 | sed '2q;d' md5sums.txt > $file.md5 49 | rm md5sums.txt 50 | wget $dmverbose -c --show-progress http://$mirror$path$file 51 | else 52 | printdownloadingx86 53 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror${path}md5sums.txt 54 | file=$(grep boot md5sums.txt | awk {'print $2'}) 55 | sed '2q;d' md5sums.txt > $file.md5 56 | rm md5sums.txt 57 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file 58 | fi 59 | } 60 | 61 | -------------------------------------------------------------------------------- /files/stable/v0.8.1.id502434699/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | #file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | #file=archlinux-bootstrap-2018.02.01-x86_64.tar.gz 63 | mirror=mirror.rackspace.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.10/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | printcontacting 23 | if [[ $dm = wget ]];then 24 | wget -v -O/dev/null $cmirror 2>gmirror 25 | nmirror=$(grep Location gmirror | awk {'print $2'}) 26 | rm gmirror 27 | printdone 28 | printdownloadingftch 29 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 30 | wget $dmverbose -N --show-progress $nmirror$path$file 31 | else 32 | curl -v $cmirror 2>gmirror 33 | nmirror=$(grep Location gmirror | awk {'print $3'}) 34 | rm gmirror 35 | printdone 36 | printdownloadingftch 37 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 38 | fi 39 | } 40 | 41 | getimage () 42 | { 43 | printdownloadingx86 44 | if [[ $dm = wget ]];then 45 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 46 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 47 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 48 | else 49 | file=$(grep boot md5sums.txt | awk {'print $2'}) 50 | fi 51 | sed '2q;d' md5sums.txt > $file.md5 52 | rm md5sums.txt 53 | printdownloadingx86two 54 | wget $dmverbose -c --show-progress http://$mirror$path$file 55 | else 56 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 57 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 58 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 59 | else 60 | file=$(grep boot md5sums.txt | awk {'print $2'}) 61 | fi 62 | sed '2q;d' md5sums.txt > $file.md5 63 | rm md5sums.txt 64 | printdownloadingx86two 65 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 66 | fi 67 | } 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.8.10/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.8.2.id760111554/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | #cmirror="http://mirror.archlinuxarm.org/" 23 | cmirror="http://os.archlinuxarm.org/" 24 | if [[ $dm = wget ]];then 25 | printf "\033[0;32mContacting mirror \033[1;32m$cmirror. " 26 | curl -v $cmirror 2>gmirror 27 | nmirror=$(grep Location gmirror | awk {'print $3'}) 28 | rm gmirror 29 | printdownloadingftch 30 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 31 | wget $dmverbose -N --show-progress $nmirror$path$file 32 | else 33 | printf "\033[0;32mContacting mirror \033[1;32m$cmirror. " 34 | curl -v $cmirror 2>gmirror 35 | nmirror=$(grep Location gmirror | awk {'print $3'}) 36 | rm gmirror 37 | printdownloadingftch 38 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 39 | fi 40 | } 41 | 42 | getimage () 43 | { 44 | if [[ $dm = wget ]];then 45 | printdownloadingx86 46 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 47 | file=$(grep boot md5sums.txt | awk {'print $2'}) 48 | sed '2q;d' md5sums.txt > $file.md5 49 | rm md5sums.txt 50 | printdownloadingx86two 51 | wget $dmverbose -c --show-progress http://$mirror$path$file 52 | else 53 | printdownloadingx86 54 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror${path}md5sums.txt 55 | file=$(grep boot md5sums.txt | awk {'print $2'}) 56 | sed '2q;d' md5sums.txt > $file.md5 57 | rm md5sums.txt 58 | printdownloadingx86two 59 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file 60 | fi 61 | } 62 | 63 | -------------------------------------------------------------------------------- /files/stable/v0.8.2.id760111554/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | #file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | #file=archlinux-bootstrap-2018.02.01-x86_64.tar.gz 63 | mirror=mirror.rackspace.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.2.id774097627/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | dm=curl 15 | #dm=wget 16 | dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and at https://archlinux32.org/ as to why i686 is currently frozen at release 2017.03.01-i686. 54 | # $file is read from md5sums.txt 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # $file is read from md5sums.txt 63 | mirror=mirror.rackspace.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.3.id282764378/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | dm=curl 15 | #dm=wget 16 | dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and at https://archlinux32.org/ as to why i686 is currently frozen at release 2017.03.01-i686. 54 | # $file is read from md5sums.txt 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # $file is read from md5sums.txt 63 | mirror=mirror.rackspace.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.3/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #dm=curl 13 | #dm=wget 14 | #dmverbose="" 15 | #dmverbose="-v" 16 | 17 | aarch64 () 18 | { 19 | file=ArchLinuxARM-aarch64-latest.tar.gz 20 | mirror=os.archlinuxarm.org 21 | path=/os/ 22 | makesystem 23 | } 24 | 25 | armv5l () 26 | { 27 | file=ArchLinuxARM-armv5-latest.tar.gz 28 | mirror=os.archlinuxarm.org 29 | path=/os/ 30 | makesystem 31 | } 32 | 33 | armv7lAndroid () 34 | { 35 | file=ArchLinuxARM-armv7-latest.tar.gz 36 | mirror=os.archlinuxarm.org 37 | path=/os/ 38 | makesystem 39 | } 40 | 41 | armv7lChrome () 42 | { 43 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 44 | mirror=os.archlinuxarm.org 45 | path=/os/ 46 | makesystem 47 | } 48 | 49 | i686 () 50 | { 51 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 52 | mirror=archive.archlinux.org 53 | path=/iso/2017.03.01/ 54 | makesystem 55 | } 56 | 57 | x86_64 () 58 | { 59 | # $file is read from md5sums.txt 60 | mirror=mirror.rackspace.com 61 | path=/archlinux/iso/latest/ 62 | makesystem 63 | } 64 | -------------------------------------------------------------------------------- /files/stable/v0.8.4/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | printf "\033[0;34mContacting mirror \033[0;32m$cmirror\033[0;34m. " 23 | if [[ $dm = wget ]];then 24 | curl -v $cmirror 2>gmirror 25 | nmirror=$(grep Location gmirror | awk {'print $3'}) 26 | rm gmirror 27 | printdownloadingftch 28 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 29 | wget $dmverbose -N --show-progress $nmirror$path$file 30 | else 31 | curl -v $cmirror 2>gmirror 32 | nmirror=$(grep Location gmirror | awk {'print $3'}) 33 | rm gmirror 34 | printdownloadingftch 35 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 36 | fi 37 | } 38 | 39 | getimage () 40 | { 41 | printdownloadingx86 42 | if [[ $dm = wget ]];then 43 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 44 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 45 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 46 | else 47 | file=$(grep boot md5sums.txt | awk {'print $2'}) 48 | fi 49 | sed '2q;d' md5sums.txt > $file.md5 50 | rm md5sums.txt 51 | printdownloadingx86two 52 | wget $dmverbose -c --show-progress http://$mirror$path$file 53 | else 54 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 55 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 56 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 57 | else 58 | file=$(grep boot md5sums.txt | awk {'print $2'}) 59 | fi 60 | sed '2q;d' md5sums.txt > $file.md5 61 | rm md5sums.txt 62 | printdownloadingx86two 63 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 64 | fi 65 | } 66 | 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.4/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.8.5/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | printf "\033[0;34mContacting mirror \033[0;32m$cmirror\033[0;34m. " 23 | if [[ $dm = wget ]];then 24 | curl -v $cmirror 2>gmirror 25 | nmirror=$(grep Location gmirror | awk {'print $3'}) 26 | rm gmirror 27 | printdownloadingftch 28 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 29 | wget $dmverbose -N --show-progress $nmirror$path$file 30 | else 31 | curl -v $cmirror 2>gmirror 32 | nmirror=$(grep Location gmirror | awk {'print $3'}) 33 | rm gmirror 34 | printdownloadingftch 35 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 36 | fi 37 | } 38 | 39 | getimage () 40 | { 41 | printdownloadingx86 42 | if [[ $dm = wget ]];then 43 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 44 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 45 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 46 | else 47 | file=$(grep boot md5sums.txt | awk {'print $2'}) 48 | fi 49 | sed '2q;d' md5sums.txt > $file.md5 50 | rm md5sums.txt 51 | printdownloadingx86two 52 | wget $dmverbose -c --show-progress http://$mirror$path$file 53 | else 54 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 55 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 56 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 57 | else 58 | file=$(grep boot md5sums.txt | awk {'print $2'}) 59 | fi 60 | sed '2q;d' md5sums.txt > $file.md5 61 | rm md5sums.txt 62 | printdownloadingx86two 63 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 64 | fi 65 | } 66 | 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.5/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.8.6/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | printf "\033[0;34mContacting worldwide mirror \033[0;32m$cmirror\033[0;34m. " 23 | if [[ $dm = wget ]];then 24 | wget -v -O/dev/null $cmirror 2>gmirror 25 | nmirror=$(grep Location gmirror | awk {'print $2'}) 26 | rm gmirror 27 | printdownloadingftch 28 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 29 | wget $dmverbose -N --show-progress $nmirror$path$file 30 | else 31 | curl -v $cmirror 2>gmirror 32 | nmirror=$(grep Location gmirror | awk {'print $3'}) 33 | rm gmirror 34 | printdownloadingftch 35 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 36 | fi 37 | } 38 | 39 | getimage () 40 | { 41 | printdownloadingx86 42 | if [[ $dm = wget ]];then 43 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 44 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 45 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 46 | else 47 | file=$(grep boot md5sums.txt | awk {'print $2'}) 48 | fi 49 | sed '2q;d' md5sums.txt > $file.md5 50 | rm md5sums.txt 51 | printdownloadingx86two 52 | wget $dmverbose -c --show-progress http://$mirror$path$file 53 | else 54 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 55 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 56 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 57 | else 58 | file=$(grep boot md5sums.txt | awk {'print $2'}) 59 | fi 60 | sed '2q;d' md5sums.txt > $file.md5 61 | rm md5sums.txt 62 | printdownloadingx86two 63 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 64 | fi 65 | } 66 | 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.6/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.8.7/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | printf "\033[0;34mContacting worldwide mirror \033[0;32m$cmirror\033[0;34m. " 23 | if [[ $dm = wget ]];then 24 | wget -v -O/dev/null $cmirror 2>gmirror 25 | nmirror=$(grep Location gmirror | awk {'print $2'}) 26 | rm gmirror 27 | printdownloadingftch 28 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 29 | wget $dmverbose -N --show-progress $nmirror$path$file 30 | else 31 | curl -v $cmirror 2>gmirror 32 | nmirror=$(grep Location gmirror | awk {'print $3'}) 33 | rm gmirror 34 | printdownloadingftch 35 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 36 | fi 37 | } 38 | 39 | getimage () 40 | { 41 | printdownloadingx86 42 | if [[ $dm = wget ]];then 43 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 44 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 45 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 46 | else 47 | file=$(grep boot md5sums.txt | awk {'print $2'}) 48 | fi 49 | sed '2q;d' md5sums.txt > $file.md5 50 | rm md5sums.txt 51 | printdownloadingx86two 52 | wget $dmverbose -c --show-progress http://$mirror$path$file 53 | else 54 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 55 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 56 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 57 | else 58 | file=$(grep boot md5sums.txt | awk {'print $2'}) 59 | fi 60 | sed '2q;d' md5sums.txt > $file.md5 61 | rm md5sums.txt 62 | printdownloadingx86two 63 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 64 | fi 65 | } 66 | 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.7/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.8.8/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | #cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.8.9/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | printcontacting 23 | if [[ $dm = wget ]];then 24 | wget -v -O/dev/null $cmirror 2>gmirror 25 | nmirror=$(grep Location gmirror | awk {'print $2'}) 26 | rm gmirror 27 | printdone 28 | printdownloadingftch 29 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 30 | wget $dmverbose -N --show-progress $nmirror$path$file 31 | else 32 | curl -v $cmirror 2>gmirror 33 | nmirror=$(grep Location gmirror | awk {'print $3'}) 34 | rm gmirror 35 | printdone 36 | printdownloadingftch 37 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 38 | fi 39 | } 40 | 41 | getimage () 42 | { 43 | printdownloadingx86 44 | if [[ $dm = wget ]];then 45 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 46 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 47 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 48 | else 49 | file=$(grep boot md5sums.txt | awk {'print $2'}) 50 | fi 51 | sed '2q;d' md5sums.txt > $file.md5 52 | rm md5sums.txt 53 | printdownloadingx86two 54 | wget $dmverbose -c --show-progress http://$mirror$path$file 55 | else 56 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 57 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 58 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 59 | else 60 | file=$(grep boot md5sums.txt | awk {'print $2'}) 61 | fi 62 | sed '2q;d' md5sums.txt > $file.md5 63 | rm md5sums.txt 64 | printdownloadingx86two 65 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 66 | fi 67 | } 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.8.9/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.8.id097122283/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 63 | mirror=mirrors.evowise.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id124506942/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the same directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 63 | mirror=mirrors.evowise.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id243891638/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | adjustmd5file () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloading2 12 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 13 | else 14 | printdownloading2 15 | curl $dmverbose --fail --retry 4 -O -L http://$mirror${path}md5sums.txt 16 | fi 17 | filename=$(ls *tar.gz) 18 | sed '2q;d' md5sums.txt > $filename.md5 19 | rm md5sums.txt 20 | } 21 | 22 | ftchit () 23 | { 24 | if [[ $dm = wget ]];then 25 | printdownloadingftchit 26 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 27 | wget $dmverbose -c --show-progress http://$mirror$path$file 28 | else 29 | printdownloadingftchit 30 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file ||: 31 | fi 32 | } 33 | 34 | ftchstnd () 35 | { 36 | #cmirror="http://mirror.archlinuxarm.org/" 37 | cmirror="http://os.archlinuxarm.org/" 38 | if [[ $dm = wget ]];then 39 | printf "Contacting mirror $cmirror. " 40 | curl -v $cmirror 2>gmirror 41 | nmirror=$(grep Location gmirror | awk {'print $3}') 42 | rm gmirror 43 | printdownloadingftch 44 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 45 | wget $dmverbose -N --show-progress $nmirror$path$file 46 | else 47 | printf "Contacting mirror $cmirror. " 48 | curl -v $cmirror 2>gmirror 49 | nmirror=$(grep Location gmirror | awk {'print $3}') 50 | rm gmirror 51 | printdownloadingftch 52 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 53 | fi 54 | } 55 | 56 | getimage () 57 | { 58 | if [ $(getprop ro.product.cpu.abi) = x86_64 ];then 59 | if [[ $dm = wget ]];then 60 | wget -A tar.gz -m -nd -np http://$mirror$path 61 | else 62 | printf "Defaulting to \`wget\` for x86_64 system image download.\n\n" 63 | wget -A tar.gz -m -nd -np http://$mirror$path 64 | fi 65 | else 66 | if [[ $dm = wget ]];then 67 | wget $dmverbose -c --show-progress http://$mirror$path$file 68 | else 69 | curl $dmverbose -C - --fail --retry 4 -O -L http://$mirror$path$file 70 | fi 71 | fi 72 | } 73 | 74 | -------------------------------------------------------------------------------- /files/stable/v0.8.id243891638/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 63 | mirror=mirrors.evowise.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id298596924/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | adjustmd5file () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloading2 12 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 13 | else 14 | printdownloading2 15 | curl $dmverbose --fail --retry 4 -O -L http://$mirror${path}md5sums.txt 16 | fi 17 | filename=$(ls *tar.gz) 18 | sed '2q;d' md5sums.txt > $filename.md5 19 | rm md5sums.txt 20 | } 21 | 22 | ftchit () 23 | { 24 | if [[ $dm = wget ]];then 25 | printdownloadingftchit 26 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 27 | wget $dmverbose -c --show-progress http://$mirror$path$file 28 | else 29 | printdownloadingftchit 30 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file ||: 31 | fi 32 | } 33 | 34 | ftchstnd () 35 | { 36 | #cmirror="http://mirror.archlinuxarm.org/" 37 | cmirror="http://os.archlinuxarm.org/" 38 | if [[ $dm = wget ]];then 39 | printf "Contacting mirror $cmirror. " 40 | curl -v $cmirror 2>gmirror 41 | nmirror=$(grep Location gmirror | awk {'print $3}') 42 | rm gmirror 43 | printdownloadingftch 44 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 45 | wget $dmverbose -N --show-progress $nmirror$path$file 46 | else 47 | printf "Contacting mirror $cmirror. " 48 | curl -v $cmirror 2>gmirror 49 | nmirror=$(grep Location gmirror | awk {'print $3}') 50 | rm gmirror 51 | printdownloadingftch 52 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 53 | fi 54 | } 55 | 56 | getimage () 57 | { 58 | if [ $(getprop ro.product.cpu.abi) = x86_64 ];then 59 | if [[ $dm = wget ]];then 60 | wget -A tar.gz -m -nd -np http://$mirror$path 61 | else 62 | printf "Defaulting to \`wget\` for x86_64 system image download.\n\n" 63 | wget -A tar.gz -m -nd -np http://$mirror$path 64 | fi 65 | else 66 | if [[ $dm = wget ]];then 67 | wget $dmverbose -c --show-progress http://$mirror$path$file 68 | else 69 | curl $dmverbose -C - --fail --retry 4 -O -L http://$mirror$path$file 70 | fi 71 | fi 72 | } 73 | 74 | -------------------------------------------------------------------------------- /files/stable/v0.8.id298596924/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 63 | mirror=mirrors.evowise.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id342721413/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | adjustmd5file () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloading2 12 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 13 | else 14 | printdownloading2 15 | curl $dmverbose --fail --retry 4 -O -L http://$mirror${path}md5sums.txt 16 | fi 17 | filename=$(ls *tar.gz) 18 | sed '2q;d' md5sums.txt > $filename.md5 19 | rm md5sums.txt 20 | } 21 | 22 | ftchit () 23 | { 24 | if [[ $dm = wget ]];then 25 | printdownloadingftchit 26 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 27 | wget $dmverbose -c --show-progress http://$mirror$path$file 28 | else 29 | printdownloadingftchit 30 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file ||: 31 | fi 32 | } 33 | 34 | ftchstnd () 35 | { 36 | #cmirror="http://mirror.archlinuxarm.org/" 37 | cmirror="http://os.archlinuxarm.org/" 38 | if [[ $dm = wget ]];then 39 | printf "Contacting mirror $cmirror. " 40 | curl -v $cmirror 2>gmirror 41 | nmirror=$(grep Location gmirror | awk {'print $3}') 42 | rm gmirror 43 | printdownloadingftch 44 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 45 | wget $dmverbose -N --show-progress $nmirror$path$file 46 | else 47 | printf "Contacting mirror $cmirror. " 48 | curl -v $cmirror 2>gmirror 49 | nmirror=$(grep Location gmirror | awk {'print $3}') 50 | rm gmirror 51 | printdownloadingftch 52 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 53 | fi 54 | } 55 | 56 | getimage () 57 | { 58 | if [ $(getprop ro.product.cpu.abi) = x86_64 ];then 59 | if [[ $dm = wget ]];then 60 | wget -A tar.gz -m -nd -np http://$mirror$path 61 | else 62 | printf "Defaulting to \`wget\` for x86_64 system image download.\n\n" 63 | wget -A tar.gz -m -nd -np http://$mirror$path 64 | fi 65 | else 66 | if [[ $dm = wget ]];then 67 | wget $dmverbose -c --show-progress http://$mirror$path$file 68 | else 69 | curl $dmverbose -C - --fail --retry 4 -O -L http://$mirror$path$file 70 | fi 71 | fi 72 | } 73 | 74 | -------------------------------------------------------------------------------- /files/stable/v0.8.id342721413/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 63 | mirror=mirrors.evowise.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id349411327/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | adjustmd5file () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloading2 12 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 13 | else 14 | printdownloading2 15 | curl $dmverbose --fail --retry 4 -O -L http://$mirror${path}md5sums.txt 16 | fi 17 | filename=$(ls *tar.gz) 18 | sed '2q;d' md5sums.txt > $filename.md5 19 | rm md5sums.txt 20 | } 21 | 22 | ftchit () 23 | { 24 | if [[ $dm = wget ]];then 25 | printdownloadingftchit 26 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 27 | wget $dmverbose -c --show-progress http://$mirror$path$file 28 | else 29 | printdownloadingftchit 30 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file ||: 31 | fi 32 | } 33 | 34 | ftchstnd () 35 | { 36 | #cmirror="http://mirror.archlinuxarm.org/" 37 | cmirror="http://os.archlinuxarm.org/" 38 | if [[ $dm = wget ]];then 39 | printf "Contacting mirror $cmirror. " 40 | curl -v $cmirror 2>gmirror 41 | nmirror=$(grep Location gmirror | awk {'print $3}') 42 | rm gmirror 43 | printdownloadingftch 44 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 45 | wget $dmverbose -N --show-progress $nmirror$path$file 46 | else 47 | printf "Contacting mirror $cmirror. " 48 | curl -v $cmirror 2>gmirror 49 | nmirror=$(grep Location gmirror | awk {'print $3}') 50 | rm gmirror 51 | printdownloadingftch 52 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 53 | fi 54 | } 55 | 56 | getimage () 57 | { 58 | if [ $(getprop ro.product.cpu.abi) = x86_64 ];then 59 | if [[ $dm = wget ]];then 60 | wget -A tar.gz -m -nd -np http://$mirror$path 61 | else 62 | printf "Defaulting to \`wget\` for x86_64 system image download.\n\n" 63 | wget -A tar.gz -m -nd -np http://$mirror$path 64 | fi 65 | else 66 | if [[ $dm = wget ]];then 67 | wget $dmverbose -c --show-progress http://$mirror$path$file 68 | else 69 | curl $dmverbose -C - --fail --retry 4 -O -L http://$mirror$path$file 70 | fi 71 | fi 72 | } 73 | 74 | -------------------------------------------------------------------------------- /files/stable/v0.8.id349411327/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 63 | mirror=mirrors.evowise.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id398882548/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | adjustmd5file () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloading2 12 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 13 | else 14 | printdownloading2 15 | curl $dmverbose --fail --retry 4 -O -L http://$mirror${path}md5sums.txt 16 | fi 17 | filename=$(ls *tar.gz) 18 | sed '2q;d' md5sums.txt > $filename.md5 19 | rm md5sums.txt 20 | } 21 | 22 | ftchit () 23 | { 24 | if [[ $dm = wget ]];then 25 | printdownloadingftchit 26 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 27 | wget $dmverbose -c --show-progress http://$mirror$path$file 28 | else 29 | printdownloadingftchit 30 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 31 | fi 32 | } 33 | 34 | ftchstnd () 35 | { 36 | #cmirror="http://mirror.archlinuxarm.org/" 37 | cmirror="http://os.archlinuxarm.org/" 38 | if [[ $dm = wget ]];then 39 | printf "Contacting mirror $cmirror. " 40 | curl -v $cmirror 2>gmirror 41 | nmirror=$(grep Location gmirror | awk {'print $3}') 42 | rm gmirror 43 | printdownloadingftch 44 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 45 | wget $dmverbose -N --show-progress $nmirror$path$file 46 | else 47 | printf "Contacting mirror $cmirror. " 48 | curl -v $cmirror 2>gmirror 49 | nmirror=$(grep Location gmirror | awk {'print $3}') 50 | rm gmirror 51 | printdownloadingftch 52 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 53 | fi 54 | } 55 | 56 | getimage () 57 | { 58 | if [ $(getprop ro.product.cpu.abi) = x86_64 ];then 59 | if [[ $dm = wget ]];then 60 | wget -A tar.gz -m -nd -np http://$mirror$path 61 | else 62 | printf "Defaulting to \`wget\` for x86_64 system image download.\n\n" 63 | wget -A tar.gz -m -nd -np http://$mirror$path 64 | fi 65 | else 66 | if [[ $dm = wget ]];then 67 | wget $dmverbose -c --show-progress http://$mirror$path$file 68 | else 69 | curl $dmverbose -C - --fail --retry 4 -O -L http://$mirror$path$file 70 | fi 71 | fi 72 | } 73 | 74 | -------------------------------------------------------------------------------- /files/stable/v0.8.id398882548/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 63 | mirror=mirrors.evowise.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id405274886/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | adjustmd5file () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingx86 12 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 13 | else 14 | printdownloadingx86 15 | curl $dmverbose --fail --retry 4 -O http://$mirror${path}md5sums.txt 16 | fi 17 | sed '2q;d' md5sums.txt > $file.md5 18 | rm md5sums.txt 19 | } 20 | 21 | ftchit () 22 | { 23 | if [[ $dm = wget ]];then 24 | printdownloadingftchit 25 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 26 | wget $dmverbose -c --show-progress http://$mirror$path$file 27 | else 28 | printdownloadingftchit 29 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 30 | fi 31 | } 32 | 33 | ftchstnd () 34 | { 35 | #cmirror="http://mirror.archlinuxarm.org/" 36 | cmirror="http://os.archlinuxarm.org/" 37 | if [[ $dm = wget ]];then 38 | printf "Contacting mirror $cmirror. " 39 | curl -v $cmirror 2>gmirror 40 | nmirror=$(grep Location gmirror | awk {'print $3}') 41 | rm gmirror 42 | printdownloadingftch 43 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 44 | wget $dmverbose -N --show-progress $nmirror$path$file 45 | else 46 | printf "Contacting mirror $cmirror. " 47 | curl -v $cmirror 2>gmirror 48 | nmirror=$(grep Location gmirror | awk {'print $3}') 49 | rm gmirror 50 | printdownloadingftch 51 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 52 | fi 53 | } 54 | 55 | getimage () 56 | { 57 | if [[ $dm = wget ]];then 58 | wget $dmverbose -c --show-progress http://$mirror$path$file 59 | else 60 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file 61 | fi 62 | } 63 | 64 | -------------------------------------------------------------------------------- /files/stable/v0.8.id405274886/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | file=archlinux-bootstrap-2018.02.01-x86_64.tar.gz 63 | mirror=mirror.rackspace.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id454006349/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | getimage () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingx86 12 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingx86 16 | curl $dmverbose --fail --retry 4 -O http://$mirror${path}md5sums.txt -O http://$mirror$path$file 17 | fi 18 | sed '2q;d' md5sums.txt > $file.md5 19 | rm md5sums.txt 20 | } 21 | 22 | ftchit () 23 | { 24 | if [[ $dm = wget ]];then 25 | printdownloadingftchit 26 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 27 | wget $dmverbose -c --show-progress http://$mirror$path$file 28 | else 29 | printdownloadingftchit 30 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 31 | fi 32 | } 33 | 34 | ftchstnd () 35 | { 36 | #cmirror="http://mirror.archlinuxarm.org/" 37 | cmirror="http://os.archlinuxarm.org/" 38 | if [[ $dm = wget ]];then 39 | printf "\033[0;32mContacting mirror \033[1;32m$cmirror. " 40 | curl -v $cmirror 2>gmirror 41 | nmirror=$(grep Location gmirror | awk {'print $3}') 42 | rm gmirror 43 | printdownloadingftch 44 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 45 | wget $dmverbose -N --show-progress $nmirror$path$file 46 | else 47 | printf "\033[0;32mContacting mirror \033[1;32m$cmirror. " 48 | curl -v $cmirror 2>gmirror 49 | nmirror=$(grep Location gmirror | awk {'print $3}') 50 | rm gmirror 51 | printdownloadingftch 52 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 53 | fi 54 | } 55 | 56 | -------------------------------------------------------------------------------- /files/stable/v0.8.id454006349/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | file=archlinux-bootstrap-2018.02.01-x86_64.tar.gz 63 | mirror=mirror.rackspace.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.8.id477066127/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | #cmirror="http://mirror.archlinuxarm.org/" 23 | cmirror="http://os.archlinuxarm.org/" 24 | if [[ $dm = wget ]];then 25 | printf "\033[0;32mContacting mirror \033[1;32m$cmirror. " 26 | curl -v $cmirror 2>gmirror 27 | nmirror=$(grep Location gmirror | awk {'print $3}') 28 | rm gmirror 29 | printdownloadingftch 30 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 31 | wget $dmverbose -N --show-progress $nmirror$path$file 32 | else 33 | printf "\033[0;32mContacting mirror \033[1;32m$cmirror. " 34 | curl -v $cmirror 2>gmirror 35 | nmirror=$(grep Location gmirror | awk {'print $3}') 36 | rm gmirror 37 | printdownloadingftch 38 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 39 | fi 40 | } 41 | 42 | getimage () 43 | { 44 | if [[ $dm = wget ]];then 45 | printdownloadingx86 46 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 47 | sed '2q;d' md5sums.txt > $file.md5 48 | rm md5sums.txt 49 | wget $dmverbose -c --show-progress http://$mirror$path$file 50 | else 51 | printdownloadingx86 52 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror${path}md5sums.txt 53 | sed '2q;d' md5sums.txt > $file.md5 54 | rm md5sums.txt 55 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file 56 | fi 57 | } 58 | 59 | -------------------------------------------------------------------------------- /files/stable/v0.8.id477066127/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Please add configurations to this list if you find one that is not listed. 7 | # Copy this file to `setupTermuxArchConfigs.sh` with prefered parameters. 8 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 9 | # Change mirror to desired geographic location to resolve 404 and md5sum errors. 10 | # User configurable variables are in `setupTermuxArchConfigs.sh`. 11 | # Create this file from `kownconfigurations.sh` in the working directory. 12 | ################################################################################ 13 | 14 | #dm=curl 15 | #dm=wget 16 | dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 54 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 55 | mirror=archive.archlinux.org 56 | path=/iso/2017.03.01/ 57 | makesystem 58 | } 59 | 60 | x86_64 () 61 | { 62 | file=archlinux-bootstrap-2018.02.01-x86_64.tar.gz 63 | mirror=mirror.rackspace.com 64 | path=/archlinux/iso/latest/ 65 | makesystem 66 | } 67 | -------------------------------------------------------------------------------- /files/stable/v0.9.1/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | printcontacting 23 | if [[ $dm = wget ]];then 24 | wget -v -O/dev/null $cmirror 2>gmirror 25 | nmirror=$(grep Location gmirror | awk {'print $2'}) 26 | rm gmirror 27 | printdone 28 | printdownloadingftch 29 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 30 | wget $dmverbose -N --show-progress $nmirror$path$file 31 | else 32 | curl -v $cmirror 2>gmirror 33 | nmirror=$(grep Location gmirror | awk {'print $3'}) 34 | rm gmirror 35 | printdone 36 | printdownloadingftch 37 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 38 | fi 39 | } 40 | 41 | getimage () 42 | { 43 | printdownloadingx86 44 | if [[ $dm = wget ]];then 45 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 46 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 47 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 48 | else 49 | file=$(grep boot md5sums.txt | awk {'print $2'}) 50 | fi 51 | sed '2q;d' md5sums.txt > $file.md5 52 | rm md5sums.txt 53 | printdownloadingx86two 54 | wget $dmverbose -c --show-progress http://$mirror$path$file 55 | else 56 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 57 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 58 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 59 | else 60 | file=$(grep boot md5sums.txt | awk {'print $2'}) 61 | fi 62 | sed '2q;d' md5sums.txt > $file.md5 63 | rm md5sums.txt 64 | printdownloadingx86two 65 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 66 | fi 67 | } 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.9.1/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v0.9/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | if [[ $dm = wget ]];then 11 | printdownloadingftchit 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | printdownloadingftchit 16 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 17 | fi 18 | } 19 | 20 | ftchstnd () 21 | { 22 | printcontacting 23 | if [[ $dm = wget ]];then 24 | wget -v -O/dev/null $cmirror 2>gmirror 25 | nmirror=$(grep Location gmirror | awk {'print $2'}) 26 | rm gmirror 27 | printdone 28 | printdownloadingftch 29 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 30 | wget $dmverbose -N --show-progress $nmirror$path$file 31 | else 32 | curl -v $cmirror 2>gmirror 33 | nmirror=$(grep Location gmirror | awk {'print $3'}) 34 | rm gmirror 35 | printdone 36 | printdownloadingftch 37 | curl $dmverbose --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 38 | fi 39 | } 40 | 41 | getimage () 42 | { 43 | printdownloadingx86 44 | if [[ $dm = wget ]];then 45 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 46 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 47 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 48 | else 49 | file=$(grep boot md5sums.txt | awk {'print $2'}) 50 | fi 51 | sed '2q;d' md5sums.txt > $file.md5 52 | rm md5sums.txt 53 | printdownloadingx86two 54 | wget $dmverbose -c --show-progress http://$mirror$path$file 55 | else 56 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 57 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 58 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 59 | else 60 | file=$(grep boot md5sums.txt | awk {'print $2'}) 61 | fi 62 | sed '2q;d' md5sums.txt > $file.md5 63 | rm md5sums.txt 64 | printdownloadingx86two 65 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 66 | fi 67 | } 68 | 69 | -------------------------------------------------------------------------------- /files/stable/v0.9/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v1.2/a.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | addmotd () 9 | { 10 | cat > motd <<- EOM 11 | printf "\033[1;34mWelcome to Arch Linux in Termux! Enjoy!\nChat: \033[0mhttps://gitter.im/termux/termux/\n\033[1;34mHelp: \033[0;34minfo query \033[1;34mand \033[0;34mman query\n\033[1;34mPortal: \033[0mhttps://wiki.termux.com/wiki/Community\n\n\033[1;34mInstall a package: \033[0;34mpacman -S package\n\033[1;34mMore information: \033[0;34mpacman [-D|F|Q|R|S|T|U]h\n\033[1;34mSearch packages: \033[0;34mpacman -Ss query\n\033[1;34mUpgrade packages: \033[0;34mpacman -Syu\n\033[0m" 12 | EOM 13 | } 14 | addmotd 15 | . motd 16 | -------------------------------------------------------------------------------- /files/stable/v1.2/enfrag.sh: -------------------------------------------------------------------------------- 1 | 2 | #In a new Termux session run \033[1;32m$HOME$rootdir/$bin\033[0;32m. Use \033[1;32mlr\033[0;32m to generate the desired entropy. This will generate plenty of entropy by printing the names of files in $HOME to your screen. If this isn't enough, use \033[1;32mce\033[0;32m to generate the desired entropy. This will generate more entropy by printing the names of files to the screen and to /dev/null also to create entropy.\n\nA \033[1;32mmuch\033[0;32m simpler way to generate entropy is simply to move your finger(s) around this screen randomly. 3 | printf "\n\033[0;32mWhen \033[1;32mgpg: Generating pacman keyring master key\033[0;32m appears on the screen, the installation process can be accelerated. The system desires a lot of entropy at this stage of the install procedure. To generate as much entropy as possible quickly, watch and listen to a file from a file manager on your device. To generate entropy, we want randomness. \n\nThe programs \033[1;32mpacman\033[0;32m and \033[1;32mpacman-key\033[0;32m will want as much as possible when employing keys. Entropy is also created through tapping, sliding, two and more finger tapping and long taps… This method might not generate enough entropy for the process to complete quickly. When \033[1;32mgpg: Generating pacman keyring master key\033[0;32m appears on the screen, use any of these simple methods to accelerate the installation process if it is stalled. Or put even simpler, just do something and device. Browsing files in a file manager is an example of generating entropy.\n\nWould you like to run \033[1;32mlocale-gen\033[0;32m to generate the en_US.UTF-8 locale, or edit \033[1;32m/etc/locale.gen\033[0;32m specifying your preferred language(s) before running \033[1;32mlocale-gen\033[0;32m? " 4 | -------------------------------------------------------------------------------- /files/stable/v1.2/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | printdownloadingftchit 11 | if [[ $dm = wget ]];then 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 16 | fi 17 | } 18 | 19 | ftchstnd () 20 | { 21 | printcontacting 22 | if [[ $dm = wget ]];then 23 | wget -v -O/dev/null $cmirror 2>gmirror 24 | nmirror=$(grep Location gmirror | awk {'print $2'}) 25 | rm gmirror 26 | printdone 27 | printdownloadingftch 28 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 29 | wget $dmverbose -c --show-progress $nmirror$path$file 30 | else 31 | curl -v $cmirror 2>gmirror 32 | nmirror=$(grep Location gmirror | awk {'print $3'}) 33 | rm gmirror 34 | printdone 35 | printdownloadingftch 36 | curl $dmverbose -C - --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 37 | fi 38 | } 39 | 40 | getimage () 41 | { 42 | printdownloadingx86 43 | if [[ $dm = wget ]];then 44 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 45 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 46 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 47 | else 48 | file=$(grep boot md5sums.txt | awk {'print $2'}) 49 | fi 50 | sed '2q;d' md5sums.txt > $file.md5 51 | rm md5sums.txt 52 | printdownloadingx86two 53 | wget $dmverbose -c --show-progress http://$mirror$path$file 54 | else 55 | curl $dmverbose --fail --retry 4 -O http://$mirror${path}md5sums.txt 56 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 57 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 58 | else 59 | file=$(grep boot md5sums.txt | awk {'print $2'}) 60 | fi 61 | sed '2q;d' md5sums.txt > $file.md5 62 | rm md5sums.txt 63 | printdownloadingx86two 64 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file 65 | fi 66 | } 67 | 68 | -------------------------------------------------------------------------------- /files/stable/v1.2/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh --manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh --help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | #cmirror="http://mirror.archlinuxarm.org/" 13 | cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v1.3/a.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | addmotd () 9 | { 10 | cat > motd <<- EOM 11 | printf "\033[1;34mWelcome to Arch Linux in Termux! Enjoy!\nChat: \033[0mhttps://gitter.im/termux/termux/\n\033[1;34mHelp: \033[0;34minfo query \033[1;34mand \033[0;34mman query\n\033[1;34mPortal: \033[0mhttps://wiki.termux.com/wiki/Community\n\n\033[1;34mInstall a package: \033[0;34mpacman -S package\n\033[1;34mMore information: \033[0;34mpacman [-D|F|Q|R|S|T|U]h\n\033[1;34mSearch packages: \033[0;34mpacman -Ss query\n\033[1;34mUpgrade packages: \033[0;34mpacman -Syu\n\033[0m" 12 | EOM 13 | } 14 | addmotd 15 | . motd 16 | -------------------------------------------------------------------------------- /files/stable/v1.3/enfrag.sh: -------------------------------------------------------------------------------- 1 | 2 | #In a new Termux session run \033[1;32m$HOME$rootdir/$bin\033[0;32m. Use \033[1;32mlr\033[0;32m to generate the desired entropy. This will generate plenty of entropy by printing the names of files in $HOME to your screen. If this isn't enough, use \033[1;32mce\033[0;32m to generate the desired entropy. This will generate more entropy by printing the names of files to the screen and to /dev/null also to create entropy.\n\nA \033[1;32mmuch\033[0;32m simpler way to generate entropy is simply to move your finger(s) around this screen randomly. 3 | printf "\n\033[0;32mWhen \033[1;32mgpg: Generating pacman keyring master key\033[0;32m appears on the screen, the installation process can be accelerated. The system desires a lot of entropy at this stage of the install procedure. To generate as much entropy as possible quickly, watch and listen to a file from a file manager on your device. To generate entropy, we want randomness. \n\nThe programs \033[1;32mpacman\033[0;32m and \033[1;32mpacman-key\033[0;32m will want as much as possible when employing keys. Entropy is also created through tapping, sliding, two and more finger tapping and long taps… This method might not generate enough entropy for the process to complete quickly. When \033[1;32mgpg: Generating pacman keyring master key\033[0;32m appears on the screen, use any of these simple methods to accelerate the installation process if it is stalled. Or put even simpler, just do something and device. Browsing files in a file manager is an example of generating entropy.\n\nWould you like to run \033[1;32mlocale-gen\033[0;32m to generate the en_US.UTF-8 locale, or edit \033[1;32m/etc/locale.gen\033[0;32m specifying your preferred language(s) before running \033[1;32mlocale-gen\033[0;32m? " 4 | -------------------------------------------------------------------------------- /files/stable/v1.3/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | printdownloadingftchit 11 | if [[ $dm = wget ]];then 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 16 | fi 17 | } 18 | 19 | ftchstnd () 20 | { 21 | printcontacting 22 | if [[ $dm = wget ]];then 23 | wget -v -O/dev/null $cmirror 2>gmirror 24 | nmirror=$(grep Location gmirror | awk {'print $2'}) 25 | rm gmirror 26 | printdone 27 | printdownloadingftch 28 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 29 | wget $dmverbose -c --show-progress $nmirror$path$file 30 | else 31 | curl -v $cmirror 2>gmirror 32 | nmirror=$(grep Location gmirror | awk {'print $3'}) 33 | rm gmirror 34 | printdone 35 | printdownloadingftch 36 | curl $dmverbose -C - --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 37 | fi 38 | } 39 | 40 | getimage () 41 | { 42 | printdownloadingx86 43 | if [[ $dm = wget ]];then 44 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 45 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 46 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 47 | else 48 | file=$(grep boot md5sums.txt | awk {'print $2'}) 49 | fi 50 | sed '2q;d' md5sums.txt > $file.md5 51 | rm md5sums.txt 52 | printdownloadingx86two 53 | wget $dmverbose -c --show-progress http://$mirror$path$file 54 | else 55 | curl $dmverbose --fail --retry 4 -O http://$mirror${path}md5sums.txt 56 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 57 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 58 | else 59 | file=$(grep boot md5sums.txt | awk {'print $2'}) 60 | fi 61 | sed '2q;d' md5sums.txt > $file.md5 62 | rm md5sums.txt 63 | printdownloadingx86two 64 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file 65 | fi 66 | } 67 | 68 | -------------------------------------------------------------------------------- /files/stable/v1.3/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | cmirror="http://mirror.archlinuxarm.org/" 13 | #cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v1.4/a.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | addmotd () 9 | { 10 | cat > motd <<- EOM 11 | printf "\033[1;34mWelcome to Arch Linux in Termux! Enjoy!\nChat: \033[0mhttps://gitter.im/termux/termux/\n\033[1;34mHelp: \033[0;34minfo query \033[1;34mand \033[0;34mman query\n\033[1;34mPortal: \033[0mhttps://wiki.termux.com/wiki/Community\n\n\033[1;34mInstall a package: \033[0;34mpacman -S package\n\033[1;34mMore information: \033[0;34mpacman [-D|F|Q|R|S|T|U]h\n\033[1;34mSearch packages: \033[0;34mpacman -Ss query\n\033[1;34mUpgrade packages: \033[0;34mpacman -Syu\n\033[0m" 12 | EOM 13 | } 14 | addmotd 15 | . motd 16 | -------------------------------------------------------------------------------- /files/stable/v1.4/enfrag.sh: -------------------------------------------------------------------------------- 1 | 2 | #In a new Termux session run \033[1;32m$HOME$rootdir/$bin\033[0;32m. Use \033[1;32mlr\033[0;32m to generate the desired entropy. This will generate plenty of entropy by printing the names of files in $HOME to your screen. If this isn't enough, use \033[1;32mce\033[0;32m to generate the desired entropy. This will generate more entropy by printing the names of files to the screen and to /dev/null also to create entropy.\n\nA \033[1;32mmuch\033[0;32m simpler way to generate entropy is simply to move your finger(s) around this screen randomly. 3 | printf "\n\033[0;32mWhen \033[1;32mgpg: Generating pacman keyring master key\033[0;32m appears on the screen, the installation process can be accelerated. The system desires a lot of entropy at this stage of the install procedure. To generate as much entropy as possible quickly, watch and listen to a file from a file manager on your device. To generate entropy, we want randomness. \n\nThe programs \033[1;32mpacman\033[0;32m and \033[1;32mpacman-key\033[0;32m will want as much as possible when employing keys. Entropy is also created through tapping, sliding, two and more finger tapping and long taps… This method might not generate enough entropy for the process to complete quickly. When \033[1;32mgpg: Generating pacman keyring master key\033[0;32m appears on the screen, use any of these simple methods to accelerate the installation process if it is stalled. Or put even simpler, just do something and device. Browsing files in a file manager is an example of generating entropy.\n\nWould you like to run \033[1;32mlocale-gen\033[0;32m to generate the en_US.UTF-8 locale, or edit \033[1;32m/etc/locale.gen\033[0;32m specifying your preferred language(s) before running \033[1;32mlocale-gen\033[0;32m? " 4 | -------------------------------------------------------------------------------- /files/stable/v1.4/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | printdownloadingftchit 11 | if [[ $dm = wget ]];then 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 16 | fi 17 | } 18 | 19 | ftchstnd () 20 | { 21 | printcontacting 22 | if [[ $dm = wget ]];then 23 | wget -v -O/dev/null $cmirror 2>gmirror 24 | nmirror=$(grep Location gmirror | awk {'print $2'}) 25 | rm gmirror 26 | printdone 27 | printdownloadingftch 28 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 29 | wget $dmverbose -c --show-progress $nmirror$path$file 30 | else 31 | curl -v $cmirror 2>gmirror 32 | nmirror=$(grep Location gmirror | awk {'print $3'}) 33 | rm gmirror 34 | printdone 35 | printdownloadingftch 36 | curl $dmverbose -C - --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 37 | fi 38 | } 39 | 40 | getimage () 41 | { 42 | printdownloadingx86 43 | if [[ $dm = wget ]];then 44 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 45 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 46 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 47 | else 48 | file=$(grep boot md5sums.txt | awk {'print $2'}) 49 | fi 50 | sed '2q;d' md5sums.txt > $file.md5 51 | rm md5sums.txt 52 | printdownloadingx86two 53 | wget $dmverbose -c --show-progress http://$mirror$path$file 54 | else 55 | curl $dmverbose --fail --retry 4 -O http://$mirror${path}md5sums.txt 56 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 57 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 58 | else 59 | file=$(grep boot md5sums.txt | awk {'print $2'}) 60 | fi 61 | sed '2q;d' md5sums.txt > $file.md5 62 | rm md5sums.txt 63 | printdownloadingx86two 64 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file 65 | fi 66 | } 67 | 68 | -------------------------------------------------------------------------------- /files/stable/v1.4/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Create `setupTermuxArchConfigs.sh` from this file in your working directory by using `bash setupTermuxArch.sh manual`. 7 | # Run `bash setupTermuxArch.sh` and `setupTermuxArchConfigs.sh` loads automaticaly. 8 | # See `bash setupTermuxArch.sh help` for more information. 9 | # Change mirror to desired geographic location in `setupTermuxArchConfigs.sh` to resolve 404 and checksum errors. 10 | # The following user configurable variables are available in this file: 11 | ################################################################################ 12 | cmirror="http://mirror.archlinuxarm.org/" 13 | #cmirror="http://os.archlinuxarm.org/" 14 | #dm=curl 15 | #dm=wget 16 | #dmverbose="-q" 17 | #dmverbose="-v" 18 | 19 | aarch64 () 20 | { 21 | file=ArchLinuxARM-aarch64-latest.tar.gz 22 | mirror=os.archlinuxarm.org 23 | path=/os/ 24 | makesystem 25 | } 26 | 27 | armv5l () 28 | { 29 | file=ArchLinuxARM-armv5-latest.tar.gz 30 | mirror=os.archlinuxarm.org 31 | path=/os/ 32 | makesystem 33 | } 34 | 35 | armv7lAndroid () 36 | { 37 | file=ArchLinuxARM-armv7-latest.tar.gz 38 | mirror=os.archlinuxarm.org 39 | path=/os/ 40 | makesystem 41 | } 42 | 43 | armv7lChrome () 44 | { 45 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 46 | mirror=os.archlinuxarm.org 47 | path=/os/ 48 | makesystem 49 | } 50 | 51 | i686 () 52 | { 53 | # Information at https://www.archlinux.org/news/phasing-out-i686-support/ and https://archlinux32.org/ regarding why i686 is currently frozen at release 2017.03.01-i686. $file is read from md5sums.txt 54 | mirror=archive.archlinux.org 55 | path=/iso/2017.03.01/ 56 | makesystem 57 | } 58 | 59 | x86_64 () 60 | { 61 | # $file is read from md5sums.txt 62 | mirror=mirror.rackspace.com 63 | path=/archlinux/iso/latest/ 64 | makesystem 65 | } 66 | -------------------------------------------------------------------------------- /files/stable/v1.5/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () 9 | { 10 | printdownloadingftchit 11 | if [[ $dm = wget ]];then 12 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 13 | wget $dmverbose -c --show-progress http://$mirror$path$file 14 | else 15 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 16 | fi 17 | } 18 | 19 | ftchstnd () 20 | { 21 | printcontacting 22 | if [[ $dm = wget ]];then 23 | wget -v -O/dev/null $cmirror 2>gmirror 24 | nmirror=$(grep Location gmirror | awk {'print $2'}) 25 | rm gmirror 26 | printdone 27 | printdownloadingftch 28 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 29 | wget $dmverbose -c --show-progress $nmirror$path$file 30 | else 31 | curl -v $cmirror 2>gmirror 32 | nmirror=$(grep Location gmirror | awk {'print $3'}) 33 | rm gmirror 34 | printdone 35 | printdownloadingftch 36 | curl $dmverbose -C - --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 37 | fi 38 | } 39 | 40 | getimage () 41 | { 42 | printdownloadingx86 43 | if [[ $dm = wget ]];then 44 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 45 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 46 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 47 | else 48 | file=$(grep boot md5sums.txt | awk {'print $2'}) 49 | fi 50 | sed '2q;d' md5sums.txt > $file.md5 51 | rm md5sums.txt 52 | printdownloadingx86two 53 | wget $dmverbose -c --show-progress http://$mirror$path$file 54 | else 55 | curl $dmverbose --fail --retry 4 -O http://$mirror${path}md5sums.txt 56 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 57 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 58 | else 59 | file=$(grep boot md5sums.txt | awk {'print $2'}) 60 | fi 61 | sed '2q;d' md5sums.txt > $file.md5 62 | rm md5sums.txt 63 | printdownloadingx86two 64 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file 65 | fi 66 | } 67 | 68 | -------------------------------------------------------------------------------- /files/stable/v1.6/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | ftchit () { 9 | printdownloadingftchit 10 | if [[ $dm = wget ]];then 11 | wget $dmverbose -N --show-progress http://$mirror$path$file.md5 12 | wget $dmverbose -c --show-progress http://$mirror$path$file 13 | else 14 | curl $dmverbose -C - --fail --retry 4 -O http://$mirror$path$file.md5 -O http://$mirror$path$file 15 | fi 16 | } 17 | 18 | ftchstnd () { 19 | fstnd=1 20 | printcontacting 21 | if [[ $dm = wget ]];then 22 | wget -v -O/dev/null $cmirror 2>gmirror 23 | nmirror=$(grep Location gmirror | awk {'print $2'}) 24 | rm gmirror 25 | printdone 26 | printdownloadingftch 27 | wget $dmverbose -N --show-progress $nmirror$path$file.md5 28 | wget $dmverbose -c --show-progress $nmirror$path$file 29 | else 30 | curl -v $cmirror 2>gmirror 31 | nmirror=$(grep Location gmirror | awk {'print $3'}) 32 | rm gmirror 33 | printdone 34 | printdownloadingftch 35 | curl $dmverbose -C - --fail --retry 4 -O $nmirror$path$file.md5 -O $nmirror$path$file 36 | fi 37 | } 38 | 39 | getimage () { 40 | printdownloadingx86 41 | if [[ $dm = wget ]];then 42 | wget $dmverbose -N --show-progress http://$mirror${path}md5sums.txt 43 | if [ $cpuabi = $cpuabix86 ];then 44 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 45 | else 46 | file=$(grep boot md5sums.txt | awk {'print $2'}) 47 | fi 48 | sed '2q;d' md5sums.txt > $file.md5 49 | rm md5sums.txt 50 | printdownloadingx86two 51 | wget $dmverbose -c --show-progress http://$mirror$path$file 52 | else 53 | curl $dmverbose --fail --retry 4 -OL http://$mirror${path}md5sums.txt 54 | if [ $cpuabi = $cpuabix86 ];then 55 | file=$(grep i686 md5sums.txt | awk {'print $2'}) 56 | else 57 | file=$(grep boot md5sums.txt | awk {'print $2'}) 58 | fi 59 | sed '2q;d' md5sums.txt > $file.md5 60 | rm md5sums.txt 61 | printdownloadingx86two 62 | curl $dmverbose -C - --fail --retry 4 -OL http://$mirror$path$file 63 | fi 64 | } 65 | 66 | -------------------------------------------------------------------------------- /files/stable/v1.6id2021/printoutstatements.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TermuxArch/scripts.TermuxArch/0abeaa8299200ca8df7d8c3fdf72cf1f08d12380/files/stable/v1.6id2021/printoutstatements.sh -------------------------------------------------------------------------------- /files/todo: -------------------------------------------------------------------------------- 1 | colors 2 | dfa 3 | -------------------------------------------------------------------------------- /files/unstable/u0.4.657924532/knownconfigurations.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # Detected configurations. Change mirror to your desired geographic location. 7 | # Please add configurations to this list if you find one that is not listed. 8 | ################################################################################ 9 | 10 | aarch64 () 11 | { 12 | file=ArchLinuxARM-aarch64-latest.tar.gz 13 | mirror=mirror.archlinuxarm.org 14 | path=/os/ 15 | makesystem 16 | } 17 | 18 | armv5l () 19 | { 20 | file=ArchLinuxARM-armv5-latest.tar.gz 21 | mirror=mirror.archlinuxarm.org 22 | path=/os/ 23 | makesystem 24 | } 25 | 26 | armv7lAndroid () 27 | { 28 | file=ArchLinuxARM-armv7-latest.tar.gz 29 | mirror=mirror.archlinuxarm.org 30 | path=/os/ 31 | makesystem 32 | } 33 | 34 | armv7lChrome () 35 | { 36 | file=ArchLinuxARM-armv7-chromebook-latest.tar.gz 37 | mirror=mirror.archlinuxarm.org 38 | path=/os/ 39 | makesystem 40 | } 41 | 42 | i686 () 43 | { 44 | # i686 is frozen at release 2017.03.01-i686. See https://www.archlinux.org/news/phasing-out-i686-support/ for more information. Inquire at https://archlinux32.org/ for updates. 45 | file=archlinux-bootstrap-2017.03.01-i686.tar.gz 46 | mirror=archive.archlinux.org 47 | path=/iso/2017.03.01/ 48 | makesystem 49 | } 50 | 51 | x86_64 () 52 | { 53 | # x86_64 downloads the latest file automatically. $file is unnecessary for download. 54 | mirror=mirrors.evowise.com 55 | path=/archlinux/iso/latest/ 56 | makesystem 57 | } 58 | 59 | uImage () 60 | { 61 | # default image download configuration data set function 62 | file=imageFile.tar.gz 63 | mirror=mirror.server.org 64 | path=/os/ 65 | makesystem 66 | } 67 | 68 | 69 | -------------------------------------------------------------------------------- /files/unstable/vpre1.7/getimagefunctions.sh: -------------------------------------------------------------------------------- 1 | #!/bin/env bash 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | fstnd="" 9 | ftchit() { 10 | printdownloadingftchit 11 | if [[ "$dm" = wget ]];then 12 | wget "$dmverbose" -N --show-progress http://"$mirror$path$file".md5 13 | wget "$dmverbose" -c --show-progress http://"$mirror$path$file" 14 | else 15 | curl "$dmverbose" -C - --fail --retry 4 -O http://"$mirror$path$file".md5 -O http://"$mirror$path$file" 16 | fi 17 | } 18 | 19 | ftchstnd() { 20 | fstnd=1 21 | printcontacting 22 | if [[ "$dm" = wget ]];then 23 | wget -v -O/dev/null "$cmirror" 2>gmirror 24 | nmirror="$(grep Location gmirror | awk {'print $2'})" 25 | rm gmirror 26 | printdone 27 | printdownloadingftch 28 | wget "$dmverbose" -N --show-progress "$nmirror$path$file".md5 29 | wget "$dmverbose" -c --show-progress "$nmirror$path$file" 30 | else 31 | curl -v "$cmirror" 2>gmirror 32 | nmirror="$(grep Location gmirror | awk {'print $3'})" 33 | rm gmirror 34 | printdone 35 | printdownloadingftch 36 | curl "$dmverbose" -C - --fail --retry 4 -O "$nmirror$path$file".md5 -O "$nmirror$path$file" 37 | fi 38 | } 39 | 40 | getimage() { 41 | printdownloadingx86 42 | if [[ "$dm" = wget ]];then 43 | wget "$dmverbose" -N --show-progress http://"$mirror${path}"md5sums.txt 44 | if [[ "$cpuabi" = "$cpuabix86" ]];then 45 | file="$(grep i686 md5sums.txt | awk {'print $2'})" 46 | else 47 | file="$(grep boot md5sums.txt | awk {'print $2'})" 48 | fi 49 | sed '2q;d' md5sums.txt > "$file".md5 50 | rm md5sums.txt 51 | printdownloadingx86two 52 | wget "$dmverbose" -c --show-progress http://"$mirror$path$file" 53 | else 54 | curl "$dmverbose" --fail --retry 4 -OL http://"$mirror${path}"md5sums.txt 55 | if [[ "$cpuabi" = "$cpuabix86" ]];then 56 | file="$(grep i686 md5sums.txt | awk {'print $2'})" 57 | else 58 | file="$(grep boot md5sums.txt | awk {'print $2'})" 59 | fi 60 | sed '2q;d' md5sums.txt > "$file".md5 61 | rm md5sums.txt 62 | printdownloadingx86two 63 | curl "$dmverbose" -C - --fail --retry 4 -OL http://"$mirror$path$file" 64 | fi 65 | } 66 | 67 | # EOF 68 | -------------------------------------------------------------------------------- /files/version: -------------------------------------------------------------------------------- 1 | gen.v1.6 id157476044435" 2 | v1.6 id0324 3 | -------------------------------------------------------------------------------- /files/working/printoutstatements.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TermuxArch/scripts.TermuxArch/0abeaa8299200ca8df7d8c3fdf72cf1f08d12380/files/working/printoutstatements.sh -------------------------------------------------------------------------------- /frags/README.md: -------------------------------------------------------------------------------- 1 | Various script fragments. 2 | -------------------------------------------------------------------------------- /frags/aarray.sh: -------------------------------------------------------------------------------- 1 | # Bash 4 / ksh93 2 | 3 | typeset -A homedir # Declare associative array 4 | homedir=( # Compound assignment 5 | [jim]=/home/jim 6 | [silvia]=/home/silvia 7 | [alex]=/home/alex 8 | ) 9 | 10 | homedir[ormaaj]=/home/ormaaj # Ordinary assignment adds another single element 11 | 12 | for user in "${!homedir[@]}"; do # Enumerate all indices (user names) 13 | printf 'Home directory of user %s is: %q\n' "$user" "${homedir[$user]}" 14 | done 15 | -------------------------------------------------------------------------------- /frags/aia.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | alias aiabrowser='am start -a android.intent.action.VIEW -d "content://com.android.externalstorage.documents/root/primary"' 3 | alias aiadial='am start -a android.intent.action.DIAL' 4 | alias aiasearch='am start -a android.intent.action.SEARCH' 5 | alias aiaview='am start -a android.intent.action.VIEW' 6 | alias aiaviewd='am start -a android.intent.action.VIEW -d' 7 | alias aiawebsearch='am start -a android.intent.action.WEB_SEARCH' 8 | # aia.sh EOF 9 | -------------------------------------------------------------------------------- /frags/colors/16-colors.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # From https://misc.flogisoft.com/bash/tip_colors_and_formatting 3 | # This program is free software. It comes without any warranty, to 4 | # the extent permitted by applicable law. You can redistribute it 5 | # and/or modify it under the terms of the Do What The Fuck You Want 6 | # To Public License, Version 2, as published by Sam Hocevar. See 7 | # http://sam.zoy.org/wtfpl/COPYING for more details. 8 | 9 | #Background 10 | for clbg in {40..47} {100..107} 49 ; do 11 | #Foreground 12 | for clfg in {30..37} {90..97} 39 ; do 13 | #Formatting 14 | for attr in 0 1 2 4 5 7 ; do 15 | #Print the result 16 | echo -en "\e[${attr};${clbg};${clfg}m ^[${attr};${clbg};${clfg}m \e[0m" 17 | done 18 | echo #Newline 19 | done 20 | done 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /frags/colors/256-colors.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # From https://misc.flogisoft.com/bash/tip_colors_and_formatting 3 | 4 | # This program is free software. It comes without any warranty, to 5 | # the extent permitted by applicable law. You can redistribute it 6 | # and/or modify it under the terms of the Do What The Fuck You Want 7 | # To Public License, Version 2, as published by Sam Hocevar. See 8 | # http://sam.zoy.org/wtfpl/COPYING for more details. 9 | 10 | for fgbg in 38 48 ; do # Foreground / Background 11 | for color in {0..255} ; do # Colors 12 | # Display the color 13 | printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color 14 | # Display 6 colors per lines 15 | if [ $((($color + 1) % 6)) == 4 ] ; then 16 | echo # New line 17 | fi 18 | done 19 | echo # New line 20 | done 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /frags/colors/256a-colors.sh: -------------------------------------------------------------------------------- 1 | 2 | # taken from https://misc.flogisoft.com/bash/tip_colors_and_formatting#colors2 3 | # with a blacklist of the hardest colors to see agaist a black or white background 4 | 5 | blacklist=(0 1 7 9 {15..18} {232..235} {250..255}) 6 | #blacklist=() 7 | colors=$(printf '%d\n' {0..255} ${blacklist[@]} | sort -n | uniq -u) 8 | 9 | slot=0 10 | for fgbg in 38 48 ; do # Foreground / Background 11 | for color in $colors ; do # Colors 12 | # Display the color 13 | printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color 14 | # Display 6 colors per lines 15 | if [ $((($slot + 1) % 6)) == 4 ] ; then 16 | echo # New line 17 | fi 18 | slot=$((slot + 1)) 19 | done 20 | echo # New line 21 | done 22 | -------------------------------------------------------------------------------- /frags/colors/259+colorswithformats.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/wae courtesy https://pages.github.com 4 | # https://sdrausty.github.io/wae/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/wae/README has information about wae. 6 | ################################################################################ 7 | 8 | for attr2 in 38 48 ; do # Foreground / Background 9 | for attr0 in {0..258} ; do # Colors 10 | for attr3 in {0..4} {7..9} ; do 11 | # Display the color 12 | printf "\\e[%s;%s;5;%sm %s %-3s \\e[0m" "$attr3" "$attr2" "$attr0" "$attr3" "$attr0" 13 | # Display 10 colors per lines 14 | if [ $(((attr0 + 1) % 10)) == 10 ] ; then 15 | printf "\\e[0m\\n\\n" # New line 16 | fi 17 | done 18 | echo # New line 19 | done 20 | done 21 | 22 | exit 0 23 | -------------------------------------------------------------------------------- /frags/colors/blnk: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################ ############### 7 | DATA[0]=" ___ __ __ _ _ " 8 | DATA[1]=" / _ | ________/ / / / (_)__ __ ____ __ (_)__ " 9 | DATA[2]=" / __ |/ __/ __/ _ \ / /__/ / _ \/ // /\ \ / / / _ \ " 10 | DATA[3]="/_/ |_/_/ \__/_//_/ /____/_/_//_/\_,_//_\_\ /_/_//_/ " 11 | DATA[4]=" " 12 | DATA[5]=" ______ ___ ___ __ " 13 | DATA[6]="/_ __/__ ______ _ __ ____ __ / _ \/ _ \___ ___ / / " 14 | DATA[7]=" / / / -_) __/ ' \/ // /\ \ / / ___/ , _/ _ \/ _ \/ __/" 15 | DATA[8]="/_/ \__/_/ /_/_/_/\_,_//_\_\ /_/ /_/|_|\___/\___/\__/ " 16 | 17 | # virtual coordinate system is X*Y ${#DATA} * 5 18 | 19 | REAL_OFFSET_X=0 20 | REAL_OFFSET_Y=0 21 | 22 | draw_char() { 23 | V_COORD_X=$1 24 | V_COORD_Y=$2 25 | 26 | tput cup $((REAL_OFFSET_Y + V_COORD_Y)) $((REAL_OFFSET_X + V_COORD_X)) 27 | 28 | printf %c ${DATA[V_COORD_Y]:V_COORD_X:1} 29 | } 30 | 31 | 32 | trap 'exit 1' INT TERM 33 | trap 'tput setaf 9; tput cvvis; clear' EXIT 34 | 35 | tput civis 36 | clear 37 | 38 | while :; do 39 | 40 | for ((c=1; c <= 7; c++)); do 41 | tput setaf $c 42 | for ((x=0; x<${#DATA[0]}; x++)); do 43 | for ((y=0; y<=9; y++)); do 44 | draw_char $x $y 45 | done 46 | done 47 | done 48 | 49 | done 50 | -------------------------------------------------------------------------------- /frags/colors/colorchart: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/bash 3 | # 4 | # This file echoes a bunch of color codes to the 5 | # terminal to demonstrate what's available. Each 6 | # line is the color code of one forground color, 7 | # out of 17 (default + 16 escapes), followed by a 8 | # test use of that color on all nine background 9 | # colors (default + 8 escapes). 10 | # 11 | 12 | T='gYw' # The test text 13 | 14 | echo -e "\n 40m 41m 42m 43m\ 15 | 44m 45m 46m 47m"; 16 | 17 | for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ 18 | '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ 19 | ' 36m' '1;36m' ' 37m' '1;37m'; 20 | do FG=${FGs// /} 21 | echo -en " $FGs \033[$FG $T " 22 | for BG in 40m 41m 42m 43m 44m 45m 46m 47m; 23 | do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; 24 | done 25 | echo; 26 | done 27 | echo 28 | 29 | 30 | -------------------------------------------------------------------------------- /frags/colors/colortable: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | color(){ 3 | for c; do 4 | printf '\e[48;5;%dm%03d' $c $c 5 | done 6 | printf '\e[0m \n' 7 | } 8 | 9 | IFS=$' \t\n' 10 | color {0..15} 11 | for ((i=0;i<6;i++)); do 12 | color $(seq $((i*36+16)) $((i*36+51))) 13 | done 14 | color {232..255} 15 | -------------------------------------------------------------------------------- /frags/copy.to.multiply.files.txt: -------------------------------------------------------------------------------- 1 | tee file.{0..9} < file > /dev/null 2 | -------------------------------------------------------------------------------- /frags/depreciated/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TermuxArch/scripts.TermuxArch/0abeaa8299200ca8df7d8c3fdf72cf1f08d12380/frags/depreciated/README.md -------------------------------------------------------------------------------- /frags/depreciated/frags.sh: -------------------------------------------------------------------------------- 1 | 2 | namestartarch() { # ${@%/} removes trailing slash 3 | darch="$(echo "${rootdir%/}" |sed 's#//*#/#g')" 4 | if [[ "$darch" = "/arch" ]] ; then 5 | aarch="" 6 | startbi2=arch 7 | else 8 | aarch="$(echo "$darch" |sed 's/\//\+/g')" 9 | startbi2=arch 10 | fi 11 | declare -g startbin=start"$startbi2$aarch" 12 | } 13 | 14 | -------------------------------------------------------------------------------- /frags/es/sieve.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # sieve.sh 7 | # Ref Example 27-13. The Sieve of Eratosthenes 8 | # tldp.org/LDP/abs/html/arrays.html 9 | # Must invoke with command-line argument (limit of primes). 10 | # -------------------------------------------------------- # 11 | # https://www.bing.com/search?q="Sieve of Eratosthenes" 12 | ################################################################################ 13 | 14 | if test "$BASH" = "" || "$BASH" -uc "a=();true \"\${a[@]}\"" 2>/dev/null;then 15 | # Bash 4.4, Zsh 16 | set -euo pipefail 17 | else 18 | # Bash 4.3 and older chokes on empty arrays with set -u. 19 | set -eo pipefail 20 | fi 21 | shopt -s nullglob globstar 22 | 23 | UPPER_LIMIT="$1" # From command-line. 24 | (( SPLIT=UPPER_LIMIT/2 )) # Halfway to max number. 25 | 26 | declare -a Primes 27 | mapfile -t Primes < <(seq "$UPPER_LIMIT") 28 | 29 | i=1 30 | until (( ( i += 1 ) > SPLIT )) # Need check only halfway. 31 | do 32 | if [[ -n "${Primes[i]}" ]] 33 | then 34 | t="$i" 35 | until (( ( t += i ) > UPPER_LIMIT )) 36 | do 37 | Primes[t]= 38 | done 39 | fi 40 | done 41 | echo "${Primes[*]}" 42 | 43 | exit $? 44 | -------------------------------------------------------------------------------- /frags/fperms.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env /usr/bin/sh 2 | ## Copyright 2021 (c) by SDRausty, all rights reserved, see LICENSE 3 | ## hosting termuxarch.github.io/TermuxArch courtesy pages.github.com 4 | ################################################################################ 5 | set -eu 6 | _SHFUNC_ () { 7 | PERRS="$(du "$1" 2>&1 >/dev/null | sed "s/du: cannot read directory '//g" | sed "s/': Permission denied//g")" 8 | [ -z "$PERRS" ] || { printf "%s" "Fixing permissions in '$1': " && for PERR in $PERRS ; do chmod 755 "$PERR" ; done && printf "%s\n" "DONE" ; } 9 | SDIRS="apex data" 10 | for SDIR in $SDIRS 11 | do 12 | RMDIR="$1/$SDIR" 13 | [ -d "$RMDIR" ] && printf "%s" "Deleting $RMDIR: " && rm -rf "${RMDIR:?}" && printf "%s\n" "DONE" 14 | done 15 | printf "%s\n" "Script '${0##*/}': DONE" 16 | } 17 | printf "%s\n" "Script '${0##*/}': STARTED..." 18 | [ -d "$1" ] && _SHFUNC_ "$@" || printf "%s\n" "Directory '$1' does not exist; Exiting... $(exit)" 19 | # fperms.sh EOF 20 | -------------------------------------------------------------------------------- /frags/frags: -------------------------------------------------------------------------------- 1 | #!/bin/env bash 2 | set -Eeuo pipefail 3 | shopt -s nullglob globstar 4 | unset LD_PRELOAD 5 | ## Declare getprops 6 | getpropcommandsa=("getprop gsm.sim.operator.iso-country" "getprop net.bt.name" "getprop persist.sys.locale" "getprop ro.build.target_country" "getprop ro.build.version.release" "getprop ro.build.version.sdk" "getprop ro.product.device" "getprop ro.product.first_api_level" "getprop ro.product.locale" "getprop ro.product.manufacturer" "getprop ro.product.model") 7 | for i in "${!getpropcommandsa[@]}"; do 8 | getpropcommandst+="\\e[1;32m[${getpropcommandsa[$i]}]: [`${getpropcommandsa[$i]}`]\\e[0;32m\\n" 9 | done 10 | printf "$getpropcommandst" 11 | # ## Used to generate signals. 12 | # ((1/0)) # 1 13 | # echo hello | grep "asdf" # 1 14 | # format c: #127 15 | # . foo 16 | # . 35e493e 17 | # (false; echo one) | cat; echo two # 1 & 201 18 | # cat 19 | ## 20 | # apt update && apt -o APT::Keep-Downloaded-Packages="true" upgrade -y 21 | # apt -o APT::Keep-Downloaded-Packages="true" install "$aptin" -y 22 | echo user.language 23 | getprop user.language 24 | echo user.region 25 | getprop user.region 26 | echo persist.sys.locale 27 | getprop persist.sys.locale 28 | echo persist.sys.language 29 | getprop persist.sys.language 30 | echo ro.product.locale 31 | getprop ro.product.locale 32 | echo ro.product.locale.language 33 | getprop ro.product.locale.language 34 | echo ro.product.locale.region 35 | getprop ro.product.locale.region 36 | echo ro.build.target_country 37 | getprop ro.build.target_country 38 | user.language 39 | [pt] 40 | user.region 41 | [BR] 42 | persist.sys.locale 43 | fr-CA 44 | persist.sys.language 45 | [pt] 46 | ro.product.locale 47 | en-US 48 | ro.product.locale.language 49 | [en] 50 | ro.product.locale.region 51 | [GB] 52 | ro.build.target_country 53 | US 54 | 55 | 56 | [persist.sys.language]: [pt] 57 | [ro.product.locale.language]: [en] 58 | [ro.product.locale.region]: [GB] 59 | [user.language]: [pt] 60 | [user.region]: [BR] 61 | 62 | [09:37 sdcard ]$ awk '{print $0}' file > tmp && mv tmp file awk: file: No such file or directory [09:40 sdcard ]$ awk '/en/ && /GB/ && /UTF/ { print substr($1,2);}' locale.gen 63 | en_GB.UTF-8 64 | -------------------------------------------------------------------------------- /frags/funky/command: -------------------------------------------------------------------------------- 1 | for ((x=0; x <= 127; x++)); do printf '%3d | %04o | 0x%02x\n' 128 128 128; done 2 | -------------------------------------------------------------------------------- /frags/gm/wae: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | # https://www.bing.com/search?q=grey+music+cognition 7 | ################################################################################ 8 | while true;do printplay "$@";play-audio "$@" 1>/dev/null; (( snooze="$(sed 's/[^0-9]//g' /proc/sys/kernel/random/uuid |sed 's/^\(...\).*/\1/')" )) ;printsnooze "$@";sleep "$snooze";done 9 | -------------------------------------------------------------------------------- /frags/header.sh: -------------------------------------------------------------------------------- 1 | #!/bin/env bash 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosted https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | ################################################################################ 6 | IFS=$'\n\t' 7 | set -Eeuo pipefail 8 | shopt -s nullglob globstar 9 | unset LD_PRELOAD 10 | fileheader="#!/bin/env bash\\n# Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺\\n# Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com\\n# https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help.\\n################################################################################\\nIFS=$'\\\\n\\\\t'\\nset -Eeuo pipefail\\nshopt -s nullglob globstar\\nunset LD_PRELOAD\\n" 11 | addae() { 12 | printf $fileheader > ae 13 | cat >> ae <<- EOM 14 | watch cat /proc/sys/kernel/random/entropy_avail 15 | EOM 16 | } 17 | addae 18 | cat ae 19 | 20 | -------------------------------------------------------------------------------- /frags/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/env sh 2 | # Copyright 2019 by TermuxArch. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # https://termuxarch.github.io/TermuxArch/ has info about this project. 4 | # https://termuxarch.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # Invocation : sh $HOME/init.sh 6 | ################################################################################ 7 | 8 | STRING="Command \`au\` enables rollback; Available at https://github.com/sdrausty/au : Continuing..." 9 | printf "%s\\n" "Beginning TermuxArch init.sh:" 10 | for CMD in au pkg 11 | do 12 | [ ! -z "$(command -v "$CMD")" ] && ("$CMD" lftp busybox) || (printf "\\e[1;38;5;117m%s\\n" "$STRING") 13 | done 14 | cd "$PREFIX/bin/applets/" 15 | ln -s ../busybox awk 16 | ln -s ../busybox md5sum 17 | ln -s ../busybox rev 18 | ln -s ../busybox sha512sum 19 | ln -s ../busybox tar 20 | ln -s ../busybox uname 21 | bash "$HOME"/setupTermuxArch.sh # h for more information 22 | 23 | # init.sh EOF 24 | -------------------------------------------------------------------------------- /frags/lf/lf: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # prints colored text 4 | print_style () { 5 | 6 | if [ "$2" == "info" ] ; then 7 | COLOR="96m"; 8 | elif [ "$2" == "success" ] ; then 9 | COLOR="92m"; 10 | elif [ "$2" == "warning" ] ; then 11 | COLOR="93m"; 12 | elif [ "$2" == "danger" ] ; then 13 | COLOR="91m"; 14 | else #default color 15 | COLOR="0m"; 16 | fi 17 | 18 | STARTCOLOR="\e[$COLOR"; 19 | ENDCOLOR="\e[0m"; 20 | 21 | printf "$STARTCOLOR%b$ENDCOLOR" "$1"; 22 | } 23 | 24 | print_style "This is a green text " "success"; 25 | print_style "This is a yellow text " "warning"; 26 | print_style "This is a light blue with a \t tab " "info"; 27 | print_style "This is a red text with a \n new line " "danger"; 28 | print_style "This has no color"; 29 | -------------------------------------------------------------------------------- /frags/lf/lf1: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # prints colored text 4 | print_style () { 5 | 6 | if [ "$2" == "info" ] ; then 7 | COLOR="196m"; 8 | elif [ "$2" == "success" ] ; then 9 | COLOR="192m"; 10 | elif [ "$2" == "warning" ] ; then 11 | COLOR="193m"; 12 | elif [ "$2" == "danger" ] ; then 13 | COLOR="191m"; 14 | #'\e[48;5;%dm%03d' 15 | else #default color 16 | COLOR="0m"; 17 | fi 18 | 19 | STARTCOLOR="\e[48;5;$COLOR"; 20 | ENDCOLOR="\e[0m"; 21 | 22 | printf "$STARTCOLOR%b$ENDCOLOR" "$1"; 23 | } 24 | 25 | print_style "This is a green text " "success"; 26 | print_style "This is a yellow text " "warning"; 27 | print_style "This is a light blue with a \t tab " "info"; 28 | print_style "This is a red text with a \n new line " "danger"; 29 | print_style "This has no color"; 30 | -------------------------------------------------------------------------------- /frags/lf/lf2: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # prints colored text 4 | #'\e[48;5;%dm%03d' 5 | print_style () { 6 | 7 | if [ "$2" == "info" ] ; then 8 | COLOR="96m"; 9 | elif [ "$2" == "success" ] ; then 10 | COLOR="92m"; 11 | elif [ "$2" == "warning" ] ; then 12 | COLOR="93m"; 13 | elif [ "$2" == "danger" ] ; then 14 | COLOR="91m"; 15 | else #default color 16 | COLOR="0m"; 17 | fi 18 | 19 | STARTCOLOR="\e[48;5;$COLOR"; 20 | ENDCOLOR="\e[0m"; 21 | 22 | printf "$STARTCOLOR%b$ENDCOLOR" "$1"; 23 | } 24 | 25 | print_style "This is a green text " "success"; 26 | print_style "This is a yellow text " "warning"; 27 | print_style "This is a light blue with a \t tab " "info"; 28 | print_style "This is a red text with a \n new line " "danger"; 29 | print_style "This has no color"; 30 | -------------------------------------------------------------------------------- /frags/lf/lf3: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # prints colored text 4 | #'\e[48;5;%dm%03d' 5 | print_style () { 6 | 7 | if [ "$2" == "info" ] ; then 8 | COLOR="96m"; 9 | elif [ "$2" == "success" ] ; then 10 | COLOR="92m"; 11 | elif [ "$2" == "warning" ] ; then 12 | COLOR="93m"; 13 | elif [ "$2" == "danger" ] ; then 14 | COLOR="91m"; 15 | else #default color 16 | COLOR="0m"; 17 | fi 18 | 19 | STARTCOLOR="\e[48;5;$COLOR"; 20 | ENDCOLOR="\e[0m"; 21 | 22 | printf "$STARTCOLOR%b$ENDCOLOR" "$1"; 23 | } 24 | 25 | print_style "This is a green text " "success"; 26 | print_style "This is a yellow text " "warning"; 27 | print_style "This is a light blue with a \t tab " "info"; 28 | print_style "This is a red text with a \n new line " "danger"; 29 | print_style "This has no color"; 30 | -------------------------------------------------------------------------------- /frags/lf/lf4: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # prints colored text 4 | print_style () { 5 | 6 | if [ "$2" == "info" ] ; then 7 | COLOR="018m"; 8 | elif [ "$2" == "success" ] ; then 9 | COLOR="019m"; 10 | elif [ "$2" == "warning" ] ; then 11 | COLOR="020m"; 12 | elif [ "$2" == "danger" ] ; then 13 | COLOR="021m"; 14 | #'\e[48;5;%dm%03d' 15 | else #default color 16 | COLOR="0m"; 17 | fi 18 | 19 | STARTCOLOR="\e[48;5;$COLOR"; 20 | ENDCOLOR="\e[0m"; 21 | 22 | printf "$STARTCOLOR%b$ENDCOLOR" "$1"; 23 | } 24 | 25 | print_style "This is a green text " "success"; 26 | print_style "This is a yellow text " "warning"; 27 | print_style "This is a light blue with a \t tab " "info"; 28 | print_style "This is a red text with a \n new line " "danger"; 29 | print_style "This has no color"; 30 | -------------------------------------------------------------------------------- /frags/libshm/libandroid-shmem-gnu4.log: -------------------------------------------------------------------------------- 1 | [08:50 libandroid-shmem-gnu ]$ make gnulinux 2 | cc -fpic -shared -std=c11 -Wall -Wextra -Wl,--version-script=exports.txt shmem.c -o libandroid-shmem.so 3 | shmem.c: In function ‘ashmem_get_size_region’: 4 | shmem.c:121:9: warning: implicit declaration of function ‘TEMP_FAILURE_RETRY’ [-Wimplicit-function-declaration] 5 | return TEMP_FAILURE_RETRY(shmctl(fd, ASHMEM_GET_SIZE, NULL)); 6 | ^~~~~~~~~~~~~~~~~~ 7 | shmem.c: In function ‘ashmem_create_region’: 8 | shmem.c:142:40: warning: passing argument 3 of ‘shmctl’ from incompatible pointer type [-Wincompatible-pointer-types] 9 | int ret = shmctl(fd, ASHMEM_SET_NAME, name_buffer); 10 | ^~~~~~~~~~~ 11 | In file included from shmem.c:27:0: 12 | shm.h:15:12: note: expected ‘struct shmid64_ds *’ but argument is of type ‘char *’ 13 | extern int shmctl(int shmid, int cmd, struct shmid_ds* buf); 14 | ^~~~~~ 15 | shmem.c:145:36: warning: passing argument 3 of ‘shmctl’ makes pointer from integer without a cast [-Wint-conversion] 16 | ret = shmctl(fd, ASHMEM_SET_SIZE, size); 17 | ^~~~ 18 | In file included from shmem.c:27:0: 19 | shm.h:15:12: note: expected ‘struct shmid64_ds *’ but argument is of type ‘size_t {aka long unsigned int}’ 20 | extern int shmctl(int shmid, int cmd, struct shmid_ds* buf); 21 | ^~~~~~ 22 | shmem.c: In function ‘shmget’: 23 | shmem.c:354:22: warning: implicit declaration of function ‘readlink’; did you mean ‘unlink’? [-Wimplicit-function-declaration] 24 | int path_length = readlink(symlink_path, path_buffer, sizeof(path_buffer) - 1); 25 | ^~~~~~~~ 26 | unlink 27 | shmem.c:377:8: warning: implicit declaration of function ‘symlink’; did you mean ‘unlink’? [-Wimplicit-function-declaration] 28 | if (symlink(num_buffer, symlink_path) == 0) break; 29 | ^~~~~~~ 30 | unlink 31 | shmem.c:393:24: warning: implicit declaration of function ‘getpagesize’ [-Wimplicit-function-declaration] 32 | size = ROUND_UP(size, getpagesize()); 33 | ^ 34 | shmem.c:31:34: note: in definition of macro ‘ROUND_UP’ 35 | #define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S)) 36 | ^ 37 | -------------------------------------------------------------------------------- /frags/libshm/libandroid-shmem.log: -------------------------------------------------------------------------------- 1 | [09:02 ~ ]$ gcl https://github.com/termux/libandroid-shmem 2 | Cloning into 'libandroid-shmem'... 3 | remote: Counting objects: 39, done. 4 | remote: Total 39 (delta 0), reused 0 (delta 0), pack-reused 39 5 | Unpacking objects: 100% (39/39), done. 6 | [09:03 ~ ]$ cd libandroid-shmem 7 | [09:03 libandroid-shmem ]$ make gnulinux 8 | make: *** No rule to make target 'gnulinux'. Stop. 9 | [09:04 libandroid-shmem ]$ make install 10 | cc -fpic -shared -std=c11 -Wall -Wextra -Wl,--version-script=exports.txt shmem.c -llog -o libandroid-shmem.so 11 | shmem.c:1:10: fatal error: android/log.h: No such file or directory 12 | #include 13 | ^~~~~~~~~~~~~~~ 14 | compilation terminated. 15 | make: *** [Makefile:4: libandroid-shmem.so] Error 1 16 | -------------------------------------------------------------------------------- /frags/oneliners: -------------------------------------------------------------------------------- 1 | printf '\e[48;5;%dm ' {0..255}; printf '\e[0m \n' 2 | echo new line 3 | printf '\e[48;4;%dm ' {0..255}; printf '\e[0m \n' 4 | echo new line 5 | printf '\e[48;3;%dm ' {0..255}; printf '\e[0m \n' 6 | echo new line 7 | for r in {200..255..5}; do fb=4;g=1;b=1;printf '\e[0;%s8;2;%s;%s;%sm ' "$fb" "$r" "$g" "$b"; done; echo; printf '\e[0m \n' 8 | echo new line 9 | for r in {000..255..5}; do fb=4;g=1;b=1;printf '\e[0;%s8;2;%s;%s;%sm ' "$fb" "$r" "$g" "$b"; done; echo; printf '\e[0m \n' 10 | echo new line 11 | for r in {000..255..5}; do fb=4;g=1;b=2;printf '\e[0;%s8;2;%s;%s;%sm ' "$fb" "$r" "$g" "$b"; done; echo; printf '\e[0m \n' 12 | -------------------------------------------------------------------------------- /frags/pk.sh: -------------------------------------------------------------------------------- 1 | if [ $(getprop ro.product.cpu.abi) = x86 ] || [ $(getprop ro.product.cpu.abi) = x86_64 ];then 2 | pacman-key --init 3 | echo disable-scdaemon > /etc/pacman.d/gnupg/gpg-agent.conf 4 | if [ $(getprop ro.product.cpu.abi) = x86 ];then 5 | pacman -S archlinux32-keyring --noconfirm ||: 6 | else 7 | pacman -S archlinux-keyring --noconfirm ||: 8 | fi 9 | pacman-key --populate 10 | pacman -Syu sed --noconfirm ||: 11 | else 12 | pacman-key --init 13 | echo disable-scdaemon > /etc/pacman.d/gnupg/gpg-agent.conf 14 | pacman-key --populate 15 | pacman -Syu archlinux-keyring --noconfirm ||: 16 | fi 17 | 18 | -------------------------------------------------------------------------------- /frags/proot/ktest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about TermuxArch. 6 | ################################################################################ 7 | 8 | addtestapp () { 9 | cat > testapp.c <<- EOM 10 | #include 11 | #include 12 | #include 13 | int main() { 14 | int a = open("nonexistent-test-file-a", O_RDONLY); 15 | int ae = errno; 16 | int b = open("nonexistent-test-dir/nonexistent-test-file-b", O_RDONLY); 17 | int be = errno; 18 | int c = open("nonexistent-test-file-c", O_RDONLY); 19 | int ce = errno; 20 | printf("[%d %d %d %d %d %d]\n", a, ae, b, be, c, ce); 21 | } 22 | EOM 23 | chmod 770 testapp.c 24 | } 25 | 26 | clangif () { 27 | if [ ! -x $PREFIX/bin/clang ];then 28 | printf "\n\033[1;34mInstalling \033[0;32mclang\033[1;34m…\n\n\033[1;32m" 29 | pkg install clang --yes 30 | printf "\n\033[1;34mInstalling \033[0;32mclang\033[1;34m: \033[1;32mDONE\n\n\033[0m" 31 | fi 32 | if [ ! -x $PREFIX/bin/clang ];then 33 | pe 34 | fi 35 | } 36 | 37 | pe () { 38 | printf "\n\033[1;31mPrerequisite exception; Run the script again…\n\n\033[0m"'\033]2; Thank you for using TermuxArch ktest.sh. Run `bash ktest.sh` again…\007' 39 | exit 40 | } 41 | 42 | clangif 43 | addtestapp 44 | 45 | printf "\n\033[1;32mPRoot test results:\n\n\033[0m" 46 | clang testapp.c -o testapp 47 | PROOT_NO_SECCOMP=1 proot ./testapp 48 | rm test* 49 | printf "\n\033[0m"'\033]2; Thank you for using TermuxArch ktest.sh.\007' 50 | -------------------------------------------------------------------------------- /frags/pwd.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright 2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Website for this project at https://sdrausty.github.io/dfa 4 | 5 | pwd | grep -o '[^/]*$' 6 | pwd |sed 's!.*/!!' 7 | result=${PWD##*/} # to assign to a variable 8 | 9 | printf '%s\n' "${PWD##*/}" # to print to stdout 10 | # ...more robust than echo for unusual names 11 | # (consider a directory named -e or -n) 12 | 13 | printf '%q\n' "${PWD##*/}" # to print to stdout, quoted for use as shell input 14 | # ...useful to make hidden characters readable. 15 | -------------------------------------------------------------------------------- /frags/returntest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # return-test.sh 3 | 4 | # The largest positive value a function can return is 255. 5 | 6 | return_test () # Returns whatever passed to it. 7 | { 8 | return $1 9 | } 10 | 11 | return_test 27 # o.k. 12 | echo $? # Returns 27. 13 | 14 | return_test 255 # Still o.k. 15 | echo $? # Returns 255. 16 | 17 | return_test 257 # Error! 18 | echo $? # Returns 1 (return code for miscellaneous error). 19 | 20 | # ========================================================= 21 | return_test -151896 # Do large negative numbers work? 22 | echo $? # Will this return -151896? 23 | # No! It returns 168. 24 | # Version of Bash before 2.05b permitted 25 | #+ large negative integer return values. 26 | # It happened to be a useful feature. 27 | # Newer versions of Bash unfortunately plug this loophole. 28 | # This may break older scripts. 29 | # Caution! 30 | # ========================================================= 31 | 32 | exit 0 33 | -------------------------------------------------------------------------------- /frags/rnd/9.12.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # pick-card.sh 3 | 4 | # This is an example of choosing random elements of an array. 5 | 6 | 7 | # Pick a card, any card. 8 | 9 | Suites="Clubs 10 | Diamonds 11 | Hearts 12 | Spades" 13 | 14 | Denominations="2 15 | 3 16 | 4 17 | 5 18 | 6 19 | 7 20 | 8 21 | 9 22 | 10 23 | Jack 24 | Queen 25 | King 26 | Ace" 27 | 28 | # Note variables spread over multiple lines. 29 | 30 | 31 | suite=($Suites) # Read into array variable. 32 | denomination=($Denominations) 33 | 34 | num_suites=${#suite[*]} # Count how many elements. 35 | num_denominations=${#denomination[*]} 36 | 37 | echo -n "${denomination[$((RANDOM%num_denominations))]} of " 38 | echo ${suite[$((RANDOM%num_suites))]} 39 | 40 | 41 | # $bozo sh pick-cards.sh 42 | # Jack of Clubs 43 | 44 | 45 | # Thank you, "jipe," for pointing out this use of $RANDOM. 46 | exit 0 47 | -------------------------------------------------------------------------------- /frags/rnd/9.15.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # How random is RANDOM? 3 | 4 | RANDOM=$$ # Reseed the random number generator using script process ID. 5 | 6 | PIPS=6 # A die has 6 pips. 7 | MAXTHROWS=600 # Increase this if you have nothing better to do with your time. 8 | throw=0 # Number of times the dice have been cast. 9 | 10 | ones=0 # Must initialize counts to zero, 11 | twos=0 #+ since an uninitialized variable is null, NOT zero. 12 | threes=0 13 | fours=0 14 | fives=0 15 | sixes=0 16 | 17 | print_result () 18 | { 19 | echo 20 | echo "ones = $ones" 21 | echo "twos = $twos" 22 | echo "threes = $threes" 23 | echo "fours = $fours" 24 | echo "fives = $fives" 25 | echo "sixes = $sixes" 26 | echo 27 | } 28 | 29 | update_count() 30 | { 31 | case "$1" in 32 | 0) ((ones++));; # Since a die has no "zero", this corresponds to 1. 33 | 1) ((twos++));; # And this to 2. 34 | 2) ((threes++));; # And so forth. 35 | 3) ((fours++));; 36 | 4) ((fives++));; 37 | 5) ((sixes++));; 38 | esac 39 | } 40 | 41 | echo 42 | 43 | 44 | while [ "$throw" -lt "$MAXTHROWS" ] 45 | do 46 | let "die1 = RANDOM % $PIPS" 47 | update_count $die1 48 | let "throw += 1" 49 | done 50 | 51 | print_result 52 | 53 | exit $? 54 | 55 | # The scores should distribute evenly, assuming RANDOM is random. 56 | # With $MAXTHROWS at 600, all should cluster around 100, 57 | #+ plus-or-minus 20 or so. 58 | # 59 | # Keep in mind that RANDOM is a ***pseudorandom*** generator, 60 | #+ and not a spectacularly good one at that. 61 | 62 | # Randomness is a deep and complex subject. 63 | # Sufficiently long "random" sequences may exhibit 64 | #+ chaotic and other "non-random" behavior. 65 | 66 | # Exercise (easy): 67 | # --------------- 68 | # Rewrite this script to flip a coin 1000 times. 69 | # Choices are "HEADS" and "TAILS." 70 | -------------------------------------------------------------------------------- /frags/rnd/9.16.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # seeding-random.sh: Seeding the RANDOM variable. 3 | # v 1.1, reldate 09 Feb 2013 4 | 5 | MAXCOUNT=25 # How many numbers to generate. 6 | SEED= 7 | 8 | random_numbers () 9 | { 10 | local count=0 11 | local number 12 | 13 | while [ "$count" -lt "$MAXCOUNT" ] 14 | do 15 | number=$RANDOM 16 | echo -n "$number " 17 | let "count++" 18 | done 19 | } 20 | 21 | echo; echo 22 | 23 | SEED=1 24 | RANDOM=$SEED # Setting RANDOM seeds the random number generator. 25 | echo "Random seed = $SEED" 26 | random_numbers 27 | 28 | 29 | RANDOM=$SEED # Same seed for RANDOM . . . 30 | echo; echo "Again, with same random seed ..." 31 | echo "Random seed = $SEED" 32 | random_numbers # . . . reproduces the exact same number series. 33 | # 34 | # When is it useful to duplicate a "random" series? 35 | 36 | echo; echo 37 | 38 | SEED=2 39 | RANDOM=$SEED # Trying again, but with a different seed . . . 40 | echo "Random seed = $SEED" 41 | random_numbers # . . . gives a different number series. 42 | 43 | echo; echo 44 | 45 | # RANDOM=$$ seeds RANDOM from process id of script. 46 | # It is also possible to seed RANDOM from 'time' or 'date' commands. 47 | 48 | # Getting fancy... 49 | SEED=$(head -1 /dev/urandom | od -N 1 | awk '{ print $2 }'| sed s/^0*//) 50 | # Pseudo-random output fetched 51 | #+ from /dev/urandom (system pseudo-random device-file), 52 | #+ then converted to line of printable (octal) numbers by "od", 53 | #+ then "awk" retrieves just one number for SEED, 54 | #+ finally "sed" removes any leading zeros. 55 | RANDOM=$SEED 56 | echo "Random seed = $SEED" 57 | random_numbers 58 | 59 | echo; echo 60 | 61 | exit 0 62 | -------------------------------------------------------------------------------- /frags/rnd/9.17.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # random2.sh: Returns a pseudorandom number in the range 0 - 1, 3 | #+ to 6 decimal places. For example: 0.822725 4 | # Uses the awk rand() function. 5 | 6 | AWKSCRIPT=' { srand(); print rand() } ' 7 | # Command(s)/parameters passed to awk 8 | # Note that srand() reseeds awk's random number generator. 9 | 10 | 11 | echo -n "Random number between 0 and 1 = " 12 | 13 | echo | awk "$AWKSCRIPT" 14 | # What happens if you leave out the 'echo'? 15 | 16 | exit 0 17 | 18 | 19 | # Exercises: 20 | # --------- 21 | 22 | # 1) Using a loop construct, print out 10 different random numbers. 23 | # (Hint: you must reseed the srand() function with a different seed 24 | #+ in each pass through the loop. What happens if you omit this?) 25 | 26 | # 2) Using an integer multiplier as a scaling factor, generate random numbers 27 | #+ in the range of 10 to 100. 28 | 29 | # 3) Same as exercise #2, above, but generate random integers this time. 30 | # The date command also lends itself to generating pseudorandom integer sequences. 31 | -------------------------------------------------------------------------------- /frags/rnd/we.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | watch cat /proc/sys/kernel/random/entropy_avail 3 | -------------------------------------------------------------------------------- /frags/rwl.sh: -------------------------------------------------------------------------------- 1 | 2 | releasewakelock () 3 | { 4 | printf " 🕦 \033[36;1m<\033[0m 🕛 " 5 | while true; do 6 | read -p "Release termux-wake-lock? [y|n]" answer 7 | #read -p $'\e[31mRelease termux-wake-lock? [y|n]\e[0m: ' answer 8 | #RESET="\033[0m" 9 | #BOLD="\033[1m" 10 | #YELLOW="\033[38;5;11m" 11 | #read -p "$(echo -e $BOLD$YELLOW"Release termux-wake-lock? [y|n] "$RESET)" answer 12 | #BC=$'\e[4m' 13 | #EC=$'\e[0m' 14 | #read -p "Release ${BC}termux-wake-lock${EC}? [y|n]" answer 15 | if [[ $answer = [Yy]* ]];then 16 | termux-wake-unlock 17 | printf "\n 🕛 \033[32;1m=\033[0m 🕛 Termux-wake-lock released. \033[0m" 18 | break 19 | elif [[ $answer = [Nn]* ]];then 20 | printf "\n 🕛 \033[32;1m=\033[0m 🕛 " 21 | break 22 | elif [[ $answer = [Qq]* ]];then 23 | printf "\n 🕛 \033[32;1m=\033[0m 🕛 " 24 | break 25 | else 26 | printf "\n 🕦 \033[36;1m<\033[0m 🕛 You answered \033[33;1m$answer\033[0m.\n" 27 | printf "\n 🕦 \033[36;1m<\033[0m 🕛 Answer Yes or No (y|n).\n\n" 28 | fi 29 | done 30 | } 31 | 32 | -------------------------------------------------------------------------------- /frags/space.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | 8 | spaceinfo () 9 | { 10 | usrspace=`df /data | awk {'print $4'} | sed '2q;d'` 11 | if [[ $usrspace = *G ]];then 12 | usspace="${usrspace: : -1}" 13 | if [ $(getprop ro.product.cpu.abi) = arm64-v8a ];then 14 | if [[ "$usspace" < "1.5" ]];then 15 | spaceMessage="\n\033[0;33mTermuxArch: \033[1;33mFREE SPACE WARNING! \033[1;30mStart thinking about cleaning out some stuff. \033[33m$usrspace of free user space is available on this device. \033[1;30mThe recommended minimum to install Arch Linux in Termux PRoot for aarch64 is 1.5G of free user space.\n\033[0m" 16 | else 17 | spaceMessage="" 18 | fi 19 | elif [ $(getprop ro.product.cpu.abi) = armeabi-v7a ];then 20 | if [[ "$usspace" < "1.25" ]];then 21 | spaceMessage="\n\033[0;33mTermuxArch: \033[1;33mFREE SPACE WARNING! \033[1;30mStart thinking about cleaning out some stuff. \033[33m$usrspace of free user space is available on this device. \033[1;30mThe recommended minimum to install Arch Linux in Termux PRoot for armv7 is 1.25G of free user space.\n\033[0m" 22 | else 23 | spaceMessage="" 24 | fi 25 | else 26 | spaceMessage="" 27 | fi 28 | else 29 | spaceMessage="\n\033[0;33mTermuxArch: \033[1;33mFREE SPACE WARNING! \033[1;30mStart thinking about cleaning out some stuff. \033[33m$usrspace of free user space is available on this device. \033[1;30mThe recommended minimum to install Arch Linux in Termux PRoot is more than 1.5G for aarch64, more than 1.25G for armv7 and more than 1G of free user space for all other architectures.\n\033[0m" 30 | fi 31 | printf "$spaceMessage" 32 | } 33 | 34 | spaceinfo 35 | -------------------------------------------------------------------------------- /frags/spinning: -------------------------------------------------------------------------------- 1 | sp="/-\|" 2 | sc=0 3 | spin() { 4 | printf "\b${sp:sc++:1}" 5 | ((sc==${#sp})) && sc=0 6 | } 7 | endspin() { 8 | printf "\r%s\n" "$@" 9 | } 10 | 11 | while : ;do 12 | spin 13 | done 14 | -------------------------------------------------------------------------------- /frags/stdoutbench.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # Copyright 2017-2021 by SDRausty. All rights reserved. 🌎 🌍 🌏 🌐 🗺 3 | # Hosting https://sdrausty.github.io/TermuxArch courtesy https://pages.github.com 4 | # https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank you for your help. 5 | # https://sdrausty.github.io/TermuxArch/README has information about this project. 6 | ################################################################################ 7 | set -e 8 | 9 | dd if=/dev/urandom bs=1K count=100 | hexdump -C >500KBfile.txt ; for i in {1..4}; do echo $i ; sleep 1 ; time nice -n 20 cat 500KBfile.txt ; sleep 2 ; done 10 | -------------------------------------------------------------------------------- /frags/tmp: -------------------------------------------------------------------------------- 1 | ___ __ __ _ _ 2 | / _ | ________/ / / / (_)__ __ ____ __ (_)__ 3 | / __ |/ __/ __/ _ \ / /__/ / _ \/ // /\ \ / / / _ \ 4 | /_/ |_/_/ \__/_//_/ /____/_/_//_/\_,_//_\_\ /_/_//_/ 5 | 6 | ______ ___ ___ __ 7 | /_ __/__ ______ _ __ ____ __ / _ \/ _ \___ ___ / /_ 8 | / / / -_) __/ ' \/ // /\ \ / / ___/ , _/ _ \/ _ \/ __/ 9 | /_/ \__/_/ /_/_/_/\_,_//_\_\ /_/ /_/|_|\___/\___/\__/ 10 | 11 | ############################################################################### 12 | pacman --noconfirm --color=always -Syu base base-devel emacs jdk8-openjdk 13 | #pc enlightenment enlightenment16 14 | #pc gradle 15 | trim 16 | -------------------------------------------------------------------------------- /frags/wl: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/sh 2 | unset LD_LIBRARY_PATH LD_PRELOAD 3 | PATH=/system/bin 4 | 5 | if [ $# != 0 ]; then 6 | echo $# 7 | echo 'usage: termux-wake-lock' 8 | echo 'Acquire the Termux wake lock to prevent the CPU from sleeping.' 9 | exit 1 10 | fi 11 | 12 | exec /system/bin/am startservice \ 13 | --user 0 \ 14 | -a com.termux.service_wake_lock \ 15 | com.termux/com.termux.app.TermuxService \ 16 | > /dev/null 17 | -------------------------------------------------------------------------------- /frags/wul: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/sh 2 | unset LD_LIBRARY_PATH LD_PRELOAD 3 | PATH=/system/bin 4 | 5 | if [ $# != 0 ]; then 6 | echo 'usage: termux-wake-unlock' 7 | echo 'Release the Termux wake lock to allow the CPU to sleep.' 8 | exit 1 9 | fi 10 | 11 | exec /system/bin/am startservice \ 12 | --user 0 \ 13 | -a com.termux.service_wake_unlock \ 14 | com.termux/com.termux.app.TermuxService \ 15 | > /dev/null 16 | -------------------------------------------------------------------------------- /incoming/androidcommandlinetools.install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | [ -d sdk ] && cd "$HOME/sdk" || mkdir -p "$HOME/sdk" && cd "$HOME/sdk" 3 | PAGES="ndk sdk studio" 4 | for ONEPAGE in $PAGES 5 | do 6 | if [ -f "$ONEPAGE" ] 7 | then 8 | printf "Already got page %s from https://developer.android.com/%s: Continuing...\\n" "$ONEPAGE" "$ONEPAGE" 9 | else 10 | printf "Getting page %s from https://developer.android.com/%s...\\n" "$ONEPAGE" "$ONEPAGE" 11 | curl -OL "https://developer.android.com/$ONEPAGE" 12 | fi 13 | done 14 | NDKTOOLSFILE="$(grep commandlinetools-linux studio | grep https)" 15 | NDKTOOLSFILE="${NDKTOOLSFILE#*\"}" 16 | NDKTOOLSFILE="${NDKTOOLSFILE%*\"}" 17 | [ -f "${NDKTOOLSFILE##*\/}" ] || curl -OL "$NDKTOOLSFILE" 18 | [ -f "$HOME/sdk/cmdline-tools/source.properties" ] && grep "Android" "$HOME/sdk/cmdline-tools/source.properties" && printf "%s\\n" "File ${NDKTOOLSFILE##*\/} is downloaded and unzipped." || unzip "${NDKTOOLSFILE##*\/}" 19 | -------------------------------------------------------------------------------- /maintenance/addSubmoduleDocs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update submodules to latest version. 5 | ##################################################################### 6 | git submodule add https://github.com/sdrausty/docsTermuxArch docs 7 | -------------------------------------------------------------------------------- /maintenance/addSubmoduleImgs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2018 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update submodules to latest version. 5 | ##################################################################### 6 | git submodule add https://github.com/sdrausty/imgsTermuxArch imgs 7 | -------------------------------------------------------------------------------- /maintenance/addSubmoduleScripts.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2018 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update submodules to latest version. 5 | ##################################################################### 6 | git submodule add https://github.com/sdrausty/scriptsTermuxArch scripts 7 | -------------------------------------------------------------------------------- /maintenance/addSubmoduledfa.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update submodules to latest version. 5 | ##################################################################### 6 | git submodule add https://github.com/sdrausty/dfa scripts/frags/dfa 7 | -------------------------------------------------------------------------------- /maintenance/addSubmodulegen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2018 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update submodules to latest version. 5 | ##################################################################### 6 | git submodule add https://github.com/sdrausty/gensTermuxArch gen 7 | -------------------------------------------------------------------------------- /maintenance/addSubmodules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2018 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update submodules to latest version. 5 | ##################################################################### 6 | git submodule update --init --recursive 7 | scripts/maintenance/addSubmoduleScripts.sh ||: 8 | scripts/maintenance/addSubmoduledfa.sh ||: 9 | scripts/maintenance/addSubmoduleDocs.sh ||: 10 | scripts/maintenance/addSubmoduleImgs.sh ||: 11 | scripts/maintenance/addSubmodulegen.sh ||: 12 | -------------------------------------------------------------------------------- /maintenance/do.trees.bash: -------------------------------------------------------------------------------- 1 | #!/bin/env bash 2 | # Copyright 2019 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Checks sha512sum file: sha512sum -c ztree.sha512.sum 5 | # Creates ztree.*.sum files and commits: ./do.trees.bash 6 | ##################################################################### 7 | set -eu 8 | rm -f *.sum 9 | FILELIST=( $(find . -type f | grep -v .git | sort) ) 10 | CHECKLIST=(md5sum sha1sum sha224sum sha256sum sha384sum sha512sum) 11 | for SCHECK in ${CHECKLIST[@]} 12 | do 13 | for FILE in "${FILELIST[@]}" 14 | do 15 | printf "%s\\n" "Creating $SCHECK for $FILE..." 16 | $SCHECK "$FILE" >> ztree.${SCHECK::-3}.sum 17 | done 18 | done 19 | for SCHECK in ${CHECKLIST[@]} 20 | do 21 | printf "\\n%s\\n" "Checking $SCHECK..." 22 | $SCHECK -c ztree.${SCHECK::-3}.sum 23 | done 24 | git add . 25 | git commit 26 | git push 27 | # do.trees.sh EOF 28 | -------------------------------------------------------------------------------- /maintenance/fixperms.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017 (c) all rights reserved by 3 | # SDRausty https://sdrausty.github.io 4 | ##################################################################### 5 | find . -type d -exec chmod 700 {} \; 6 | find . -type f -exec chmod 600 {} \; 7 | find . -type f -name "*sh" -exec chmod 700 {} \; 8 | -------------------------------------------------------------------------------- /maintenance/gsn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2018 (c) all rights reserved by 3 | # SDRausty https://sdrausty.github.io 4 | # Used for creating the commit message in conjunction with `resetTermuxArch.sh`. 5 | ##################################################################### 6 | date=`date +%Y%m%d` 7 | time=`date +%H:%M:%S` 8 | utime=`date +%s` 9 | ntime=`date +%N` 10 | echo Computed on $date branch master. 11 | pwd 12 | -------------------------------------------------------------------------------- /maintenance/makechangelog.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 3 | # Website for this project at https://sdrausty.github.io/TermuxArch 4 | # See https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank You 5 | ############################################################################# 6 | cat CHANGE.log 7 | gsn.sh >> CHANGE.log 8 | cat CHANGE.log 9 | du -hs .git >> CHANGE.log 10 | du -hs >> CHANGE.log 11 | cat CHANGE.log 12 | -------------------------------------------------------------------------------- /maintenance/makedownload.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 3 | # Website for this project at https://sdrausty.github.io/TermuxArch 4 | # See https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank You 5 | # `makedownload.sh` should be run in `TermuxArch/scripts/files/working`. 6 | ############################################################################# 7 | 8 | cdir=${PWD##*/} 9 | #cdir=${pwd |sed 's!.*/!!'} 10 | date=`date +%Y%m%d` 11 | ntime=`date +%N` 12 | time=`date +%H:%M:%S` 13 | utime=`date +%s` 14 | ymnth=`date +%Y%m` 15 | msg="Running v0.9.2 rev$ntime from branch master hosted at https://sdrausty.github.io/TermuxArch" 16 | echo "printf \"$msg\"" 17 | ms=" printf \"$msg\"" 18 | 19 | sed -i "/Using/c\\$ms" setupTermuxArch.sh 20 | 21 | cp setupTermuxArch.sh ../../.. 22 | ls -al setupTermuxArch.sh 23 | pwd 24 | sha512sum *sh > termuxarchchecksum.sha512 25 | cd ../../.. 26 | pwd 27 | bsdtar -czv -f setupTermuxArch.tar.gz --strip-components 3 scripts/files/$cdir/* 28 | rm scripts/files/$cdir/termuxarchchecksum.sha512 29 | md5sum setupTermuxArch.tar.gz > setupTermuxArch.sha512 30 | pwd 31 | ls -al setupTermuxArch.sha512 32 | ls -al setupTermuxArch.sh 33 | ls -al setupTermuxArch.tar.gz 34 | 35 | -------------------------------------------------------------------------------- /maintenance/makegen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 3 | # Website for this project at https://sdrausty.github.io/TermuxArch 4 | # See https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank You 5 | ############################################################################# 6 | 7 | cdir=${PWD##*/} 8 | #cdir=${pwd |sed 's!.*/!!'} 9 | date=`date +%Y%m%d` 10 | time=`date +%H:%M:%S` 11 | utime=`date +%s` 12 | ntime=`date +%N` 13 | echo Running on $date branch master $ntime. 14 | 15 | printf "This script will generate a checksum and tar.gz files in \$PROJECT/gen.\n\n" 16 | if [ ! -d "../../../gen" ] ; then 17 | mkdir -p ../../../gen 18 | fi 19 | pwd 20 | ls -al se* 21 | printf "\n" 22 | msg="v0.9.2 id$ntime" 23 | echo "printf \"$msg\"" 24 | ms=" printf \"$msg\"" 25 | sed -i "/v0/c\\$ms" setupTermuxArch.sh 26 | cp setupTermuxArch.sh .. 27 | echo "$(date +%N)" 28 | sha512sum *sh > termuxarchchecksum.sha512 29 | cd .. 30 | bsdtar -czv -f setupTermuxArch.tar.gz --strip-components 1 $cdir/* 31 | pwd 32 | ls -al se* 33 | printf "Generated tar.gz file with internal md5 checksum.\n\n" 34 | rm $cdir/termuxarchchecksum.sha512 35 | md5sum setupTermuxArch.tar.gz > setupTermuxArch.sha512 36 | ls -al se* 37 | printf "Generated md5 checksum for tar.gz file.\n\n" 38 | mv se* ../../gen 39 | ls -al ../../gen 40 | printf "Deposited entire project in \$PROJECT/gen.\n\n" 41 | printf "$cdir\n\n" 42 | ls -al $cdir 43 | printf "\nGenerated checksums and tar.gz in \$PROJECT/gen.\n\n" 44 | -------------------------------------------------------------------------------- /maintenance/pullTermuxArchSubmodules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update repository and update submodules. 5 | ##################################################################### 6 | git pull 7 | git submodule update --init --recursive --remote 8 | -------------------------------------------------------------------------------- /maintenance/pullTermuxArchSubmodules2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/env sh 2 | # Copyright 2019-2020 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update repository and update submodules. 5 | ##################################################################### 6 | set -e 7 | git pull 8 | git submodule update --init 9 | git submodule update --init --recursive --remote 10 | # pullTermuxArchSubmodules.sh EOF 11 | -------------------------------------------------------------------------------- /maintenance/resetTermuxArch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017-2018 by SDRausty. All rights reserved. 3 | # Website for this project at https://sdrausty.github.io/TermuxArch 4 | # See https://sdrausty.github.io/TermuxArch/CONTRIBUTORS Thank You 5 | ############################################################################# 6 | mv .git/config ~/saved_git_config 7 | rm -rf .git 8 | git init 9 | git add . 10 | git commit -m "$($HOME/bin/sn.sh)" 11 | cp ~/saved_git_config .git/config 12 | printf "\n\n\`git push https://github.com/path/repository --force" 13 | # git push https://github.com/path/repository --force 14 | # git push master --force 15 | -------------------------------------------------------------------------------- /maintenance/sn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017-2018 (c) all rights reserved by 3 | # SDRausty https://sdrausty.github.io 4 | # Used for creating the commit message in conjunction with `resetTermuxArch.sh`. 5 | ##################################################################### 6 | date=`date +%Y%m%d` 7 | time=`date +%H:%M:%S` 8 | utime=`date +%s` 9 | ntime=`date +%N` 10 | echo Commit on $date branch master $ntime. 11 | -------------------------------------------------------------------------------- /maintenance/updateSubmodules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # Copyright 2017 (c) all rights reserved 3 | # by S D Rausty https://sdrausty.github.io 4 | # Update submodules to latest version. 5 | ##################################################################### 6 | git submodule update --init --recursive --remote 7 | -------------------------------------------------------------------------------- /maintenance/uprTermuxArch.bash: -------------------------------------------------------------------------------- 1 | # !/usr/bin/env bash 2 | # Copyright 2017-2020 (c) by TermuxArch, all rights reserved, see LICENSE 🌎 🌍 🌏 🌐 🗺 3 | # https://termuxarch.github.io/TermuxArch courtesy host https://pages.github.com 4 | # update git repository, then update modules 5 | ################################################################################ 6 | set -Eeuo pipefail 7 | 8 | _SGSATRPERROR_() { # run on script error signal 9 | local RV="$?" 10 | printf "\\n%s\\n" "$RV" 11 | printf "\\e[?25h\\n\\e[1;48;5;138mBuildAPKs %s ERROR: Generated script error %s near or at line number %s by \`%s\`!\\e[0m\\n" "updateTermuxArch.bash" "${3:-VALUE}" "${1:-LINENO}" "${2:-BASH_COMMAND}" 12 | exit 179 13 | } 14 | 15 | _SGSATRPEXIT_() { # run on exit signal 16 | printf "\\e[?25h\\e[0m" 17 | set +Eeuo pipefail 18 | exit 19 | } 20 | 21 | _SGSATRPSIGNAL_() { # run on signal 22 | local RV="$?" 23 | printf "\\e[?25h\\e[1;7;38;5;0mBuildAPKs %s WARNING: Signal %s received!\\e[0m\\n" "updateTermuxArch.bash" "$RV" 24 | exit 178 25 | } 26 | 27 | _SGSATRPQUIT_() { # run on quit signal 28 | local RV="$?" 29 | printf "\\e[?25h\\e[1;7;38;5;0mBuildAPKs %s WARNING: Quit signal %s received!\\e[0m\\n" "updateTermuxArch.bash" "$RV" 30 | exit 177 31 | } 32 | 33 | trap '_SGSATRPERROR_ $LINENO $BASH_COMMAND $?' ERR 34 | trap _SGSATRPEXIT_ EXIT 35 | trap _SGSATRPSIGNAL_ HUP INT TERM 36 | trap _SGSATRPQUIT_ QUIT 37 | 38 | _PESTRG_() { 39 | printf "\\n\\n%s\\n" "Cannot $2 module $1 : Continuing..." 40 | } 41 | 42 | _GSA_() { # git repository update modules 43 | (git submodule update $3 --depth 1 --init --recursive --remote "$1") || _PESTRG_ "$1" update # the command ` git submodule help ` and the book https://git-scm.com/book/en/v2/Git-Tools-Submodules have more information about git submodules 44 | sleep 0."$(shuf -i 24-72 -n 1)" # latency support 45 | } 46 | git pull || printf "\\n\\n%s\\n" "Cannot git pull : Continuing..." 47 | SIAD="$(grep url .git/config|cut -d"=" -f 2|head -n 1|cut -d"/" -f 2-3)" 48 | OUNA="/shlibs" 49 | _GSA_ "\.scripts/maintenance" maintenance "" || printf "\\n\\n%s\\n" "Cannot add or update module .scripts/maintenance : Continuing..." 50 | OUNA="/TermuxArch" 51 | _GSA_ docs docsTermuxArch "" || printf "\\n\\n%s\\n" "Cannot add or update module docs : Continuing..." 52 | _GSA_ gen genTermuxArch "" || printf "\\n\\n%s\\n" "Cannot add or update module gen : Continuing..." 53 | _GSA_ scripts "scripts.TermuxArch" "" || printf "\\n\\n%s\\n" "Cannot add or update module scripts : Continuing..." 54 | # uprTermuxArch.bash EOF 55 | --------------------------------------------------------------------------------