Running youtube-dl on Android via Termux

By chimo on (updated on )

I recently got youtube-dl working on LineageOS nightly via Termux. Here are the steps I took:

  1. In Termux, install some of the tools we’ll need:
    packages install python wget vim
  2. Create a “bin” folder in the home directory: mkdir bin
  3. Add the directory to your path at login: vim .bashrc
    export PATH=$PATH:~/bin
  4. Exit and re-launch Termux to update your path: exit
  5. Download youtube-dl: wget https://yt-dl.org/downloads/latest/youtube-dl -O bin/youtube-dl
  6. Make it executable: chmod u+x bin/youtube-dl
  7. Change the interpreter path in the youtube-dl file: vim -b bin/youtube-dl
    #!/data/data/com.termux/files/usr/bin/env python
  8. Try it! youtube-dl [URL]

Recent articles from blogs I follow

I think fedizens should be able to disable replies to some or all of their posts

Every so often, there is a bit of a debate in the fediverse about whether a person should be able to make a post to which other users cannot reply. Yes, they should My view is simple: yes, they should. It is no different to running a website and not offering…

via Neil's blog December 7, 2024

Adding Encrypted Swap and a Userspace OOM-Killer

When setting up my Ideapad, I didn't configure swap because I wanted to avoid reducing the (already unknown) lifetime of it's eMMC storage. This, however, has proven to be a mistake - the Ideapad only has 4GB of RAM and I'm quite good at accid…

via www.bentasker.co.uk December 7, 2024

Advent of Code: Day 4

Link to Day #4 puzzle.

via not just serendipity December 6, 2024