Go Back   Android Forums > Android Phones > LG Motion 4G > Motion 4G - All Things Root

Like Tree12Likes
  • 4 Post By Sepero
  • 1 Post By KA24DERACER
  • 3 Post By Sepero
  • 1 Post By ninjasinabag
  • 1 Post By Sepero
  • 1 Post By ninjasinabag
  • 1 Post By ninjasinabag

test: Reply
 
LinkBack Thread Tools
Old December 6th, 2012, 12:33 PM   #1 (permalink)
Linux Guru
Thread Author (OP)
 
Sepero's Avatar
 
Join Date: Aug 2010
Posts: 946
 
Device(s): LG Motion 4G
Carrier: MetroPCS

Thanks: 1,173
Thanked 583 Times in 228 Posts
Default [GUIDE] Installing Bash and Nano on Android

This guide is for installing Bash shell and Nano text editor on your device. Your device must be ROOTed, and this should work on just about any android device.

If you don't know what Bash or Nano are, then you probably don't want to install them. HUGE thanks to jmxp69 for originally posting this [GUIDE] Full bash shell with nano, tab completion, and color over ssh The binaries are over 2 years old, but bash and nano don't really change much over the years. They work great.

I have included a README.txt file to help with installing the binaries in case you have trouble.

Files included in the zip:
README.txt
bash v3.2.0
nano v2.0.9
profile
terminfo/

Quick install overview:
  1. Make sure /system is mounted as writable.
  2. Copy bash and nano to /system/xbin and set them as executable.
  3. Remove /system/bin/sh and recreate it as a symlink to /system/xbin/bash.
  4. Copy profile and terminfo/ to /system/etc/
  5. Edit the intial command in your terminal emulator to export terminfo. ";export TERMINFO=/system/etc/terminfo;export TERM=linux;"
  6. Get some scripting done with your new setup!


The included README.txt file gives more elaborate instructions, and command line examples for every step.

*************************
THESE TOOLS ARE FOR EXPERIENCED OR CURIOUS USERS OF THE LINUX TERMINAL. The Linux Terminal is similar to DOS, except about 1000 times more useful/powerful. Hackers use these tools like: echo, tar, grep, find, diff, cat, dd, du, sed, ps, chown, mount, for/while loops, and a hundred other things. Rooted Androids have these tools, and Bash provides a familiar interface to them.
*************************
Attached Files
File Type: zip bashnano.zip (1.50 MB, 228 views)

Advertisements
Sepero is offline  
Last edited by Sepero; December 7th, 2012 at 04:30 PM.
Reply With Quote
The Following 3 Users Say Thank You to Sepero For This Useful Post:
EarlyMon (December 7th, 2012), otrcomm (June 29th, 2013), TheAmazingDave (December 7th, 2012)
sponsored links
Old December 6th, 2012, 01:25 PM   #2 (permalink)
Member
 
Join Date: Jan 2012
Location: cali
Gender: Male
Posts: 491
 
Device(s): LG MOTION 4G, LG ESTEEM, SAMSUNG ADMIRE
Carrier: Not Provided

Thanks: 37
Thanked 63 Times in 51 Posts
Default

What is it used for?
theisonews is offline  
Reply With Quote
Old December 6th, 2012, 02:29 PM   #3 (permalink)
 
Join Date: Jul 2012
Posts: 269
 
Device(s):
Carrier: Not Provided

Thanks: 126
Thanked 40 Times in 26 Posts
Default

Quote:
Originally Posted by theisonews View Post
What is it used for?
you can check and change files with bash.i dont know what he wants to use it for. its for pcs i thought.
nizlovelots is offline  
Reply With Quote
Old December 6th, 2012, 04:50 PM   #4 (permalink)
Member
 
Join Date: Jul 2011
Location: Sacramento, CA
Posts: 132
 
Device(s): LG Connect: Black Plague ROM OCd @ 1.4 LG Optimus M: Reppard CM7 ROM OCd @ 758
Carrier: Not Provided

Thanks: 4
Thanked 21 Times in 15 Posts
Default

Quote:
Originally Posted by nizlovelots View Post
you can check and change files with bash.i dont know what he wants to use it for. its for pcs i thought.
Well its for anything running a linux environment actually (like androids). I would just wager a guess that this allows you far greater access to low and high level commands than simply having a teminal emulator and busybox would.
Sepero likes this.
KA24DERACER is offline  
Reply With Quote
The Following User Says Thank You to KA24DERACER For This Useful Post:
Sepero (December 7th, 2012)
Old December 6th, 2012, 06:36 PM   #5 (permalink)
 
Join Date: Jul 2012
Posts: 269
 
Device(s):
Carrier: Not Provided

Thanks: 126
Thanked 40 Times in 26 Posts
Default

Quote:
Originally Posted by KA24DERACER View Post
Well its for anything running a linux environment actually (like androids). I would just wager a guess that this allows you far greater access to low and high level commands than simply having a teminal emulator and busybox would.
2 what end. you have limits to what you can do.yes android is linux but its not a base architecture there wouldn't be any upside to running this on our phones that i can see. sometimes ppl like doing things because they can not because its helpful. imo this seems pointless.

ps. if i am wrong please tell me how.are phone is screwed as far as development so this is pointless.

pss. ppl are bored with the motion so the pointless crap we can and cant do will be coming up all the time.

that all seems a little harsh i just noticed. i am not going to erase it because i am going to apologize. i am no one to say what is or is not pointless. what do i know.
nizlovelots is offline  
Last edited by nizlovelots; December 6th, 2012 at 09:50 PM.
Reply With Quote
Old December 7th, 2012, 10:20 AM   #6 (permalink)
Linux Guru
Thread Author (OP)
 
Sepero's Avatar
 
Join Date: Aug 2010
Posts: 946
 
Device(s): LG Motion 4G
Carrier: MetroPCS

Thanks: 1,173
Thanked 583 Times in 228 Posts
Default

For real examples- Having terminal access made all these Guides possible:
Maybe your sdcard is getting full. Want a listing of all your directories and their size, and ordered by size?
Type: du -s /mnt/sdcard/* | sort -g

Want to replace all instances of my "heavy boots" with "running shoes" in a file?
Type: sed -i 's/heavy boots/running shoes/g' file

Want to erase all traces of deleted files on your sdcard?
Type: cat /dev/zero > /mnt/sdcard/z; rm /mnt/sdcard/z

That's it! With No special magic Expensive software needed. The possibilities are endless for those who are knowledgeable.


On the other hand, a computer has no value to a person who doesn't know how to use it.
Sepero is offline  
Last edited by Sepero; December 7th, 2012 at 10:56 AM.
Reply With Quote
The Following User Says Thank You to Sepero For This Useful Post:
notty (June 8th, 2013)
Old December 7th, 2012, 10:30 AM   #7 (permalink)
Member
 
ninjasinabag's Avatar
 
Join Date: Jun 2012
Location: philadelphia, PA
Gender: Male
Posts: 474
 
Device(s): Lg motion 4g Lg connect 4g- black plague Coby kyros mid7042-rooted-pimpenstien rom -r.I.p little b
Carrier: t-mobile (former) metro-pcs

Thanks: 94
Thanked 149 Times in 97 Posts
Send a message via MSN to ninjasinabag Send a message via Skype™ to ninjasinabag
Default

To all the naysayers of these guide, I say thee nay.
Good job, Sepiro. Another well thought out guide with potential.
adanmex likes this.
ninjasinabag is offline  
Reply With Quote
The Following User Says Thank You to ninjasinabag For This Useful Post:
adanmex (December 7th, 2012)
Old December 7th, 2012, 10:51 AM   #8 (permalink)
Linux Guru
Thread Author (OP)
 
Sepero's Avatar
 
Join Date: Aug 2010
Posts: 946
 
Device(s): LG Motion 4G
Carrier: MetroPCS

Thanks: 1,173
Thanked 583 Times in 228 Posts
Default

@ninjasinabag
It just surprises me at how easily people can dismiss something powerful that they don't understand. I mean no offense to anyone, but it gives me a mental picture of a caveman saying that an android phone doesn't make a very good hammer. I can't do anything but agree. In a way he is right, but I sigh, because the he has no idea of the other unlimited potentials.

Thanks for all the appreciation, it really means a lot to me. Also I apologize for any misunderstanding caused for people who might not grasp how to use these tools. If you think there is anyway I can improve the Original Post, please let me know.
aboatright likes this.
Sepero is offline  
Reply With Quote
The Following User Says Thank You to Sepero For This Useful Post:
aboatright (June 30th, 2013)
Old December 7th, 2012, 11:35 AM   #9 (permalink)
Member
 
ninjasinabag's Avatar
 
Join Date: Jun 2012
Location: philadelphia, PA
Gender: Male
Posts: 474
 
Device(s): Lg motion 4g Lg connect 4g- black plague Coby kyros mid7042-rooted-pimpenstien rom -r.I.p little b
Carrier: t-mobile (former) metro-pcs

Thanks: 94
Thanked 149 Times in 97 Posts
Send a message via MSN to ninjasinabag Send a message via Skype™ to ninjasinabag
Default

Android is about personalization and usability, if there's something you need done or to do on an android phone, it can be done. By someone saying that a function is useless is like saying that the iPhone is better because of its casing alone.

Just because you can't find a use for an app/framework/function, doesn't mean that I won't be a game changer for another person.
aboatright likes this.
ninjasinabag is offline  
Reply With Quote
The Following User Says Thank You to ninjasinabag For This Useful Post:
aboatright (June 30th, 2013)
Old December 7th, 2012, 01:37 PM   #10 (permalink)
 
Join Date: Jul 2012
Posts: 269
 
Device(s):
Carrier: Not Provided

Thanks: 126
Thanked 40 Times in 26 Posts
Default

Quote:
Originally Posted by ninjasinabag View Post
Android is about personalization and usability, if there's something you need done or to do on an android phone, it can be done. By someone saying that a function is useless is like saying that the iPhone is better because of its casing alone.

Just because you can't find a use for an app/framework/function, doesn't mean that I won't be a game changer for another person.
all i am saying is we cant make backups we cant overclock the kernel we have limited theming abilities and so on. while guides,rooting and slight theming is nice i wish we had the ability to really make are phone what we want it to be. i did say i was being harsh and that i did not know a lot about bash.
nizlovelots is offline  
Reply With Quote
sponsored links
Old December 7th, 2012, 02:27 PM   #11 (permalink)
Linux Guru
Thread Author (OP)
 
Sepero's Avatar
 
Join Date: Aug 2010
Posts: 946
 
Device(s): LG Motion 4G
Carrier: MetroPCS

Thanks: 1,173
Thanked 583 Times in 228 Posts
Default

@nizlovelots
It's all good. Technically our phone comes pre-overclocked! (1.5Ghz)

It's true we can't get CWM or Cyanogenmod... but with root and command line tools, we in fact can make (and restore) full system backups. hehe

Maybe I'll make a little Guide on that next. For someone familiar with these tools, it's a pretty simple task.
Sepero is offline  
Last edited by Sepero; December 7th, 2012 at 02:29 PM.
Reply With Quote
The Following User Says Thank You to Sepero For This Useful Post:
ninjasinabag (December 7th, 2012)
Old December 7th, 2012, 03:02 PM   #12 (permalink)
 
Join Date: Jul 2012
Posts: 269
 
Device(s):
Carrier: Not Provided

Thanks: 126
Thanked 40 Times in 26 Posts
Default

Quote:
Originally Posted by Sepero View Post
@nizlovelots
It's all good. Technically our phone comes pre-overclocked! (1.5Ghz)

It's true we can't get CWM or Cyanogenmod... but with root and command line tools, we in fact can make (and restore) full system backups. hehe

Maybe I'll make a little Guide on that next. For someone familiar with these tools, it's a pretty simple task.
you are a very helpful person. taking the time to help and make guides is very admirable. oh and 1.5 is great 1.8 would be better at least it would be in theory. i have seen overclocks hurt more then help sometimes.
nizlovelots is offline  
Reply With Quote
Old December 7th, 2012, 04:41 PM   #13 (permalink)
Member
 
ninjasinabag's Avatar
 
Join Date: Jun 2012
Location: philadelphia, PA
Gender: Male
Posts: 474
 
Device(s): Lg motion 4g Lg connect 4g- black plague Coby kyros mid7042-rooted-pimpenstien rom -r.I.p little b
Carrier: t-mobile (former) metro-pcs

Thanks: 94
Thanked 149 Times in 97 Posts
Send a message via MSN to ninjasinabag Send a message via Skype™ to ninjasinabag
Default

Overclocking can have many side effects on any piece of electronics. In cases like that of the lg connect 4g, over clocking could lead to wearing down of the battery in a frightening amount of time, hell I once had the oh so awesome experience to have the soldering melt and damn near nuke over in my hand...
ninjasinabag is offline  
Reply With Quote
Old December 7th, 2012, 04:54 PM   #14 (permalink)
 
Join Date: Jul 2012
Posts: 269
 
Device(s):
Carrier: Not Provided

Thanks: 126
Thanked 40 Times in 26 Posts
Default

Quote:
Originally Posted by ninjasinabag View Post
Overclocking can have many side effects on any piece of electronics. In cases like that of the lg connect 4g, over clocking could lead to wearing down of the battery in a frightening amount of time, hell I once had the oh so awesome experience to have the soldering melt and damn near nuke over in my hand...
i oc pcs all the time. what i was saying is in android sometimes oc doesnt even boost performance. the battery drain sucks but soldering melt from overheating that really sucks you must have been pissed.
nizlovelots is offline  
Reply With Quote
Old December 7th, 2012, 06:51 PM   #15 (permalink)
Member
 
ninjasinabag's Avatar
 
Join Date: Jun 2012
Location: philadelphia, PA
Gender: Male
Posts: 474
 
Device(s): Lg motion 4g Lg connect 4g- black plague Coby kyros mid7042-rooted-pimpenstien rom -r.I.p little b
Carrier: t-mobile (former) metro-pcs

Thanks: 94
Thanked 149 Times in 97 Posts
Send a message via MSN to ninjasinabag Send a message via Skype™ to ninjasinabag
Default

Quote:
Originally Posted by nizlovelots View Post
i oc pcs all the time. what i was saying is in android sometimes oc doesnt even boost performance. the battery drain sucks but soldering melt from overheating that really sucks you must have been pissed.
I can't be pissed about it, I knew what I was getting into by messing with it like that. I'm still alive, cancer free and I learned a lesson that day. If the phone gets to hot, stop using it. Lol
twogbsd likes this.
ninjasinabag is offline  
Reply With Quote
Old June 29th, 2013, 10:52 PM   #16 (permalink)
New Member
 
Join Date: Jun 2013
Location: Flagstaff
Posts: 4
 
Device(s): LG Optimus Exceed VS840, HTC Incredible 2, Vizio Tablet
Carrier: Verizon Wireless

Thanks: 3
Thanked 4 Times in 3 Posts
Default

Sepero - thanks for the bash and nano. got a problem though. got the nano working, but the Enter key does not work with ctrl-o to save the file. I have to hit ctrl-o and then Fn+Enter like on a Mac. From a linux box, I "adb shell" to my phone (LG Lucid with ICS). TERM=linux didn't work for me, so I added some to /system/etc/terminfo and set TERM=vt100. Without vt100, I could not get ctrl-o then Fn+Enter to save. Any ideas why I have to use Fn+Enter?

BTW, I just tested with Terminal IDE and it has the same issue where the ctrl-o + Enter does not work and have to use ctrl-o then Fn+Enter. Strange!

thanks
otrcomm is offline  
Last edited by otrcomm; June 29th, 2013 at 11:11 PM.
Reply With Quote
Old June 30th, 2013, 10:31 PM   #17 (permalink)
Linux Guru
Thread Author (OP)
 
Sepero's Avatar
 
Join Date: Aug 2010
Posts: 946
 
Device(s): LG Motion 4G
Carrier: MetroPCS

Thanks: 1,173
Thanked 583 Times in 228 Posts
Default

In my terminal's initial command, I have it run this:
export TERMINFO="/mnt/sdcard/root/bashnano/terminfo";export TERM="linux";

The location "/mnt/sdcard/root/bashnano/terminfo" is where I have the files unzipped. Hopefully that helps.
Sepero is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > LG Motion 4G > Motion 4G - All Things Root

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:02 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.