yashsingh1/xdaforums huggingface dataset:
[Desire Themes and Apps] danarama:
I just cant get a working copy of the 800x400 full ubuntu. Even on Ubuntu 11.10, if I try to extract with archive manager, I get:

bad CRC cdfec25d (should be 973dc4e5)

This was multiple sources (both multiupload and upload king). Can you download to confirm please?
[Desire Themes and Apps] devwithzachary:
I can confirm everything is working ok at my end and no one else who has downloaded it (around 200 people) have had this problem, I will in the next few day be uploading new versions to my ftp server to give faster speeds (this will only be for the paid version however I will PM you the link for the 800x400 full version)
[Desire Themes and Apps] danarama:
thanks very much. I will try and download one more time from a different source.

Just odd I get this on Ubuntu and Android :/

What application was used to zip the files?
[Desire Themes and Apps] devwithzachary:
Yes its very odd, 7zip was used
[Desire Themes and Apps] danarama:
$ export PATH=/data/local/bin:$PATH
$ su
# cd /sdcard/ubuntu
# sh ubuntu.sh
Loop device exists
losetup: /dev/block/loop7
mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource busy
mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or directory
mount: mounting proc on /data/local/mnt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/mnt/sys failed: 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: 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: No such device

chroot: can't execute '/root/init.sh': No such file or directory
Shutting down Ubuntu ARM
umount: can't umount /data/local/mnt/dev/pts: No such file or directory
umount: can't umount /data/local/mnt/proc: No such file or directory
umount: can't umount /data/local/mnt/sys: No such file or directory
umount: can't umount /data/local/mnt: Invalid argument
losetup: /dev/loop7: Device or resource busy
#

I did mkdir for missing directories:

# sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists

losetup: /dev/block/loop7
mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource busy
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
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.1.4 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

looking closer at your shell:

busybox mount -o bind /sdcard/external_sd /data/local/mnt/external_sd

I don't know what /sdcard/external_sd is as the root of my sd card is mnt/sdcard/ so I would have expected to bind that? That said, /data/local/mnt/sdcard now exists (and is the correct mount point).

Let me know any information you want to know about my directory structure.

Its a standard AOSP build, not sense. You can download the ROM from my site in my signature if it helps.

Also, if you have any amendments you want me to test on your shell, just let me know. Cheers
[Desire Themes and Apps] devwithzachary:
Well the main error is likely the same as most people are getting, but its one of two things either your phone is using loop7 for something else, or the file system used dosnt support the larger image. To test if its the latter please try the light weight image, as those that it was the second problem could mount the small image.

the external sd card error is fine, the code is in the script for tablets that have both internal memory which is often mounted /sdcard and then a normal sdcard is mounted sdcard/external_sd.

I will be releasing a new version of the boot script likely tomorrow which it would be wonderful if you could test!
[Desire Themes and Apps] danarama:
That was the lightweight image.

What else uses loop7 in a rom?

I use no a2sd scripts. The only "special" modification is expandable RAM disk for market downloads, which doesnt use loop.

I use FAT32 on SD card so its not the size of the img file thats a problem
[Desire Themes and Apps] devwithzachary:
I know that loop devices are used by some programs but manly used for having apps on the sdcard, but I think its best to hold for the next script release (very very soon I hope!)
[Desire Themes and Apps] danarama:
Sure, no worries
[Desire Themes and Apps] devwithzachary:
Here is a new version of the boot script including alot of changes ad improvements alot thanks to Lubensius, the script is now alot 'smarter' and should work on a better range of devices. Can you please all test this new script so I can stamp out any other bugs before including it in the next release of the app. If you could say if the old version worked or not and then if the new one does or does not work.

Thank you

New Script
[Desire Themes and Apps] danarama:
Script seems to work. It doesn't like exiting and pretty much does the same with --cleanup, but then after a terminal reset and can boot back into it.

the light version, I just get a grey screen and a mouse cursor. is that right? No desktop, panel, unity, nautilus?

Edit never mind. apt-get tells me not. Will install from repository. Will let you know how I get on. Thanks for this. Shame its just me and you in this thread really.
[Desire Themes and Apps] devwithzachary:
No the GUI should work, does it work on the large image?
[Desire Themes and Apps] danarama:
I'll see if I can get one working... bear with me.

---------- Post added at 10:49 PM ---------- Previous post was at 10:41 PM ----------

Having to redownload Large image. may take some time. Will report back tomorrow.
[Desire Themes and Apps] devwithzachary:
just read the change to your last post, apt-get says theres no LXDE installed? someone else reported java isnt working, I have a feeling with all my edits and repacking over and over stuff is starting to brake so over the weekend I will try and rebuild the images from new!

And yes it is a shame noone else is here, unless they are just watching..... o.O
[Desire Themes and Apps] danarama:
Ok great stuff. Thank you. The 3 downloads I downloaded of the large image again wouldn't unpack so at work, downloading to a Windows machine to see if that helps.

Re small image.

In terminal I tried to run nautilus which was unknown. As was unity. When I did an apt-get install on both, it went through the installation process for both, although there were many errors with Unity, which took about an hour to go through the process.
[Desire Themes and Apps] devwithzachary:
the desktop environment used is LXDE so that why neither show up
[Desire Themes and Apps] danarama:
Got a Working large image via Windows and transferred. All the same, see screen shot.

Script output:

# sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
net.ipv4.ip_forward = 1
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device

this is potential insecure!

New 'X' desktop is localhost:0

So the last bit looks good to go. Not sure if:

ubuntu.sh: /system/bin/mount: not found

..Is a problem?

I did:

apt-get install xorg

so I can startx.

During this I noticed:

Unpacking xorg (from .../xorg_1%3a7.5+6ubuntu3_armel.deb) ...
Processing triggers for menu ...
Processing triggers for fontconfig ...
Can not write log, openpty() failed (/dev/pts not mounted?)

Then:

root@localhost:/# startx

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

Am I doing something obviously wrong?
[Desire Themes and Apps] devwithzachary:
I'm not sure, it does seem the it has started the desktop (otherwise you wouldn't beable to connect to ubuntu via vnc, something just isn't right I think I will have to rebuild the images and see if it works
[Desire Themes and Apps] danarama:
Bear in mind I am on a very cut down, highly customised ROM so it is very likely the issue is of my own doing.

Could really do with other Desire AOSP users testing too.
[Desire Themes and Apps] devwithzachary:
indeed it would be useful, go grab some people or something xD
[Desire Themes and Apps] danarama:
Hopefully the below will help :)
[Desire Themes and Apps] CRACING:
I'm very interested to try this but unfortunately mirrors won't work out for me. :(

Wish there were atleast filesonic or rapidshare mirrors. :rolleyes:

Anyways, looking forward.

Thanks for the great work. Keep-it-up.

Best Regards
[Desire Themes and Apps] devwithzachary:
Doing one better, sorting out my own ftp server, this will be included in the paid app to give faster downloads but because im such a nice guy heres the download link for the light weight image (large ones still uploading)

http://zpwebsitefiles.com/apps/ubuntu/ubuntuV4-sm-800.zip
[Desire Themes and Apps] CRACING:
Ah thats great. I will surely try it and post the results here tomorrow. :)

Thanks a lot...

Best Regards
[Desire Themes and Apps] devwithzachary:
oh and you will want this http://zpwebsitefiles.com/apps/ubuntu/ubuntuV4-2.zip
[Desire Themes and Apps] markrs:
I am interested in giving this a go, though as I use the same rom as rootSU (well assuming he is using his own rom) I am likely to have similar problems as he is having so might have to go back to something more default first.
[Desire Themes and Apps] ronilzizou:
This is actually brilliant work!

Ill download all the goodies and test it out on MIUI to see if it works!

Thanks for the work man :)

EDIT: Might have a go on the touchpad with cyanogen mod A3.5
[Desire Themes and Apps] Deifyed:
Awsome stuff.

Downloading it on my desire as we speak(or write). I'm running Cyanogen 7.1.
[Desire Themes and Apps] devwithzachary:
just saw this sorry haha thanks very very much :D
[Desire Themes and Apps] devwithzachary:
While I am waiting for the new images to upload to my server (while download is really fast my upload speed is still like 100kb/s :( ) I created a little sig banner if anyone wants to show there love for ubuntu on android

image url is "http://zpwebsitefiles.com/images/ubuntuuser.png" just add this in with the image tags to your sig, if you like link to back to this thread to so others can get the ubuntu love!
[Desire Themes and Apps] danarama:
Since you're creating the ubuntu images, I think calling the app a guide kind of plays down the effort you put in and the level of your involvement.

If the app could be used to directly download the image instead of a browser redirect, perhaps even be used as a UI for running the script and launching vnc, it would be much more. More like an ubuntu launcher / boot manager.

You could then expand into other distros. The possibilities are almost endless

I think if you keep it as a guide, its a much more disposable app. But if it managed more of the process, I think you would have higher revenue
[Desire Themes and Apps] devwithzachary:
Yeah, I guess it all started when I made just a guide for the Desire S, then I got into building the images and went from there.

The Paid apps will be using my new download server that ill have direct downloads, and if I get enough support through the paid apps I may add this to the free version to (as running the server costs me money makes sense for only those that pay to reap the benefits of much faster downloads and direct downloading).

And yes once the boot script is done to a key my next big step is making the app far more interactive and less just a guide.

I have started to play with other distros (I have released a backtrack version) but I want to wait to do this until the boot script is finished and the app is to
[Desire Themes and Apps] danarama:
Yep makes sense. Looking forward to trying the new images. Really looking forward to getting my favourite distro running on my desire.

Anything I can do to help, please let me know.

Dan
[Desire Themes and Apps] devwithzachary:
and what is your fav distro?
[Desire Themes and Apps] Mr.Mefisto:
Very good thread here!!

---------- Post added at 04:41 AM ---------- Previous post was at 04:32 AM ----------

this works with htc 3.5 sense??
[Desire Themes and Apps] squirreltech:
Damn

New 'X' desktop is localhost:0

Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/localhost:0.log

* Starting OpenBSD Secure Shell server sshd [ OK ]

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

From your android device, login using address: localhost, port: 5900 and password 'ubuntu'. If VNC'ing from a different machine on the same network as the android device use the 1st address below: inet addr:192.168.2.64 Bcast:192.168.2.255 Mask:255.255.255.0 inet addr:127.0.0.1 Mask:255.0.0.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) - and remember you can pinch to zoom. PocketCloud VNC is also a highly recommended android VNC client.

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:/# cd root
root@localhost:~# ls
Desktop
init.sh
untitled_0.odt
root@localhost:~# cd Desktop
root@localhost:~/Desktop# ls
external_sd
firefox.desktop
google-talkplugin_current_i386.deb
gpicview.desktop
leafpad.desktop
lxappearance.desktop
lxterminal.desktop
menu-xdg-X-Debian-Applications-System-Package-Management-synaptic_package_ manager.desktop
pcmanfm.desktop
sdcard
update-manager.desktop
xarchiver.desktop
root@localhost:~/Desktop# sudo dpkg -i google-talkplugin_current_i386.deb
dpkg: error processing google-talkplugin_current_i386.deb (--install): package architecture (i386) does not match system (armel) Errors were encountered while processing: google-talkplugin_current_i386.deb
root@localhost:~/Desktop#

oh well worth a shot

Thanks for this great app. My ROM is ICS 4.0.1. It was quite slow in VNC and the Terminal. might be due to ICS might be due to my class 4 card, or is that just the price we pay for a full linux distro on a phone?
[Desire Themes and Apps] Aahz Pervect:
This is fantastic!
[Desire Themes and Apps] danarama:
Ubuntu?
[Desire Themes and Apps] danarama:
Let us know
[Desire Themes and Apps] devwithzachary:
Yeah to install any packages they have to be either built for ARM or not architecturaly dependent.

Likely to do more with having ICS, lighter roms that leave more RAM free will give a less lagy ubuntu

Oh ok sorry you made it sound like there was another distro you would like to see

Try it and see!
[Desire Themes and Apps] danarama:
Sorry, no just want to get ubuntu working :)

Wonder if my Rom has something.missing? Although its the mounts in the script that worry me as I get errors.

Could you post the output of your terminal when you run the script please? Would be easier to debug if I knew what a good one would look like. If you get chance, output from first time run would also be good, but you would need to delete all your mkdirs first. Anything you can get me will help...

Sorry for asking so much from you ;)
[Desire Themes and Apps] devwithzachary:
This is my out put from v4

$ export PATH=/data/local/bin:$PATH
$ su
# cd sdcard/ubuntu
# sh ubuntum.sh
mkdir: can't create directory '/data/local/mnt': File exists
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
net.ipv4.ip_forward = 1
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: ip 192.168.0.4 mask 255.255.255.0 flags [up broadcast running multicast]

New 'X' desktop is localhost:0

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:0.log

* Starting OpenBSD Secure Shell server sshd [ OK ]

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

From your android device, login using address: localhost, port: 5900 and password 'ubuntu'. If VNC'ing from a different machine on the same network as the android device use the 1st address below:
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet addr:127.0.0.1 Mask:255.0.0.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) - and remember you can pinch to zoom. PocketCloud VNC is also a highly recommended android VNC client.

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:/#
[Desire Themes and Apps] devwithzachary:
And v4.2

$ export PATH=/data/local/bin:$PATH
$ su
# cd sdcard/ubuntu
# sh ubuntu.sh
mkdir: can't create directory '/data/local/mnt': File exists
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
ubuntu.sh: /system/bin/mount: not found
net.ipv4.ip_forward = 1
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: ip 192.168.0.4 mask 255.255.255.0 flags [up broadcast running multicast]

this is potential insecure!

New 'X' desktop is localhost:0

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:0.log

* Starting OpenBSD Secure Shell server sshd [ OK ]

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

From your android device, login using address: localhost, port: 5900 and password 'ubuntu'. If VNC'ing from a different machine on the same network as the android device use the 1st address below:
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.

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) - and remember you can pinch to zoom. PocketCloud VNC is also a highly recommended android VNC client.

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:/#
[Desire Themes and Apps] danarama:
So the only difference I can see in latest script between mine and yours is:

Yours:

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

Mine:

eth0: No such device

Which is only because I was on mobile data at the time, rather than WiFi (wlan0).

Odd...
[Desire Themes and Apps] devwithzachary:
Ok here’s another boot script to test for Ubuntu, this should still allow those that needed v4.2 to get Ubuntu to boot, to boot into Ubuntu. It should have also fixed the grey screen issues. But I have removed a lot of the extra changes for the shutdown, so not sure how well it will likely not completely shut down but it will not at least have errors.

http://zpwebsitefiles.com/apps/ubuntu/ubuntuV5-script.zip

Please test and let me know, how well it works compared to V4 and V4.2

enjoy!
[Desire Themes and Apps] danarama:
Didn't at first. Shut down this time. Usually have to ctrl c. Started up with --clean and bam, desktop. Wicked. Will play more later

Many many thanks
[Desire Themes and Apps] devwithzachary:
with V5 script?
[Desire Themes and Apps] danarama:
yup v5...

My have to look into alternative vnc clients as I dont like the double click mouse being right click). Running a bit slow but that is to be expected.

Forgot it was maverick so fallocate doesnt work. will have to try to dd myself some swap.
[Desire Themes and Apps] devwithzachary:
Indeed the double click sucks but I think it's really the most stable and useable vnc.
[Desire Themes and Apps] Aahz Pervect:
This works quite well on the Kindle Fire with CM7. (I've used both v4 and v5 of the script without issue)
[Desire Themes and Apps] flowtec:
Thanks for this!

Just tested on Ginger Villain 3.3 with the ubuntu-V5-script and works fine!

Had the same trouble before with the V4-Scripts (grey-screen).

Just a question - is this ok, by exiting?

Is there no more a message about unmounting filesystems etc.?

root@localhost:/# exit
exit
Killing Xtightvnc process ID 9615
* Stopping OpenBSD Secure Shell server sshd [ OK ]
Shutting down Ubuntu ARM
umount: can't umount /data/local/mnt/external_sd: Invalid argument
umount: can't umount /data/local/mnt: Device or resource busy
losetup: /dev/block/loop255: Device or resource busy
#

Now will go on with the Backtrack and have look at that.

Go this way you also got your donation! ;)
[Desire Themes and Apps] devwithzachary:
The exit does still need work but for now the cleanest way to exit is just restart the phone.

There will be a ubuntu paid version update tomorrow and then I work on the backtrack and port the new v5 script and add some more features to backtrack
[Desire Themes and Apps] danarama:
Has the kernel for 10.10 been compiled without swap space? Swapon is not implemented :(
[Desire Themes and Apps] devwithzachary:
I'm not sure the kernel used is the generic OMAP4 ubuntu has on there servers, I have made no changes to it. But I guess if its not implemented than it has been compiled without yes
[Desire Themes and Apps] danarama:
ok thank you.

How restricted is this image (the large one)? Should I be able to log out? It doesnt seem to do anything, but I need to to start a unity session. Is this even possible do you know?
[Desire Themes and Apps] devwithzachary:
It's not idea the image can be quite restricted due to having to connect via vnc, and no you can't log out to use a different desktop environment you need to edit the vnc setting file
[Desire Themes and Apps] itechscs:
Thanks this worked pretty good on my inspire running miui eva
[Desire Themes and Apps] danarama:
Thanks. Nearly got it. Slightly nicer looking grey than when lxde didnt load...

Not sure if this syntax is correct. I just commented out the last line and added a new last line of:

/usr/bin/gnome-session --session=ubuntu-2d

Mind you, I don't expect you to help with this as its nothing to do with your work, which is great by the way!

Any plans on releasing unity versions or later than maverick versions?
[Desire Themes and Apps] devwithzachary:
I will take a little this evening once im home.

I do plan to release a newer build but will likely hold out for 12.04 as it will have much better ARM support.

Also once the install process is handled by the app I plan to build in the ability to select a desktop environment before butting!
[Desire Themes and Apps] danarama:
That will be a great feature!
[Desire Themes and Apps] idinaxui:
It Works!

I can confirm, that Ubuntu light works on Desire and Samsung Vibrant and it's quite fast. Downloading the full version image and will try as it completes.
[Desire Themes and Apps] yusuo:
Wow i kinda want this to replace my android o/s, does it make phone calls and send texts????

What works and what doesnt?

And if all the main features work how do I get this to run natively?