View Single Post
Posts: 6 | Thanked: 0 times | Joined on Apr 2010
#1538
Originally Posted by eitama View Post
"vi" - File editor that is apart of almost every linux distribution,
among those is the one on the n900.
vi uses some odd keyboard shortcuts to get around, the advantage is that when you get used to it, it's far superior than notepad.

You need to edit a file called pmconfig, which is located in side /etc
to do that, go tp applications on your phone : (make sure you have rootsh installed 1st)
1. Start X Terminal
2. Type : sudo gainroot
2.5. Backup your file, "cp /etc/pmconfig /etc/pmconfig.old"
2.8. To restore : "cp /etc/pmconfig.old /etc/pmconfig"
3. Type : vi /etc/pmconfig - you can now move around with the arrow keys, but you cannot edit the text yet.
4. Locate the cursor where you want to insert text, press "i".
5. You are now in edit mode, be careful in what you are doing - you can type in new letter, and delete with backspace and delete, write in what you need, press ESC.
6. You are not out of edit mode, make sure you did what you needed to do, to save and exit the file you press : ":wq" (with the ":") and ENTER.

It's not "code" just bash commands, like you had batch commands in DOS.
]

Thanks a lot. Finally getting somewhere. It's just the last bit where you save and exit. I must be doing it wrong but after pressing ESC where do I type the ":wq"? I typed it in and nothing happens...