/termux-setup

My personal setup for termux.

Primary LanguageShell

My personal setup for termux.

Note

This is an entirely personal setup I shared because I thought others might find it useful. There are no guarantees, no obligations from my part to provide any support, updates, features, fixes or even commit messages. This repo only has one branch. It may be updated anytime.

Includes

  1. termux-url-opener: Download videos in highest quality by sharing to termux.
  2. server: A home screen widget for an http server serving 'Internal Storage' at http://<device_ip>:8080/ or http://localhost:8080/.
  3. update-setup: Update changes from the repository and reinstalls this script.

How to Install

The following folders will be deleted when you run this script. If you already use them, edit the script accordingly.

  • "~/.shortcuts"
  • "~/bin"
  1. Install termux and termux-widget (only if you want the server feature) from github.
  2. Open termux and grant storage permissions with termux-setup-storage.
  3. Update all the inbuilt packages with yes | pkg up.
  4. Install the script with curl -L https://raw.githubusercontent.com/adithya-s-sekhar/termux-setup/main/termux-setup.sh | sh

Note: Depending on your Android skin you'd have to enable 'Display over other apps' permission for termux for the scripts to work.

How to use

Download by sharing to termux.

  1. Open any website or app with playing video in Chrome or any other app.
  2. Touch the share button and share to Termux.
  3. It will automatically download in the Highest possible quality and saves to your 'Download' folder.
  4. It will also save all successfully downloaded urls to a 'Downloaded.txt' file and failed urls to 'Failed.txt'. This can help with debugging.

There are plans to bring AYC to termux for more features and better quality selectors.

HTTP Server

  1. On your Android homescreen, Add a widget for termux actions and you'll see the 'server' script inside.
  2. Opening it will start termux in the background and your files will be accessible at http://<device_ip>:8080/ or http://localhost:8080/

Update script

  1. Enter update-setup and termux will download all changes from this repo and installs it.

Links

Termux

Termux:Widget

the-termux-project

Advanced Youtube Client - AYC