0

I've installed GNURoot debian on a rooted Android device and I can launch a debian shell programmatically using am, but I couldn't figure out how to run a command like starting dropbear.

What's the recommended way of running a command straight after launching and GNURoot Debian shell ?

  • I'm pretty sure you can write a simple start script and save it in /system/init.d/ given that the kernel supports this (most do) and you have write permission on /system – GiantTree Aug 16 '16 at 17:33
  • Thank you, I'll give that a go, so far I've tried the /etc/init.d route and didn't get very far – George Profenza Aug 16 '16 at 17:53
  • Can you edit or comment how to "launch a debian shell programmatically using am" for educative purposes? – Redsandro Feb 2 '17 at 9:13
  • @Redsandro I wouldn't mind changing the title if it makes clearer. I've already launched what I needed via am, my question is about launching an SSH Daemon in the background within GNURoot Debian as an init.d/startup script – George Profenza Feb 2 '17 at 12:25
  • @GeorgeProfenza I know you already launched it. I don't have an answer. But your question comes up when I google "how do I launch a debian shell programmatically." If you would be so kind and add the specific commands for that knowledge you already posess to the question, people like me will be educated from reading your question, even though we cannot answer your question. :) – Redsandro Feb 2 '17 at 18:12
0

To install:
apt install dropbear

To start:
service start dropbear

Autostart:
Make sure enable is set to 1 in /etc/config/dropbear.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.