Bash Shell Environment

Discussion in 'Huawei Ideos S7 Development' started by TechRemedy, Jan 8, 2011.

  1. TechRemedy

    TechRemedy Member

    Joined:
    Jan 4, 2011
    Messages:
    83
    Likes Received:
    2
    Trophy Points:
    72
    Location:
    Reno, NV
    Tablet / Device:
    Huawei Ideos S7[rooted] PanDigital Novel[rooted]
    Hey guys! I know the following post is messy, but I'm still working out the kinks. I really wanted to get the bash shell environment working on my S7. I started looking around the webs and found this thread on the xda forums:

    shell bash for android - xda-developers

    Following those instructions, here's what I've done so far (This all assumes that the user has root of course. I used z4root):

    I want that to say /system/bin/bash instead! I love bash because of color coding, simplified scripting options, tab auto-complete, no semi-colons at the end of every line of a script...etc.

    Here's the file:

    http://pub.mzet.net/bash

    First, I downloaded the above file and moved it to /system/bin

    Next, I did the following in the terminal:

    Next, I rebooted and opened up the terminal emulator. Excellent! bash is now running! Auto-complete using tab now works!

    So the problem I'm having now is that I can't seem to connect to the internet from the prompt when I am connected to the S7 via ssh:

    This issue is only happening through ssh...My browser on the S7 still works as it did before and internet still works via terminal emulator.

    I will keep hacking away at this and hopefully come up with a solution. I would also prefer to not run bash via symlink. It would be nice to get this all working correctly and then adjust the init.rc to use bash as the shell.

    Feel free to add anything that you think might help.
     
    • Like Like x 4
  2. TechRemedy

    TechRemedy Member

    Joined:
    Jan 4, 2011
    Messages:
    83
    Likes Received:
    2
    Trophy Points:
    72
    Location:
    Reno, NV
    Tablet / Device:
    Huawei Ideos S7[rooted] PanDigital Novel[rooted]
    Okay, so I'm the only one who finds this awesome! That's okay!
     
  3. pbrauer

    pbrauer Administrator Staff Member

    Joined:
    Sep 24, 2010
    Messages:
    3,649
    Likes Received:
    561
    Trophy Points:
    312
    Location:
    Edina, MN USA
    Tablet / Device:
    HTC Thunderbolt, ViewSonic GTab, Huawei S7, Gentouch 78
    No, this is pretty cool actually.
     
  4. ivyvisors

    ivyvisors Senior Member

    Joined:
    Dec 29, 2010
    Messages:
    233
    Likes Received:
    52
    Trophy Points:
    102
    Location:
    melbourne
    Tablet / Device:
    huawai s7
    I might give this a go sometime today. not that I really need the bash shell.

    Sent from my Ideos S7 using Android Tablet Forum App
     
  5. pvella

    pvella Senior Member

    Joined:
    Dec 20, 2010
    Messages:
    392
    Likes Received:
    38
    Trophy Points:
    102
    Location:
    Melbourne
    Tablet / Device:
    Huawei S7
    bash is pretty cool. :)
     
  6. l_n

    l_n Senior Member

    Joined:
    Dec 28, 2010
    Messages:
    788
    Likes Received:
    99
    Trophy Points:
    102
    Location:
    TN, USA
    Tablet / Device:
    Mid7015
    and now, for your next trick: port the Z shell :)
     
  7. TechRemedy

    TechRemedy Member

    Joined:
    Jan 4, 2011
    Messages:
    83
    Likes Received:
    2
    Trophy Points:
    72
    Location:
    Reno, NV
    Tablet / Device:
    Huawei Ideos S7[rooted] PanDigital Novel[rooted]
    HA! That would be cool!
     
  8. barboss

    barboss Member

    Joined:
    Nov 29, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    60
    how to use <TAB> ???
     
  9. TechRemedy

    TechRemedy Member

    Joined:
    Jan 4, 2011
    Messages:
    83
    Likes Received:
    2
    Trophy Points:
    72
    Location:
    Reno, NV
    Tablet / Device:
    Huawei Ideos S7[rooted] PanDigital Novel[rooted]
    What keyboard are you using?
     
  10. TechRemedy

    TechRemedy Member

    Joined:
    Jan 4, 2011
    Messages:
    83
    Likes Received:
    2
    Trophy Points:
    72
    Location:
    Reno, NV
    Tablet / Device:
    Huawei Ideos S7[rooted] PanDigital Novel[rooted]
    I use SmartKeyboard Pro - it's not free, but there's a trial so you can verify if it works or not before buying. The <TAB> key is in the 3rd level of the keyboard. First press the "?123" key, then the "Alt" key. Now, the upside down question mark above the period is functioning as a tab key for me...not sure why, but it works!
     
  11. Tom T

    Tom T Senior Member

    Joined:
    Feb 18, 2011
    Messages:
    1,632
    Likes Received:
    191
    Trophy Points:
    162
    Location:
    Washington State
    Tablet / Device:
    Hauwei S7
    I feel like I've been Bourne-again baby!
     
  12. mecha2012

    mecha2012 Member

    Joined:
    Feb 7, 2011
    Messages:
    31
    Likes Received:
    1
    Trophy Points:
    72
    Location:
    Lowell, ma
    Tablet / Device:
    Huawei Ideos s7
    I did this download the bash binary file
    Copy bash to /system/bin/
    Change permission to bash
    And on terminal emulator select preference
    Initial command type in
    su -c bash
    Viola bash on start
    I know it was very annoying that the history does not scroll lol.
     
  13. plecto

    plecto Member

    Joined:
    Feb 7, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    60
    Tablet / Device:
    iMiTO 8
    Thanks for sharing this. It worked for me on Android gingerbread 2.3.1. Bash shell is much better than the default coming with Android.

    Concerning the <TAB> key, I'm using the Hacker's Keyboard, which can be found on the Android Market.

    Plecto
     

Share This Page

Search tags for this page
tablet run bash shell
,
android gingerbread bash
,

android gingerbread linux shell

,
android shell environment
,
android shell forum
,
bash for android gingerbread
,

bash gingerbread download

,
bash linux tablet
,
bash on samsung tablet
,
bash para tablet
,
bash shell android
,

bash terminal on android

,
bash terminal tablet android
,

huawei shell terminal

,

linux shell for tablet

,
xda bash shell