LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This 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


Reply
  Search this Thread
Old 02-15-2016, 07:51 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Hacking Andriod with scripts


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

Last edited by BW-userx; 02-15-2016 at 07:55 AM.
 
Old 02-15-2016, 08:59 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,981

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Use:
Code:
#!/bin/sh
And to run the script, navigate to the script location and do:
Code:
sh <script-name>
Running "./<script-name>" will not work on android.

Last edited by kilgoretrout; 02-15-2016 at 09:03 AM.
 
Old 02-15-2016, 09:40 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by kilgoretrout View Post
Use:
Code:
#!/bin/sh
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.


thanks for your help

Last edited by BW-userx; 02-15-2016 at 09:45 AM.
 
Old 02-16-2016, 03:15 AM   #4
webhostus
LQ Newbie
 
Registered: Feb 2011
Location: US
Posts: 7

Rep: Reputation: 1
I got to try this on my android OS
 
Old 02-16-2016, 05:31 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by webhostus View Post
I got to try this on my android OS

4 Andriods without root
PLEASE READ THIS!

Quote:
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.

Last edited by BW-userx; 02-16-2016 at 01:18 PM.
 
1 members found this post helpful.
Old 02-16-2016, 12:51 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
there's some nice info in your last post!
 
Old 02-16-2016, 01:15 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
YEah I figured it was worth a read so I added it. cheers !
 
Old 03-22-2016, 12:16 AM   #8
rajahindustani
LQ Newbie
 
Registered: Mar 2016
Posts: 10

Rep: Reputation: Disabled
code not working or i do any mistake....
can you tell me the easy way...?
thanks




bikram singh majithia
 
Old 03-22-2016, 07:56 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by rajahindustani View Post
code not working or i do any mistake....
can you tell me the easy way...?
thanks
bikram singh majithia
please be more specific and show your work too with explanations.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] HP 7 Plus with Andriod 4.2.2 doesn't get detected on Ubuntu 14.04.1 Aquarius_Girl Linux - Newbie 1 12-05-2014 01:37 AM
Which is the better between Karbonn and micromax andriod phones ? me_spearhead Linux - Mobile 1 01-20-2013 06:54 PM
Why is Andriod or Google Chrome not available in distrowatch.com blahblalblah Linux - Newbie 7 02-25-2011 10:35 AM
Hacking Exposed Wireless Hacking Chapter prompt Linux - Wireless Networking 0 05-08-2004 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration