Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
O' Tay
I got an alcatel tracPhone that cannot root. Then I found this KBOX2 installation instructions. But my thumbs are hitting all of the wrong buttons and it's pissing me off trying to type the commands in the term usng HACK KB I installed on the phone. So I was going to write a script to just do all of these commands for me then run it on the sdcard in the phone. But what shell do I have to put on the top of the sctipt?
Code:
#!/bin/bash
#!/bin/sh
????
because it is not linux and I do not know how to find out what shell it uses, if that is even the correct terminology to use, or even if this will work. It should but this is all new to me.
Code:
cd /data/data/jackpal.androidterm
4. Copy the base installer to the writeable data area. Many Android versions don't have a working cp command, so you'll need to use cat to do this:
$ cat /sdcard/Download/kbox2-base-installer > kbox2-base-installer
5. Set execute permission on the installer:
$ chmod 755 kbox2-base-installer
6. Run the installer. First run kbox2-base-installer, which will explode a bunch of files into a directory called installer-image. Then run setup to do the actual installation.
$ ./kbox2-base-installer
$ ./setup
Note that the full path to the KBOX shell is displayed if setup completes successfully. You'll see something like:
The full path of the KBOX shell is /data/data/jackpal.androidterm/kbox2/bin/kbox_shell
this is what the script would look like
Code:
shell command here
#!/?/?
cd /data/data/jackpal.androidterm
# My actual path to SdCard
cat /storage/sdcard0/Download/kbox2-base-installer > kbox2-base-installer
chmod 755 kbox2-base-installer
#maybe manually type these two commands in
./kbox2-base-installer
sleep 1
./setup
And to run the script, navigate to the script location and do:
Code:
sh <script-name>
Running "./<script-name>" will not work on android.
thanks -- I ballparked it and went with the /bin/sh, but that sh command was a big help 2.
I got it installed now. but this liittttleeee keyboard big thumbs is a pain, one litte opps and I hit a different button sending me into a different command, up arrow gets last command typed. or tap the screen and the term goes away aaahhhh it is still frustrating on a little screen. Just thought I'd play around with having Linux on Andriod to see what that is like.
It should be possible to install KBOX3 with any Android terminal emulator app, on any device with Android version later than 5.0. Earlier versions might work, but there has been little testing. KBOX2 supports android versions 3.0-4.4.
4 Andriods with root. to install Linux thier is an app Linux Deploy
I haven't fiddeled with it, yet, I need a bigger sdCard first. I've read a class 10 for speed, and 32GB to have plenty of room, but as far as the size of linux being installed, the OS. It is my untested option that a 16 should work too.Class 4, it maybe slow but it still allows you to say, hey buddy check this out. I got linux running on my phone, see
My sdCard 16GB has apps and stuff on it aready. I don't want to wipe it just 2 see if I can get it to work. 32GB class 10 would be a cheep solution when they go on sale.
I am not sure if that app will do all of the partitoning and formating of the sdCard or one has to do it prior to using it.
[HOWTO] Install LinuxOnAndroid distros on your sdcard's second partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.