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

The Scunthorpe Problem

I was talking with a friend recently about an email of theirs running afoul (🐔) of another aggressive filter system, because they dared to to talk with someone called Dickson. I know right, they’re the absolute worst. For those unfamiliar, this is the The…

via Rubenerd November 21, 2024

In which Neil is surprised by the lack of an HDMI cable

Some modern technology decisions baffle me. Today, I was sitting in a meeting room. In the room was my friend, with her laptop. Her laptop has an HDMI port. Also in the room was a screen, onto which my friend wished to display her laptop’s desktop. The screen …

via Neil's blog November 19, 2024

Helm: JSON schema generation

Helm charts support the inclusion of a values.schema.json file to validate values.yaml. Documentation: https://helm.sh/docs/topics/charts/#schema-files A JSON schema is akin to defining the structure of and type-annotating a JSON file. It helps to “shift lef…

via not just serendipity November 14, 2024