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?
3 Answers
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
-
1Thanks! Your method works but I'm still curious to know why enabling Chmod 777 on my directory didn't work.– idnJan 6, 2017 at 22:55
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"– idnJan 6, 2017 at 20:25
-
I've installed WordPress on it, doesn't that mean I have write permission? Also that mount | grep home returned nothing.– idnJan 6, 2017 at 20:42
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! Jan 6, 2017 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"– idnJan 6, 2017 at 20:25
-
Is it
/yt: Read-only..
or/tmp/yt: Read-only...
and can you post the output ofmount | grep rw
Jan 6, 2017 at 20:31 -
it's /yt: Read-only.. and that mount command returned nothing. Please note that I've installed WordPress on this box.– idnJan 6, 2017 at 20:43
-
It is
sudo mount | grep rw
.Do you have any directory to which you have write access to? Any/home
directory. Jan 6, 2017 at 20:45