Active Topics

 


Reply
Thread Tools
mthmob's Avatar
Posts: 378 | Thanked: 206 times | Joined on Dec 2009 @ Denmark
#1
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?
 
Posts: 111 | Thanked: 31 times | Joined on May 2007
#2
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's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#3
Originally Posted by pamadio View Post
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 -.-
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg

Last edited by SubCore; 2009-12-23 at 11:48.
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#4
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
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#5
Originally Posted by mthmob View Post
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's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#6
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
 
Posts: 113 | Thanked: 30 times | Joined on Oct 2009
#7
Originally Posted by blubbi View Post
For the beginning you might consider "nano" as editor.
+1

Nano is far more user friendly than vi.
 
Posts: 3,664 | Thanked: 1,530 times | Joined on Sep 2009 @ Hamilton, New Zealand
#8
Originally Posted by 406NotAcceptable View Post
+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's Avatar
Posts: 378 | Thanked: 206 times | Joined on Dec 2009 @ Denmark
#9
thx for all the replies the links you guys posted, looks like just what i need to move forward.
 
ArnimS's Avatar
Posts: 1,107 | Thanked: 720 times | Joined on Mar 2007 @ Germany
#10
Originally Posted by mthmob View Post
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:26.