r/linux_programming • u/Lopsided_Cantaloupe3 • Feb 24 '21
Install a Linux command line on an Android phone and boot directly to it
Is it theoretically possible to install a Linux command line on an Android phone and boot directly to it? If so, how? If not, why specifically not?
1
Feb 24 '21
Put exec /bin/bash into init, the same as any other linux. Figure out how to input any commands into it first, these days most phones don’t come with keyboard.
1
0
Feb 24 '21
[deleted]
1
u/Lopsided_Cantaloupe3 Feb 24 '21
Is that safe?
1
u/jbtwaalf Feb 24 '21
Yes, every app can access the "cli", you can't do much with it tho because you don't have root access unless you rooted your phone
1
u/Lopsided_Cantaloupe3 Feb 26 '21
Termux often resets when a session ends - is it possible to make an installation permanent? How?
0
Feb 26 '21
[deleted]
1
u/Lopsided_Cantaloupe3 Feb 27 '21
I need a clearer understanding of how to install things on Termux. I don't know if ncursws is in its package manager, and if it's not, what's the best manual installation would be?
2
u/Swedneck Feb 24 '21
PostmarketOS?