yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] devwithzachary:
Indeed its VERY odd that stock works but custom roms do not work...should really be the other way round, perhaps something to do with how the device file system in custom roms is different or something?

I don't know, this is the problem trying to support as many devices as possible, I don't have the device to test and work out what's wrong, just got to keep basically stabbing into the dark until I hit something :P
[Android Apps and Games] devwithzachary:
Change log for new release (release will be in the next few days for paid end of next week for free) - all new images etc will be added to the first post as they are finished and uploaded!

*PAID app now supports 960x540 'qHD' resolution

*ALL Ubuntu lightweight images cleaned up even more saved another 300MB of space

*ALL Ubuntu images updated with all new updates

*ALL Ubuntu images now in .zip format to fix problems with some peoples devices failing to extract the .rar files

*Boot script updated, once booted now terminal acts like a command line interface for Ubuntu, and some boot problems now fixed

*Image and boot script now downloadable separately to allow easy updating of the script

*+more likely before release
[Android Apps and Games] devwithzachary:
Ok guys As this app becomes more stable I will be looking to create other apps to run different linux distros, so far im looking at fedora and backtrack, any others people would be interested in?

(These releases will not have free version and be 99p as the free ubuntu app will be good enough to test if the process works on your device and these other distros will take more work to get working with computer UI etc.)

I also want to build up a small group of testers who I can email with new images and scripts, these will include all future distros that I do. If you are interested in joining this test group please PM me or send a email to zac@zpwebsites.com

The only requirement is that your willing to test and send feedback along with screen shoots etc where required, it would also be good if your willing to try different roms and kernels for your device!
[Android Apps and Games] Coxeroni42:
I can report, that I am running your lightweight 800x460 image on a Dell Streak Mini 5 with DSC custom ROM flawlessly! Really awesome work. Will play around with it a bit.
[Android Apps and Games] devwithzachary:
Thank you very much, glad its working well
[Android Apps and Games] mscion:
Hi Zacthespack.

Thanks for your nice work.

I have a Galaxy Note and would like to try ubuntu on it. Once it is installed, will I be able to apt-get other programs from ubuntu repositories that are ready to run on Note hardware. For example I would like to use wxmaxima which is quite good for many math problems. Btw I have an N900 which has access to debian repositories and creates LXDE via a wonderful work called Easy Debian. My main issue with the N900 is that it can be sluggish and the screen is a little small. If the VNC server does not make it too laggy then Note handles these issues.
[Android Apps and Games] devwithzachary:
Your welcome!

Indeed my ubuntu images have the ARM repositories so you will be able to download a wide range of programs, anything that has a ARM port or is not architectural depended.

VNC does produce a small amount of lag but on the newer devices with 1Ghz or faster processors and a good amount of RAM and its more than usable!
[Android Apps and Games] trh1341:
How to get sound?

Sent from my HTC Inspire "4G" using Ice Cream Sandwich
[Android Apps and Games] devwithzachary:
At the moment there is no way to get sound as vnc does not carry the sound from ubuntu to android
[Android Apps and Games] taaviu:
Working very well with Xperia Neo :)

Thnx!
[Android Apps and Games] devwithzachary:
glad to hear it, what rom and kernel are you running?
[Android Apps and Games] taaviu:
ROM thanx to Festa20!

and

KERNEL thanx to Inteks!

And ofcourse thanx agen for this thread autor :)

Cheers

Taavi
[Android Apps and Games] devwithzachary:
welcome enjoy your ubuntu goodness :D
[Android Apps and Games] taaviu:
ups...forgot...what happens if im upgrade to 11.04 via updater??
[Android Apps and Games] devwithzachary:
The image will brake pretty much...I forgot to add that warning to the app thank you!.

But yes as of 11.04 parts of the arm images are broken which cause all sorted of GUI problems
[Android Apps and Games] or.green:
Hey there, been trying to get this to work on milestone2 with cm7 but with stock kernel (locked bootloader).

I'm getting Invalid Arguement on the mount command for /dev/block/loop255.

What could cause this?

Thanks!
[Android Apps and Games] devwithzachary:
This means sadly your kernel does not support loop devices, this is the case with most stock kernels, I used to have the milestone 1 which was also locked and could never get it working, so sadly you won't beable to get it working on your device
[Android Apps and Games] Fastrite:
Thanks.

The etc directory helped and removed that part of the problem.

I tried loop0 and loop1 (I replaced all the 255's in the script with 0 or 1 ??) with no change.

I've attached the latest screen shot!
[Android Apps and Games] Fastrite:
I have the latest "Stericson" Busybox installed to /system/bin/ .

Replaced -b with -d and the error is slightly different, see screenshot.

Looked in the /dev/block directory and a loop file is being created.

Loop files 0 -7 already exist in this folder so I tried changing the script to loop8 & 9 with no change in the result.

Could it be that it says "Loop device exists" because there is already a loopXXX device when it tries to mount it??
[Android Apps and Games] barryflanagan:
-b is not an argument for if, it is an argument for test []

if [ -b file] says "if file is a block special file" which would be true if the loop device exists.
[Android Apps and Games] [deXter]:
Hi zac,

- I'm trying out 12.04 and it works great on my SGS2 running ICS. The only issue though is that neither the Ubuntu Software Centre nor Synaptic seem to work - I click on the icon and nothing happens. apt-get however, does work fine and I'm able to install programs from the terminal.

- I want to increase the size of the image (using dd), but I'm not sure what block-size to use, so can you please specify what block-size you used to create the original image? Thanks.

- Also, a suggestion: Can you provide an image with Unity-2D pre-installed, and set as default? Afterall, Unity was designed for devices with small screens / resolutions.

- Finally, I replied to your blog post re. torrent downloads. Kindly check the same.

Regards,

deX
[Android Apps and Games] devwithzachary:
Hi,

Thank you for reporting to software centre issues etc i will look into this and make sure they are fixed on final release

I will have to boot my ubuntu machine to check this drop me a email so I dont forget and I will do it in the morning for you :)

I have been playing with Unity but there are alot of problems with getting it running over vnc on android, basiclly no icons load which is quick a big issue :P I am continuing to try to work on this and had hoped that the full image on final release from beta would feature unity but time will have to tell

I shall check it out thanks :)
[Android Apps and Games] Antarctica32:
ok, so I've run into some trouble but I'm on the Galaxy player 5.0 which others have gotten it to work on so it shouldn't be too hard to fix. After running the "sh ubuntu.sh" it gives me a ton of errors with the first being:

losetop: /dev/block/loop255: No such file or directory
[Android Apps and Games] wilbr:
I'm curious about this too. Would be curious since I'd like to have more storage space in Ubuntu.

By the way, this works great on my HTC Evo (the old one, I don't have the 3D version).
[Android Apps and Games] balliver:
D key?

Hey got it installed on my G2x running the stock 2.3.3 from tmobile, got it working, VNC'd in with androidVNC and changed the mouse input to Touchpad but when I try and type the "d" key it kills the terminal inside of ubuntu. any ideas on how to fix this?

Nevermind it was a keyboard shortcut error in ubuntu System > Preferences > Keyboard Shortcuts Hide all windows was set to D so i changed it to alt+D
[Android Apps and Games] DarkhShadow:
Idk how to do this but remember on fat32 your limited to 4GB anyway

Sent from my ice cream powered Nexus S
[Android Apps and Games] :
zac, you should add to the first post, cyanogenmod 9 users should enable root access for apps and adb otherwise they will run into problems. another question everytime i send the letter "d" (doesnt matter if its a word or just the letter) via vnc everything gets minimized on the full image in first post is there a fix?

edit: nvm the root access, i'm launching all apps now with gksu then i'm able to write to sdcard/download/
[Android Apps and Games] devwithzachary:
There are a few ways to do this but at the moment I do not support them as they can damage your device/cause loss of data/brake the ubuntu images.

But if you do want to do it there are two ways, both really require you to have a computer with ubuntu installed.

You can either create a new image file (but this can only be up to 4GB because of the fat32 formatter) and then copy the content of my image file into it.

Or you can partition your sdcard with a ext2 partition and copy the content of the image file to there, thus giving you a permanent install of ubuntu and no need to use loop devices etc and plain old chroot. Problem with this is it will likely wipe your sdcard, and you can't easilly uninstall it like you can with the image file

yup you need to go into the settings menu on ubuntu and go into keyboard short cuts and change the value to something else there.

Its a known issue with Gnome and any device that does not have a windows key, as the defualt short cut is windows key + d but as we have no windows key its just d
[Android Apps and Games] lilphoenix:
Hello, I have a Galaxy S2, I wonder if installing Ubuntu is our Rom disappear, or if you can easily switch back to our Android Rom. Moreover, it is said that is necessary to have an active connection, once launched Ubuntu, can we cut the 3G connection?

In advance thank you.
[Android Apps and Games] DarkhShadow:
It does not replace your rom, it runs inside android so you still get phone calls and stuff

You do not need a internet connection apart from downloading image
[Android Apps and Games] lilphoenix:
Oki thks U.

I have download the both .zip, and extract then in /sdcard/ubuntu

I have launch the terminal, and write cd /sdcard/ubuntu

sh ubuntu.sh

In VNC, in name i write : ubuntu

pwd: ubuntu

address : localhost

port : 5900

But when i type on connect, i have this message : vnc connection failed! failed to connect to localhost/::1 (port 5900):connect failed: ECONNEEFUSED (connection refused)

And i don't understand why
[Android Apps and Games] wilbr:
Thanks for your reply & the info. It is much appreciated.
[Android Apps and Games] DarkhShadow:
What does terminal look like after script has finished?

Sent from my ice cream powered Nexus S
[Android Apps and Games] thaako:
i run ubuntu on SGSII, but will it work when i connect it to TV via micro USB to HDMI connector, and then paired it with bluetooth mouse and keyboard??

will it be a ful PC?
[Android Apps and Games] devwithzachary:
Yes pretty much :)
[Android Apps and Games] haggardh:
Am I doing something wrong?
[Android Apps and Games] mrWax:
ultra-light img?

Hi!

Great work!!

I am running your lightweight image on E-ink reader Nook Simple Touch. I wonder if you could set up Ultra-light-weight img for E-ink readers, because graphical interface seems to be kind of slow and there could be some ways to ease for the processor - e.g. black/white, no desktop image, no icons on buttons...

regards!
[Android Apps and Games] devwithzachary:
Your pictures will not load for more so not sure :/

Not sure really, you could look at a really really basic desktop environment to use instead, it would then just be a matter of removing lxde and isntalling the new one then updating the root/.vnc/xstartup file to boot it
[Android Apps and Games] mrWax:
basic desctop choice

thx for quick reply. do you have any suggestions, what most basic desktop env. would most suitable?

I have found these:

http://www.makeuseof.com/tag/6-lightweight-linux-distributions-give-pc-lease-life/

http://www.linuxplanet.com/linuxplanet/reviews/7061/1

looks like Awesome would be quite awesome - can run without mouse. But the best might be fully lightweight distro like puppy linux. Its just as simple as making image of the installed distro?

thx
[Android Apps and Games] devwithzachary:
There needs to already be a ARM port in order to build a image, I can then take this and make it run for our chrooted environment
[Android Apps and Games] devwithzachary:
I have decided to open a new thread to include all the distros and everything into one thread for the whole project.

So this thread is now closed, if you are still having problems please either email me or post in the new project thread here

http://xdaforums.com/showthread.php?t=1585009
[Android Apps and Games] k4p741nkrunch:
Edit: Removed and posted in new thread.

Edit 2: For some reason XDA app will not let me post in the new thread. Therefore I will post here until I can transfer it.

I can't wait to buy the paid version! I've been following this project for a while now and would love to show my support. I just won $25 in Google Play credit through Samsungs Facebook page, so I'll be buying this as soon as it arrives!
[Android Apps and Games] taaviu:
interesting how hard is make "button" or "app" what does

su

cd /sdcard/ubuntu

sh ubuntu.sh

:) :)
[Android Apps and Games] devwithzachary:
this would be the next step, but im not completely sure how to do it, to Google i go :P
[Android Apps and Games] cwhitney24:
The newer sh and lite file works on the HTC inspire 4g using a cm7 based rom. This weekend ill try the larger one again. No wifi at work. :)

I got your 10 char right here

abso Bacon Mod
[Android Apps and Games] roy_lt:
I get this when I run the script in terminal: (what can I try next)

Phone: HTC AMAZE 4G

sh-3.2$ export PATH=/data/local/bin:$PATH

sh-3.2$ su

sh-3.2# cd /sdcard/ubuntu

sh-3.2# sh ubuntu.sh

mount: Invalid argument

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory

mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory

net.ipv4.ip_forward = 1

ubuntu.sh: line 31: /data/local/mnt/etc/resolv.conf: No such file or directory

ubuntu.sh: line 32: /data/local/mnt/etc/resolv.conf: No such file or directory

ubuntu.sh: line 33: /data/local/mnt/etc/hosts: No such file or directory

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

eth0: No such device

chroot: can't execute '/root/init.sh': No such file or directory

Shutting down Ubuntu ARM

failed.

failed.

failed.

failed.

losetup: /dev/loop7: Device or resource busy

sh-3.2#
[Android Apps and Games] devwithzachary:
Glad to hear it!
[Android Apps and Games] taaviu:
This larger one give me to something error. Tried lite and after reboot device was all ok.

Sent from my MT15i
[Android Apps and Games] devwithzachary:
Interesting that the larger image dosnt work...I guess something to do with the file size or something, i shall look into this!
[Android Apps and Games] or.green:
Bummer... but how come I have a bunch of loopxxx (where xxx is numbers from 1 to 20) files under /dev/block/ if my kernel doesn't support loop devices?

Thanks for the quick response.
[Android Apps and Games] devwithzachary:
Hmmmm interesting, are you using app2SD
[Android Apps and Games] D_one:
Do I have to extract it on my computer? Or what app are people using to extract it. Also is there a different ubuntu.sh for the small file?
[Android Apps and Games] devwithzachary:
Most file mangers should beable to do it but you could extract on your computer. And nope the script is the same for both images
[Android Apps and Games] D_one:
Hmmm....this is what I keep getting.

Running cyanogen on strict with faux's kernel?

# ls

ubuntu.img ubuntu.sh

# sh ubuntu.sh

mkdir: can't create directory '/data/local/mnt': File exists

mount: mounting /dev/block/loop7 on /data/local/mnt failed: Invalid argument

net.ipv4.ip_forward = 1

ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent

ubuntu.sh: cannot create /data/local/mnt/etc/hosts: directory nonexistent

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

eth0: ip 192.168.0.199 mask 255.255.255.0 flags [up broadcast running multicast]

chroot: can't execute '/root/init.sh': No such file or directory

Shutting down Ubuntu ARM

umount: can't umount /data/local/mnt: Invalid argument

losetup: /dev/loop7: Device or resource busy
[Android Apps and Games] t-bon3:
Working great here. Lite version of the image. Firefox can connect, installed AbiWord using synaptic.

Update manager tells me I should upgrade the distribution,

Desire HD running latest 'official' Cyanogemmod 7 Nightly.
[Android Apps and Games] devwithzachary:
odd have you tried using both the light and large images?

Good to hear all is working, and yes DO NOT upgrade as anything after 10.10 brakes for arm and causes GUI problems, I will add a warning message to the next release stating this.
[Android Apps and Games] D_one:
Yes, I've tried both versions
[Android Apps and Games] devwithzachary:
is the script and image in the folder sdcard/ubuntu

and are you running the script as root?
[Android Apps and Games] D_one:
Yes and yes but it is not extracting properly, ill try on my computer. The image is only 1.09MB extracted....that explains it:P

Will post back.
[Android Apps and Games] devwithzachary:
haha indeed :P
[Android Apps and Games] Ditti4:
First thing: in the opening post is said that the ubuntu.sh is version 4 but in the script you write v3.

Second: users will maybe fail when using App2SD and your script.

Third: I found some newer version.

Sent from my loved HTC Desire HD@CM7. <3
[Android Apps and Games] devwithzachary:
Yes sorry forgot to change the version in the script.

Indeed if people have alot of apps on the sd card it will likely fail

and a newer version of ubuntu? if so could you please link to it
[Android Apps and Games] Ditti4:
Google for something newer, also did a daylong search. :P

Sent from my loved HTC Desire HD@CM7. <3
[Android Apps and Games] devwithzachary:
Well I did have a search but the most stable I could find was 10.10, and building the arm images of anything high resulted in bugy UI's.

Besides there isnt much that will not run on 10.10 so for now I will work on getting this running on as many devices as possible (and other distros which I am now working on)
[Android Apps and Games] D_one:
I did get it working after extracting it on my computer. Thanks!

Can I change the dimensions once I've already downloaded the image?
[Android Apps and Games] devwithzachary:
glad to hear it.

Yes you can while inside ubuntu go to /root/init.sh and on the first line is where the dimensions are set for vnc. simply then reboot and start ubuntu again
[Android Apps and Games] taaviu:
Well....I managed finally this "one button ubuntu boot" with script manager widget :)

Now....can anyone make script for "exit" or "shutdown"???

Thanx

Sent from my MT15i
[Android Apps and Games] Ditti4:
How about typing in "exit"? :D

No, what do you mean by that?

Sent from my loved HTC Desire HD@CM7. <3
[Android Apps and Games] taaviu:
Exit task don't kill ubuntu......

Only phone reboot kills.

Sent from my MT15i
[Android Apps and Games] Ditti4:
But it should kill it...

Have you typed it in the command line of Ubuntu? Then it should exit.

Sent from my loved HTC Desire HD@CM7. <3
[Android Apps and Games] D_one:
My keyboard stopped working, any suggestions?
[Android Apps and Games] D_one:
So did you get one script to start Ubuntu AND start vnc? I've got two shortcuts, one to do each.

I find it easy to disconnect when I'm done, then kill the script to exit.
[Android Apps and Games] taaviu:
Hmm...ubuntu terminal won't start....

Tomorrow iv try via computer vnc.

Sent from my MT15i
[Android Apps and Games] devwithzachary:
There's no way to start the vnc viewer automatically but is your using my script the vnc server in ubuntu starts so you just have to connect
[Android Apps and Games] or.green:
Nope.

Why?
[Android Apps and Games] Ditti4:
That's even more confusing...

These loop devices normally get created automatically if you use App2SD.

If you don't use it there shouldn't be any loop device...

Sent from my loved HTC Desire HD@CM7. <3
[Android Apps and Games] D_one:
I'm wondering if we can install other window managers and choose at login, or add users?
[Android Apps and Games] or.green:
Well, the mknod command does work and a new loop device is created, only the mount fails...
[Android Apps and Games] autonomous-inc:
I'mma give this a go on my Touchpad running CM7, 3.5. Will report back later.
[Android Apps and Games] devwithzachary:
You could have different desktop environments, however linux dosnt play very nice i have found with having more than one installed, and setting up the option of which you want would be more work than I have time for right now sadly.

As far as new users once again I'm not sure if this would even working very well on the chroot image

Indeed, there might be a another problem I will try and look into it
[Android Apps and Games] autonomous-inc:
Confirmed failure on the HP Touchpad running CM7, Alpha 3.5. I got a load of errors when running the script. Too many to post here, but I'm gonna go with the fact that it's probably the kernel, and that running Android on a TP is a pretty big hackjob already to hope for Ubuntu.

If it's any interest, I basically had none of the folders the script was looking for. Something about lacking the init.sh script. Then it tried to unmount nonexistent folders/files.

EDIT:

After reading through the entire thread, D_One and I had the same problem in terminal.
[Android Apps and Games] devwithzachary:
I would recommend trying to light image if you have not already, and if it still dosnt work then yes the chances are its a loop device problem
[Android Apps and Games] or.green:
Let me know if there are any logs that can help, I couldn't find anything on logcat about it...
[Android Apps and Games] D_one:
My problem was solved by extracting it on my computer and copying it to my sdcard.
[Android Apps and Games] devwithzachary:
Hello guys,

I am nearly about ready to release my backtrack 5 app but would like you to first test the image and boot script, included are links for the 800x480 images and the boot script, please download them and place them in a folder called backtrack on the root of your sdcard.

Then carry out the same steps as Ubuntu (cd to sdcard/backtrack then sh backtrack.sh) the vnc settings are the same as Ubuntu apart from the password which is ‘backtrac’

http://www.multiupload.com/13A08IRU3S

http://www.multiupload.com/HLWKZWGW32
[Android Apps and Games] D_one:
Amazing!

Is packet injection working?

I'll try tomorrow
[Android Apps and Games] beepFTW:
Trying now! Lets see how my Kindle Fire preforms haha.
[Android Apps and Games] devwithzachary:
Not sure what is and isn't working due to wifi driver restrictions
[Android Apps and Games] devwithzachary:
The Backtrack 5 app has now been released! it is £1.25 from the market (there is not free version and it is a little more because there was alot more work needed to get it working well!)

The forum thread is HERE