[Q] chroot Ubuntu on Nexus 7 (2013) - Nexus 7 (2013) Q&A

Not sure if anyone is interested or not but I have a chrooted Ubuntu 12.04 and Ubuntu 13.10 on my N7 running.
If anyone is interested I can post the steps and scripts I used, so you can do it yourself, and learn as you do it which is fun lol.
Most of the information is available via google searches however some things are not mentioned.
I have almost got LXDE running in the chroot without vnc, however not fully.
The problem I am having is when I startx or xinit /usr/bin/lxsession it displays a blank screen. When I kill the process, the LXDE background displays with a cursor. Not sure why it waits to display when I kill the process kind of weird.
Anyways thoughts, comments, constructive criticism.

photo of the adb screen launching startx img1.jpg
photo of the actual N7 screen img2.jpg

I guess there is a guide already from what I read.
No need for a guide unless someone wants to try making their own Ubuntu chroot. Then you will have the ability to make you own image size etc.
If anyone is interested or wants to do this post here and I will provide the steps.
And assist with scripts and what not.
By no means did I come up with this on my own, however many guides have scripts that don't work etc due to your version on android or device etc.
Sent from my Galaxy Nexus using xda app-developers app

I'm using the guide in the General Section to use Kali PwnPad with my N7. I was using Backtrack with my 2012 and just bought a 2013 and very happy so far that everything works with Kali but with a better performance!
Wifi USB host was the main concern and it works great.
Nice job you have done too can you send me or share your chroot script please?

djxtabay said:
I'm using the guide in the General Section to use Kali PwnPad with my N7. I was using Backtrack with my 2012 and just bought a 2013 and very happy so far that everything works with Kali but with a better performance!
Wifi USB host was the main concern and it works great.
Nice job you have done too can you send me or share your chroot script please?
Click to expand...
Click to collapse
yes, do you need startup scripts or launch scripts for vnc and x
or just the chroot script to get into linux?

UPDATE
I made scripts which will allow the creation of the linux image right on the device itself.
It downloads approximately 200 megs for the packages, no more need to download huge image files...
Right now ubuntu works for sure testing others...

userdelroot said:
I made scripts which will allow the creation of the linux image right on the device itself.
It downloads approximately 200 megs for the packages, no more need to download huge image files...
Right now ubuntu works for sure testing others...
Click to expand...
Click to collapse
Great job! Could you share those somewhere (I'm interested in running other distributions e.g. Fedora and Mer)

vrutkovs said:
Great job! Could you share those somewhere (I'm interested in running other distributions e.g. Fedora and Mer)
Click to expand...
Click to collapse
of course, but need to finish scripts and work out some bugs.

userdelroot said:
of course, but need to finish scripts and work out some bugs.
Click to expand...
Click to collapse
Hey, any news on this?

vrutkovs said:
Hey, any news on this?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2627255

Related

How do you dive into Android development?

For example how do you make programs that do 1-click rooting, or modify the official ROM such that it does not update HBOOT, or make mods for it? What programming languages do you have to know? What system environment (Windows, Linux, etc.) do you have to be running?
Love Android, want to start contributing after end of my national exams (November )
good skills in Linux and Java-Programming seems to be a good combination
BrainMcFly said:
good skills in Linux and Java-Programming seems to be a good combination
Click to expand...
Click to collapse
Then how do you make programs that do 1-click rooting, or pre-load applications like busybox into the ROM? You'd have to manually edit the source code of the ROM, don't you?
fterh said:
Then how do you make programs that do 1-click rooting
Click to expand...
Click to collapse
Years of hardware hacking experience and days of work / problem solving.
bedeabc said:
Years of hardware hacking experience and days of work / problem solving.
Click to expand...
Click to collapse
I'm 16, no prior programming experience (unless you count a Hello World as one), on Windows right now. How would you advise me if I want to start contributing to the Android scene?
I've found a post which looks like a good starting point and contains a lot of helpful links:
hxxp://forum.xda-developers.com/showpost.php?p=6243873&postcount=1
Regards,
Tom
P.S: Sorry, had to cripple the link, because I'm a new user and therefore not allowed to post a "real" link.
fterh said:
or pre-load applications like busybox into the ROM? You'd have to manually edit the source code of the ROM, don't you?
Click to expand...
Click to collapse
Try extracting the .zip, adding and removing apps is not that difficult; most of the .apk's are located in /data/app.
Rudolfje said:
Try extracting the .zip, adding and removing apps is not that difficult; most of the .apk's are located in /data/app.
Click to expand...
Click to collapse
You mean system/app lol
Sent from my HTC Desire using Tapatalk
Rudolfje said:
Try extracting the .zip, adding and removing apps is not that difficult; most of the .apk's are located in /data/app.
Click to expand...
Click to collapse
You mean /system/app? There is nothing under /data/ in my phone.
fterh said:
You mean /system/app? There is nothing under /data/ in my phone.
Click to expand...
Click to collapse
Data/app is where installed apps go, chances are u dont have anything there cuz ur using apps2sd
Sent from my HTC Desire using Tapatalk
data/app is where you can put user-removable and other apps you want seperate from the system/app in a custom rom - has to be added to the rom itself like A2SD does.
AndroHero said:
Data/app is where installed apps go, chances are u dont have anything there cuz ur using apps2sd
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
Oh okay. So before trying my hands at developing a ROM I should try writing some apps first?
Edit: But my ROM Manager has a "Move to SD Card" button, which means it should be in /data/app?
Bump. Then do I need to be on a Linux environment? Any gurus can give some pointers to a newbie to the Android scene?
being on linux would be easier - knowledge of the OS would be better.
If you use Linux you can use dsixda's kitchen to sign and build the rom after youve finished adding removing, editing etc. It's going to be a case of trial and error, but you cant break the phone as long as you're using a rooted/su rom, without the HBOOT or radio in it. You might get a bootloop/freeze, or 57 force closes but you can always re-flash.
Say i wanted to remove certain preinstalled apps from the official Froyo ROM, how would i know which files to delete from the zip?
Sent from my HTC Desire using XDA App
TomakiD said:
I've found a post which looks like a good starting point and contains a lot of helpful links:
hxxp://forum.xda-developers.com/showpost.php?p=6243873&postcount=1
Regards,
Tom
P.S: Sorry, had to cripple the link, because I'm a new user and therefore not allowed to post a "real" link.
Click to expand...
Click to collapse
Where going to post the exact same link. It contains all that you need, usually.
fterh said:
Say i wanted to remove certain preinstalled apps from the official Froyo ROM, how would i know which files to delete from the zip?
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
You'll find a lot of info on the following thread. There you're linked to Android Developers pages where the structure of a ROM etc is described. All the info you need is there.
http://forum.xda-developers.com/showpost.php?p=6243873&postcount=1
I think I'll try writing some apps on Ubuntu before even thinking of maintaining and developing my own ROM. This way I can get close and cozy with the Android system and learn Linux. One question though: Is the learning curve steep?
fterh said:
I think I'll try writing some apps on Ubuntu before even thinking of maintaining and developing my own ROM. This way I can get close and cozy with the Android system and learn Linux. One question though: Is the learning curve steep?
Click to expand...
Click to collapse
Bump. Is the learning curve steep for someone who has no prior programming experience?
fterh said:
Bump. Then do I need to be on a Linux environment? Any gurus can give some pointers to a newbie to the Android scene?
Click to expand...
Click to collapse
If you have never had ANY programming experience before I would reccomend learning another language first, before trying to learn Java. Try vb.net if you have Windows, learn that and you get the gist of how to programme, then install Linux Ubuntu or another distro, familiarize yourself with the Terminal command line, then go on to learn Java, then the Android SDK, then make some apps, then learn how to modify roms etc. The last thing you want is a bricked phone

Cannot get gMTP on Linux?

Im trying to get MTP working on Linux by following this tutorial:
http://forum.xda-developers.com/showthread.php?t=1077377
I've got as far as doing
sudo apt-get install gmtp
however I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gMTP
Click to expand...
Click to collapse
Anyone know how I can sort this. I thought gMTP was on the Universal list...
Im using Ubuntu 10.04 LTS Lucid Lynx
gmtp was apparently added in maverick. Time to compile from source...
gotroot801 said:
gmtp was apparently added in maverick. Time to compile from source...
Click to expand...
Click to collapse
I've been trying that with no luck :-\
Where can I get to source from? I found one but when I ran 'make' it errored out with the error code 1
Sent from my Galaxy Nexus using Tapatalk
Forgive me, I haven't used Ubuntu in a little while now. Have you tried make config?
Also, why not just add the repository with the application in it?
Evostance said:
I've been trying that with no luck :-\
Where can I get to source from? I found one but when I ran 'make' it errored out with the error code 1
Click to expand...
Click to collapse
The source is available at http://gmtp.sourceforge.net, but I'm having the same problems you are. Oh well - if I'm comfortable enough building something from source, I'm comfortable enough to use adb push to move files to my phone.
RMatt1992 said:
Also, why not just add the repository with the application in it?
Click to expand...
Click to collapse
The repository is the Ubuntu repo for a later release. I can't speak for the OP, but I'm still running 10.04 LTS because it's a long-term support version and there will still be updates for it for the next three years. As much as I enjoy crackflashing on my phone, I prefer my desktop to be somewhat stable.
So add the repo, install the program, remove the repo.

Unleash Linux power on S5360

Hello, I'm developer of linux software and I tested capabilites to get full Linux on our phone.
Sorry for posting in general, but i'm unable to post in development.
At the beginning - some theory:
1) We don't need to unleash Linux, because Android IS build on top of linux.
2) Availability of software depends on standard C library - in GNU/Linux it's glibc, in android - bionic.
So we need to port glibc, not linux.
We have following solutions:
-mount and chroot on top of android:
It's really simple: read here.
-build glibc and replace bionic-it's great idea, but may cause some Android problems.
read here.
-build a whole system: but then, we can't use gsm and android at all ,and it's extreemly hard.
Any questions? If sbd need any tutorials, i can help.
i thought you should contact mai77. he seems to be really interested in porting a linux on sgy. he even have made a thread about it. you may see the thread in development section.
Yes, I know. Unfortunately I have not enough posts to post there, but I really want to help him. I've an idea to develop "ready to run" archlinux images,easy to mount and run lxde. Is there anybody interrested?
Count me in just give me the
instructions
Sent from my GT-S5360 using xda premium
well...you only need another 8 post or you can directly pm him.
Lol, he can beat about the bush,to get 10 post.to post in dev,,
So, I'll stop talking and start doing.
At this moment I've created loopdisk and I am developing scripts to install and run easily.
I'll upload it tommorow or in two days,I hope.
MichalBn said:
So, I'll stop talking and start doing.
At this moment I've created loopdisk and I am developing scripts to install and run easily.
I'll upload it tommorow or in two days,I hope.
Click to expand...
Click to collapse
It really interresting count me in
Sent from my GT-S5360 using xda premium
count me in too...though i am not a dev...hehehe
OK, I've tested DebDroid, and i think that my work have no target-it's all already done. So happy using LinuxInstaller - I will rather help them than create it from scrath.

How do I build a from for kindle fire?

Could have a website tutorial and is Java coding required?
Sent from an my awesome kindle fire.
greezal said:
Could have a website tutorial and is Java coding required?
Sent from an my awesome kindle fire.
Click to expand...
Click to collapse
Will it be safe to assume you mean ROM. Java coding is required. But seeing that you are asking this you should learn more about android system and start with some apps than when you get the hang of app development you could work from there and maybe even make money out of it.
also If you mean apps java will be the best way and ensure that it will run on more devices but there are also some android app maker but they are not free
BTW all the info should be taken with a grain of salt seeing I am not a developer
No you don't really even need to know Java.
You will need an Ubuntu installation (x64). I recommend 12.04. I can tell you for sure that it works on 12.04
Here are some helpful links.
https://github.com/KFire-Android/android_local_manifest/wiki
http://forum.xda-developers.com/showthread.php?t=1751833

Development using Mac OS X 10.8.x

Hey everyone
I've got a MacBook Pro running the latest OS X Mountain Lion 10.8.2
My question to the SGS III community is, who develops ROMs and/or themes using this setup?
If so, what tools do you use, and specifically, what program do you use to create recovery-flashable ZIPs? I have yet to find a 7zip equivalent for OS X
Any and all feedback here would be awesome!
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
jakew02 said:
Hey everyone
I've got a MacBook Pro running the latest OS X Mountain Lion 10.8.2
My question to the SGS III community is, who develops ROMs and/or themes using this setup?
If so, what tools do you use, and specifically, what program do you use to create recovery-flashable ZIPs? I have yet to find a 7zip equivalent for OS X
Any and all feedback here would be awesome!
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
You and I, are in the same boat. What most folks may do, is to simply run Linux or Windows in a virtual environment to be able to use the existing kitchens.
Anonymously_Unknown said:
You and I, are in the same boat. What most folks may do, is to simply run Linux or Windows in a virtual environment to be able to use the existing kitchens.
Click to expand...
Click to collapse
Yea I know. I mean I could easily partition my hard drive and install Ubuntu. However, I don't want to install grub, and keep the os x boot loader. Ran into some bad messes with installing grub with Ubuntu as a separate partition next to windows. After deleting the Ubuntu partition, grub would fail to load (obviously, I overlooked that part when partitioning the hard drive back to 100% windows, oops!).
So for simplicity's sake I want to install Ubuntu as a separate position WITHOUT grub. Or not at all, and just use os x ( my ideal setup, 100% of resources dedicated to one OS)
Is this making sense? Haha
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
I don't know of a tool for Mac right now. You will have to download VirtualBox and do the Ubuntu install from there if you want to get any support.
im not a dev but i have been looking into it. i have a pc and a mbp. android sdk has a mac version http://dl.google.com/android/adt/adt-bundle-mac-x86_64.zip u can use it with netbeans or eclipse. http://eclipse.org/downloads
MoeisHere said:
im not a dev but i have been looking into it. i have a pc and a mbp. android sdk has a mac version http://dl.google.com/android/adt/adt-bundle-mac-x86_64.zip u can use it with netbeans or eclipse. http://eclipse.org/downloads
Click to expand...
Click to collapse
He wants to cook his own ROMS, now write apps for his device. He wants a native Kitchen.
Yes, I want to be able to due/compile apk's for theming, as well as compile builds.
A good starting block though, what is a good equivalent for 7zip, and how do you guys compress .zip files for recovery?
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
jakew02 said:
Hey everyone
I've got a MacBook Pro running the latest OS X Mountain Lion 10.8.2
My question to the SGS III community is, who develops ROMs and/or themes using this setup?
If so, what tools do you use, and specifically, what program do you use to create recovery-flashable ZIPs? I have yet to find a 7zip equivalent for OS X
Any and all feedback here would be awesome!
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=36346945
This thread has your answer. I'm trying it myself.

Categories

Resources