yashsingh1/xdaforums huggingface dataset:
[Android Software Development] RubenRybnik:
Gotcha, thanks ... was just a thought. Up to you, but you may want to setup a feature voting system like apex, nova and others have. Not sure how big your customer base is, but may be a good idea to get a feel from the crowd without having to troll forums :o) totally up to you though obviously.
[Android Software Development] barryflanagan:
I am thinking it must be something specific to the Prime. I have now tried with AOKP/motley kernel, AOKP/stock kernel, CM9 and Virtuous, and Firefox crashes in all of them. :(

Only thing is I am not sure how much any of these kernels diverge from the stock asus kernel. As far as I know they all used that as a starting point. Will be interested to see if there is a difference when CM9 introduces the build featuring the 3.x kernel.

It would be interesting to know if it works on the HTC Tegra3 based phone.

Frustrating. Will persevere.
[Android Software Development] joeatx:
I have the HTC One X with Ubuntu 12.04 v1 Small it work, but the same Firefox crashes.

Ubuntu 12.04 v1 Full I will testet the ubuntu unity on my device....

On HTC One X run stock kernel 2.6.39.4
[Android Software Development] joeatx:
I´m test it on two devices, HTC One X and HD2 :)

with Backtrack all good, Ubuntu 12.04 v1 small have Firefox crashes and the Ubuntu 12.04 v1 Full have two issues ,Unity and Firefox crashes on my both devices

Screenshot Unity:confused:

any idea what goes wrong here?

on my HTC HD2 with CM9 ICS 4.0.3 kernel 2.6.32.15_tytung_icsr1tytung@ubuntu #230 (NexusHD2)

HTC One X Use the stock kernel 2.6.39.4
[Android Software Development] DarkhShadow:
Well there's possibly a unitity incompatibility with Tegra 3 devices, not sure though

Sent from my ice cream powered Nexus S
[Android Software Development] devwithzachary:
Indeed it seems to me that either tegra 3 or 2 processors are unable to process/render the unity GUI correctly its likely down to the fact that no arm development boards use tegra processors. And the main reason for the arm ports where for use with these low powered computers just then got it working via chroot on android :)
[Android Software Development] RubenRybnik:
Personally I'm not a fan of Unity anyways, would Gnome 3 Desktop work? I'd be fine with that option personally.
[Android Software Development] devwithzachary:
possibly I will look at it never made a build with it as of yet, but if you need a full working GUI you will have to stick to the small image with LXDE for now
[Android Software Development] D_one:
I think that uses even more memory, you could try it though:)
[Android Software Development] phillibl:
Just wanted to chime in and say both Ubuntu and Debian work on my Droid Incredible 2. They are a bit jerky because it is a single core, but they work nonetheless
[Android Software Development] RubenRybnik:
Honestly, LXDE is more than fine for me personally as a GUI. If I could make a suggestion I'd very much, like more to have a natively running LXDE Desktop, than a working Unity, Gnome, etc... desktop over VNC. I can only imagine how nicely a native running gui would work :)
[Android Software Development] devwithzachary:
Indeed and I have been working on it, but also sorting out new ubuntu stable images with normal user working (thanks again barryflanagan), the script will ask if you want to keep the screen size again and a whole host of fixes for the apps and boot script. Once I have that back to being nice and stable we can really work on the good stuff
[Android Software Development] splotz:
Hi all,

I am curious about security matters.

Where can I get more Informations how safe the chrooted Ubuntu is, and if I

should change passwords or settings to make it even safer ?

Kind regards,

Splotz
[Android Software Development] devwithzachary:
Depends on what you mean by safe really.

But in the next update on first boot it will grt you to set up your user (no longer use root account) there username is ubuntu but it will get you to set your own password to use when wanting to run something as root.

This will make it alot safer.
[Android Software Development] Croandroid1996:
Hi could someone tell me the link for the Backtrack 5 for android?
[Android Software Development] smallba:
Search backtrack 5 installer in the play store, it's gonna be by ZPwebsites
[Android Software Development] Bloodflame:
Just posting to confirm Unity on 12.04 doesn't work on my Acer A500 (Tegra 2). LXDE is working great though. It would be nice if Mate or Cinnamon would work, but I'm pretty sure they aren't compiled for ARM. Might be possible to compile it from source, but I'm not sure how to do that myself.
[Android Software Development] devwithzachary:
New updated 12.04 ubuntu images and boot script!

These include a range of new features and will be included in the next release of the complete installer, and the paid and free ubuntu installers. But because I do love all your help here are is the script and images early!

Updates are as follows:

Script

*md5 file checking if found in the same directory as the image (md5 file now included in zip of each image file) This can take some time to excute but will make sure the image is not currpt! (will only do it on first use once its checked the md5 file is deleted)

*New error messages through out the script and if a error happens it will not go any further to help make debugging far easier

(Thanks to Martin Møller)

Images

*Now boot using a normal user (call ubuntu), on first boot it will ask for you to set your own admin password for using running things as root. (thanks to barryflanagan for this!)

*Images now once again ask if you wish to save the screen size as default

*Ubuntu updated to newest updates

*Images include md5 files to check image

*+Plus possibly other tweaks I cant remember!

These images are now downloadable from either source forge via torrent

Core image [SOURCE FORGE] [TORRENT]

Small image [SOURCE FORGE] [TORRENT]

Full image [SOURCE FORGE] [TORRENT]

Boot Script [SOURCE FORGE]

This is all part of a big update that will be coming soon to the apps! Including one big new features of a built in version of busybox to stop all busybox errors, and lots of other new fectures ;)
[Android Software Development] kylon:
What s are the differences between all the images?

Do you know if htc one x can boot this?

With its cores and ram ubuntu should be full speed *.*

The lastest image that i tried doesn t work

It says pls wait while runnig ubunutu but nothing happen
[Android Software Development] devwithzachary:
The image have the same differences as the v1 1204 images (see first post) and what image did you try and what boot script
[Android Software Development] kylon:
Boot script v5 and ubuntu 12 full

Anyway i mean

What are the differences between the image tipe

Ie core and full

They have different apps or performance

Sent from my HTC Desire S with xda premium
[Android Software Development] devwithzachary:
And try using the new boot script v5 is rather out dated now
[Android Software Development] DarkhShadow:
Core is command line Ubuntu only

Small is similar to command line but with some programs and a GUI

Large has Unity-2D and more programs

Seeing as your One X has a tegra 3 I wouldn't advise the large image(unity-2D doesn't work)

Sent from my ice cream powered Nexus S
[Android Software Development] kylon:
Why???

Can i use gnome?

Sent from my HTC Desire S with xda premium
[Android Software Development] DarkhShadow:
You can, but its a lot of messing about.

Unity-2D doesn't seem to like tegra devices, as zac said probably due to it being compiled for ARM and tegra isn't technically ARM as such

Sent from my ice cream powered Nexus S
[Android Software Development] kylon:
While gnome is fully working?
[Android Software Development] DarkhShadow:
I assume so

Sent from my ice cream powered Nexus S
[Android Software Development] devwithzachary:
Is the new full image complete guys? If someone vould test it from downloading via source forge that would be great
[Android Software Development] barryflanagan:
Yes, seems fine.

There appears to be a problem with the launch script though. The line after the chroot command seems to make the rest of the script not run, and therefore you are left with all the processes running and nothing will umount.

I commented out the line "if [$? -ne 0 ] ; then error_exit....." and it works then.
[Android Software Development] devwithzachary:
thank you shall make this change before release in app
[Android Software Development] tuxling:
That's weird, i use that exact same line in the script before the chroot command gets called, so the script should have failed earlier! :confused:

I'll look in to that later today, have to be a mistake i made! :o
[Android Software Development] barryflanagan:
Not a problem with the actual line, probably just the $? variable coming out of the chroot must be sometimes 1 and then ubuntu.sh exits and the processes don't get killed, umounts don't happen, etc.
[Android Software Development] tuxling:
The problem is that $? contain the return value of the init.sh script run by the chroot command, not the chroot command itself.

It will be changed in the upcoming update, but for now everyone can use the attached script. :)

Thanks for pointing it out barryflanagan :)
[Android Software Development] devwithzachary:
the boot script included in the ubuntu apps as updated will not include this line until we can fix it :)
[Android Software Development] bryandrummer:
i had some quick questions about the various distributions and what you guys would recommend given how i intend to use Linux. right now i am using the 10.10 full image and lxde.

My number one concern is speed. i understand running this through vnc will cause some sort of lag but is 12.04 faster than the 10.10 images? i would much rather have something that is fast and responsive than looking pretty. i have also seen many people excited over the unity 2d. is this a lightweight desktop environment like lxde or is it more like gnome as far as its size but looks looks better? i have never really used unity 2d at all so i have no idea really. If lxde is the better choice if im going for speed, is this easy to install on the full 12.04 image if i choose to go that route? from what i read, its only on the small image and unity is the only one on the large

i have a acer iconia a500, i use it for school and prefer that over my computer but this image thing allows me to access things like a fully functional office suite, that i normally couldn't before on my tab. i use open office, gimp, file browser, bit torrent occasionally for small files, and the internet for the most part. I'm not the biggest linux user but i do have Ubuntu on my laptop and have been playing with it for about 6 months so i am learning but prefer interacting with full programs and menus than just typing things in the terminal.

any suggestions from experienced users would be awesome.

**note: all debian images dont like my tablet. the full image will boot for 15 seconds but freezes and then i just get grey screens with a black cross-hair.
[Android Software Development] Lokifish Marz:
Photon running

jokersax CM9 - grey screen with all builds

AOKP CM9- same

CM7.2.0 RC1- same

Stock - no loop

Stock based w/ jokersax kernel - no loop

(funny thing is that it works fine on my Sprint Galaxy Tab running CM9)

When I get the chance I'll post more info just let me know what you need.

edit:

Come to think about it, it worked on the Photon about a month or two ago.
[Android Software Development] jaapteeuw12:
How could we delete this if we want??
[Android Software Development] devwithzachary:
I would go with the small 12.04 image as this includes LXDE and still has plenty of room for your own programs, the full image is only so much bigger because unity takes up alot of space.

Yes all you need to do is delete the image and boot file and do a reboot to be sure
[Android Software Development] kylon:
Someone know how to unlock the root user

I did

Sudo passwd root

But i can t see "others" in the login screen
[Android Software Development] TF2pyro:
Big Big Thanks

Just to let you know...unity works on my Nexus S.:)

I was not able to get back into ubuntu after I exited, but after a reboot I was able to start it again. I will check out a solution posted in a prevoius post to see if that works for me. ( sh ubuntu.sh image.img ) or something like that.

Android ver. 4.0.4

Kernel 3.0.8-g6656123

Twrp 2.1

I noticed that you upgraded the images so I will download the new ones and give them a try too.

The small install with LXDE will probably be better suited for me.

Unity was very nice to look at but alittle laggy for the Nexus S.

So I will replace the image and boot script in /sdcard/ubuntu and give it another whirl.

Big Big Thanks...keep up the Great Work.

p.s. I'll be getting the Full Pro App to support the effort , tho I prefer to download the images to my computer first, so as not to eat up my data plan.

Cheers.
[Android Software Development] Preacher1976:
Hi!

I'm using a Galaxy Tab 3G with ICS KANG MD5 ROM, Ubuntu Installer Paid App.

On VNC, after reading previous posts, I think the settings are ubuntu/ubuntu/localhost/5900/24bit/touchscreen

Reply after Connecting:

VNC connction failed!

failed to connect to localhost/127.0.0.1 port 5900: connect

failed: ECONNREFUSED

On the terminal, once the screen res is set and EXIT entered:

failed: Device or ressource busy

losetup: /dev/block/loop255: Device or ressource busy

Any idea ?

---------- Post added at 04:02 PM ---------- Previous post was at 03:49 PM ----------

After rebooting the GT7500:

app_85@android:/ $ export PATH=/data/local/bin:$PATH

app_85@android:/ $ su

app_85@android:/ # cd sdcard/ubuntu

app_85@android:/sdcard/ubuntu # sh ubuntu.sh

Loop device exists

net.ipv4.ip_forward = 1

Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:

eth0: No such device

Now enter the screen size you want in pixels (e.g. 800x480), followed by [ENTER]:

1280x800

New 'X' desktop is localhost:0

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/localhost:0.log

/root/init.sh: line 34: /etc/init.d/ssh: No such file or directory

If you see the message 'New 'X' Desktop is localhost:0' then you are ready to VNC into your ubuntu OS..

If VNC'ing from a different machine on the same network as the android device use the 1st address below:

inet addr:127.0.0.1 Mask:255.0.0.0

inet addr:10.149.20.109 P-t-P:10.149.20.109 Mask:255.255.255.0

If using androidVNC, change the 'Color Format' setting to 24-bit colour, and once you've VNC'd in, change the 'input mode' to touchpad (in settings)

To shut down the VNC server and exit the ubuntu environment, just enter 'exit' at this terminal - and WAIT for all shutdown routines to finish!

root@localhost:/# exit

exit

Killing Xtightvnc process ID 1466

/root/init.sh: line 66: /etc/init.d/ssh: No such file or directory

Shutting down Ubuntu ARM

failed: Invalid argument

losetup: /dev/block/loop255: No such device or address

1|app_85@android:/sdcard/ubuntu #
[Android Software Development] icechen1:
Any idea if backtrack on android can use the wifi's monitor mode? Not expecting it but it certainly would be nice.
[Android Software Development] DarkhShadow:
I believe its been said that no it can't

Sent from my ice cream powered Nexus S
[Android Software Development] RubenRybnik:
How is everyone managing their settings from img release to img release? I'm going to go through the steps to customize my LXDE small Ubuntu img, but if a new one comes out with fixes I don't really want to do it all over again. Is just tar'ing up the /home directory and moving it to the sdcard, then untaring it on the new image sufficient?

Also, is there a way to have the img mounted on boot so I can always get to it from a terminal without having to run the boot script? Can I just put the boot script in /etc/init.d and rename it to SBootLinux.sh or something? Are there any downsides or potential file corruption issues to doing this? If init.d works, I'm guessing there would be a way to add a shutdown script so it repacks the img on shutdown or reboot?

Basically trying to get my terminal emulator to be a linux prompt at all times, but only kick off VNC when it's needed( which until native GUI is available won't be that often for me I don't think )

Thanks!
[Android Software Development] barryflanagan:
Should be.

You don't want the whole boot script in init.d. You only need the bits that mount the image file and the other mounts. I have attached a cut down version of the ubuntu.sh which will only do what is necessary.

If you run this it just prepares your chroot filesystems to be ready to use. It take sup zero system resources because nothing gets run unless you chroot and start to do something.

I don't think there is any real need for q shutdown script, as I am pretty sure that android does a "umount -a" and a killall during its own shutdon process.

It should be then possible to get your terminal program to automatically chroot into Linux whenever you open a terminal.

From a normal Adroid terminal the following command will switch to the Linux chroot as user ubuntu:

su -c "chroot /data/local/mnt/ /bin/su - ubuntu"

...you should be able to make your terminal app run this by default (although I have tried briefly with BTP and it for some reason does not).

Edit: The above works fine in Android Terminal Emulator when set as the Initial Command in Preferences. That's handy :)
[Android Software Development] devwithzachary:
Your settings are right and ubuntu seems to start up fine, which image and script are you using? and try using 127.0.0.1 instead of localhost

Yes just moving the home should be enough, but its a very good point that I never really thought of, if this is a feature people would like then I will look at make a script you could run to transfer your settings etc.

Also it seems source forges ticket system for bugs sucks and I cant get there feature request working, SO does anyone know of a good site to use for the two above things would make life alot easier if people can submit bugs and request features they want
[Android Software Development] RubenRybnik:
Awesome man. User voice is pretty decent for feature requests, gives everyone votes to put towards requests so you'll know which is most popular. For bugs I'm not too sure, maybe Googles system? I think I remember seeing an open source version of a Jira like system, however you'd need to setup a server for this so not sure thats the best route.

This is great, thanks, really appreciated! One question, if you have terminal emulator launch chroot on open, then you kill it then chroot is still in effect correct? So launching another, different emulator, should still be able to get to the chrooted terminal? I'll play around with it today some, but loving the idea.

Has anyone mapped out how much memory chrooting without VNC takes up?
[Android Software Development] barryflanagan:
chroot is still all set up and ready to be used, insofar as all the required mounts are there waiting to be used again.

chroot is not about processes, it is a "changed root file system" the chroot command then changes to this new root file system and executes a shell within it.

Following on from the above description, when you chroot into /data/local/mnt without running vnc, the only additional process you are running is your bash shell.

Just having the /data/local/mnt and the rest mounted really uses no extra resources worth talking about.
[Android Software Development] RubenRybnik:
Awesome! So, not to be bothersome or anything, but theoretically your mod'd script should be able to detect if /data/local/mnt is mounted via the "mount" command and if so it could auto 'cd' to the home dir and set your shell. And if it's not mounted it could run the chroot command. I don't mind making these mods myself, just want to make sure my thought process is correct. This would allow a prompt to always enter into the correct shell and home dir( in this case always bash and the linux chroot'd users home dir ) right?
[Android Software Development] Preacher1976:
Hi,

I'm using the v6-1 script, direct download from the paid app

The ubuntu image is the full package of 3,5GB

I've changed the address from localhost to 127 0 0 1 with the same result

Without using the boot icon, what should happen if I click on Connect using the VNC ? Because the reply is also Failed to Connect
[Android Software Development] barryflanagan:
Yes that could be done in a shell script easily enough
[Android Software Development] Preacher1976:
I'm using de v6-1 script from the paid app link

The ubuntu image is the full package of 3,5GB >> 12,04 v1

I've changed the address on VNC, localhost>127.0.0.1 => same issue

If I press the Connect button on VNC, is normal to get the "FAIL to Connect" message ?
[Android Software Development] devwithzachary:
I have set up the project a account with User voice, a service that gives ticket support, knowledge base and feature request systems.

This will allow you all to submit any new features you would like to see in new updates or submit a ticket if you have a problem! (A much easier way of handling support than just normal email).

You will notice on the blog there is now a 'feedback and support' button in the bottom corner of your screen, you can click this to use the user voice system or you can access the site via http://linuxonandroid.uservoice.com/ to vote on features and view the knowledge base etc!

You can also still email for support but this must be done using the email address: tickets@linuxonandroid.uservoice.com

The knowledge base and user voice site will be populated with the faq and more info and this will replace the faq on the blog at the moment.

For now please think about any features you would like to see and submit them! also vote on others as only those with votes will likely make it into a build
[Android Software Development] RubenRybnik:
This is great, always awesome to see devs actively engaged with the users :) Already added two feature requests, they've already been mentioned on this thread but thought I'd get the ball rolling and make them 'official'
[Android Software Development] devwithzachary:
I aim to please :) and yes thank you for this, will give those that follow the project outside of xda a ways to easily see what has already been thought about.
[Android Software Development] barryflanagan:
A suggestion for the boot script.

Currently you over-write both /etc/resolv.conf and /etc/hosts on every "boot". I have commented it out on mine as there is really no reason for it to be done more than the once, and I keep a lot of host information in /etc/hosts that I don't want to lose.

I think it would be better to only over-write these files on first boot, or check to ensure that the content exists first and only over-write if it does not.

I would suggest just checking for a line beginning with "nameserver" in resolv.conf, and just check for 127.0.0.1 being present in /etc/hosts.
[Android Software Development] kylon:
Or if is it possible

Don t overwrite but symlink host and resolve every boot

Sent from my HTC Desire S with xda premium
[Android Software Development] devwithzachary:
The Complete Linux Installer has been updated to v3, while there are no new features that app has been completely rebuilt from the ground up (something that's been worked on for some time) allowing feature updates and new features to be added easily.

As always this can be download from the market.

But with this release comes a new set up letting you buy the app via a new store! Payment can be taken buy either google checkout or paypal so you no longer need access to the market to buy the app or need a google account either (i.e user paypal :) ).

The new store can be viewed here http://www.androidlicenser.com/app_page/84 where you can buy the app, if this is successful then I will likely bring the other paid apps here to but this is for now a test to see how well it goes.

The Paid Ubuntu app will be updated soon, I was planning to release this yesterday but decided to wait to release the v3 version of the paid app hopefully tomorrow.