【DEV】 BotBrew - package manager - Galaxy Y GT-S5360 Themes and Apps

guYs,
check out this awesome package manager BotBrew. mostly of use to software developers. works like a charm on SGY (at least the debug version, which is attached)
http://forum.xda-developers.com/attachment.php?attachmentid=978569&d=1333376821
http://botbrew.com/manual.htm
use on PC: winSCP, PuTTY
on android: SSHDroid, botbrew, terminalIDE
then you have bbsh (from botbrew) & bash (terminalIDE)
run botbrew app (root required), then
install "hello"
adb shell botbrew hello
or equivalent
adb shell
su
cd /botbrew/bin
./hello
asf.
directories used:
/data/botbrew --------------- you may need to delete manually here to regain space after apk uninstall
/botbrew
/etc/opkg
/system/share/opkg
see also portal news on botbrew and the tag botbrew below for link to release thread.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

mai77 said:
guYs,
check out this awesome package manager BotBrew. mostly of use to software developers. works like a charm on SGY (at least the debug version, which is attached)
http://forum.xda-developers.com/attachment.php?attachmentid=978569&d=1333376821
see also portal news on botbrew and the tag botbrew below for link to release thread.
Click to expand...
Click to collapse
@mai77, for what use is this thing mai77? hehe dont know what is this

I thought its used to see all installed packages in our device. including the apk's, jar, and binary file...isn't it mai?

well it installs all the GNU binaries, for starters.
gives you regular LINUX shell environment.

I thought busybox is already more than enough for a mid user like me (lol)

Thanks for making this thread, mai77. Thought I'd chime in
Indeed, the busybox that comes with your rooted ROM is probably more than enough for most users. BotBrew also depends heavily on busybox, but comes with a more complete build that has almost all of busybox (we try to include applets rather than exclude them). There are also tools that aren't in busybox, such as dropbear and rsync.
You're right that most casual Android users would probably not use these command line tools, but BotBrew really wants to be a tool for community developers to distribute scripts/enhancements/whatnot, and for users to find all these offerings in one place. The native tools currently in the repositories serve to support package management and to show off the dependency resolution functions (i.e. to install A, you need B and C, so all three pieces of software get installed).
I hope that clears it up a bit.

$0.00 Apple
with this package manager in place, APPLE stock prices will drop like a ******* stone

Hey, any chance you can bring in package Apache and it's dependencies?
I have an idea for a cool episode of XDATV sometime in the far future. I'd like to have apache to remote control the device.

Would lighttpd do? If not, I'll look into getting Apache; dependencies included, of course.

inportb said:
Would lighttpd do? If not, I'll look into getting Apache; dependencies included, of course.
Click to expand...
Click to collapse
I've never used that one. It probly would. I need something that can run scripts on the phone.

What kind of scripts? Shell scripts? PHP scripts?
If you need Python or Ruby, I've already seen django- and rails-based Web servers (which could run shell scripts too, using subprocesses) working.
/edit:
Okay, here's a basic demo of running shell scripts remotely using a Python-based Web server: https://gist.github.com/2373824
You will need bottle.py, which you could obtain from http://pypi.python.org/pypi/bottle/0.10.9 (all you need is bottle.py from the archive)
Anyway. Put both files in the directory, make (chmod) webctrl.py executable, and run `botbrew ./webctrl.py`. Now navigate to http://ip-address-of-android:8080/ps to get a process listing, and so on. If you want, you could make a runit script to start this service at boot. But before you go any further with this, be aware of the security implications -- you're exposing a root interface to the world, so it would be a good idea to lock it down somehow and/or drop root privileges.

Yeah. Just shell scripts. If you check out developer.adamoutler.com and go to the hackaday santapede repository ive set up, im basically going to reincarnate that. It is a web server that communicates with a serial device that controls another device. I think it would be pretty cool to set up a phone as a project brain to leverage its wifi capabilities... amongst other things.
Im mobile on a stock nook tablet now so i cant copy pasta but you can see a video of the desktop linux webserver controlling a robotic dancing, walking santa with a machine gun and rocket launcher on my youtube channel.. youtube.com/outleradam this is along the line sof my idea.

I think that's doable; I updated the script so that it does essentially the same thing as Apache+CGI. Just clone that gist, add bottle.py, and run webctrl.py
But are you able to get a connection from your Android device to Santa? I'm guessing that if you could get your Android device to act as a USB host, and it has /dev/ttyUSB0, the script would work unmodified.

think could you port wget or aptitude? not sure about the dependencies but that would be a little easier to use then subversion. does botbrew have repo support?

Wget, aptitude, and subversion are three totally different tools. Busybox has a wget applet, so all you need is a symlink. Aptitude would not be very useful without dpkg. Subversion is already available, and so is git. What do you mean by repo support?

inportb, you're a hero...
inportb, I've been following your work for about 4 months (repo.bash and even more opkg & botbrew...), and I've been amazed...!
i ****ing love botbrew, but i flashed a rom (cleanblank) on my sgs2 (i9100) and i can't find botbrew on the market..
can you fix that? or it's not your fault?
also, please, i'm begging you... i want PHP 5! please! i can't compile it! compiling windows is easier!!!
is there any possibility of compiling PHP for ex. on my device (autoconf+gcc+make)?
how can i create an opk after compiling?
a detailed version of setting up the toolchain on Arch linux?
thank you for your time!!
keep up the good work!
edit: may you compile bash too?

Not to worry... all this is coming soon because BotBrew+1 will use dpkg instead of opkg (so you could install Debian packages, or a complete Debian if you wanted to). This is taking some time because the GUI needs to be redone, but the minimal dpkg core is available as a tech demo "PengDroid". I have yet to figure out how to translate the "service manager" concept, but I'm thinking. Also, the toolchain is not going away; in addition, I have built an NDK that runs on PengDroid but generates binaries for stock Android/ARM, in an effort to support onboard development.
I know that documentation is lacking... for now, please feel free to ping me (Pinako) on IRC (#botbrew on irc.freenode.net) about that. I'm currently mobile, but I'll pass on the instructions when I find a good desk for my netbook. Thanks for your continued support!
Regarding BotBrew support for your ROM: it should be compatible with systems based on Android 2.2+. If you navigate to the app page using your Web browser, does it say that it's incompatible?
btw, I think Arch is an excellent distro; even though I mostly use Debian, I took hints from Arch while designing the cross-building tools.

I tried to use botbrew to install the "lighttpd" package.. this is what was returned on my Infuse4G.. Otherwise botbrew works fine.
For some reason it's reporting that it is out of space. It is not. There is plenty of space. You can see that at the bottom where I ran the "df" command.
Code:
1|[email protected]:/ $ opkg install lighttpd
Package android-framework-pdroid-v6 version 1.3.2-4 has no valid architecture, ignoring.
Package android-framework-pdroid version 1.3.2-6 has no valid architecture, ignoring.
Package android-framework-pdroid version 1.3.2-6 has no valid architecture, ignoring.
Package android-framework-pdroid version 1.3.2-4 has no valid architecture, ignoring.
Package android-framework-pdroid version 1.3.2-2 has no valid architecture, ignoring.
Package android-framework-pdroid version 1.3.2-7 has no valid architecture, ignoring.
Package android-framework-services-v6 version 0.0.4-6 has no valid architecture, ignoring.
Package v6-supercharger version 8.8.1-2 has no valid architecture, ignoring.
Installing lighttpd (1.4.30-1) to root...
Copying /botbrew/var/tmp/opkg/archives/lighttpd_1.4.30-1_armeabi.opk.
Installing libbz2 (1.0.6-3) to root...
Copying /botbrew/var/tmp/opkg/archives/libbz2_1.0.6-3_armeabi.opk.
Collected errors:
* copy_file: unable to preserve ownership of `/botbrew/var/tmp/opkg/tmp/opkg-Nn3447/lighttpd_1.4.30-1_armeabi.opk': Operation not permitted.
* copy_file: unable to preserve ownership of `/botbrew/var/tmp/opkg/tmp/opkg-Nn3447/libbz2_1.0.6-3_armeabi.opk': Operation not permitted.
* pkg_get_installed_files: Failed to make temp file /botbrew/var/tmp/opkg/tmp/opkg-Nn3447/libbz2.list.Uo3447.: No space left on device.
* pkg_get_installed_files: Failed to make temp file /botbrew/var/tmp/opkg/tmp/opkg-Nn3447/libbz2.list.WD3447.: No space left on device.
* wfopen: /botbrew/lib/libbz2.so: Permission denied.
* wfopen: /botbrew/lib/libbz2.so.1.0.6: Permission denied.
* wfopen: /botbrew/lib/libbz2.so.1.0: Permission denied.
* pkg_write_filelist: Failed to open //botbrew/var/lib/opkg/info/libbz2.list: No space left on device.
* opkg_install_pkg: Failed to extract data files for libbz2. Package debris may remain!
* opkg_install_cmd: Cannot install package lighttpd.
* opkg_prep_intercepts: Failed to make temp dir /botbrew/var/tmp/opkg/tmp/opkg-Nn3447/opkg-intercept-qk3447: No space left on device.
255|[email protected]:/ $ df
Filesystem Size Used Free Blksize
/dev 221M 32K 221M 4096
/mnt/asec 221M 0K 221M 4096
/mnt/obb 221M 0K 221M 4096
/mnt/.lfs: Function not implemented
/system 273M 227M 46M 4096
/cache 26M 4M 22M 4096
/data 1G 406M 1G 4096
/efs 5M 819K 5M 1024
/mnt/sdcard 13G 5G 7G 32768
/mnt/secure/asec: Permission denied
/mnt/asec/com.outfit7.talkingtom-1 13M 8M 4M 4096
/botbrew 1G 406M 1G 4096
/botbrew/run 221M 0K 221M 4096
/mnt/asec/com.ValhallaStudiosBifrost.Photon-2 14M 12M 2M 4096
/mnt/asec/com.inertsoap.fingerzilla-1 27M 25M 1M 4096
/mnt/emmc 7G 749M 6G 32768
1|[email protected]:/ $
p

Do you have superuser privileges? It seems that it was not able to access some files.

inportb said:
Do you have superuser privileges? It seems that it was not able to access some files.
Click to expand...
Click to collapse
Yeah. Botbrew is installed and working.. maybe it has system dependencies that are incompatible with Android 4.0? I am having a problem with my Galaxy Nexus and my Infuse 4g. The infuse4g is running CM9. The galaxy Nexus is running 4.0.2 AOSP stock. Both devices are rooted. Is there some way to increase logging levels?
I have a feeling it has to do with the way 4.0 handles storage.

Related

APK Manager 4.0 for Mac OSX (64-bit)

EDIT: How and why did this post end up in Atrix Q&A? That is entirely unrelated. If a mod sees this, please return this thread to it's original location at Moto Xoom Development.
After waiting for way too long to have apk manager working on OSX, (so i can do my themeing natively instead of GFX in OSX and compiling in windows/linux) I have decided to port it myself. This has only been tested on an intel-based core 2 duo mac running snow leopard 10.6.8.
Credit for original APK Manger (windows) goes to: Daneshm90
Credit for linux port which this is based off goes to: farmatito
Update: This has been superseded by one of the most excellent rewrites of an application which I have had the pleasure to use. You my find s0niqu3's great work here: http://forum.xda-developers.com/showthread.php?t=1285130
---------
And one more thing: Shout out to Team EOS!
Awesome!!!!!!!!!!!!!!!!!!!!!!!! +9999999999
What are the capabilities of this and his can i use it?
Never messed with a apk manager before but would like to
crackmulah said:
What are the capabilities of this and his can i use it?
Never messed with a apk manager before but would like to
Click to expand...
Click to collapse
Apk Manager is an "automated" environment for apktool and a couple other utilities. Together, it allows you to extract/zip/sign/decompile/recompile and otherwise change apk files. It is most widely used to change strings (sections of text) and graphics within popular apks such as framework-res.apk and SystemUI.apk (for theme development) or adobe's flash apk (for hulu support).
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
MAD Industries said:
After waiting for way too long to have apk manager working on OSX, (so i can do my themeing natively instead of GFX in OSX and compiling in windows/linux) I have decided to port it myself. This has only been tested on an intel-based core 2 duo mac running snow leopard 10.6.8.
Click to expand...
Click to collapse
Hey,
First, to the OP, Thanks for this!!!!
I had been casually working on my own port from the windows version, but now there's really no need. I've tested briefly on OSX 10.7.1, mid-2009 c2d macbook pro, 64-bit, and it seems to work great so far.
chaostic_2k1 said:
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
Click to expand...
Click to collapse
For the adb error, uhm, really? Anyone that's going to be using this should have the knowledge/ability to add adb to their path. And yeah, I know, it sounds like you were just trying to give the OP a pointer to make it idiot proof, but this really seems like the bare minimum knowledge requirement that someone should have if they're going to use a tool like this.
For anyone that doesn't know, here's one easy way (on osx there are about a million ways to add to $PATH) to add adb to your $PATH:
edit your bash profile file (create a new file if it doesn't exist yet) here: ~/.bash_profile
Add the following:
Code:
export PATH=/path/to/your/sdk/tools:$PATH
export PATH=/path/to/your/sdk/platform-tools:$PATH
(Technically only the second one is necessary for adb to function, I recommend adding them both for quick ddms access too.)
The sox issue on the other hand I can understand, since its not included with OSX. But it is simple enough to install SOX with all dependencies using macports or homebrew. If you plan on doing anything at all with android development, hacking, modding, etc., on OSX, using one of these tools is absolutely essential. I personally use homebrew, because its immensely faster than macports on my laptop, and homebrew will use OSX's default x11, python, etc. binaries, whereas macports will compile its own second copy of x11, python, etc..
for macports:
Code:
POSIXLY_CORRECT=1 sudo port install sox
for homebrew:
Code:
brew install sox
Anyway, hopefully someone finds this useful, else I'll just come back and delete the post in a few days.
Cheers
chaostic_2k1 said:
Wouldn't run out the box. Had to add my adb to path (might be easier just including adb in the "other" folder, as adb is resource-independent and nothing has to be installed for adb to work on a mac [Just download and run]).
The other is "sox". Seems to be a open-source command line audio converter, right? Not part of the standard OSX install. The apkmanger should either disable any sox related (It already does on reading the script), in which case it should be removed as a hard error, or include it in the other folder.
Click to expand...
Click to collapse
Though it is very easy to install/add adb to path, I agree that it wouldn't hurt to throw it in the other folder just in case.
As far as sox goes, i don't know many who are using apk manager for ogg files. Those who are I figured would speak up when the time came and I would work with them to come to some sort of solution. Are you getting errors from sox missing? If so, you are absolutely right that the errors should be fixed. I did take steps to disable it from the script. If i missed something, feel free to post a log and I will take care of it.
Just went through the whole installation, from installing ADB with it's own path to setting up SOX with homebrew and I gotta say, I'm a noob but I got it all done within a six pack! lol Thanks for the port mang! I can finally put away the PC to modify apk's!
All I did to "fix" it was change
Code:
# Test for needed programs and warn if missing
ERROR="0"
for PROGRAM in "optipng" "7za" "java" "sudo" "aapt" "sox" "adb"
to
Code:
# Test for needed programs and warn if missing
ERROR="0"
for PROGRAM in "optipng" "7za" "java" "sudo" "aapt" [COLOR="Red"]#[/COLOR]"sox" "adb"
Since sox isn't supported in the mac port yet (the options are not in the menu), no need to throw a fatal error, or require someone to install sox. You might just want to comment out "sox" in that line and leave adb uncommented though, since the adb commands are enabled.
As for adding adb to the package, well, it's a convenience thing. APKmanager should be a one stop shop for working with apks like that, and having adb added would help with that. I personally don't like mucking about too much with installing packages on my laptop, so I keep adb in my Applications folder, and just cd to it. And I manually run many things. I wouldn't be using APKmanager to install or pull apks anyway.
Hi again,
For anyone else that's doing their smali hacking on mac, I was seriously annoyed by the lack of syntax highlighting in my two favorite editors, Coda and SubEthaEdit, so I made my own syntax mode for them.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The screenshot is from subethaedit (notice it supports code-folding at the ".method" level, ) and is somewhat outdated, I fixed the mode already to properly hightlight all variables after parameters.
My thread for the mode on XDA is here: http://forum.xda-developers.com/showthread.php?t=1257025
or you can head straight to my blog to download them here: http://wp.me/p1JZM0-O
Cheers,
Hi again,
So I started hacking your APK manager for mac today to hopefully bring it closer in-line with the windows branch.
And first thing was simply verifying that optimize png and ogg work if you install optipng and sox, and yes, they both do. So in addition to my tip above to install sox, also install optipng:
Macports:
Code:
POSIXLY_CORRECT=1 sudo port install optipng
Homebrew:
Code:
brew install optipng
Then go into the script.sh and uncomment the relevant lines that call those functions (menu lines 2, 14, 16 and answers for opt, bopt and ogg) and comment out the removal/error lines instead.
So far I've done the easy steps, added user selectable compression level, max java heap size, batch signing support, and added the z/p/zp options for batch optimizing.
I'll try to get this all finished this weekend so somebody else can test it too, and I'll try to include at least the 64-bit optipng binary I compiled, and possibly 64-bit sox and all its dependencies too.
Cheers,
hi, i've tried this (decompile and compile Browser.apk):
http://forum.xda-developers.com/showpost.php?p=17682521&postcount=19
any ideas?
thx
maile76 said:
hi, i've tried this (decompile and compile Browser.apk):
http://forum.xda-developers.com/showpost.php?p=17682521&postcount=19
any ideas?
thx
Click to expand...
Click to collapse
Hi,
I've spent the past few days greatly improving the Mac version of APK manager. Well, really its almost a complete re-write. I've added 32-bit/64-bit all-in-one support, re-enabled old disabled features, added project support, system apk "keep" folder options, error checking, debug info, etc., etc., etc.
Really, after writing ~600+ lines of code, I can't even remember every change I've made at this point.
Anyway, I'm still testing and tweaking it multiple times a day, so I'm not really ready to release it here to the masses at XDA, but if you visit my blog, you'll find a current download link.
Until further notice though, I ask is that you please, PLEASE, don't link directly to the download, and please don't re-distribute here. If you want someone else to download my version, please just link them to this post.
I'm not trying to drive clicks or anything like that, I just don't want a billion questions about how to use my mod right now when its not finished, and is likely to change every few hours anyway.
Cheers,
Hey again,
So I'm finally happy enough with my version of APK Manager for OS X, that I released it here on XDA: http://forum.xda-developers.com/showthread.php?t=1285130
I've brought it completely up to date with the windows feature set, and exceeded it in many, MANY ways.
Cheers everyone

[2015/03/07] BotBrew: *nix tools for Android

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The remainder of this post contains historical information. Please read the update. Thank you.
__________________
​ BotBrew is
a repository of *nix software (such as bzip2, curl, openssl, python, and ruby) for ARM-based Android
a package manager powered by Opkg, a lightweight program that feels like dpkg+apt
a service manager powered by runit
a build system for anyone looking to build and package his/her own scripts and programs
Thanks: mateorod and xela92 for testing the heck out of this thing; racks11479 for delicious artwork; you for using this project, reporting bugs, and making it better
If I missed anyone, let me know!
Warning: BotBrew has been used successfully on a variety of rooted ARM devices, and is developed using a Nook Color, but you should still make backups before trying, just in case.
Install BotBrew
[ Google Play | BotBrew.apk | BotBrew.debug.apk ]
Read the Quick-Start Guide & Manual
[ botbrew.com/manual.htm ]​
Click to expand...
Click to collapse
Alternative (Command Line) Installation
If the BotBrew app fails to bootstrap, you might be able to bootstrap using the command line:
Code:
wget http://repo.botbrew.com/anise/bootstrap/install.sh -O- | su
Such a setup should be compatible with the app, though it may not work perfectly. The manual has more tips for command line usage.
Enjoy!
Install BotBrew+1
The next release of BotBrew, named basil, will be powered by Debian's Dpkg and Apt. This is a non-trivial update, so the app is being rewritten from scratch. I've posted some usage instructions, in case you are adventurous enough to try. Thanks! This app may be used in parallel with the current-stable BotBrew release, without conflict.
[ Google Play | GitHub ]​
Click to expand...
Click to collapse
Changes
5/20: the next release of BotBrew is in development!
4/20: improve support for long package names; fix list of repairable packages
4/16: new UI for devices with wide-enough screens; experimental support for moving to /sd-ext
4/9: Google Play release of BotBrew "anise"; previous release is now BotBrew.oldstable.apk; lots of updates since oldstable
3/16: lots of installer and filesystem changes for cross-device compatibility, work started on multiuser support
3/10: installers now depend on botbrew-core, which will (in the future) pull in basic packages that everyone should have
3/4: swipe left and right to see all/installed/upgradable packages
3/3: added ability to start installation of *.opk files from file managers
3/2: added ability to start installation from browser after clicking *.opk link
3/1: fixed some BotBrew.apk bugs; updated command line installer
2/27: reworked BotBrew.apk; new packages in stable repo
2/18: testing repository now open; new opkg -- please read before upgrading
2/16: make BotBrew.apk display latest versions in the package list
2/2: bugfix release of BotBrew.apk
Well, I now have python, ncurses, openssl and a couple other packages running on my nook. I have indeed printed 42, and even wrote my own (proprietary) code to advance the project some that printed 43. Advanced scripting.
But seriously, this is sweet. I am all over anything that opens up this device. I don't think I have ever bought a piece of hardware that has so outstripped my expectations.
Thanks for the program. I will report back after I play with it some.
Wow, what a great idea! Looks like my Nook will be used for a bit more than entertaining my family with casual games; nice to have some productivity back I was thinking about installing Ubuntu on my Nook for this sort of thing, but there's no need anymore.
It would be great to get this a bit more recognition, and getting more useful things such as gcc or even the GNU toolchain installable with this package manager. Might put a link in my signature, if you don't mind.
Now to look for an affordable lightweight bluetooth keyboard...
You read my mind I got binutils, gmp, mpfr, and mpc working earlier today... and gcc is in the pipeline. My main reason for wanting a native gcc is that some software (such as python) do not like to be cross-compiled at all. I'm having a bit of trouble with gcc, but I'll keep hacking away at it.
Please, go right ahead and share this thread; this is a young project but I think it could be more useful. On the one hand, there's a whole lot of free software (such as the GNU stuff) just asking to be built and packaged; on the other hand, many people who hang out around here have a few scripts/programs of our own to distribute.
In case you're interested, here's where all the packages live. There are actually two more ways to install (remote and local) stuff using Opkg:
Code:
opkg install http://host/path/to/package.opk
Code:
opkg install path/to/package.opk
Very nice project !!!
I have python 2.7 standalone on android.
One problem, in python commandline i can't import hashlib, i can fix this?
Thanks.
So, I just got a working build of GCC+binutils and pushed the packages to the stable repo. Please keep in mind that for now, stable means I tested it a couple of times and it works, so be careful and use at your own risk.
To install gcc and binutils, make sure you have about 160mb of storage free in /system and run:
Code:
opkg update
opkg install gcc-4.6
That's about 70mb's worth of downloads, and my server's underpowered, so please wait patiently and retry if it fails (failure when receiving data from the peer). When that's done, you might want to compile something:
Code:
cd /cache
wget http://dl.dropbox.com/u/1213413/htdocs/agcc/hello.c
gcc -o hello hello.c
And if that completed successfully, you should have a new executable, which you could run for a classic greeting. I was not able to get the C++ libraries compiled, but C code should compile alright.
@Fritos2: I've been trying to fix this issue, but I'm not confident that I could do it without help. Python (and Perl) are very resistant to cross-compilation, and even after I hammered it into submission, some modules do not work. Another module that I'd really like is readline, which gives you enhanced editing capabilities in the interactive interpreter. I'm a Pythonista, but I've got to say: Ruby does cross-building right. Even sqlite3 supports readline. I suspect that Python might have to be compiled natively, and this is where native gcc comes in.
I'd appreciate any help, of course
I'll follow this project with great interesting.
Hey guys, there have been a few updates:
opkg's lock file has been moved to /cache/opkg/lock so there's no need for a read-write /system just to query packages
gnupg has been packaged, for those who like to sign their stuff
python... well, I'm still working on it >.<
Anyway, I thought I'd do something to make this project more accessible. I don't have any apk's for you yet, but I've attached a screenshot of the work-in-progress
I am very impressed with the progress. I am a super-noob but have enjoyed toying with the packages from your opening post. I haven't had time to do much but explore, but this sure does open up a whole new world for the nook, from an accessability stand point alone. I wouldn't be suorised to see an uptick in interest as some if the more experienced coders are able to turn their attention from cm9.
I will probably install those latest packages sometime this weekend. Just real strong stuff.
Edit. Ok, o I just went ahead and did it now. Obviously, I couldn't get it to work. Have downloaded the FCC and got the hello file fro the dropbox. I ran the gcc -o hello hello.c and was returned a hashtag only. If I ran gcc hello, it outputted the hello program code. I tried several things basically willynilly until I got tired of getting a fatal error and having the build canceled.
If this is too basic and will clog the thread, I would happily accept a pm with a good tutorial. Thanks a bunch.
The problem with python maybe relationed with python-devel package?
Sorry is the question is stupid, i'm so noob.
The Python build process has two steps: first, you get the main Python executable, and then you get the modules. The executable built in the first step is used to test the modules in the second step. So, naively cross-compiling Python would result in most modules not passing the test (because you cannot actually run the Python you just built), and these modules would be removed. As it turns out, you could patch the build scripts to run the tests using a host-native Python, but even then, there are a few modules with particular requirements that still don't pass. This is where we are now, but I think we could do better.
Okay, so more progress: BotBrew.apk is out in the wild! I decided to put it off until I got some basic functionality working. What is this?
a basic GUI for package management
lists all packages
searches for packages by name
shows package information
installs/upgrades/removes packages
manages list of repositories
I've only really tested it with CM7, but it works on the latest CM9 previews as well.
Screenshots
​
mateorod said:
Edit. Ok, o I just went ahead and did it now. Obviously, I couldn't get it to work. Have downloaded the FCC and got the hello file fro the dropbox. I ran the gcc -o hello hello.c and was returned a hashtag only. If I ran gcc hello, it outputted the hello program code. I tried several things basically willynilly until I got tired of getting a fatal error and having the build canceled.
Click to expand...
Click to collapse
No worries. If gcc did not complain and dropped you back in the shell, this means it's done! Just list the directory to find a new file named hello, which you could run:
Code:
# gcc -o hello hello.c
# ls
backup download hello.c opkg
dalvik-cache hello lost+found recovery
# ./hello
hello world
#
I hope this helps!
Sorry if this sounds ignorant but is there any future usage aside from being a very interesting project? Will we be able to distribute open source projects / software specifically made for Android devices like on common Linux distributions?
BobbyBest said:
Sorry if this sounds ignorant but is there any future usage aside from being a very interesting project? Will we be able to distribute open source projects / software specifically made for Android devices like on common Linux distributions?
Click to expand...
Click to collapse
A valid question, I think. BotBrew has the potential of becoming a Cydia of sorts, distributing system extensions, interface customizations, and other useful software for rooted Android devices. Android has a vibrant community of programmers and scripters, but there isn't any standard way to manage software that are not apps. And there's a large body of open source Linux software that might work well on Android. Of course, BotBrew is also able to handle root apps that live in /system/app (i.e. gapps); for user-level apps, the various app stores already work quite well.
In order for this to become a serious platform, we'll need a couple of things: a solid technical foundation, developer support, and a user base. I've been making progress mostly towards the first point; hopefully the rest would follow.
Well I'll be. Yeah it worked. Who knew?
Okay, so that's great! I have printed 43 (my own design) and now the standard greeting has been successfully built and ran as well. I must toodle with it some more. What would you recommend to try? Remember, i am slow-witted and totally inexperienced.
If you say print 44 i will totally understand. : )
How about this, i would like to learn and i would like to help you with your program. I will probably be of most use as a guinea pig, but since i spend a fair amount of time jiggering system files and databases, I have to complete wipe about once a week. failure or risk doesn't bother me.
---------- Post added at 02:27 AM ---------- Previous post was at 01:51 AM ----------
Okay, i just got the apk. I autoremoved all installed packages. I installed opkg, python, gcc (binutils came along as a dependency) and the hello executable. But when i went into a terminal once i cd cache, it only lists opkg out of the five packages. This worked when i did the wget through the terminal. The packages show as installed within the botbrew app (nice icon and UI, btw).
I known I am doing something very simple incorrectly. Do you have enough information to be able to tell me what that is?
Congrats on a successful build! Now that you have a working program, you could package it up for distribution
What's more, you could do it directly on Android. Let's call this package mateorod-hello, prefixing it with the vendor's (your) name to avoid conflicts with other variants. We'll also rename the executable itself.
We'll install the program to /system/bin, where it would feel at home with all the other programs; so we create a staging directory tree that mimics the structure of an Android system, but contains just the one program:
Code:
cd /cache
mkdir -p system/bin
cp hello system/bin/mateorod-hello
Next, we need a control file to describe what's in the package. It might be easier to create the file on a computer and push it over, but we could also create it using the command line:
Code:
echo "Package: mateorod-hello" > control
echo "Version: 1.0" >> control
echo "Architecture: armeabi" >> control
echo "Description: a greeting from mateorod" >> control
And, finally, a magic value to signify what kind of package this is:
Code:
echo -n "2.0" > debian-binary
Okay, now let's pack this up:
Code:
tar zcvf data.tar.gz system
tar zcvf control.tar.gz control
ar -r mateorod-hello.opk debian-binary data.tar.gz control.tar.gz
We now have mateorod-hello.opk, which we could test by installing:
Code:
opkg install mateorod-hello.opk
Now that it's installed, the program within is also available:
Code:
mateorod-hello
This is quite a bit of work for something that could just be pushed over adb, but it could be automated and it works tremendously well for more complex software. The control file helps keep track of versions, and lets you specify dependencies too.
Oh, and to clean up a bit: (the first command makes sure you're in /cache and do not accidentally erase /system)
Code:
cd /cache
rm -r system control data.tar.gz control.tar.gz debian-binary
/edit:
mateorod said:
But when i went into a terminal once i cd cache, it only lists opkg out of the five packages. This worked when i did the wget through the terminal. The packages show as installed within the botbrew app (nice icon and UI, btw).
Click to expand...
Click to collapse
What did you do, cd /cache then ls? If so, you're most likely looking at the /cache/opkg directory, which contains temporary data. If you want to see what's installed using the command line, try opkg list-installed
I uh... picked a random icon I had lying around, and I plan to swap it out when I have time to make one. Thanks, though :3
The amount of help you're offering is just staggering. I will put the above together tonight and will report back.
I have a bug here in the GUI.
Rotation makes the app start looking for updates again.
edit: Reentering does the same...
opkg has then problems with set locks.
(CM7 KANG by MiRaGe)
Currently trying to install gcc to compile and run a small program...
edit2: gcc-4.6 installed. Still trying to compile a small prog. Will continue tomorrow...
Edit3: Well, problem with GUI fixed itself somehow.
Still, maybe you should check out how the GUI behaves during the installation process when rotated.
Yes, I can see how this bug could occur, and it should only happen during the first run. When the package cache is empty, the app tries to update by itself, and it seems that rotation causes something to restart. I've uploaded an update, which hopefully fixes this issue. Thanks for the report.
/edit:
Bug fixed for real. You may now rotate with impunity. Man, why can't Android have sensible defaults?
Okay, took me awhile, but...
$ export PATH=/data/local/bin:$PATH:.
$su
# cd cache/
# wget http://dl.dropbox.com/u/1213413/htdocs/agcc/hello.c
Connecting to dl.dropbox.com (174.129.218.194:80)
hello.c 100% |************************************| 93 0:00:00 ETA
# gcc -o hello hello.c
#ls
dalvik-cache hello lost+found recovery
download hello.c opkg
# ./hello
hello world
#mkdir -p system/bin
# cp hello system/bin/mateo-hello
#echo "Package: mateo-hello" > control
#echo "Version: 1.0" >> control
#echo "Architecture: armeabi" >> control
# echo "Description: a word from Mateo" >> control
#echo -n "2.0" > debian-binary
# tar zcvf data.tar.gz system
system/
system/bin/
system/bin/mateo-hello
# tar zcvf control.tar.gz control
control
# ar -r mateo-hello.opk debian-binary data.tar.gz control.tar.gz
ar: creating mateo-hello.opk
#opkg install mateo-hello.opk
Installing mateo-hello (1.0) to root...
Collected errors:
Two sets of collected errors related to system not being mounted R/W excised
Installing mateo-hello (1.0) to root...
Configuring mateo-hello.
#mateo-hello
hello world
#
So there it is. I just followed your more-then-generous guide, with some phrasing changes to show i didn't just copy/paste.
Some notes from the inexperienced:
-As you can see, I had to use the wget command to work on the hello.c script. I had hello as an installed package through the Botbrew GUI already, but no matter what permutation of hello command I ran, gcc would not recognize it as an input file. Just to say that your guide to the initial build, as written, i don't think will work for anyone who installs the packages through the apk. I don't know the solution, but i bet it's simple.
Edit: I guess the package you get through your apk is a fully built executable? I hadn't gone through the later steps when I first tried to build it, so I never thought to simply enter "hello". Output a much fancier greeting then the one I built. Capital letters and an exclamation mark! Very nice.
- For other newbies- make sure that system is mounted R/W through root explorer or some such. And if you employ a firewall, if you intend to use the wget command, not only do you need to allow your terminal through, you also need to allow applications running as root! I am sure this is news to no one, but it cost me FOREVER!
I feel like this constitutes progress. Thanks for all the work!

[LINUX] Linux-on-Android project (incorporating Ubuntu installer)

Please Note this thread is just for support to Galaxy Note owners, as this is the device I own and thus can give you much better support, for all other devices please uses the main thread HERE
The TEAM!
While for the past 5 months it has just been me its time to bring the project to a level I can't maintain by myself, cue the birth of the Linux on Android TEAM
The team consist of:
Myself
tuxling
Think you have something to bring to the team? then contact me and we shall talk
What is this all about?/Why put this on my device?
This projects aim is to bring a range of linux distros to your android device through a method known as 'chroot', see it has running a linux distro within a virtual machine on your phone. You can access this virtual machine and run it on your phone without causing any damage to your device, or having to overwrite anything. Why might you want this? well my apps are designed to make the install and set up process as easy as possible (more so in the paid apps) while still giving you some flexibility. Once you have the distro up and running then you can pretty much run and install any linux software you like (so long as there is a arm port or it is not architecturaly depenedent), sure there a very few big benefits over what android itself can do but it is still pretty dam cool. (and with the free ubuntu version, hey its free does it matter how useful you find it?)
Wait this uses VNC why shouldn't I just VNC to a computer?
VNC is used to access the GUI as at the moment I have not yet implemented a native way of viewing the GUI. But the Linux distro itself is running within the phone and can be controlled via the terminal app so if your a seasoned Linux user you may never even want to use the GUI
What is Chroot?/How does this work?
"A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children" - http://en.wikipedia.org/wiki/Chroot
This method of running linux distros with android has been around for some time. I have worked on my scripts to make the process more user friendly and give you far more options from the word go.
The scripts start by mounting the ubuntu image file within the android file system and then mounts the sdcard and if ou have it internal memory within the ubuntu file system.
Chroot is then used to change the root directory to that of the mounted ubuntu and a bash shell is then opened to allow you to control Ubuntu this is kind of like 'booting' the OS.
The likes of VNC and SSHD are then set up when ubuntu is 'booted' to allow you to connect to the GUI if you require it.
Interested?
Ok so you want to get one of the support linux distros on your device, great welcome to the team
But first you will need to find out if your device is compatible with the method before anything else, this method 'should' work with pretty much any device but some ROM's/kernels will not work as they do not have loop device support etc.
HERE is a list of working devices and ROM's/kernels but remember just because its not on the list simply means no one has told me its working, it could still work!
Free Apps/Files
There is now one free app called the Complete Linux Installer (NEW) which can be downloaded from the market, along with the image files.
Complete Linux Installer (NEW)
App [MARKET] [SOURCEFORGE]
Ubuntu 12.04 v4 Core [SOURCEFORGE] [TORRENT FILE] (just the basic install of ubuntu no GUI about 200MB to download and 750MB once extracted)
Ubuntu 12.04 v4 Small [SOURCEFORGE] [TORRENT FILE] (Includes the LXDE desktop about 400MB to download and 2GB once extracted giving about 1GB free space and includes normal programs like firefox)*
Ubuntu 12.04 v4 Full *[SOURCEFORGE] [TORRENT FILE] (The image you have been waiting for including Unity! plus a range of programs this is 1.3GB to download and 3.5GB once extracted with about 1.5GB free space)
Backtrack V8 Image *[SOURCEFORGE] *[TORRENT FILE]
Debian Core v4 *[SOURCEFORGE] [TORRENT FILE]
Debian Small v4 [SOURCEFORGE] [TORRENT FILE]
Debian Large v4 [SOURCEFORGE] [TORRENT FILE]
Paid Apps*
The paid apps are donation keys which unlock the extra features in the Complete Linux Installer (NEW), all the keys are the same but different prices to let you decide how much to 'donate'
Complete Linux Installer Donate £4 [MARKET]
Complete Linux Installer Donate £2 [MARKET]
Complete Linux Installer Donate £1 [MARKET]
Or if you donate more than £1 via paypal I shall send you a custom Donate key to unlock the extra features (if you donate more than £5 you will be added to the contribution list here and on the blog)
You can donate via paypal HERE
Once you have downloaded and installed the app just read through the install guide and soon you should have a complete linux distro running within your android device!
Something not working?
If you can't get it to run please post in this thread your device/ROM/kernel and what app/distro you are trying to use. Please also post a screen shoot of what the terminal app prints out when it try's to boot so we can help debug whats gone wrong
Love the project?
Well there are plenty of places you can show your support, of cause you can buy the paid apps, but you can also 'follow' the project on a range of social networks and also keep up to date with news on the projects blog!
Blog site
Support/Feedback/Feature Request
Sourceforge Site (Where all the free apps files are kept )
Facebook page
Twitter page
Google+ page
banner for users of the project if you so wish to show your support by having the project in your signature.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you would like to add this to your signature
You can simply add this code:
HTML:
[URL="http://forum.xda-developers.com/showthread.php?t=1585009"][IMG]http://zpwebsitefiles.com/images/loauser.png[/IMG][/URL]
Current Contributors
Project Developers
Zac Powell (myself) aka zacthespack
Martin Møller aka tuxling
App Translators
Marco Robles - Spanish Translation
Quentin Khan - French Translation
Stefanie Jung - German Translation
Ove Grunnér - Swedish Translation
Nikolay Suknyarov (NikolayS) - Bulgarian Translation
Other Contributors
Johan Vromans
Marshall Levin
Barry flanagan
Donators
Show me some screenshoots!
Ok ok heres a few screen shoots of the apps/distros in actions!
Videos
Debian Installer - http://www.youtube.com/watch?v=9cWl2qAf_vI
Ubuntu Installer - http://www.youtube.com/watch?v=UCqzs8yQTM8
Backtrack Installer - http://www.youtube.com/watch?v=lXYGmlMPqOU
Which Rom must be? Just official 2.3.6!?
xaoc747 said:
Which Rom must be? Just official 2.3.6!?
Click to expand...
Click to collapse
well i have stock and it works well but in thoery it should work on most ROMs just test and see really
Sent from my GT-N7000 using xda premium
I have iMilka (AOSP ICS 4.0.4), can i do?
Calaio91 said:
I have iMilka (AOSP ICS 4.0.4), can i do?
Click to expand...
Click to collapse
Try it!
Zacthespack, does large image of Ubuntu support installation of new applications? I had problems installing flash player on small image.
Boy124 said:
Zacthespack, does large image of Ubuntu support installation of new applications? I had problems installing flash player on small image.
Click to expand...
Click to collapse
Yes both do support installing new programs, but you have to remember this is a ARM image therefore normal programs for 32bit or 64bit computers will not work, you have to make sure you get a problem build for the ARM processor, if you use apt-get than the sources used all point to ARM ported repository's (in the case of debian this is merged into there normal repository anyway) therefore if you can install it from there you know it will work
I may try this. Looks interesting.
Does Audio work on this?
I.e. can you play audio from the Ubuntu Virtual Machine?
Would you maybe need a special version of VNC that supports Audio or do you possibly have another mechanism?
qazzi76 said:
Does Audio work on this?
I.e. can you play audio from the Ubuntu Virtual Machine?
Would you maybe need a special version of VNC that supports Audio or do you possibly have another mechanism?
Click to expand...
Click to collapse
sadly audio dosnt work, really the last thing to get sorted because yes VNC does not support audio, there are some methods to stream audio but getting it working on android is another story
linux running to rom stunner lcp5
linux running to rom stunner lcp5
begz said:
linux running to rom stunner lcp5
Click to expand...
Click to collapse
Great! And Ubuntu running on ICS?
Thanks for the app. For me, all I want is a full featured linux server (I don't need any GUI). So I tried to install the ubuntu small image, and disabled the dbus / vnc server in the ubuntu.sh script, just trying to play around in the terminal.
Some problems I found:
1) Missing /dev/random , /dev/urandom, which causing sshd fails to start.
2) /dev/null is not a character device.
So I fixed both above:
Code:
rm /dev/null
mknod /dev/null c 1 3
chmod a+rw /dev/null
mknod /dev/random c 1 9
mknod /dev/urandom c 1 9
After installing apache2, and try to start it, it fails to start. From /var/log/apache2/error.log:
Code:
[Sat Apr 07 13:03:15 2012] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Apr 07 13:03:15 2012] [emerg] (38)Function not implemented: Couldn't create accept lock
Also, try to ssh to localhost (I confirmed sshd now running locally by checking with netstat -pan) or ssh to any other host, got this error:
Code:
[email protected]:~# ssh [email protected]
Host key verification failed.
Also, when trying to ssh from another computer to that linux instance in the same wifi network, I got the following error:
Code:
imac:~ user1$ ssh [email protected]
[email protected]'s password:
PTY allocation request failed on channel 0
Please help.
Thanks.
winst said:
Thanks for the app. For me, all I want is a full featured linux server (I don't need any GUI). So I tried to install the ubuntu small image, and disabled the dbus / vnc server in the ubuntu.sh script, just trying to play around in the terminal.
Some problems I found:
1) Missing /dev/random , /dev/urandom, which causing sshd fails to start.
2) /dev/null is not a character device.
So I fixed both above:
Code:
rm /dev/null
mknod /dev/null c 1 3
chmod a+rw /dev/null
mknod /dev/random c 1 9
mknod /dev/urandom c 1 9
After installing apache2, and try to start it, it fails to start. From /var/log/apache2/error.log:
Code:
[Sat Apr 07 13:03:15 2012] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Apr 07 13:03:15 2012] [emerg] (38)Function not implemented: Couldn't create accept lock
Also, try to ssh to localhost (I confirmed sshd now running locally by checking with netstat -pan) or ssh to any other host, got this error:
Code:
[email protected]:~# ssh [email protected]
Host key verification failed.
Also, when trying to ssh from another computer to that linux instance in the same wifi network, I got the following error:
Code:
imac:~ user1$ ssh [email protected]
[email protected]'s password:
PTY allocation request failed on channel 0
Please help.
Thanks.
Click to expand...
Click to collapse
Hmmm this are not problems I have run into before, your best bet is to check forums for debian etc, this problems are likely not limited to my builds.
Out of interested what do you plan to use the server for?
You could try the debian core image there is no GUI included so it might be a more stable base to work from
zacthespack said:
Hmmm this are not problems I have run into before, your best bet is to check forums for debian etc, this problems are likely not limited to my builds.
Out of interested what do you plan to use the server for?
You could try the debian core image there is no GUI included so it might be a more stable base to work from
Click to expand...
Click to collapse
OK I tried the debian small image. Seems better, but still having the same issue with apache2 starting (tried with both worker and prefork packages, both having similar errors):
Code:
[emerg] (38)Function not implemented: Couldn't create accept lock (/var/lock/apache2/accept.lock.4882) (5)
Sounds like something missing in the linux kernel.
May be that sounds crazy, but I want to have a linux based LAMP server running in galaxy tab (8.9) for web development. Oh yes, I also got a galaxy note, that's why I see this thread.
what's the use of linux on phone? dont mind
meethere said:
what's the use of linux on phone? dont mind
Click to expand...
Click to collapse
That' the dumbest comment I've seen today realizing that Android and iOS (+80% of the smartphone market today) are both sort of Linux (/UNIX based) distros.
Sent from my GT-N7000 using xda premium
winst said:
OK I tried the debian small image. Seems better, but still having the same issue with apache2 starting (tried with both worker and prefork packages, both having similar errors):
Code:
[emerg] (38)Function not implemented: Couldn't create accept lock (/var/lock/apache2/accept.lock.4882) (5)
Sounds like something missing in the linux kernel.
May be that sounds crazy, but I want to have a linux based LAMP server running in galaxy tab (8.9) for web development. Oh yes, I also got a galaxy note, that's why I see this thread.
Click to expand...
Click to collapse
Good idea, but yes looks like it could be, my method shares the android kernel it donst have its own kernel so this could be the problem, might have to talk with your kernel devs?
meethere said:
what's the use of linux on phone? dont mind
Click to expand...
Click to collapse
Well yes A android is a form of linux, and in fact I believe as of linux kernel 3.3 android is being merged into the main kernel.
But anyway the use of having a full linux distro? well why not? you could run the likes of open office, a real web browser and a whole range of other programs you cant in android

[Ubuntu] T3buntu

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Please OP remove my old post about Ubuntu on Tab 3...
T3buntu (Had to call it something...)
Disclaimer:
What you do with this information is up to you. If your device breaks while trying anything in here you do that at your own risc.
I cant be held responsible for anything that happens to your device.
Everything in here was tested on a Samsung Galaxy Tab3 10.1(5210) if you try anything in here on any other device thats up to you.
Most of the work is made by the Linux on Android team i have just tested and fixed some stuff.
The image is ext2, x86 but im working on a ext4, AMD64 image.
”Changelog”
1. Replaced lxde with KDE Plasma
2. Added entryś in etc/fstab for int/ext SdCards
3. Edited bootscript from the Linux on Android team so that the SdCards in the Tab is correcly mounted and works with fstab.
4. Installed "missing" packages to minimize errors.
Works:
Wifi
Battery indicator
Int/Ext SdCard
Most of the stuff in Ubuntu.
Issues:
Leftpanel is black
Slow startup, but can be fixed. I will add that later.
Some apps dont work if you start them as root.
Couldnt make jpg work as wallpaper so using png at the moment.
Rotation isnt setup since we cant use xrandr to rotate the screen..
Not tested:
GPS
ToDo
Streamline startup
Add init.d support on the Tab
Tweaking were ever possible.
Fix sound
Now for the fun stuff.
Installation:
1. Root your device. I used this Guide.
2. Install Busybox.
3. Install Linux on Android.
4. Install a VNC client of your shoice, i preferr Jump Desktop free.
5. Copy bootscript.sh to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
6. Unpack and Copy the t3buntuv1.2_20131216.img to a place of your choosing on either internal or external sdcard.
7. Make a Linux on Android widget and point it to the img file you copied in 6.
OBS !! This image is preconfigured with the user ubuntu and psw t3buntu..
8. Now click on the LOA widget you made in 7 and let linux ”bootup”
9. In your VNC client connect to localhost.
DONE ! Your now in Ubuntu..
If you want more screenspace you can uncomment
# service call activity 42 s16 com.android.systemui
In bootscript.sh this will remove the android panel. The problem with this at the moment is that to
get it back you have to restart the Tab becourse the ´am´ command to get it back ”Seg faults” on
my tab and i havnt figured out why yet.
Consider this image as alpha...
OBS !! The image file is BIG 1.4GB compressed and 4GB decompressed. Will try and make it smaller not sure how the Linux on Android team made there images so small...
LINK to imagefile
LINK to bootscript
Credits
Linux on Android team
The one that made the scripts from the start. Not sure who made them...
How about a link to get 3. Linux on Android.
I know I'm top lazy to Google.
Sent from my GT-P5210 using XDA Premium HD app
Awesome! Glad to see something! And having Ubuntu is a very cool os to have! Good work and thank you!
Sent from my SCH-I605 using xda app-developers app
Added links to Linux on Android and Busybox in first post.
Nice, but there are a few things...
The bootscript.sh contains one little, but crucial error.
At line 172, character 44, you forgot one space, which makes the mount procedure unusable:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Which should be:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Without this (for me) it failes while it's starting up.
And, another thing, my tablet reboots at the moment I have to run VNC to start the X server, even though I'm not doing or touching anything.
After reboot it doesn't start up t3buntu either.
But, very good work !!
And yes, I do have Samsung Galaxy Tab 3 10.1 GT-P5210...
RubenStauttener;48606882]Nice, but there are a few things...
The bootscript.sh contains one little, but crucial error.
At line 172, character 44, you forgot one space, which makes the mount procedure unusable:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Which should be:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Without this (for me) it failes while it's starting up.
Havnt noticed any problems here but i have added the space and updated the script since both versions works for me.
And, another thing, my tablet reboots at the moment I have to run VNC to start the X server, even though I'm not doing or touching anything.
After reboot it doesn't start up t3buntu either.
Does it reboot during script execution ? It do sound like a mem issue. Do you have widgets and such running in android ?
You can try with enabling the swapfile in bootscript.sh .
But, very good work !!
And yes, I do have Samsung Galaxy Tab 3 10.1 GT-P5210...
I've got the terminal up and running fine. But I can't VNC into it. What settings are you using for you VNC viewer?
How about native graphic support using libhybris? Or since this device use PowerVR SGX 544, is native X11 possible? Reference: https://wiki.archlinux.org/index.php/Intel_GMA3600
EDIT: https://github.com/trevd/android_kernel_samsung_santos10/tree/cm-10.2/drivers/staging/mrst/pvr and https://github.com/thomas001/cedarview-drm/tree/master/staging/cdv/pvr looks similar
Thanks for sharing but it's not working
VNC: autentification failed !
Jump Desktop: It ask a password, and I don't have this password !
Sent from Gallifrey using TARDIS
Nonta72 said:
Thanks for sharing but it's not working
VNC: autentification failed !
Jump Desktop: It ask a password, and I don't have this password !
Sent from Gallifrey using TARDIS
Click to expand...
Click to collapse
Test password: ubuntu
When run script say mnt error =/
zorrigas said:
Test password: ubuntu
When run script say mnt error =/
Click to expand...
Click to collapse
Thanks, but I already solved it :good:
Sent from my GT-5210 powered by AmatROM HD
Hi, I posted a question in the Q&A forum (them 10 posts), but I guess it really belongs here.
Tried this on my TWRP rooted UANB4 stock rom P5210, stock kernel. And I get the following with your script and image:
Code:
[email protected]:/ $
[email protected]:/ $ cd /storage/extSdCard/Img
[email protected]:/storage/extSdCard/Img $ su
[email protected]:/storage/extSdCard/Img # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/extSdCard/Img/t3buntuv1.2_20131216.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: Invalid argument
Error: Unable to mount the loop device!
1|[email protected]:/storage/extSdCard/Img #
Line : $bbox mount -t ext2 /dev/block/loop255 $mnt
Do I tell busybox to overwrite the mount command?
Otherwise, excellent work, cant wait till I have it running.
*EDIT*
Turns out I just had to copy the image again, I guess my first transfer got cut off.
Totally works, thx
hey. i noticed that the last update was in April of 2014. i was wondering if there was any updates on this.
getting linux on my tablit was the #1 reason i chose to root my GT-P5210 in the first place.
Homage said:
hey. i noticed that the last update was in April of 2014. i was wondering if there was any updates on this.
getting linux on my tablit was the #1 reason i chose to root my GT-P5210 in the first place.
Click to expand...
Click to collapse
I did not try this one. I bet itworks in VNC as it tell us. Instead i did
http://forum.xda-developers.com/showpost.php?p=58175673&postcount=54
I guess I can say it work aceptable in VNC mode, definitly work nice in comand mode. I been working in a native solution but it is a hard bone for my teeth. Look in the general area.
Download link is down
I would like to run Ubuntu on my Tab 3 but the link doesn't work. Could some upload a working link please?
Hi Guys,
Anyona has this .sh script and the t3buntuv1.2_20131216.img file? if you send me im hosting and distributing free as i live i want to use for my home automatization.
THX
G
jorgen_gustavsson said:
Please OP remove my old post about Ubuntu on Tab 3...
T3buntu (Had to call it something...)
Disclaimer:
What you do with this information is up to you. If your device breaks while trying anything in here you do that at your own risc.
I cant be held responsible for anything that happens to your device.
Everything in here was tested on a Samsung Galaxy Tab3 10.1(5210) if you try anything in here on any other device thats up to you.
Most of the work is made by the Linux on Android team i have just tested and fixed some stuff.
The image is ext2, x86 but im working on a ext4, AMD64 image.
”Changelog”
1. Replaced lxde with KDE Plasma
2. Added entryś in etc/fstab for int/ext SdCards
3. Edited bootscript from the Linux on Android team so that the SdCards in the Tab is correcly mounted and works with fstab.
4. Installed "missing" packages to minimize errors.
Works:
Wifi
Battery indicator
Int/Ext SdCard
Most of the stuff in Ubuntu.
Issues:
Leftpanel is black
Slow startup, but can be fixed. I will add that later.
Some apps dont work if you start them as root.
Couldnt make jpg work as wallpaper so using png at the moment.
Rotation isnt setup since we cant use xrandr to rotate the screen..
Not tested:
GPS
ToDo
Streamline startup
Add init.d support on the Tab
Tweaking were ever possible.
Fix sound
Now for the fun stuff.
Installation:
1. Root your device. I used this Guide.
2. Install Busybox.
3. Install Linux on Android.
4. Install a VNC client of your choice, i preferr Jump Desktop free.
5. Copy bootscript.sh to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
6. Unpack and Copy the t3buntuv1.2_20131216.img to a place of your choosing on either internal or external sdcard.
7. Make a Linux on Android widget and point it to the img file you copied in 6.
OBS !! This image is preconfigured with the user ubuntu and psw t3buntu..
8. Now click on the LOA widget you made in 7 and let linux ”bootup”
9. In your VNC client connect to localhost.
DONE ! Your now in Ubuntu..
If you want more screenspace you can uncomment
# service call activity 42 s16 com.android.systemui
In bootscript.sh this will remove the android panel. The problem with this at the moment is that to
get it back you have to restart the Tab becourse the ´am´ command to get it back ”Seg faults” on
my tab and i havnt figured out why yet.
Consider this image as alpha...
OBS !! The image file is BIG 1.4GB compressed and 4GB decompressed. Will try and make it smaller not sure how the Linux on Android team made there images so small...
LINK to imagefile <===== this URL broken
LINK to bootscript <===== this URL broken
Credits
Linux on Android team
The one that made the scripts from the start. Not sure who made them...
Click to expand...
Click to collapse

Modded Windows Virtual Machines

Hello,
Here are some Virtual Machines with Modded Windows Preinstalled (JROM)...
Password is 0110
VIDEO DEMONSTRATION:
VIDEO IS IN REAL TIME, HOST PC IS ON JROM-WIN10.
LEFT VM IS WIN10, RIGHT VM IS WIN11R00T.
Download Virtualbox:
Oracle VM VirtualBox
www.virtualbox.org
You will need the vbox extension pack too.
https://download.virtualbox.org/virtualbox/6.1.32/Oracle_VM_VirtualBox_Extension_Pack-6.1.32.vbox-extpack
===============================
JROM-WINDOWS11R00t Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1wrUI5F-hNpECDKu28t1k2S28OwmWuY1G/view?usp=sharing
Alternative site pending
8.6 GB
Has Android Subsystem Installed. WSA isn't fully functional in the VM for reasons I haven't figured out yet.
At least on AMD... If Anyone has any Ideas, please reach out~!
Also has brave browser, ADB, Apk installation, and subsystem dependencies preinstalled.
I am taking a break from this project, but will come back to this project to fix WSA in the VM.
Unless a Superstar can Beat me to it ;-)
===============================
JROM-Windows 11 Lite Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1un5UXDvx8WfvXABoANmuR5FvgHcNcNAZ/view?usp=sharing
Alternative site pending
5.0 GB
Bare bones install, has windows 11 toolbar.
Mostly intended for Devs to test their software on a more "Genuine" Windows 11 iso, minus some bloat.
===============================
JROM-Windows 10 Lite Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1-0Gt_0GY4X77PIoQi1c-pHt9B4HmqB5-/view?usp=sharing
Alternative site pending
4.4 GB
Bare bones install, intended for work use~!
===============================
*HOW TO INSTALL*
===============================
Extract the machine. Right click and cut it.
Go to C:\ USERS YOURUSERNAME
Go to VirtualBox VMs folder or create a folder and name it "VirtualBox VMs".
Paste the machine in the folder. Run the file with the Blue Cube~!
You can edit the ram, etc as you see fit.
===============================
FOR PREMADE MODDED WINDOWS ISOS
===============================
https://forum.xda-developers.com/t/...lite-iso-plus-win11r00t-w-wsa-bundle.4392727/
IMO far easier is to install Genymotion - an x86-64 emulator based on Virtualbox - what offers Android images up to Android 11.
jwoegerbauer said:
IMO far easier is to install Genymotion - an x86-64 emulator based on Virtualbox - what offers Android images up to Android 11.
Click to expand...
Click to collapse
I've been on Genymotion since 6 years ago and completely disagree. It is a terrible service that CHARGES you to have to do everything you can do for free if you build your own emulator or even use nox or bluestacks and ROOT them and debug THEIR LAUNCHER to CLEAN Them.
I created scripts when GENYMOTION first came out to help get the play store installed and remove bad apps, etc.
They are Greedy as are Most these Emulator Makers
jenneh said:
I've been on Genymotion since 6 years ago and completely disagree. It is a terrible service that CHARGES you to have to do everything you can do for free if you build your own emulator or even use nox or bluestacks and ROOT them and debug THEIR LAUNCHER to CLEAN Them.
Click to expand...
Click to collapse
That's really weird: I'm using Genymotion since years, too, and I never had to pay for anything.
jwoegerbauer said:
That's really weird: I'm using Genymotion since years, too, and I never had to pay for anything.
Click to expand...
Click to collapse
Perhaps they changed it, it was originally free, then they started incorporating stupid pay walls, like charging you to change the IMEI, and eventually getting rid of their "free" personal use option after folks like me showed how to do this for free.
I guess the free option is back but the company as a whole left a sour taste in my mouth, when you can make anything they can with knowledge on gapps and android firmware, or different operating systems to use our apps entirely, like Lineage and Ubuntu-Touch
So what took me several days to figure out on windows, took me an hour to figure out on linux... And behold, Anbox is installed, in a virtual machine running Lubuntu... tee hee! Lemme do some testings... things.. yeah
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE THAT THEORETICALLY WE COULD INSTALL ANBOX THROUGH WINDOWS SUBSYSTEM FOR LINUX. I WILL TEST VIRTUAL MACHINES VS BARE BONES AND WE WILL SEE WHO IS THE VICTORZ
Posting the code here so I don't lose it when I reinstall my OS's a bagillion timez...
************************************
Installing Anbox:
sudo add-apt-repository ppa:morphis/anbox-support
sudo apt install software-properties-common
sudo apt install linux-headers-generic anbox-modules-dkms
sudo apt update
sudo apt upgrade
sudo modprobe ashmem_linux
sudo modprobe binder_linux
snap install --devmode --beta anbox
***************************************
I'm on a train of thought here, concerning Win 11, creating vms with the stock iso, and this "TPM 2.0" Going to paste this llink here to cement that thought for another day... https://www.msn.com/en-us/sports/es...e-not-meeting-minimum-requirements/ar-AAPe1kg
For those interested in a fully cleaned Android Emulator, w/ R00t
Nox Clones
I'm tired of all the Garbageware on Every Single Android Emulator Out There. So I fixed it. DOWNLOAD UNPACK AND INSTALL: NOX FIX TOOLS https://mega.nz/file/ARxBhSRL#AxOhNGHxyk1keOh1N9KfWvhItDQ85_BHdMBGe5xmIBE CLONED NOX MACHINE...
forum.xda-developers.com
edit--- fixed the tpm settings,, will be updating the virtual machine and this guide shortly
Google Drive links have been added for all machines. The Mega Mirrors are uploading now. . .
Had to roll with Google first bc Mega is being... wonky.
For future reference if you haven't already figured it out yet, your processor and your hypervisor both need to support Nested VT-x (Nested Virtualization) for WSA to execute in a VM. This is because both Windows Subsystem for Linux and Windows Subsystem for Android use the Hyper-V hypervisor to accomplish booting their respective Linux kernels and userspace up. They no longer use the syscall translation driver, which would've worked under a VM.
Btw, what did you find the most troublesome about the installation of WSA? I found it was remarkably straightforward to install even from APPX (or in my case since I'm using a modified WSA with Google Services, an unpacked APPX).
ShadowEO said:
For future reference if you haven't already figured it out yet, your processor and your hypervisor both need to support Nested VT-x (Nested Virtualization) for WSA to execute in a VM. This is because both Windows Subsystem for Linux and Windows Subsystem for Android use the Hyper-V hypervisor to accomplish booting their respective Linux kernels and userspace up. They no longer use the syscall translation driver, which would've worked under a VM.
Btw, what did you find the most troublesome about the installation of WSA? I found it was remarkably straightforward to install even from APPX (or in my case since I'm using a modified WSA with Google Services, an unpacked APPX).
Click to expand...
Click to collapse
Oooohhhh Thank You~! I will research this further within the VM.
Honestly I didn't find anything difficult, other than finding out from start to finish how to do everything I wanted to do. So it's just amazing to have the Internet, Forums, Nerds that Make Websites, stuff like that to help make, idk, a guide or instructions? to make things easier.
Also really grateful for the software engineers that continue to implement such innovations, even though I jest by calling it "suboptimal" I'm sorry but ""WSA""~~~ wINDoehz.. ya set yourselves up for that one ;-)
jenneh said:
Oooohhhh Thank You~! I will research this further within the VM.
Honestly I didn't find anything difficult, other than finding out from start to finish how to do everything I wanted to do. So it's just amazing to have the Internet, Forums, Nerds that Make Websites, stuff like that to help make, idk, a guide or instructions? to make things easier.
Also really grateful for the software engineers that continue to implement such innovations, even though I jest by calling it "suboptimal" I'm sorry but ""WSA""~~~ wINDoehz.. ya set yourselves up for that one ;-)
Click to expand...
Click to collapse
Oh Gawd I Cannot Resist.
I offer a Solution to the Problem.....
Let's just call it, "WAP"
.... "Windows Android Player".

Categories

Resources