View Single Post
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#84
Originally Posted by gohan2091 View Post
I didn't mean to hurt your feelings and please forgive my bluntness but we aren't all technically minded as you and those instructions cause problems because they are incomplete. Please can you help me and others out? A bunch of us are having the same problem, not just me. I am not calling you rubbish or your knowledge but you got to admit, those instructions really cause a headache and don't allow me to download iplayer videos in their current state.

When I enter the first 4 commands, I get this:

Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # apt-get update
Hit http://repository.maemo.org fremantle Release.gpg
Ign http://repository.maemo.org fremantle/free Translation-en_GB
Ign http://repository.maemo.org fremantle/non-free Translation-en_GB
Ign http://repository.maemo.org fremantle/tools Release.gpg
Ign http://repository.maemo.org fremantle/tools/free Translation-en_GB
Ign http://repository.maemo.org fremantle/tools/non-free Translation-en_GB
Ign http://maemorepo.kaspernj.org fremantle Release.gpg
Ign http://maemorepo.kaspernj.org fremantle/main Translation-en_GB
Hit http://repository.maemo.org fremantle Release
Ign http://repository.maemo.org fremantle/tools Release
Ign http://maemorepo.kaspernj.org fremantle Release                           
Ign http://repository.maemo.org fremantle/tools/free Packages/DiffIndex       
Ign http://repository.maemo.org fremantle/tools/non-free Packages/DiffIndex
Ign http://maemorepo.kaspernj.org fremantle/main Packages/DiffIndex
Ign http://repository.maemo.org fremantle/free Packages/DiffIndex
Ign http://repository.maemo.org fremantle/non-free Packages/DiffIndex
Hit http://repository.maemo.org fremantle/tools/free Packages
Hit http://repository.maemo.org fremantle/tools/non-free Packages
Hit http://maemorepo.kaspernj.org fremantle/main Packages
Hit http://repository.maemo.org fremantle/free Packages
Hit http://repository.maemo.org fremantle/non-free Packages
Hit https://downloads.maemo.nokia.com ./ Release.gpg
Ign https://downloads.maemo.nokia.com ./ Translation-en_GB
Hit https://downloads.maemo.nokia.com ./ Release.gpg
Ign https://downloads.maemo.nokia.com ./ Translation-en_GB
Hit https://downloads.maemo.nokia.com ./ Release.gpg
Ign https://downloads.maemo.nokia.com ./ Translation-en_GB
Hit https://downloads.maemo.nokia.com ./ Release
Hit https://downloads.maemo.nokia.com ./ Release
Hit https://downloads.maemo.nokia.com ./ Release
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Hit https://downloads.maemo.nokia.com ./ Packages
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Hit https://downloads.maemo.nokia.com ./ Packages
Hit https://downloads.maemo.nokia.com ./ Packages
Reading package lists... Done
/home/user # apt-get install iplayer-dl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ruby
The following NEW packages will be installed:
  iplayer-dl ruby
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 3725kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Your instructions don't even tell us whether to press Y for yes, N for no. I tried typing y and it just said abort. I also tried closing the terminal, relaunching it and typer iplayer URL but it says not found.
There's a difference between blunt and rude. Why would anyone even try to help you if this is what they can expect? If I were a professional tutor that you were paying to teach you "Linux for beginners" I could almost understand your response.

I will try to help you, but you're going to have to also help yourself. So, instruction 1:

Don't do anything you don't understand. If it's not clear what you're doing, either do a google search if you're impatient, or ask and wait until someone has time to answer.

In my first post I mistakenly assumed that everyone would follow this rule. My apologies again. My only defence is that my line of work is not teaching people the fundamentals of linux. I've edited now so hopefully it won't happen to anyone else.

As digbum says, you're nearly there. Type "Y" at that prompt and it should install iplayer-dl. As part of the installation, a link to the iplayer-dl executable is made in the /usr/bin/ directory.

This is a special directory, in that any executable inside it can be run from the command line from any location by typing its name. Therefore after this step you should be able to run iplayer-dl from the command line by simply typing:

Code:
iplayer-dl
If you do this it should spit out some usage instructions. Some people seem to be having problems at this stage, so if you also do, be patient while we try and work out the problem. It's difficult when things work perfectly well on your own device to troubleshoot a problem on other people's!

By default, if you type
Code:
iplayer-dl URL
On the command line it will download the show to your current location. Your N900's storage is split into a few pieces called partitions. It's not a good idea to fill any of these up! When you start a terminal, your starting location is in the "application storage" part, which is 2GB. Therefore if you open a terminal and just type iplayer-dl URL, it will put the show into your application storage and it will quickly fill up.

You can solve this by either navigating to the place you wish to store the file before running iplayer-dl (which would be a pain), or by use the optional "-d" flag. i.e. if you type:

Code:
iplayer-dl -d /home/user/MyDocs/.videos URL
it will save the video to /home/user/MyDocs/.videos, which is the best place for it. It would be a pain to type this out every time, so instead you can create an alias. In order to do this you need to put the following line into your /home/user/.profile file:

Code:
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
Since many people struggle with using terminal based text editors, an easy way of doing this is with the command I supplied earlier.

If you type:

Code:
echo 'Big Phat Jan is great'
on the command line all it will do is print "Big Phat Jan is great" on your screen. That is what the echo command does. If you add on a special redirection symbol, ">>" that means that the results of the command will instead be appended to the end a file that you specify after the symbol. So typing:

Code:
echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"' >> /home/user/.profile
Is just the same as using a text editor to add the alias command to the file /home/user/.profile , but (I thought) a bit easier. This file is only read every time you start up a new terminal, hence the need to close and reopen the terminal before the new "iplayer" command will work. Alternatively, you could force your current terminal to read the file by typing:

Code:
source /home/user/.profile
Unfortunately it looks like you have done the echo command while still root (could be a problem with the instructions - I'll check after finishing this post), which means that "user" doesn't have the right to edit the file any more. This is bad! You can change the ownership using the following commands:

Code:
sudo gainroot
chown user. /home/user/.profile
exit
Whenever you've finished doing a command to be done as root you should type "exit" to return you to a normal non-root shell.

OK, that done, you can check the contents of this file using the "cat" command. All this command does is print the contents of a file. So typing:

Code:
cat /home/user/.profile
Should print the contents to your screen. If you see the iplayer alias all is well. It's unclear from your message whether the alias has somehow split itself over two lines. If so, you will need to remove it and put it in again on one line. As you don't have any other aliases set up, the easiest way would be to do:

rm /home/user/.profile
echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"' >> /home/user/.profile

Making sure that the echo command is all on one line.

When you've done all of this, "iplayer URL" should work. Let me know if you have difficulting understanding or executing any of these commands.

Cheers,
Jan

Last edited by Big Phat Jan; 2010-01-23 at 15:15.
 

The Following User Says Thank You to Big Phat Jan For This Useful Post: