Skip to content

PDF handling tools and other tools to be used with Termux

License

Notifications You must be signed in to change notification settings

elpraga/Termux-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Termux-tools

PDF handling tools and other tools to be used with Termux

Those simple scripts allow you to 2-up PDF files from any app on your device and download video or audio from YouTube

Install

Big thanks to @tomty89 for letting me know how to compile psutils in termux.

Note: Psutils can be now installed easily by typing apt install psutils.

Installing necessary packages to handle PDF files

pkg install python poppler ghostscript

To compile psutils

pkg install clang make perl

$ tar -xf /sdcard/Download/psutils.tar.gz                                          
$ cd psutils/
$ mkdir -p $PREFIX/local/share/man                                                 
$ make PERL=$PREFIX/bin/perl BINDIR=$PREFIX/local/bin INCLUDEDIR=$PREFIX/local/include MANDIR=$PREFIX/local/share/man/man1 -f Makefile.unix install

To use the script with YouTube

You need to get youtube-dl and ytdl working

pip3 install --upgrade youtube-dl 
pip3 install --upgrade mps-youtube 
To use the clipboard directly from within Termux

It is used to copy a markdown-formatted link including the name of the video into clipboard automatically.

Install the Termux:API Android app and run pkg install termux-api in Termux to install the clipboard tools.

Configure Termux's access to storage

run termux-setup-storage

Copy the files

Save termux-url-opener and termux-file-editor to ~/bin and run chmod u+x ~/bin/termux-*.
Run echo "export PATH=$PATH:/data/data/com.termux/files/usr/local/bin" >> ~/.bashrc

Usage

Note: If asked to enter a filename by hand, don't forget to add the .pdf extension. The script will not work without it.

About

PDF handling tools and other tools to be used with Termux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages