Replace "vi" with Fullscreen Text Editor "joe" or "nano"

From WebOS Internals

Jump to: navigation, search

If you find "vi" to be frustrating to use, there are solutions for you.

Contents

Prerequisites:

1) A rooted Pre

2) Installed backdoor with sudo

3) Dropbear/OpenSSH installed

4) Connect & Log Into the Pre


Once that is complete, you may now install a new Fullscreen Text Editor.

Method 1: Install "joe"

Make sure ipkg-opt is up to date

user@castle:~$ sudo ipkg-opt update

Install Joe from ipkg-opt

user@castle:~$ sudo ipkg-opt install joe

Verify /opt/bin is in your path

user@castle:~$ echo $PATH

# If /opt/bin is listed in the path, then you have correctly fulfilled prerequisite #2.
# $PATH should look like: /usr/local/bin:/usr/bin:/bin:/opt/bin

//If /opt/bin is not in your path, complete prerequisite #2 and echo $PATH again.//

Command line syntax is pretty easy

//To edit a specific file://

joe /path/to/existingfile.ext

//To create a new file://

joe /path/to/newfile.ext

//To create a new file but you don't know what to call it yet://

joe

Inside Joe

Using the same key sequence strategy from above:

Ctrl+K, H Opens/Closes the Help Menu Ctrl+K, X Exit and Save the file Ctrl+C Abort edit, don't save

Everything else you could need is on the Help Menu.

Method 2: Install "nano"

Make sure ipkg-opt is up to date

user@castle:~$ sudo ipkg-opt update

Install nano from ipkg-opt

user@castle:~$ sudo ipkg-opt install nano

Verify /opt/bin is in your path

user@castle:~$ echo $PATH

# If /opt/bin is listed in the path, then you have correctly fulfilled prerequisite #2.
# $PATH should look like: /usr/local/bin:/usr/bin:/bin:/opt/bin

//If /opt/bin is not in your path, complete prerequisite #2 and echo $PATH again.//

Command line syntax is pretty easy

//To edit a specific file://

nano /path/to/existingfile.ext

//To create a new file://

nano /path/to/newfile.ext

//To create a new file but you don't know what to call it yet://

nano

Inside nano

Ctrl+G Opens the Help Menu Ctrl+X Close a Menu or Exit (you will be prompted to save a modified file or quit)


Everything else you could need is on the Help Menu.

Personal tools
Google AdSense