yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] devwithzachary:
Boot script V6

Hello all again, it’s been a busy weekend for ubuntu now hasn’t it :P

Today I have a new script for you guys to test before I push to the outer world, the new features include:

*Using relative links within the script which mean you can now place the script and image where ever you like and the script will work! (note however that the one click boot will still only work if the files are in sdcard/ubuntu)

*Script now checks to see if you have an external sdcard mounted and will mount it (not just if it’s on the sdcard/external_sd)

*Error massages fixed and cleaned up

*More Documentation within the script to make it easier to see what does what

What I need testing is that the script does work no matter where you stick it, so please try placing the script and image in another folder other than ubuntu and run the script, and if you have it try running it from the external sdcard (or even a usb stick if you have a device that supports it!)

I also need to make sure I have covered all the mount points used for the external sdcard, so if you have one check to see if it mounts and if not let me know what its mount point is.

This script will work with both my 10.10 images and my 12.04 :)

Thanks guys and enjoy!
[Android Apps and Games] niuniek24w:
Hello users.

I wanted to run ubuntu on my tablet Archos 70 IT Urukdroid rom 1.6. I run the script sh ubuntu.sh and get this message:

$ Export PATH = / data / local / bin: $ PATH

$ su

# Cd. / Sdcard / ubuntu / sh ubuntu.sh /

cd: bad substitution

# Cd. / Sdcard

/ mnt / storage

# Cd. / Ubuntu

/ mnt / storage / ubuntu

# Sh ubuntu.sh

mount: you must specify the filesystem type

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

Loop device exists

losetup: / dev/block/loop255: device is busy

mount: Device or resource busy

mount: Device or resource busy

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

net.ipv4.ip_forward = 1

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

eth0: No such device

Now enter the screen size you want in pixels (eg 800x480), Followed by [ENTER]:

800x480

Please select Which Desktop Environment do you want to use, type the number to select it then press the [ENTER]

1 - LXDE

2 - Gnome

Make your Selection:

2

xauth: (argv): 1: bad display name "urukdroid: 0" in "add" command

New 'X' desktop is urukdroid: 0

Starting Applications Specified in / root / .vnc / xstartup

Log file is / root / .vnc / urukdroid: 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 ..

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: 172.17.50.160 bcast: 172.17.55.255 Mask: 255.255.248.0

If using androidVNC, change the 'Color Format "setting is 24-bit color, and once you've VNC'd in, change the' input mode 'is a touch pad (in settings)

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

groups: can not find name for group ID 10 039

root @ urukdroid :/ #

Po tym nic się już nie dzieje. Okno terminala zatrzymuje się w tym miejscu.

I ask you for suggestions how to solve this problem.:(
[Android Apps and Games] devwithzachary:
But you reach the root@urukdroid:/# so Ubuntu is running i see no errors to worry about in the boot.
[Android Apps and Games] niuniek24w:
But Ubuntu does not start. stands about 10 minutes to the terminal. I wait longer?:confused:
[Android Apps and Games] devwithzachary:
But it has started you should be able to type commands in once you reach the last line. For example apt-get update
[Android Apps and Games] niuniek24w:
But what I write.? What command?

EDIT:

Written by: apt-get update-have updated packages and still stands on the terminal root @ urukdroid :/ #. Ubuntu does not start.
[Android Apps and Games] devwithzachary:
Once the script has run the terminal acts as a Ubuntu command line interface. If you want to use the GUI then you must connect to it using the vnc app as discribed in my app
[Android Apps and Games] niuniek24w:
you provide a link to your app?
[Android Apps and Games] devwithzachary:
Its in the first post
[Android Apps and Games] niuniek24w:
I installed the Ubuntu application installer files I have ubuntu sh. and ubuntu.img. Where to now paste it in the window shown to Launch Ubuntu I do not have the icons in the Ubuntu Installer.:confused:

EDIT: I using the vnc app its UBUNTU works on my Archos!!!!

Great. Thanks zacthespack for healp me. Beer for you.!!!:):p:D
[Android Apps and Games] ahcor1991:
awesome!

just one problem, when I copy/paste a file it says destination read-only.

I created a text file and saved it worked.

I tested a small Client/Server program with sockets, it worked!
[Android Apps and Games] devwithzachary:
is this with the 12.04 image?
[Android Apps and Games] ahcor1991:
It's v5, sorry I fixed the problem, I tryed to copy to root folder, If I copy to Documents folder it works!

Thanks a lot, ubuntu in android is awesome!

---------- Post added at 04:51 PM ---------- Previous post was at 04:31 PM ----------

BTW when I press "d", it minimizes the current window, I've to press "Alt + d" to write "d".
[Android Apps and Games] GuidoZebra:
I keep getting error message VNC connection failed connection refused, address: localhost port:5900

Pw: Ubuntu. What am I doing wrong?
[Android Apps and Games] DarkhShadow:
Password is "ubuntu" not "Ubuntu"

Sent from my ice cream powered Nexus S
[Android Apps and Games] GuidoZebra:
It wasn't capital. It says VNC connection failed localhost/127.0.0.0:5900 connection refused.
[Android Apps and Games] ahcor1991:
I had that problem too.

when you insert the resolution don't forget the "x".

800x480
[Android Apps and Games] GuidoZebra:
I figured that to be the problem, how do I change it now? Am I going to have to redo the whole terminal thing, or is there a command I can enter to alter the resolution, because I did more than forget the x I accidentaly put 480x800 instead of 800x480
[Android Apps and Games] devwithzachary:
You will have to exit ubuntu and re run the script in the next release of my 12.04 images the screen rez will be saved after input in a while within ubuntu and thus then be changed but for now you must rerun
[Android Apps and Games] GuidoZebra:
[QUOTE=zacthespack;22791480 You will have to exit ubuntu and re run the script in the next release of my 12.04 images the screen rez will be saved after input in a while within ubuntu and thus then be changed but for now you must rerun[/QUOTE

I fixed the resolution, but I am still getting the same error, VNC connection failed.
[Android Apps and Games] hdlopesrocha:
goto system->preferences->keyboard shortcuts->minimize window

or hide all noraml windows and set focus to the desktop
[Android Apps and Games] nukeador:
Today I came across with this:

http://www.ubuntu.com/devices/android

So it seems your idea is going to be also developed by Canonical :D
[Android Apps and Games] GuidoZebra:
No matter what I have tried doing I still get the VCN connection failed :(

And I don't see the message New X Desktop is localhost
[Android Apps and Games] devwithzachary:
Sounds to me like they plan to work with device manufacturers to include it in new devices, while in the future it help my builds to fix bugs, but I doubt they will release anything we could use for some time

I would try another rom/kernel
[Android Apps and Games] dswaggz:
Hey will this work with the exhibit ii running peachsunrise 1.2a
[Android Apps and Games] GuidoZebra:
So now that it is working for me, what is some stuff I can do with it. And is the only browser I can use epiphany?
[Android Apps and Games] Coffeebeans:
Thanks for the great app! Installed ubuntu on my Galaxy Tab 10.1 (GT-P7510) and it works great. I had a problem with the emacs23-common package while updating, but removing the emacs packages fixed the issue.
[Android Apps and Games] GuidoZebra:
How did you update it? When I go to the update manager it says failed to execute child process /usr/bin/ update-manager (no such file or directory)
[Android Apps and Games] Coffeebeans:
I ran the "apt-get upgrade" command, I wouldn't do it though because it also broke firefox. If you need to update a specific package there's probably a way to do that but I'm not sure.
[Android Apps and Games] devwithzachary:
You can install any browser that has a arm port, and yes just use command line updating, these are however really questions better answered in the ubuntu forums http://ubuntuforums.org/

there is a vast about a knowledge there so any questions about ubuntu itself will be answered best there
[Android Apps and Games] Pusheka:
Awesome runs perfectly Galaxy S GT-I9000.

Semaphore 2.5.0 kernel.

ubuntuV6-script is great thanks.
[Android Apps and Games] GuidoZebra:
It didn't break firefox for me, but I had the smaller image so it didn't come with firefox, what I did was Apt-get update, and after that was done I did: Sudo apt-get install firefox
[Android Apps and Games] hhenault:
hello all,

Bravo zacthespack !!!:D

Works for me, Galaxy Note, Stock Rom KKA, rooted, Ubuntu V5 1280x800 LXDE installed straight forward , see image below

Question to any LXDE guru :

How to get larger icons and fonts ?

For those having the same configuration : /dev/block/mmcblk0p9 instead of mmcblk0p5 for mounting /system in ubuntu.sh
[Android Apps and Games] houzuoguo:
Hello :)

I did a search in this thread but haven't noticed anyone with this issue.

I'm using Nexus One with latest CM 7 nightly. Yesterday I installed this Ubuntu for Android. It worked flawlessly, I upgraded some softwares (btw, emacs wouldn't upgrade automatically and I had to manually remove and reinstall emacs), entered/left the Ubuntu terminal and VNC few times without any problem.

However, today, I rebooted my Android and afterwards I start experiencing this problem:

mount: mounting /dev/block/loop 255 on /data/local/mnt failed: Invalid argument.

and subsequencial commands failed.

I immediately suspected that the .img file might be corrupted, so I replaced the .img with the original .img, and it worked again, but the problem comes back after my Android reboots.

It's the Ubuntu V5 full image.

Has anybody came across this problem?

Thanks.
[Android Apps and Games] Pusheka:
May be obtained as shown in the output.

unmount: can"t umount /data/local/mnt: Devaice or rsource buzy

losetup: /dev/block/loop255: Devaice or resource busy
[Android Apps and Games] dz1:
Hey i have a simple question while running ubuntu do you still get mesages txts calls ect?
[Android Apps and Games] greekchampion04:
free app v2.0, using the small file on a Droid 4 running stock rom/kernel with root and busybox:

tried to put it on but it did not quite work... from looking at the log it should work, but what my screen shows (screenshot below) is not working.

VNC Settings:

Nickname: Chris

Password: ubuntu

Address: localhost

Port: 5900

Colors: 24-bit

Screenshot:

Log:
[Android Apps and Games] devwithzachary:
yes as ubuntu is running in android android still gets texts/calls/emails everything
[Android Apps and Games] WingC.:
May I ask that is it support Transfromer's keyboard docking for input?

And also that i know ubuntu is developing the offical ubuntu on android, would u join their work?
[Android Apps and Games] hhenault:
In my galaxy note, there are two sd cards : an internal one, mounted as '/sdcard', (or /mnt/sdcard + symlink), and an external one, removable (FAT32), mounted as '/sdcard/external-sd'.

Once ubuntu is launched, I can see /sdcard/* from both ubuntu and android, and I can see /sdcard/external_sd/* only from android, not from ubuntu.

Q1 : is that due to the fact that there is no block device available in ubuntu ?

=================================================================

--------- EDIT : found it, was mounted in ubuntu as /external_sd; did not see it ...

=================================================================

Same thing with cifs (samba) shares :

Before launching ubuntu, I have a W32 shared directory mounted in Android as /sdcard/xxx, and once ubuntu is launched, I can always see it from android, but not from ubuntu.

But after having Debian smbfs installed, I was able to 'mount' that W32 share as /sdcard/anotherxxx, and access it normally.

Q2 : how can ubuntu 'loose' the first share ?

Anybody having the same kinds of issues ?
[Android Apps and Games] devwithzachary:
yes it works quite well from the keyboard from what I hear.

Well if they offered or it goes open source I may well contribute, but I am just a first year computer science student doubt they would want my help :P
[Android Apps and Games] Klaus.at:
Works with paid app on Huawei Mediapad tablet, with few modifications on the ubuntu.sh startscript and a few additional binaries (losetup, cut).
[Android Apps and Games] cgollner:
Really nice idea man! :D
[Android Apps and Games] devwithzachary:
Your best better would be to try another rom if possible?
[Android Apps and Games] houzuoguo:
Hey zacthespack:

Did anybody ever have problem that the .img file could be mounted as long as Android does not reboot, but after a reboot, it seems to become corrupted and cannot be mounted?

Thanks.
[Android Apps and Games] greekchampion04:
i am not going to try that yet.. there is no SBF/FastBoot available for the Droid 4 yet so i am not going to risk trying to flash anything onto it.
[Android Apps and Games] devwithzachary:
Not so far no, have you tried the 12.04 images? to see if they do the same thing

ah thats fair enough, in which case im not sure its possible that the stock just dosnt quite support it right
[Android Apps and Games] greekchampion04:
ahh ok thanks... any tests/diagnostics i could run to find out what is hanging it up?

i will also try to put this on my old DroidX so that you know one more device that it does/doesn't work on.

damn motorola and their locked bootloaders!!
[Android Apps and Games] devwithzachary:
your telling me, used to love my milestone but the locked bootloader forced me to move on
[Android Apps and Games] greekchampion04:
i had (still have it even tho the digitizer is blown out and its useless as anything other than a bedside clock) a milestone A855 and that definitely has an unlocked bootloader... i think thats the only moto phone that is not locked down.

edit:

poked around a bit and /system/xbin/busybox does not exist.. gotta see what happened to my busybox installation.
[Android Apps and Games] hdlopesrocha:
zacthespack you are doind an amasing work, I would like to test 12.04, is it the same method?
[Android Apps and Games] houzuoguo:
Hello zacthespack :)

I figured out the issue which Ubuntu image file cannot be mounted again after Android reboots.

I copied a presumably corrupted image file (couldn't be mounted in Android) to my Linux machine and tried to mount it, it cannot be mounted as ext2 but can be mounted as ext3.

I cannot figure out why the file system of the image file has changed by itself, but the problem is gone :)
[Android Apps and Games] sk8trix:
I was running some other ubuntu img before and it was working.Now I am trying the backtrack img on my Atrix both with cyanogen with faux kernel and wetdream with faux kernel but i only get a gray screen can anyone help me?

what can I do inside terminal to fix it and make gui load???

Thanks
[Android Apps and Games] greekchampion04:
with lots of help from zeroktal i got it to work on the Droid 4 (stock ROM/Kernel)

you can see the action here (start at post 6): http://xdaforums.com/showthread.php?t=1509836

short version, zeroktal edited the ubuntu.sh to run on the Droid 4.... zacthespack, you may want to check out that thread and see if any of it is worth implementing in the next release.

the only issue i am having now is that the resolution will not come to what i want it to be... i enter 960x540 and end up getting 1024x768

edit: resolution fixed... in terminal vncserver :1 -geometry 960x540.

i will clean this up tomorrow and make one post of a how-to for the Droid4... but I can confirm it works!
[Android Apps and Games] GuidoZebra:
Hello, first, I would like to start by saying, this works on a Samsung Infuse 4g with MIUI. However, I have been having problems, and I was wondering if they were known and obviously unfix able problems due to it being on an android, or if the problems were just me. First, I can't install or remove files via the Software Center, Second, some of the icons and programs do not work. Third, even with firefox, the web browser seems to crash quite frequently. Are these problems normal? Or is it just me?
[Android Apps and Games] houzuoguo:
I'm having exactly the same problem, I'm using a Nexus one so I guess maybe my device's mem is too small...
[Android Apps and Games] devwithzachary:
Indeed just download the 12.04 image you can use the same boot script

Hmm very odd, I was thinking about testing it with ext3 in future builds anyway but its very odd that it changed xD

'I was running some other ubuntu img before and it was working' where you running one of my images with my boot script?

Sweet! glad to see you got it working and yes I will look into the script see if I can integrate, It does seem that for some devices other things are needed in the script so It might come down to devs of those devices changing it to work, but at least you can then use my images :)

Alot of these problems are down to RAM limitations and the fact that even the light 10.10 image is rather large for our devices, the new 12.04 images will be alot better more lightweight and I hope to build a new ubuntu kernel for it so we can use swap within ubuntu. The firefox crash is another bug mind you, if you launch firefox from the terminal with --sync as a command it 'might' be more stable
[Android Apps and Games] barryflanagan:
Works fine on my Transformer. I found that Remote VNC Pro (paid app in the market) works best. Full keyboard support as well as right clicking, which is great.
[Android Apps and Games] _sky.captain_:
Working on DROID RAZR!

I can't be the only person who wants this to work on a DROID RAZR, and after a few modifications, I got LXDE running nicely on mine. How cool is that? :D

I wasn't sure if anyone else had managed this yet, so I wanted to ask the app owner: what's it take to get a device added to the working devices list on the blog?

I think that I only had to make a few changes to the chrooted /root/init.sh and to the ubuntu.sh script itself. Assuming there's interest, I can post my changes tonight or sometime this weekend. App owners, let me know if I should send directly to you instead of posting here for any reason.

Cheers,

Chris
[Android Apps and Games] SimonHtcDesire:
Kernel question

Was always wondering if Ubuntu is using the same kernel as android or if it is a separate one
[Android Apps and Games] devwithzachary:
To get on the working list it has to be working without any changes, but if you could post your changes here or email me with them I can look to include them in the next script so it can be added as a working device, to find out if there is more interest prehaps post in the razr section and let them know about it :)

Nope it has its own kernel running within the image
[Android Apps and Games] xathras:
Your script and large image are working on the Advent Vega custom Ice Cream Sandwich ROM - VegaICS (tabletroms.com/forums/vega-rom-development/vegaics-alpha-3).

View attachment 918375
[Android Apps and Games] Ditti4:
Sorry for telling you, but nope, that's wrong.

It uses the Android-kernel.

That's why it isn't 'booting', only 'chrooting'

Sent from my loved HTC Desire HD@ICS. <3
[Android Apps and Games] devwithzachary:
Sorry it had been a long old day yes you right
[Android Apps and Games] SimonHtcDesire:
Thanks for the answer, so it is something like the "Ubuntu for Android" from Canonical...right?

But how did they manage the communication between the Android OS and Ubuntu?
[Android Apps and Games] devwithzachary:
well we can easily mount and have ubuntu read data from the android partitions (I simply havnt included it because alot could go wrong if you start playing with it) so theres no reason why they could not code ubuntu to be able to read data from this (contacts etc) and import it into there own system. It would take alot of work and right now far more than I have time for thats for sure
[Android Apps and Games] hhenault:
Hi zacthespack,

I tried the following images :

1) V5??? ubuntu.img Jan. 13 2012, size=3584 MB

Works pretty good. Very impressive.

Fits my needs : I could ssh from my PC, then apt-get any package I wanted, and even compile my own stuff and use it.

But : "monitor not recognized" :

no way changing screen resolution, nor 32 to 24 depth

no video player ...

2) 10.10 ubuntu.img Jan. 27 2011,, size=2048 MB

- had to change "chroot $mnt /root/init.sh" into "chroot $mnt /init 5"

- got msg :

"init: Failed to connect to socket /com/ubuntu/upstart: Connection refused"

3) 12.07 [Edit : 12.04, not 07] ubuntu.img (full) Feb. 02 2012, size=1953 MB.

Works pretty good.

Monitor "not recognized" too.

Does not fit my needs because no graphical package manager in LXDE,

and no sshd in the bundle.

Needs further exploration I will do later ...

My feelings : In order to customize ubuntu for my needs on a Galaxy Note, I can't do it using the LXterminal : the "mouse" and the "keyboard" are nightmares (and this is the biggest 'galaxy note' default : missing some 'TrackBall' button)

So a telnetd or a sshd roaring and running just after the VNC connection would be appreciated.

If I could setup an Ubuntu/LXDE working at a lower resolution (Larger Icons and Fonts, but spreading on the whole screen), I would keep it for daily usage above Android.

Nevertheless, showing that Lxde screen to other mates using Iphones or Android phones leaves them voiceless ...
[Android Apps and Games] devwithzachary:
As the GUI is running over VNC you can only change the screen size on boot (as of today's 12.04 image (now uploading) the save as default works again and it asks for screen size on boot) once your inside ubuntu you can't then change the screen size, but you could set up a second VNC connection with the screen size needed to make it look good on a computer using the command

vncserver -geometry 1400x900(or what ever you want)

and in future builds ssh will be included this is just something I forgot to add on building the image
[Android Apps and Games] hdlopesrocha:
ext3 has journaling, ext2 not.

journaling its a method that trys to make write operation atomic. If something goes bad it can redo or undo, that ensures you will not have parcial writting.

Its a little bit hard to explain in english, try on wikipedia.

ext3 its a safe file system for power fails, bad unmounts...
[Android Apps and Games] dazp94:
I think this won't be that useful ... In tablets maybe while doing a presentation or something . Ubuntu's propose is to gather community together not software replacement. anyway nice job (:
[Android Apps and Games] devwithzachary:
lots of people have found uses for this, it is beneficial yes more for a tablet as it has a much larger screen but if you want a full web browser, or need a real word processor program being able to quickly boot into ubuntu is great, sure to some point its doing for the sake of doing, but still :P
[Android Apps and Games] devwithzachary:
Another update to the 12.04 image has just been pushed and a update to the paid app has been uploaded to the market to include this image.

The image change log is:

*Synced to updates as of today

*Fixed boot not asking for screen size (had left defualt boot saved)

*Installed Midori as a working web browser and removed Firefox (kept crashing)

Get it from source forge now:

http://sourceforge.net/projects/linuxonandroid/files/Ubuntu/12.04/full/

Or wait for the paid app update to come to you to download from my server
[Android Apps and Games] hhenault:
thanx, but sshd, please, not ssh
[Android Apps and Games] devwithzachary:
sure sorry typo