How to install youtube-dl on a chromebook

  • Install Termux
  • Enable storage access termux-setup-storage
  • Install Python
    • pkg install python
  • (optional upgrade pip)
    • pip --install upgrade pip
  • Install youtube-dl
    • pip --install youtube-dl ffmpeg
  • Navigate to your downloads directory
    • cd storage/downloads
  • Download your youtube video (Make sure you are in downloads directory so you can write the file!)
    • youtube-dl https://youtu.be/kJQP7kiw5Fk
    • You can paste with ctrl+alt+v into termux
    • You can pass the command –restrict-filenames to have clean file names without spaces for example: youtube-dl --restrict-filenames https://youtu.be/kJQP7kiw5Fk
  • Upgrade everything after it has been a while or when you encounter problems
    • pip install --upgrade pip youtube-dl ffmpeg

Apps and settings I install on a new Ubuntu WSL Install [Updated January 2018]

Much cleaner than my old script! See instructions below.

The Simple One Liner

cd ~/ && wget https://gist.githubusercontent.com/wormeyman/3be8fa7243ca9afa73cb/raw/a74e65625119fadb4b8bff6cede0c0b40a57c2bb/setupWormeymanEnviro.sh && chmod +x ./setupWormeymanEnviro.sh && ./setupWormeymanEnviro.sh

The Full Process:

  1. Click View Raw
  2. cd ~/
  3. wget the raw file url
    1. https://gist.githubusercontent.com/wormeyman/3be8fa7243ca9afa73cb/raw/a74e65625119fadb4b8bff6cede0c0b40a57c2bb/setupWormeymanEnviro.sh
  4. chmod +x setupWormeymanEnviro.sh
  5. ./setupWormeymanEnviro.sh
  6. Unlikely but:
    1. If you receive an error you may have to enable the universe repository.
      1. First, open software center.
      2. Click on 'edit
      3. Then 'software sources'
      4. Check the box that says, "Community-maintained free and open-source software (universe)."
      5. If it asks you to reload you can say yes if you want but you will just reload again with the script so i usually just say close.

Override WebPagetest.org dns settings

Super useful for testing a non-live site to see if the new server or settings is fast enough.

Source: https://www.webpagetest.org/forums/showthread.php?tid=14066&pid=27237#pid27237

Script:

setDns	mytestedhost.com	123.234.123.234
navigate	mytestedhost.com

Notes:

  • Use Tab stops not spaces
    • I copied the above code into VSCODE and changed it to tab stops to get it to work.
  • Paste into https://www.webpagetest.org/#script