Notices


Reply
Thread Tools
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#81
Originally Posted by misty View Post
I am at the exact same point as Gohan. I am a total newbie with this so have no idea how to get round it but would love to watch iplayer.

I made sure there was nothing else open but still no joy.
Hi Misty. I've updated the first post with a link to the wiki page discussing enabling root on your device.

You may want to wait until some of the current issues have been smoothed out before following the instructions though, as a lot of people seem to having some trouble. Or if you have a brave and adventurous spirit try again after enabling rootsh and I'll try to help with any problems along the way!

Cheers,
Jan
 
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#82
Originally Posted by cardiff-blues View Post
Hi Jan

This is what I get...which I don't really understand as I flashed my device yesterday. I would have thought that it would have had a different timestamp?
I wouldn't worry about the timestamp. Try this next:

Code:
/opt/ruby/bin/iplayer-dl
This should directly execute the iplayer-dl script and spit out some usage instructions. Previously we were using links and aliases so hopefully this should help get to the bottom of things.

Cheers,
Jan
 

The Following User Says Thank You to Big Phat Jan For This Useful Post:
Digbum13's Avatar
Posts: 28 | Thanked: 22 times | Joined on Jan 2010 @ Sheffield
#83
Sorry to butt in.
When you arrive at this stage, press Y and then enter. It might have aborted after a timeout if you left it a while before responding.

The terminal is asking you to confirm that you want to download the extra components needed to make iplayer work. Looks to me like your almost there. Keep at it.
 
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:
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#85
To anyone having problems, I've corrected three potential sources of them in my first post. They are as follows:

1. You need to have rootsh installed or "sudo gainroot" won't work.

2. You need to be user when echoing the alias to your /home/user/.profile file, or root will own the file (which is bad!)

You can test this using:

Code:
ls -l /home/user/.profile
If you see "root" there at all then you need to change this to "user" with the following command.

Code:
sudo gainroot
chown user. /home/user/.profile
exit
3. The "code" tags on this forum seem to introduce line breaks depending on your screen resolution and size! I think that this is what has caused most of the problems (and this would explain why some people are having problems and others aren't).

The "echo ..." command needs to all be on one line. If this is not the case you need to edit the /home/user/.profile file and make sure it is. If this is the only alias you have, then the easiest way would be to delete the file and then redo the command making sure there are no line breaks, i.e.

Code:
rm /home/user/.profile
#below here should all be one line
echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"' >> /home/user/.profile
#above here should all be one line
It seems that pasting the echo command outside of the code tags would solve the new line problem, so here it is:

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

If you do have other aliases your best option would be to use a text editor to edit the file instead.

Cheers,
Jan

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

The Following User Says Thank You to Big Phat Jan For This Useful Post:
casper27's Avatar
Posts: 844 | Thanked: 521 times | Joined on Jan 2009 @ UK southampton
#86
Just a small word of warning if you are enabling Extras-dev repository to get rootsh or any other programme make sure you disable it afterwards before issuing
apt-get update
Saves a lot of heart ache.
 

The Following User Says Thank You to casper27 For This Useful Post:
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#87
Originally Posted by casper27 View Post
Just a small word of warning if you are enabling Extras-dev repository to get rootsh or any other programme make sure you disable it afterwards before issuing
apt-get update
Saves a lot of heart ache.
Hi Casper,

I'm pretty sure rootsh is in Extras, not Extras-devel. At least according to the wiki it is.

It's good advice to bear in mind for extras-devel anyway, though we don't want to spook people into disabling Extras by mistake!

Cheers,
Jan
 
Posts: 739 | Thanked: 220 times | Joined on Dec 2009 @ Surrey, UK
#88
Originally Posted by Big Phat Jan View Post
I wouldn't worry about the timestamp. Try this next:

Code:
/opt/ruby/bin/iplayer-dl
This should directly execute the iplayer-dl script and spit out some usage instructions. Previously we were using links and aliases so hopefully this should help get to the bottom of things.

Cheers,
Jan
Hi Jan
Thanks for all of your excellent help thus far. When I try that command it doesn't find iplayer-dl.
__________________
There is a way that seems right to a man, but in the end it leads to death. Proverbs 14:12
 
Posts: 739 | Thanked: 220 times | Joined on Dec 2009 @ Surrey, UK
#89
Guys....
I know you might be frustrated at not getting this to work but remember, people like Jan and Kaspernj are giving their precious time to help us out and very often are helping late at night. I had a reply from Jan last night that was about 1:00am ish in the morning so give these guys a break.

Unless otherwise specified the instructions and help that these guys give are are not 100% complete and error free as they are not paid support and are often responding to our questions amidst doing their own work.

Give them a break they are doing a great job and I for one value their assistance.
__________________
There is a way that seems right to a man, but in the end it leads to death. Proverbs 14:12
 

The Following 3 Users Say Thank You to cardiff-blues For This Useful Post:
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#90
Originally Posted by cardiff-blues View Post
Hi Jan
Thanks for all of your excellent help thus far. When I try that command it doesn't find iplayer-dl.
Thanks c-b. Can you post the exact error message?

Cheers,
Jan
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:21.