Notices


Reply
Thread Tools
Posts: 739 | Thanked: 220 times | Joined on Dec 2009 @ Surrey, UK
#91
hi jan

when i try to install it tells me it's already there...

/home/user # apt-get install iplayer-dl
Reading package lists... Done
Building dependency tree
Reading state information... Done
iplayer-dl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/home/user #

then when i try
/home/user # /opt/ruby/bin/iplayer-dl
/bin/sh: /opt/ruby/bin/iplayer-dl: not found
/home/user #

i get a not found
__________________
There is a way that seems right to a man, but in the end it leads to death. Proverbs 14:12
 
Posts: 271 | Thanked: 20 times | Joined on Apr 2009 @ United Kingdom
#92
Thanks Jan for your informative post. When I run the echo, I am running it as a user, not as root because it says:

Code:
-rw-r--r--    1 user     users         112 Jan 23 16:37 /home/user/.profile
When I run: ~ $ cat /home/user/.profile, I get this:

Code:
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
When I run:

Code:
rm /home/user/.profile
echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"'
and then run cat /home/user/.profile, I get this...

Code:
cat: can't open '/home/user/.profile': No such file or directory
I know your post was trying to help but I think I am more confused now than ever. Is it possible to erase everything I've done and start over?

Your newly edited instructions are still unclear to newbies e.g
To make life easier you can also type this command (as user!):
You didn't mention on first page how to run as user. I think I will sit back and be patient.

Last edited by gohan2091; 2010-01-23 at 17:21.
 
casper27's Avatar
Posts: 844 | Thanked: 521 times | Joined on Jan 2009 @ UK southampton
#93
@Gohan
As user

Code:
vi /home/user/.profile
Then when it opens copy this into it

Code:
trap exit SIGHUP SIGINT SIGTERM
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
Ensure that they are on different lines.
Then press

Code:
Esc Esc
:wq
Enter
Then try

Code:
cat /home/user/.profile
The Esc key is to be pressed twice it is on the screen at the bottom.When you press it twice you will notice the curser goes to the bottom left of the screen. Hope this helps.
 
Posts: 247 | Thanked: 91 times | Joined on Jan 2008 @ London/M4 Corridor
#94
Originally Posted by gohan2091 View Post
When I run the echo, I am running it as a user, not as root because it says:

Code:
-rw-r--r--    1 user     users         112 Jan 23 16:37 /home/user/.profile
.
Gohan, this isn't responding with who you are running as -- it's listing the permissions on the file.

To find out what user the computer thinks you are operating as, use the command "id".

To make it more obvious as you're learning, here is a small exercise:
  1. Start a new xterminal window from the one you have running by selecting "New" from its menus at the top of the screen
  2. in that new window type "id" and hit return
  3. Do #1 again
  4. In this new xterm, type "sudo gainroot" followed by "id". The results should be different
  5. Use the task switching of maemo to switch between these windows. Note that the you're now effectively logged in as multiple users.
  6. Now that you've seen this, exit all xterms by typing "exit", and start again. Having multiple xterms logged in as different users can be handy, but when you're getting started it's just too confusing on a small screen device like the N900.
  7. Start up the xterm again, fight the iplayer battle some more.

When you've won on the iplayer front, you'll also have won on the "learning the command line" front. :-)
 

The Following User Says Thank You to Alan_Peery For This Useful Post:
Posts: 271 | Thanked: 20 times | Joined on Apr 2009 @ United Kingdom
#95
Originally Posted by casper27 View Post
@Gohan
As user

Code:
vi /home/user/.profile
Then when it opens copy this into it

Code:
trap exit SIGHUP SIGINT SIGTERM
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
Ensure that they are on different lines.
Then press

Code:
Esc Esc
:wq
Enter
Then try

Code:
cat /home/user/.profile
The Esc key is to be pressed twice it is on the screen at the bottom.When you press it twice you will notice the curser goes to the bottom left of the screen. Hope this helps.
What do you mean as user? I don't no if I am user or not now as cat /home/user/.profile no longer works. I did what you said, but I am so confused with all these commands. when what opens? is a new app suppose to pop up? There are only a few commands on the first page but I have over 10 written down... so confusing. Pressing esc esc doesn't bring the cursor down to the bottom left, cursor still remains at the top for me... I just want to start over. I am very stressed out lol
 
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#96
Originally Posted by cardiff-blues View Post
hi jan

when i try to install it tells me it's already there...

/home/user # apt-get install iplayer-dl
Reading package lists... Done
Building dependency tree
Reading state information... Done
iplayer-dl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/home/user #

then when i try
/home/user # /opt/ruby/bin/iplayer-dl
/bin/sh: /opt/ruby/bin/iplayer-dl: not found
/home/user #

i get a not found
Hi c-b,

First, make sure that you're not suffering from any of the potential problems i mention a few posts up.

Then try this:

Code:
sudo gainroot
apt-get remove iplayer-dl
apt-get install iplayer-dl
exit
iplayer-dl
And post the results here.

Cheers,
Jan
 
Posts: 739 | Thanked: 220 times | Joined on Dec 2009 @ Surrey, UK
#97
hi jan
I get this when uninstalling

Removing iplayer-dl ...
dpkg - warning: while removing iplayer-dl, directory `/opt/ruby/lib/ruby/site_ruby/1.8' not empty so not removed.
dpkg - warning: while removing iplayer-dl, directory `/opt/ruby/lib/ruby/site_ruby' not empty so not removed.
dpkg - warning: while removing iplayer-dl, directory `/opt/ruby/lib/ruby' not empty so not removed.
dpkg - warning: while removing iplayer-dl, directory `/opt/ruby/lib' not empty so not removed.
dpkg - warning: while removing iplayer-dl, directory `/opt/ruby' not empty so not removed.
/home/user #
__________________
There is a way that seems right to a man, but in the end it leads to death. Proverbs 14:12
 
Posts: 271 | Thanked: 20 times | Joined on Apr 2009 @ United Kingdom
#98
Originally Posted by Alan_Peery View Post
Gohan, this isn't responding with who you are running as -- it's listing the permissions on the file.

To find out what user the computer thinks you are operating as, use the command "id".

To make it more obvious as you're learning, here is a small exercise:
  1. Start a new xterminal window from the one you have running by selecting "New" from its menus at the top of the screen
  2. in that new window type "id" and hit return
  3. Do #1 again
  4. In this new xterm, type "sudo gainroot" followed by "id". The results should be different
  5. Use the task switching of maemo to switch between these windows. Note that the you're now effectively logged in as multiple users.
  6. Now that you've seen this, exit all xterms by typing "exit", and start again. Having multiple xterms logged in as different users can be handy, but when you're getting started it's just too confusing on a small screen device like the N900.
  7. Start up the xterm again, fight the iplayer battle some more.

When you've won on the iplayer front, you'll also have won on the "learning the command line" front. :-)
Typing ID shows uid=29999(user) gid=29999(users) which is meaningless to me. I am frustrated because there are just a few steps at the start of this thread, then a few more steps added after and now I have a dozen of things to run and I am so confused. I just want to start fresh and follow basic instructions in bullet point or list form, not going back and forth over pages of this thread, very hard work, especially on an n900 (my main PC is down)

If I have to wait for clear instructions, I will, that's no problem.

Last edited by gohan2091; 2010-01-23 at 17:55.
 
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#99
Originally Posted by gohan2091 View Post
Thanks Jan for your informative post. When I run the echo, I am running it as a user, not as root because it says:

Code:
-rw-r--r--    1 user     users         112 Jan 23 16:37 /home/user/.profile
When I run: ~ $ cat /home/user/.profile, I get this:

Code:
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
This is all perfect!

When I run:

Code:
rm /home/user/.profile
echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"'
and then run cat /home/user/.profile, I get this...

Code:
cat: can't open '/home/user/.profile': No such file or directory
This all expected behavour. You removed the file with "rm". Your second command just echoed the alias to the screen, you need the extra ">> /home/user/.profile" to actually create the file.

I know your post was trying to help but I think I am more confused now than ever. Is it possible to erase everything I've done and start over?

Your newly edited instructions are still unclear to newbies e.g

You didn't mention on first page how to run as user. I think I will sit back and be patient.
You are always user until you run "sudo gainroot". Then you're root until you type "exit" or close the terminal. As a quick reminder, if the end of the prompt is a $, you're user. If it's a # you're root.

There's only so much detail on linux fundamentals that every how-to can contain without becoming excessively long. However, there's nothing you need to undo. You're basically finished. Redo the echo command (including the ">>" bit), start a new terminal and give "iplayer URL" a try.

Cheers,
Jan

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

The Following 2 Users Say Thank You to Big Phat Jan For This Useful Post:
casper27's Avatar
Posts: 844 | Thanked: 521 times | Joined on Jan 2009 @ UK southampton
#100
You may want to have a look at these guides. A lot of it is usefull for getting around in the terminal.
Tuxfiles
 

The Following User Says Thank You to casper27 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:35.