8

I have a Debian server which is a "shared server" so I don't have root access but I want to install youtube-dl on it. Is it possible to install it some other way? Like it only accessing current directory or other limitations?

4

You can install youtube-dl through linuxbrew

Install linuxbrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
PATH="$HOME/.linuxbrew/bin:$PATH" 

Add the line export PATH="$HOME/.linuxbrew/bin:$PATH" to your ~/.bashrc:

echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bashrc

Install youtube-dl:

brew install youtube-dl
youtube-dl -U
  • 1
    Thanks! Your method works but I'm still curious to know why enabling Chmod 777 on my directory didn't work. – idn Jan 6 '17 at 22:55
2

Just interpolate from the documentation.

With curl:

mkdir ~/bin
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o ~/bin/youtube-dl
chmod 0750 ~/bin/youtube-dl

Or with wget:

mkdir ~/bin
wget https://yt-dl.org/downloads/latest/youtube-dl -O ~/bin/youtube-dl
chmod 0750 ~/bin/youtube-dl

Note its requirements.

It requires the Python interpreter (2.6, 2.7, or 3.2+).

If this a work server, know in advance whether you are permitted to install and stream.

  • I went to my temp directory and made a directory there for youtube-dl but when I run the curl or wget command, it says "/yt: Read-only file system" – idn Jan 6 '17 at 20:25
  • I've installed WordPress on it, doesn't that mean I have write permission? Also that mount | grep home returned nothing. – idn Jan 6 '17 at 20:42
1
wget https://yt-dl.org/downloads/latest/youtube-dl -O /download/path/
chmod u+rx /download/path/youtube-dl

Make sure you have access to the /download/path/

  • Change path you want, for path you have execute and write permissions on! – djsmiley2k Jan 6 '17 at 20:16
  • I went to my temp directory and made a directory there for youtube-dl but when I run the curl or wget command, it says "/yt: Read-only file system" – idn Jan 6 '17 at 20:25
  • Is it /yt: Read-only.. or /tmp/yt: Read-only... and can you post the output of mount | grep rw – franklinsijo Jan 6 '17 at 20:31
  • it's /yt: Read-only.. and that mount command returned nothing. Please note that I've installed WordPress on this box. – idn Jan 6 '17 at 20:43
  • It is sudo mount | grep rw.Do you have any directory to which you have write access to? Any /home directory. – franklinsijo Jan 6 '17 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.