maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   x terminal help (https://talk.maemo.org/showthread.php?t=38160)

mthmob 2009-12-23 10:11

x terminal help
 
I've had my n900 for almost a month now, and i'm at that point where i'm trying to become a more advanced user of maemo. And learning linux is hard when your used to dos/windows.

I have read some unix command line guides.. but i'm currently stuck. i'm trying to edit a file through the terminal, in usr/bin/

Any one who can point me in the right direction with this?

pamadio 2009-12-23 10:18

Re: x terminal help
 
Hi there !

You probably do not want to want to edit any file located in /usr/bin/* as those are binary file.

Now, the first thing you need to learn is how to use a text editor (vi comes by default)

http://www.unix-manuals.com/tutorial...i-in-10-1.html

Then read a bit about bash (even if the default shell is not bash, you still need to understand things such as environment, paths and so on).

A good thing is to pay with the shell on a virtual machine so you do not take the risk of bricking your device trying to edit important file as root :-)

SubCore 2009-12-23 10:25

Re: x terminal help
 
Quote:

Originally Posted by pamadio (Post 438826)
You probably do not want to want to edit any file located in /usr/bin/* as those are binary file.

not all of them, there are a few (shell) scripts as well.

i'd suggest a vi tutorial to get the OP started, it's the default cmdline editor on many platforms, but it can be a bit confusing for beginners.

edit:
wow, i must've been somewhere else when i posted that... didn't even realize that i posted the same link as pamadio -.-

blubbi 2009-12-23 10:32

Re: x terminal help
 
You might consider reading my post here:
http://talk.maemo.org/showthread.php?t=37768

It probably will save you a lot of frustration.

Cheers
Bjoern

maxximuscool 2009-12-23 10:43

Re: x terminal help
 
Quote:

Originally Posted by mthmob (Post 438818)
I've had my n900 for almost a month now, and i'm at that point where i'm trying to become a more advanced user of maemo. And learning linux is hard when your used to dos/windows.

I have read some unix command line guides.. but i'm currently stuck. i'm trying to edit a file through the terminal, in usr/bin/

Any one who can point me in the right direction with this?

"cd .." back one step
cd /usr/bin + Enter to go into bin folder.

Once you're in /usr/bin
/usr/bin $ ls "display all contents just like DIR in windows CMD"

find the file name you want to edit, then type
/usr/bin $ vi filename.xx

oh you can do it by:
$ vi /usr/bin/filename.xx

blubbi 2009-12-23 10:48

Re: x terminal help
 
For the beginning you might consider "nano" as editor.

It is in the Fremantle-Tools repository.

Anyway, you should get some Linux distribution on your Desktop to play around and get comfortable with Linux and CLI.

Kind regards
Bjoern

406NotAcceptable 2009-12-23 10:53

Re: x terminal help
 
Quote:

Originally Posted by blubbi (Post 438852)
For the beginning you might consider "nano" as editor.

+1

Nano is far more user friendly than vi.

maxximuscool 2009-12-23 10:57

Re: x terminal help
 
Quote:

Originally Posted by 406NotAcceptable (Post 438856)
+1

Nano is far more user friendly than vi.

+1 as well. I'm also a beginner on maemo lol. But linux is easy to learn though. I used other linux before so I'm getting along very well.

nano is very similar to gedit.

mthmob 2009-12-23 11:43

Re: x terminal help
 
thx for all the replies :) the links you guys posted, looks like just what i need to move forward.

ArnimS 2009-12-23 19:11

Re: x terminal help - Learning Linux w/o Trashing N900
 
Quote:

Originally Posted by mthmob (Post 438903)
thx for all the replies :) the links you guys posted, looks like just what i need to move forward.

You might consider downloading a linux livecd to muck-about with and learn the basics. It won't trash your computer, and you can install to a partition when you want to start changing things.

This one is excellent for that purpose - as it is pure debian
http://sidux.com/

If you want a walker, try ubuntu


All times are GMT. The time now is 17:50.

vBulletin® Version 3.8.8