TechRemedy
Member
- Jan 4, 2011
- 83
- 2
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):
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:
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.
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.# echo $SHELL
/system/bin/sh
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!$su
#cd /system/bin
#chmod 0755 bash
#mv sh sh0
#ln -s bash sh
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:
bash-3.2# ping google.com
ping: unknown host google.com
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.