![]() |
2010-01-23
, 17:03
|
Posts: 271 |
Thanked: 20 times |
Joined on Apr 2009
@ United Kingdom
|
#92
|
-rw-r--r-- 1 user users 112 Jan 23 16:37 /home/user/.profile
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"
rm /home/user/.profile echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"'
cat: can't open '/home/user/.profile': No such file or directory
To make life easier you can also type this command (as user!):
![]() |
2010-01-23
, 17:18
|
|
Posts: 844 |
Thanked: 521 times |
Joined on Jan 2009
@ UK southampton
|
#93
|
vi /home/user/.profile
trap exit SIGHUP SIGINT SIGTERM alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
Esc Esc :wq Enter
cat /home/user/.profile
![]() |
2010-01-23
, 17:35
|
Posts: 247 |
Thanked: 91 times |
Joined on Jan 2008
@ London/M4 Corridor
|
#94
|
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
The Following User Says Thank You to Alan_Peery For This Useful Post: | ||
![]() |
2010-01-23
, 17:43
|
Posts: 271 |
Thanked: 20 times |
Joined on Apr 2009
@ United Kingdom
|
#95
|
@Gohan
As user
Then when it opens copy this into itCode:vi /home/user/.profile
Ensure that they are on different lines.Code:trap exit SIGHUP SIGINT SIGTERM alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"
Then press
Then tryCode:Esc Esc :wq Enter
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.Code:cat /home/user/.profile
![]() |
2010-01-23
, 17:47
|
Posts: 134 |
Thanked: 91 times |
Joined on Nov 2009
@ Imperial College London
|
#96
|
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
sudo gainroot apt-get remove iplayer-dl apt-get install iplayer-dl exit iplayer-dl
![]() |
2010-01-23
, 17:51
|
Posts: 739 |
Thanked: 220 times |
Joined on Dec 2009
@ Surrey, UK
|
#97
|
![]() |
2010-01-23
, 17:52
|
Posts: 271 |
Thanked: 20 times |
Joined on Apr 2009
@ United Kingdom
|
#98
|
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:
- Start a new xterminal window from the one you have running by selecting "New" from its menus at the top of the screen
- in that new window type "id" and hit return
- Do #1 again
- In this new xterm, type "sudo gainroot" followed by "id". The results should be different
- Use the task switching of maemo to switch between these windows. Note that the you're now effectively logged in as multiple users.
- 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.
- 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. :-)
![]() |
2010-01-23
, 18:00
|
Posts: 134 |
Thanked: 91 times |
Joined on Nov 2009
@ Imperial College London
|
#99
|
Thanks Jan for your informative post. When I run the echo, I am running it as a user, not as root because it says:
When I run: ~ $ cat /home/user/.profile, I get this:Code:-rw-r--r-- 1 user users 112 Jan 23 16:37 /home/user/.profile
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:
and then run cat /home/user/.profile, I get this...Code:rm /home/user/.profile echo 'alias iplayer="iplayer-dl -d /home/user/MyDocs/.videos"'
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
You didn't mention on first page how to run as user. I think I will sit back and be patient.
The Following 2 Users Say Thank You to Big Phat Jan For This Useful Post: | ||
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