yashsingh1/xdaforums huggingface dataset:
[Nook Color Android Development] mateorod:
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?
[Nook Color Android Development] inportb:
Congrats on a successful build! Now that you have a working program, you could package it up for distribution :cool:

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:

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:

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:

echo -n "2.0" > debian-binary

Okay, now let's pack this up:

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:

opkg install mateorod-hello.opk

Now that it's installed, the program within is also available:

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)

cd /cache
rm -r system control data.tar.gz control.tar.gz debian-binary

/edit:

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
[Nook Color Android Development] mateorod:
The amount of help you're offering is just staggering. I will put the above together tonight and will report back.
[Nook Color Android Development] BobbyBest:
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.
[Nook Color Android Development] inportb:
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?
[Nook Color Android Development] mateorod:
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!
[Nook Color Android Development] inportb:
The way I remove BotBrew goes like this:

in preferences, hit exit

in a root shell, rm -r /data/botbrew-basil

It makes sure that the right things are unmounted.

Yup, I reproduced the issue and a fix is on the way. Thanks.
[Nook Color Android Development] Pwnna:
How do you get your own script to run as a service to be controlled under the botbrew service thing?
[Nook Color Android Development] Steev43230:
Bump.
[Nook Color Android Development] inportb:
@ultimatebuster: BotBrew services are supervised by runit, and service directories live under /etc/sv. You could, for example, have a /etc/sv/dropbear/run containing

#!/bin/sh
exec 2>&1
exec dropbear -F -E -p 22

Let me know if you need help crafting runscripts.

Awesome! That message is pretty benign; don't worry about it.

Whoops -- looks like the documentation needs updating. You'd actually want to get into Opkg Configuration and add a new src or src/gz line. On the other hand, this does not seem to be the problem. The Opkg repo is still running without issues, so you should be getting successful updates. Strange...

Think you could give basil a try? :)
[Nook Color Android Development] Steev43230:
Thanks. Not seeing any repositories - nothing but "update failed." Hesitant about Basil, it being experimental and all.
[Nook Color Android Development] Pwnna:
Is it me or could I not run a wsgi server from Python on port 5000? I can't connect to it from any where not even from local host
[Nook Color Android Development] KAD79:
I had some difficulties installing basil, but the op has already committed/issued a fix for the install issue

having used both packages, I prefer basil, there's so much much more available in the basil release
[Nook Color Android Development] Steev43230:
Fair enough but since the doc says it's experimental I don't want to take the risk.
[Nook Color Android Development] mateorod:
Not necessarily trying to convince you, but I think it might be good for others to hear that basil is experimental in that some of the features and packages haven't been vetted as thoroughly as the ones in anise. It is experimental more in that respect than as in a warning of danger.

It is similar to comparing CM10 to CM7, better and more powerful, while perhaps not quite as stable or mature.

It is a pretty kick-butt platform, I use it daily.
[Nook Color Android Development] inportb:
Another reason basil is experimental is that we're not sure exactly what features should be shipped in a standard distribution. I think that once the build tools are done, and maybe once we have authenticated repos across the board, we could remove the experimental label.
[Nook Color Android Development] vs4vijay:
Metaploit

Now ruby is in repo of BotBrew...

So is it possible to run Metasploit Natively???
[Nook Color Android Development] inportb:
Yup; you're also going to need git and ncurses-common, iirc. I don't use ruby or metasploit myself, so you'd have to excuse me for the lack of details :)
[Nook Color Android Development] AdamOutler:
InportB, I have a dedicated device in my communications closet which runs botbrew and stays on the Botbrew Services screen.I would like to make several services to monitor various things on my network. This way I can view my entire network at-a-glance.

I have a script which can be run by the Botbrew Service Manager and it tests for results, but now I need to make it actually run and echo that result to somewhere. example:

telnet 192.168.1.133 22 1>./rep& telproc=$!; sleep 1; killall $telproc; cat ./rep|grep SSH; echo $?>STATUSREPORT

Can you post up how to make a generic service in BotBrew-Basil? I will make an episode of XDA-Developers TV out of it... how to repurpose an android device as a network status monitor.

btw... great work so far. I noticed a huge increase of packages in the repo.
[Nook Color Android Development] mateorod:
I would very much like to see this. Just today, I saw a thread in the Android hacking forum about getting broadcom chips in monitor mode, and thought of botbrew. I am putting together a new package for Basil for a tool I run. Just bundled, existing tools, but still. Not something I could be doing without the package manager.
[Nook Color Android Development] schneidz:
sshfs ?

hi, i am looking for the commandline installer for basil. i mite've missed it (would it be something like this): ?

wget http://repo.botbrew.com/basil/bootstrap/bootstrap.sh

. when i finish backing up my fone i would love experimenting with hosting sshfs on it...

any pointers ?
[Nook Color Android Development] defconoi:
id talk to the mods and get this moved to Android Apps so this gets more exposure, great work guys
[Nook Color Android Development] leemaster81:
I agree. Thread seems dead and it shouldn't be. I've had BotBrew running with lighttd, dropbear, and other useful cli tools for a few weeks now and it rocks.
[Nook Color Android Development] grayfoxmg1:
Problem is, is that most of the posts in dev threads like these deal with bugs and faults that have been discovered. But with something like botbrew, the majority of the users have some experience with Linux scripts so when something goes wrong we just fix it ourselves. I personally was only using botbrew for the ease of installing the V6 supercharger. I've now moved to using the auto patcher instead.
[Nook Color Android Development] mateorod:
Well, don't get too used to not having Botbrew installed if you like the Auto-Patcher. I am working on an .apk to move to patching on device. That will only be possible with a package from Botbrew. Botbrew gets my vote as the most versatile/powerful app available, not too mention XDA's biggest secret.

I can say that I know inportb is still planning on moving forward with Botbrew, we have talked recently about adding developer keys to our repos and then he may go ahead and update Basil to stable. He has a bunch of responsibilities in his day-to-day life that are keeping him from devoting as much time as he would like, but I can say that AFAIK Botbrew is far from dead.

When/if you catch up with the thread, inportb, pm me please. I have a correction for Basil I would like to discuss with you!
[Nook Color Android Development] grayfoxmg1:
Looking forward to it, when it's done and you need some testers remember to message me.
[Nook Color Android Development] mai77:
basil kicks butt
[Nook Color Android Development] mai77:
basil install on sd card failed.

but int. storage install is no problem. tried custom path too. no luck. see screenie err message

View attachment 1392882
[Nook Color Android Development] leemaster81:
I'm just a noob but after plenty of hours i have botbrew setup and running nice. Think I ran into that problem myself. As with any app in exeperimental there are bugs in basil so I suggest start all over! Go into phone settings -> manages apps and find botbrew: force stop, then remove cache, and data then try again. And heads up once you get it installed don't install debian-minimal because of gcc4.5 missing and its a dependancy.
[Nook Color Android Development] cartoonmonkey:
inotify-tools / watch a folder, then execute a command?

Would it be possible to install inotify-tools in botbrew?

I'm trying to use botbrew to watch a folder of uploaded images, then execute a command when that folder changes:

( resize them using imagemagick / ftp them to a server )

I tried installing and using python to use this script:

https://github.com/joh/when-changed

But I get syntax errors / the script won't run.

Could I use FAM for this?

Thanks in advance for any help! Botbrew is very very cool!

C
[Nook Color Android Development] krzych:
Is this thread alive inportb? :) If so, I would like to help, as I found bugs long time ago, and stopped using it, but I would like to help making it usable again :) (as the ovearall idea is very good)
[Nook Color Android Development] mateorod:
I would post any info you find. I spoke with him for awhile about Botbrew last night, so I can tell you that there are plans being made and improvements being integrated. I am sure he would like to have more time, but he'll catch up to the thread eventually.
[Nook Color Android Development] krzych:
Ok, so I'll go active very soon after finishing some rom fights, almost already done ;)
[Nook Color Android Development] igorjirkov:
Hello, folks

Here are some bugs:

1. I did not find whether you did mention the need of having busybox installed or not, but in fact you need it for bootstrap to work

2. I can't install debian minimal because there is no gcc 4.5 in reps. Only earlier and later versions.
[Nook Color Android Development] rocker2344:
breaks lg optimus g

i went to try this on my new phone (just cuz)

and well with out gcc 4.5 or telling it to take 4.6/7 we it is kinda not useable (i know experimental) but here is the worse part

i went to remove only this folder /data/botbrew-basle (how ever u spell it) and it starts to pop up errors "com.google.* has stoped responding"

phone freezes

i have to hard shutdown and it wont boot back up. have to reinstall my phone with lgnpst

** note i have tested it 5 times to be sure, it happens each time you delete the folder made in /data

*** why did i not backup? i did but cwm on the optimus g is buggy.... i need to make the md5 sums >_<
[Nook Color Android Development] nocomp:
hi,

thxx a lot for this beautyfull tool.

do you have any tutorial for set the bootstrap procédure?

i would love to try to install some linux stuff

thxxx
[Nook Color Android Development] troppodel:
I have the same problem somebody can help us?

or did u fix the problem?

thanks
[Nook Color Android Development] KAD79:
so I wiped everything on my TF300

went to reinstall botbrew-basil

the bug, asking for keyboard input Y/N when trying to install is back

this is the same bug that was fixed a couple pages back
[Nook Color Android Development] mateorod:
I have had this same experience. I have found that it is really unpredictable, though. You can try uninstalling (from the command line or the GUI, don't delete the folders by hand right now) and bootstrap again. Of course, this doesn't fix it always, and could be pretty frustrating to go through it again only for it not to work again, so take it with a grain of salt.
[Nook Color Android Development] KAD79:
so I finally got it to install

maybe this will be helpful for others

2 issues on failed install

1. due to failed install, directories are still locked

solution, delete the file "lock" from working directories

2. configure issue

from cmd line

botbrew2 dpkg --configure -a

once both of these are done, you should be able to re-bootstrap & install without problems

only other issue I ran into this time around

try to install a minimal debian

I get unmet dependancies error

gcc 4.5-base

plenty of other versions of gcc available, just not the 4.5
[Nook Color Android Development] pfalcon:
Thanks for inportb for this project! I tried to contact him by several means, but no avail, so just wanted to leave a note here. The idea of making an Android native manager app for Debian definitely sounds cool, though usefulness depends: if you run complete Debian, why not use its own package management, etc. tools? On the other hand, running a purposedly-built mini-distro with with unobtrusive package manager has its own merit. That of course sounds like Botbrew Anise, but unfortunately I wasn't able to find source code for it (nor get response from the author, per above).

So, for my mini-distro project, I decided to take available Botbrew Basil codebase as re-implement opkg support. Ideally, both dpkg and opkg would be supported, but looking at botbrew-gui code, it's far from being perfect, and lot of refactoring would be required, with unclear perspective of upstream-mergeability. So, I decided to just fork it and replace dpkg with opkg. My stuff is here: https://github.com/pfalcon/oe-android-app (name is tentative and repo may be renamed later).

Well, just a heads-up to the author and other developers who may be interested in Botbrew.

Ah, and there's one issue - while botbrew-gui code is in the open, there's no explicit license going alongside. It would be nice to clarify it.
[Nook Color Android Development] fvlserevere:
x86

I'm waiting for some support to androidx86.
[Nook Color Android Development] Thatgrass:
briicked

I installed botbrew, and when i rebooted my Galaxy note N7000, it bricked... Any solutions?
[Nook Color Android Development] tODDaLLeN:
I also ran into install issues and was for a while unable to do keyboard input through the installation terminal. The main problem I hit was prompts to keep or overwrite files already installed earlier in the process. The first was /etc/debian_version, followed by /etc/issue /etc/issue.net and /etc/os-release.

My crude solution was at each prompt to switch to a file manager and rename the file in question with a suffix ".old" and then reboot to clear the lock by the stuck install process, then restart botbrew. Slow and tedious but I now have a working installation. I imagine someone else who runs into the same scenario might be able to rename all those files at once and proceed with a single reboot.

I'm really excited by the potential of having a working debian repository though there seems to be a few lingering issues such as the minimal debian package being dependent on the missing gcc 4.5.

Reading through this thread, looking at botbrew.com and inportb's blog, etc. it appears the author has lost interest in this project several months ago. If so, I find it tragic as this to me is the most exciting thing I've seen in Android and is finally starting to deliver on some of the promise I imagined when I first read about rooting android devices. Does anyone know if/why the author has moved on? Does anyone else had administrative rights to the project such that fixes can be implemented and released.

Of particular concern to me is that I frequently load new android ROMS and have finally set up my own working build environment and am running a ROM I built (just following instructions, not doing anything special yet). I haven't yet tried loading a new ROM since installing botbrew but anticipate it might be a painful process if some or all of the broken botbrew installation needs to be repeated each time. I don't have a lot to offer, but if I was to dig into this and try and figure out what's behind the installation errors I've encountered it would be good to know there's a way to get fixes integrated into the release.
[Nook Color Android Development] mrbryan:
anyone know how to get libao sound working?

I'm trying to use shell-fm, a command line last.fm stream player that uses libao and it says "cant find any usable sound output devices"
[Nook Color Android Development] fvlserevere:
...

A year without updating, is the proyect over?
[Nook Color Android Development] Elzbach:
BotBrew Permissions Issue

I've been bashing me head against this project for days. And nothing I do seems to work!

My exact problem is this: Whenever I start BotBrew Basil and then try to search for packages, I get the error "whoops: superuser privileges required for the first invocation of '/data/botbrew-basil/init'" but there was no permission prompt for this and nothing seems to give it permissions!

I have reinstalled superuser numerous times and made sure they nothing to deny BotBrew permissions. I even went through Root Explorer to manually check permissions for the file in question and still got no results. Next, I tried the same processes with SuperSU. Still nothing! Through all of this I have made sure again and again that there was no interference from XPrivacy or any other like app.

I have no idea what to do. Please help.
[Nook Color Android Development] SifJar:
I recently installed botbrew basil, and after some fiddling managed to get stuff working in the terminal (yay). My problem however is that I can't seem to get vim to install. Here's a screenshot of my attempt and the results:

It seems the command "helpztags" is the issue (in that it is missing), preventing the post install script from working. I tried apt-get install helpztags, but it didn't find any package with that name. Anyone have any suggestions as to how I could get vim up and running? Would be very much appreciated.
[Nook Color Android Development] hwong96:
Did you configure the .vimrc (VIM runtime config) file? Take a look at this http://stackoverflow.com/questions/11567176/how-do-you-set-up-vimrc .
[Nook Color Android Development] SifJar:
That file is used to configure settings for vim, and as such is only used when vim is actually running, not during the install process, by understanding. In other words, it's irrelevant to this issue. I tried it anyway in case I had misunderstood things, but I still get the same error with the install.
[Nook Color Android Development] hwong96:
Do you have debconf installed? Sudo apt-get install debconf.