maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   Ultimate linux CLI noob question: "How to create a plain text file within xterm?" (https://talk.maemo.org/showthread.php?t=19106)

dfinch 2008-09-11 01:18

Re: Ultimate linux CLI noob question: "How to create a plain text file within xterm?"
 
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!!!

TA-t3 2008-09-11 09:45

Re: Ultimate linux CLI noob question: "How to create a plain text file within xterm?"
 
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.)

dfinch 2008-09-11 21:35

Re: Ultimate linux CLI noob question: "How to create a plain text file within xterm?"
 
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!

rcull 2008-09-12 20:12

Re: Ultimate linux CLI noob question: "How to create a plain text file within xterm?"
 
dfinch

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

rick

Stokstaartje 2008-09-18 09:43

Re: Ultimate linux CLI noob question: "How to create a plain text file within xterm?"
 
Also have a look at the wiki:

http://www.internettablettalk.com/wi...le=Using_xterm


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

vBulletin® Version 3.8.8