DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 9 of 9

Thread: Question on Terminal apps PC etc

  1. Droid Ninja
    Bear in NM's Avatar
    Member #
    3690
    Join Date
    Nov 2009
    Posts
    1,389
    Liked
    5 times
    Phone
    Bionic (sad but sweet)
    #1

    Question on Terminal apps PC etc

    Now that I seem to be getting a handle on all of this rooting, terminal, and Linux stuff, I have a question.

    I have been using sdk/adb to help with the PC side. If I decide to go farther down the dark side to custom roms and/or non-VZW rooted updates, will SDK become non-functional? Perhaps this is where busybox comes in?

    Right now it appears that many are using busybox, and while sdk/adb has been great as a learning tool as it has forced me to understand commands better, I am wondering if I should be investing my educational time right now in a direction that may not become obsolete.

    Thanks,

    Craig
  2. Junior Droid
    vwpanda's Avatar
    Member #
    15269
    Join Date
    Dec 2009
    Posts
    14
    Phone
    Moto Droid
    #2
    adb pretty much just gets you into the phone from the computer. the commands you run are run on the phone. you can install busybox and run all the busybox stuff(which are just standard *nix commands) through adb. adb should always continue to work - its a great way to save your phone if you cause the entire user interface to stop functioning. and with the recovery image replacement, adb now works really early in boot process so you can save the phone from pretty much anything
  3. Droid
    lvlln's Avatar
    Member #
    2561
    Join Date
    Nov 2009
    Posts
    35
    Phone
    Droid Incredible
    #3
    Does anyone know if there's a way to make adb behave more like a regular shell? For example, displaying the current directory at the beginning of each line, and being able to use tab for auto-complete.
  4. Droid Ninja
    Bear in NM's Avatar
    Member #
    3690
    Join Date
    Nov 2009
    Posts
    1,389
    Liked
    5 times
    Phone
    Bionic (sad but sweet)
    #4
    Vw,

    Thanks for the clarification. Upon further reflection, it does make sense that as long as the PC can see the android device then adb should continue to work. Adb is fairly well documented in the adk tool kit, and I have created an xls spread sheet with all of the on phone linux commands with a corresponding decription of said command and switches. Shouldn't be too hard to do the same with busybox. As they say, if you need to skin the proverbial cat, it is not a bad idea to have several ways.....

    Why oh why did the linux folks have to develop so many flavors? Wait, then we would all be running windows mobile........

    Craig
    Last edited by Bear in NM; 12-17-2009 at 11:53 AM. Reason: spelling?
  5. Master Droid
    mammlouk's Avatar
    Member #
    15042
    Join Date
    Dec 2009
    Posts
    316
    Phone
    Motorola Droid
    #5
    Quote Originally Posted by lvlln View Post
    Does anyone know if there's a way to make adb behave more like a regular shell? For example, displaying the current directory at the beginning of each line, and being able to use tab for auto-complete.
    Here's the thread I was thinking of when I made mine about setting the current directory to the prompt. I know you were in that thread but it's good to make sure it's linked for anyone searching in the future.

    http://www.droidforums.net/forum/dro...ry-prompt.html

    I also wanted to mention that the features you are hoping for are features of the Bourne Again Shell (bash) which ships as default in most modern linux dostros vs the original Bourne Shell (sh) which is included for Android. It should be possible to compile bash for the Droid, it will take someone with a bit more knowledge than myself though. I know that there are versions out there for g1, so it should come to Droid eventually.
  6. Master Droid
    mammlouk's Avatar
    Member #
    15042
    Join Date
    Dec 2009
    Posts
    316
    Phone
    Motorola Droid
    #6
    Just an update, I went ahead and installed bash compiled for android 1.5 from xda and it seems to be working fine. Here is the thread I grabbed it from: shell bash for android - xda-developers

    I put the following in /sdcard/bash_profile to give me the path with a space followed by the dollar sign.
    Code:
    export PS1="\w \$ "
    Following the directions for loading bash will give you bash as the default shell. You will have all of the tab completion and double tab suggestions you are used to in ubuntu or other mainstream linux. I cannot guarantee that it won't cause problems with any of the builtin Droid apps.
  7. Master Droid
    kevdog's Avatar
    Member #
    4295
    Join Date
    Nov 2009
    Posts
    722
    Phone
    moto droid
    #7
    Perhaps a formal writeup is in order for this one!! Nice job
  8. Senior Droid
    p0rk burn's Avatar
    Member #
    12331
    Join Date
    Dec 2009
    Posts
    138
    Phone
    Enter Current Phone Here
    #8
    Sweet mammlouk. I agree a formal write up and independent post is in order, even if its a recap of the post you followed. I think plenty of us would appreciate bashing our droids . . .
  9. Master Droid
    mammlouk's Avatar
    Member #
    15042
    Join Date
    Dec 2009
    Posts
    316
    Phone
    Motorola Droid
    #9
    I will try to put something together when I have some time.

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. PC Terminal emulator, GUI?
    By Flowah in forum Android Hacks and Help
    Replies: 8
    Last Post: 12-15-2009, 02:47 AM
  2. Task Killer apps question...
    By fishepa in forum Android Applications
    Replies: 0
    Last Post: 12-01-2009, 12:29 PM
  3. Apps - security question
    By ATLbellygirl in forum Android Applications
    Replies: 0
    Last Post: 11-30-2009, 05:59 PM
  4. Quick Question About Purchasing Apps
    By LordKastle in forum Android Applications
    Replies: 2
    Last Post: 11-25-2009, 07:23 AM
  5. Quick question about buying apps
    By JAM1971 in forum Android Applications
    Replies: 5
    Last Post: 11-21-2009, 09:51 AM

Search tags for this page

adb autocomplete
,
android autocomplete terminal
,
android busybox autocomplete
,
android terminal autocomplete
,
busybox android auto complete
,
busybox android autocompletar
,

busybox autocomplete

,
busybox terminal autofill
,
computer terminal apps
,
droid computer terminal
,
droid incredible adk
,
droid terminal auto complete
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+