
Hello everybody, Where can we find Bash scripting guide specifically for Android devices? Ideally we will create Bash scripts that automatically execute when we turn on the Android device. -- r360design.ca

You may want to look into Termux for Android. Free download, gives you a full Debian bash shell with capacity to use apt-get for installing extra packages. https://termux.com I'm not sure how to get Termux to load on login (that's more of an Android expert question), but once Termux does launch, you could easily add a startup script to Termux's bash (.login I think?). Anyone know how to make Android start a program automatically? Hope this helps, William -- William Porquet, porquet@gmail.com "Tout choses sont dites dèja, mais comme personne n'écoute, il faut toujours récommencer." - André Gide On 28 Oct 2017 11:42 p.m., "R360 Design INC via talk" <talk@gtalug.org> wrote: Hello everybody, Where can we find Bash scripting guide specifically for Android devices? Ideally we will create Bash scripts that automatically execute when we turn on the Android device. -- r360design.ca --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

Consider this another vote for Termux. I have not tried starting anything on boot but termux-boot looks like what you'll want <https://github.com/termux/termux-boot> via <https://wiki.termux.com/wiki/Main_Page> "When developing (or packaging), note that this app needs to be signed with the same key as the main Termux app in order to have the permission to execute scripts." I'm not sure about how to handle the signing (perhaps you'll need to build your own copy of Termux) - may be worth asking via <https://wiki.termux.com/wiki/FAQ#How_do_I_get_help_about_Termux.3F> On Sun, Oct 29, 2017 at 4:37 PM, William Porquet via talk <talk@gtalug.org> wrote:
You may want to look into Termux for Android. Free download, gives you a full Debian bash shell with capacity to use apt-get for installing extra packages.
I'm not sure how to get Termux to load on login (that's more of an Android expert question), but once Termux does launch, you could easily add a startup script to Termux's bash (.login I think?).
Anyone know how to make Android start a program automatically?
Hope this helps, William -- William Porquet, porquet@gmail.com "Tout choses sont dites dèja, mais comme personne n'écoute, il faut toujours récommencer." - André Gide
On 28 Oct 2017 11:42 p.m., "R360 Design INC via talk" <talk@gtalug.org> wrote:
Hello everybody,
Where can we find Bash scripting guide specifically for Android devices? Ideally we will create Bash scripts that automatically execute when we turn on the Android device.
-- r360design.ca
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
-- Scott Elcomb @psema4 http://www.pirateparty.ca/

On 2017-10-28 11:42 PM, R360 Design INC via talk wrote:
Where can we find Bash scripting guide specifically for Android devices? Ideally we will create Bash scripts that automatically execute when we turn on the Android device.
I suspect you will have to root the device to be able to setup scripts that will run when the device it turned on. One option you can look at for running scripts is the app called BusyBox. -- Cheers! Kevin. http://www.ve3syb.ca/ |"Nerds make the shiny things that distract Owner of Elecraft K2 #2172 | the mouth-breathers, and that's why we're | powerful!" #include <disclaimer/favourite> | --Chris Hardwick

http://smallbusiness.chron.com/add-startup-applications-android-58654.html You're welcome. ;-) Seems no rooting required. Cheers, -- William Porquet, porquet@gmail.com "Tout choses sont dites dèja, mais comme personne n'écoute, il faut toujours récommencer." - André Gide On 30 Oct 2017 3:23 p.m., "Kevin Cozens via talk" <talk@gtalug.org> wrote:
On 2017-10-28 11:42 PM, R360 Design INC via talk wrote:
Where can we find Bash scripting guide specifically for Android devices? Ideally we will create Bash scripts that automatically execute when we turn on the Android device.
I suspect you will have to root the device to be able to setup scripts that will run when the device it turned on.
One option you can look at for running scripts is the app called BusyBox.
-- Cheers!
Kevin.
http://www.ve3syb.ca/ |"Nerds make the shiny things that distract Owner of Elecraft K2 #2172 | the mouth-breathers, and that's why we're | powerful!" #include <disclaimer/favourite> | --Chris Hardwick --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk

Thanks everyone for the feedback. Presumably the list of linux commands in Termux on Android is a subset of the full list of Linux Bash shell (i.e. Ubuntu or Redhat) On MacOS one can go to /usr/sbin folder for the list of shell commands available. Where can we get a list of available shell commands on Android OS? Is there a definitive guide for Linux programming on Android similar to that on Ubuntu? On Monday, October 30, 2017, William Porquet via talk <talk@gtalug.org> wrote:
http://smallbusiness.chron.com/add-startup-applications-android-58654.html
You're welcome. ;-)
Seems no rooting required.
Cheers, -- William Porquet, porquet@gmail.com <javascript:_e(%7B%7D,'cvml','porquet@gmail.com');> "Tout choses sont dites dèja, mais comme personne n'écoute, il faut toujours récommencer." - André Gide
On 30 Oct 2017 3:23 p.m., "Kevin Cozens via talk" <talk@gtalug.org <javascript:_e(%7B%7D,'cvml','talk@gtalug.org');>> wrote:
On 2017-10-28 11:42 PM, R360 Design INC via talk wrote:
Where can we find Bash scripting guide specifically for Android devices? Ideally we will create Bash scripts that automatically execute when we turn on the Android device.
I suspect you will have to root the device to be able to setup scripts that will run when the device it turned on.
One option you can look at for running scripts is the app called BusyBox.
-- Cheers!
Kevin.
http://www.ve3syb.ca/ |"Nerds make the shiny things that distract Owner of Elecraft K2 #2172 | the mouth-breathers, and that's why we're | powerful!" #include <disclaimer/favourite> | --Chris Hardwick --- Talk Mailing List talk@gtalug.org <javascript:_e(%7B%7D,'cvml','talk@gtalug.org');> https://gtalug.org/mailman/listinfo/talk
-- r360design.ca

Termux on my Android laptop/tablet is pretty much identical to having a Debian shell environment. The only hackable hitch is that the binary paths are not standard. But there's a termux-fix-shebang script you can apply to your scripts to fix that. Happy hacking! -- William Porquet, porquet@gmail.com "Tout choses sont dites dèja, mais comme personne n'écoute, il faut toujours récommencer." - André Gide On 31 Oct 2017 2:38 p.m., "R360 Design INC" <r360design@gmail.com> wrote:
Thanks everyone for the feedback. Presumably the list of linux commands in Termux on Android is a subset of the full list of Linux Bash shell (i.e. Ubuntu or Redhat)
On MacOS one can go to /usr/sbin folder for the list of shell commands available. Where can we get a list of available shell commands on Android OS? Is there a definitive guide for Linux programming on Android similar to that on Ubuntu?
On Monday, October 30, 2017, William Porquet via talk <talk@gtalug.org> wrote:
http://smallbusiness.chron.com/add-startup-applications-andr oid-58654.html
You're welcome. ;-)
Seems no rooting required.
Cheers, -- William Porquet, porquet@gmail.com "Tout choses sont dites dèja, mais comme personne n'écoute, il faut toujours récommencer." - André Gide
On 30 Oct 2017 3:23 p.m., "Kevin Cozens via talk" <talk@gtalug.org> wrote:
On 2017-10-28 11:42 PM, R360 Design INC via talk wrote:
Where can we find Bash scripting guide specifically for Android devices? Ideally we will create Bash scripts that automatically execute when we turn on the Android device.
I suspect you will have to root the device to be able to setup scripts that will run when the device it turned on.
One option you can look at for running scripts is the app called BusyBox.
-- Cheers!
Kevin.
http://www.ve3syb.ca/ |"Nerds make the shiny things that distract Owner of Elecraft K2 #2172 | the mouth-breathers, and that's why we're | powerful!" #include <disclaimer/favourite> | --Chris Hardwick --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
-- r360design.ca

On 31 October 2017 at 14:38, R360 Design INC via talk <talk@gtalug.org> wrote:
Thanks everyone for the feedback. Presumably the list of linux commands in Termux on Android is a subset of the full list of Linux Bash shell (i.e. Ubuntu or Redhat)
The set of Bash commands should be the full set of commands supported by Bash. The set of additional applications that you can run will, as always, depend on what additional applications are installed. You probably don't have GNU File Utilities installed; it's somewhat more likely that you have some version of BusyBox installed. Since Android is (with some circumlocutions involving "Dalvik") a Java-based environment, it's likely that your Android device will not have too terribly much in your $PATH, and not vastly much in /bin, /usr/bin, and such. Termux (and probably some other tools similar to Termux) may offer ways to install more stuff... I have a Superbook (https://www.kickstarter.com/projects/andromium/the-superbook-turn-your-smart...) somewhere nearing flight, so it's likely I'll be caring about this a fair bit some time soon, as I'd kinda like to be able to run Emacs in a Termux environment :-) -- When confronted by a difficult problem, solve it by reducing it to the question, "How would the Lone Ranger handle this?"

On Tue, Oct 31, 2017 at 05:51:30PM -0400, Christopher Browne via talk wrote:
On 31 October 2017 at 14:38, R360 Design INC via talk <talk@gtalug.org> wrote:
Thanks everyone for the feedback. Presumably the list of linux commands in Termux on Android is a subset of the full list of Linux Bash shell (i.e. Ubuntu or Redhat)
Termux is like a minimal Debian/Ubuntu console distro. It has most utilities and features that you used to on Linux. So, there is very little learning curve. Real manpage is useful. As well as real 'nmap' and 'ncat'.
The set of Bash commands should be the full set of commands supported by Bash.
The set of additional applications that you can run will, as always, depend on what additional applications are installed. You probably don't have GNU File Utilities installed; it's somewhat more likely that you have some version of BusyBox installed.
Actually, the shell is full real Bash (4.4.12 on mine). It has "coreutils" binary which provides all the GNU coreutils functionalities, much the same way "busybox" does. It has "busybox", too.
Since Android is (with some circumlocutions involving "Dalvik") a Java-based environment, it's likely that your Android device will not have too terribly much in your $PATH, and not vastly much in /bin, /usr/bin, and such.
Termux (and probably some other tools similar to Termux) may offer ways to install more stuff...
I have a Superbook (https://www.kickstarter.com/projects/andromium/the-superbook-turn-your-smart...) somewhere nearing flight, so it's likely I'll be caring about this a fair bit some time soon, as I'd kinda like to be able to run Emacs in a Termux environment :-)
Termux has Emacs! I just installed and tried it. Then, I couldn't remember how to exit out of Emacs. Ah, yes, C-x C-c.
-- When confronted by a difficult problem, solve it by reducing it to the question, "How would the Lone Ranger handle this?" --- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
-- William Park <opengeometry@yahoo.ca>
participants (6)
-
Christopher Browne
-
Kevin Cozens
-
R360 Design INC
-
Scott Elcomb
-
William Park
-
William Porquet