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
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
.
pkg install python poppler ghostscript
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
You need to get youtube-dl
and ytdl
working
pip3 install --upgrade youtube-dl
pip3 install --upgrade mps-youtube
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.
run termux-setup-storage
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
Note: If asked to enter a filename by hand, don't forget to add the .pdf
extension. The script will not work without it.