Active Topics

 


Reply
Thread Tools
dfinch's Avatar
Posts: 362 | Thanked: 82 times | Joined on Jan 2008
#21
Just to add some clarification. xTerm still appears to work as far as I have seen. Commands such as ls, cd etc work. Since I know I only have one path statement in .profile it does support the comment that .profile is ignored in xTerm (which I presume runs busybox).

BUT I do get an error when I start xTerm which comes from the path statement which suggests xTerm IS reading .profile!

I think, in any case, I do need to correct .profile and I do need to add my folder called Scripts to the path to enable me to run commands from the osso-statusbar.

The great post earlier in this thread explains how to create and add to .profile and I think this will be enough to get me back to where I was. I just need to know WHAT was in .profile before I overwrote it.

BTW, I am not using SSH. I was doing everything on the N810 in xTerm.
Also I don't appear to need to gain root to edit, create or (probably) delete .profile
mc sound helpful if it allows editing on the tablet. I presume I could find it in App Manager as well as pull it from the command line?

Thanks for all the input, I din't mean to start an argument!!!
__________________
N810, OS 2008 5.2008.43-7 (Diablo)
Nobody can accuse me of not contradicting the invalid arguments of the opposition!
Derek
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#22
The busybox shell uses the .profile if one exists, but it doesn't come with one. So to answer Derek, there's no original .profile we could post for you..

However, it's mostly used to add to the PATH. You have your scripts in $HOME/MyDocs/Scripts/, don't you? So you would maybe want something like

PATH=$PATH:/home/user/Mydocs/Scripts

For myself, I have manually installed some non-busybox versions of some commands in /usr/local/bin which I want to override the busybox ones (those in /usr/bin), so I put /usr/local/bin first in the path:
PATH=/usr/local/bin:$PATH

And I also like to see all directories and files, even those starting with a dot, when I use the 'ls' command. So I have:

alias ls='ls -AC'

(Note that in general environment variables must be 'exported', e.g.
VARIABLE="value"
export VARIABLE
but PATH is already exported so it's not needed.)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
dfinch's Avatar
Posts: 362 | Thanked: 82 times | Joined on Jan 2008
#23
Wow, you found me. I thought I had bothered you enough and came over here after a search on .profile.
I think it makes sense now. .profile did not exist but the line I put in when creating it was 'corrupted' with a 'not found' string. This is what yields the error message and why everything still works.

I just need to get the syntax right to point to Scripts.
I like your alias. Can this be inserted as written in .profile?

I'll return to the other thread if there are more GVM backup issues (not that you have to answer).
Thanks again!
__________________
N810, OS 2008 5.2008.43-7 (Diablo)
Nobody can accuse me of not contradicting the invalid arguments of the opposition!
Derek
 
rcull's Avatar
Posts: 299 | Thanked: 168 times | Joined on Jun 2006 @ Wales UK
#24
dfinch

just use rm .proffile
then re-enter the correct line.

rick
 

The Following User Says Thank You to rcull For This Useful Post:
Posts: 12 | Thanked: 1 time | Joined on Aug 2008
#25
 

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


 
Forum Jump


All times are GMT. The time now is 03:27.