[APP][1.6+] Ubuntu Installer PLEASE CLOSE THREAD MOVED TO NEW THREAD

Status
Not open for further replies.
Search This thread

devwithzachary

Inactive Recognized Developer
Oct 12, 2009
2,934
1,899
31
London
Huawei P40
Hi guys, I have something new for you to all test!
I have made my first Debian image, this is a 'core' image ie there is no GUI etc. What I need you all to test is if you can run
Code:
apt-get update
, when I run it at the moment I get 404 errors and I need to know if this is just me or something else. Thank you all here are the links to the image and boot script
http://sourceforge.net/projects/linuxonandroid/files/Debian/Script/debian-script.zip/download
http://sourceforge.net/projects/linuxonandroid/files/Debian/Image/Core/debian.zip/download
 

haggardh

Senior Member
Feb 1, 2011
122
11
Memphis, TN
Hey. I bought this app. And was wondering if you have to have S-OFF. I have. Unlocked bootloader and S-ON.. permanent root though.

S-OFF is unattainable right now on the HTC Vivid.. And was wondering if that's why I can't get Ubuntu to boot.

Sent from my HTC Vivid
 

devwithzachary

Inactive Recognized Developer
Oct 12, 2009
2,934
1,899
31
London
Huawei P40
Hey. I bought this app. And was wondering if you have to have S-OFF. I have. Unlocked bootloader and S-ON.. permanent root though.

S-OFF is unattainable right now on the HTC Vivid.. And was wondering if that's why I can't get Ubuntu to boot.

Sent from my HTC Vivid

Nope so long as you have busybox installed to system/bin and have a kernel that supports loop devices you should be good to go
 

Aus4000

Member
Mar 29, 2012
6
2
Price
Totally awesome!

orks with Casio Commando nearly stock everything, EVEN UNDERWATER! Although I'm having the same problem as most with it always saying 'eth0: No such device.' Getting around it is no big deal, though. Other than that it works flawlessly, even at 806Mhz (the current max CPU freq for Commando) Kudos for you! :D
 
Last edited:

k4p741nkrunch

Senior Member
Jun 14, 2010
512
153
Florida
Can anyone here confirm if this works for them on a G2x/O2x device?

I've used a plethora of kernels and two roms now and the best progress I've been able to get is logging in via a VNC viewer and getting the blank grey X screen. I've tried a couple of your provided images as well.

I am in the process of downloading your new debian image as we speak. Hopefully this will work and if it does I'll verify your 404 problem.

Thanks again!
 

gersto

Senior Member
May 19, 2010
285
25
Albuquerque
well good news... it seems gnome is borked (i like gnome -_-) but lxde appears to be running fine. I'm using the large image on my HTC Flyer running Leedroid. I may just redownload the image and try it just to be sure it's not the download, i'll also try the small image too and see how that runs. But at least success i can run Linux on my flyer!
 

k4p741nkrunch

Senior Member
Jun 14, 2010
512
153
Florida
Hey Zac, just wanted to confirm I'm getting the 404 as well.

I did a little digging around and according to the /etc/apt/sources.list file you're using a mirror that doesn't have support for lenny. I actually went to

http://ftp.de.debian.org/debian/dists/

myself and there is no lenny folder.

I did some more digging and it looks like lenny is now archived.

You'll have to switch the repository in /etc/apt/sources.list to
deb http://archive.debian.org/debian lenny main non-free contrib


Easily done with an
# rm /etc/apt/sources.list
# echo 'deb http://archive.debian.org/debian lenny main non-free contrib' > /etc/apt/sources.list

Then just apt-get update and no more 404's. :)

Hope I helped!

*Edit*

Just did it myself, there's going to be some public key errors after an apt-get update.

Just do an
# apt-get install debian-keyring debian-archive-keyring
then
# apt-key update

and now you're all set to apt-get install vncserver.

Again, hope it helps. Looking forward to your all-in-one app.
 
Last edited:
  • Like
Reactions: devwithzachary

eagleofdeath13

Senior Member
Dec 16, 2010
871
142
Excuse me if it's been already asked but, is there a tutorial (or something similar) to build our own Linux image?
If not, is it possible to do one?
Thank you for your work, really great!
 

devwithzachary

Inactive Recognized Developer
Oct 12, 2009
2,934
1,899
31
London
Huawei P40
Maybe it's different now, but the last time i've look into it, i've seen a tutorial to build a Ubuntu image, and nothing more than ubuntu :s

Its different depending on what linux distro you want to build

Hey Zac, just wanted to confirm I'm getting the 404 as well.

I did a little digging around and according to the /etc/apt/sources.list file you're using a mirror that doesn't have support for lenny. I actually went to

http://ftp.de.debian.org/debian/dists/

myself and there is no lenny folder.

I did some more digging and it looks like lenny is now archived.

You'll have to switch the repository in /etc/apt/sources.list to
deb http://archive.debian.org/debian lenny main non-free contrib


Easily done with an
# rm /etc/apt/sources.list
# echo 'deb http://archive.debian.org/debian lenny main non-free contrib' > /etc/apt/sources.list

Then just apt-get update and no more 404's. :)

Hope I helped!

*Edit*

Just did it myself, there's going to be some public key errors after an apt-get update.

Just do an
# apt-get install debian-keyring debian-archive-keyring
then
# apt-key update

and now you're all set to apt-get install vncserver.

Again, hope it helps. Looking forward to your all-in-one app.

Thank you! knew it had to be something like that can now get on with the images/app
 
S

siggismallz

Guest
Last edited:

eagleofdeath13

Senior Member
Dec 16, 2010
871
142

Thanks, but, like in the application, these tutorials are made for Ubuntu only ^^

Its different depending on what linux distro you want to build

Sure, but maybe some generic tutorial? Something to start to work ^^


Something like this : http://www.archos-generation.com/wiki/doku.php?id=en:dev_beta_1
 
Last edited:

12nala34

Senior Member
May 26, 2008
87
1
Silesia
Hi!

I am trying to run Ubuntu on my phone, but I have a little trouble. Running ubuntu.sh I receive an answer:

Code:
# sh ubuntu.sh
sh ubuntu.sh
Loop device exists
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device
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
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
lsof: WARNING: can't stat() yaffs2 file system /cache/recovery (deleted)
      Output information may be incomplete.
umount: can't umount /data/local/mnt/sdcard: No such file or directory
umount: can't umount /data/local/mnt/external_sd: No such file or directory
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
#

What should I change in the script? I was looking for an error and I don't have idea what is wrong.

What is the problem? I have installed superuser and newest busybox. Of course the phone is rooted. Thanks in advance!
 

Fastrite

Senior Member
Problem booting ubuntu

Hi Zak,
Have been running the paid ubuntu app on a Desire S on Reaper and various CM9 Roms (OC to 1.5) for a while, running just fine.
Now trying to run it on an Atrix MB860 (on CM9) and I can't get it to start.
I've removed the Terminal Emulator as a system app and installed it as a user app from the market as suggested. I've installed busy box to /system/bin/ instead of /system/xbin/ as seen earlier in this thread.
Where am I going wrong?
Also would it be possible to put the image on my internal storage instead of my SD card? Maybe by modifying the script?
 

Attachments

  • Screenshot_2012-03-27-22-01-12.jpg
    Screenshot_2012-03-27-22-01-12.jpg
    42.1 KB · Views: 703
Last edited:

k4p741nkrunch

Senior Member
Jun 14, 2010
512
153
Florida
Hi Zak,
Have been running the paid ubuntu app on a Desire S on Reaper and various CM9 Roms (OC to 1.5) for a while, running just fine.
Now trying to run it on an Atrix MB860 (on CM9) and I can't get it to start.
I've removed the Terminal Emulator as a system app and installed it as a user app from the market as suggested. I've installed busy box to /system/bin/ instead of /system/xbin/ as seen earlier in this thread.
Where am I going wrong?
Also would it be possible to put the image on my internal storage instead of my SD card? Maybe by modifying the script?

Hey Fastrite and 12nala, looks like its a simple issue with the directories not being made for mounting. I had that problem with older scripts, but the newer ones work fine. Perhaps you are using an outdated script file?

If you are sure you are using the latest script you can always create the directories yourself. Either use a file explorer with root access like FX file explorer and make the folders

/data/local/mnt/sys
/data/local/mnt/proc
/data/local/mnt/dev/pts
/data/local/mnt/sdcard

Or you can go to the terminal and type:

su
mount -o rw,remount /
mkdir /data/local/mnt/sys
mkdir /data/local/mnt/proc
mkdir /data/local/mnt/dev/pts
mkdir /data/local/mnt/sdcard


Then just rerun the script.
If you get any other errors post em here and I'll try to help.

Sent from my LG-P999 using xda premium
 
Last edited:

12nala34

Senior Member
May 26, 2008
87
1
Silesia
OK, thanks I've got rid of this "No such file or directory" errors. The folders you mentioned didn't exist. Now it is only:

Code:
sh ubuntu.sh
Loop device exists
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device
net.ipv4.ip_forward = 1
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
lsof: WARNING: can't stat() yaffs2 file system /cache/recovery (deleted)
      Output information may be incomplete.
umount: can't umount /data/local/mnt/external_sd: No such file or directory
umount: can't umount /data/local/mnt: Invalid argument
#

I have also added "etc" dir:
mkdir /data/local/mnt/etc

I have downloaded scripts from the app which is available in Google Play.

I don't understand first and second line: There is a Loop Device, there is a Loop255 and mnt dictionary but it can't be mounted.

So there is a "Loop" error, and that's it? Or the "eth0: No such device" is another problem?

Thank you!
 
S

siggismallz

Guest
i had a problem with my first image and redownloaded everything now i cant create folders or write to sdcard, ubuntu says the folders are read-only
terminal says mkdir failed for /data/local/mnt, File exists (i looked with nautilus there is a tmp folder already /data/local/tmp) is that correct or do i need to delete it?)
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory

i'm using the full image untouched

-

Galaxy Nexus - update-cm-9-20120329-NIGHTLY-maguro-signed.zip - ubuntuV5-image.zip - ubuntu.sh(V5)
 

Attachments

  • Screenshot_2012-03-30-10-48-31.jpg
    Screenshot_2012-03-30-10-48-31.jpg
    50.3 KB · Views: 387
  • Screenshot_2012-03-30-12-03-31.jpg
    Screenshot_2012-03-30-12-03-31.jpg
    21 KB · Views: 334
Last edited:

hhenault

Senior Member
Oct 9, 2009
78
6
Paris
i had a problem with my first image and redownloaded everything now i cant create folders or write to sdcard, ubuntu says the folders are read-only
terminal says mkdir failed for /data/local/mnt, File exists (i looked with nautilus there is a tmp folder already /data/local/tmp) is that correct or do i need to delete it?)
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory

i'm using the full image untouched

For those exposing problems when lauching the script (siggismallz, 12nala34 and others), instead of just typing

sh ubuntuv5.sh

I suggest to try

mount
sh -x ubuntuv5.sh

It will show which mounts are failing
 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 65
    THIS PAGE IS NOW CLOSE THE PROJECT HAST MOVED TO A NEW THREAD HERE http://xdaforums.com/showthread.php?t=1585009

    I have working on a project in the form of an app, which guides you through the installation of Ubuntu within android via chroot. It includes a ubuntu 10.10 image I have been working on which includes lots of program to allow users to develop program/scripts etc within Ubuntu on there phone/tablet.

    However I have I have yet to get much testing on this device and would like more feedback from users!

    Please post your device/kernel/rom along with what did and didn't work, so I can draw up what I need to change in the next release of the app/ubuntu build.

    To keep up to date with updates and news of the project please check the website :)
    Website
    http://linuxonandroid.blogspot.com/

    Video
    http://www.youtube.com/watch?v=UCqzs8yQTM8

    App Download

    Boot Script
    ubuntu.sh(V5)

    Full Image
    This image is 1.5GB to download, once extracted 3.5GB, and include alot of programs like openoffice, thunderbird, firefox and over programs for 'developing' - Also allows you to switch between the LXDE and Gnome desktops, and you can define screen size on boot!
    ubuntuV5-image.zip

    Lightweight Image - This is yet to be included in an app, will be included in the next release (aka 2.0 ;) ), so get it now before anyone else!
    This image is just under 500MB to download, once extracted 2.5GB, and include only programs needed (LXDE desktop, web browser, + other basic programs) also allows you to define screen size on boot
    ubuntuV5-sm-image.zip

    12.04 images
    I have now started work on building new 12.04 images these come in core (just the bear-bones ubuntu) and full (ubuntu with GUI and other programs) and will be updated as 12.04 moves through its milestones (and when I make new updates to the mods I make from the main stream arm port).
    These are for testing ONLY until 12.04 reaches stable release.
    You can view the images here:
    http://sourceforge.net/projects/linuxonandroid/files/Ubuntu/12.04/

    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!

    Sig Banner
    Show your love of ubuntu on android with my sig banner:
    ubuntuuser.png

    image url is "http://dl.dropbox.com/u/11206993/ubuntuuser.png"

    Other Guides
    Like this guide? want to try something different? then check out my other guides for different distro's
    Backtrack - This is a distro that is based around security testing, it also includes the Gnome desktop environment and a range of other programs.

    Updates
    18/02/12
    *New 12.04 images started building, for now not included in the app but once a bit more stable will be included

    29/01/12
    *New V5 small image, featuring fixed Java, even more lightweight (now around 1.2GB free) and user can set screen size on boot
    *PAID New Build guide which shows you how to build your own Ubuntu images
    *Brand new UI To make the whole thing more useable
    *PAID new 'one click boot' feature to allow quick booting from either the widget or inside the app
    *PAID new widget to activate the one click boot
    *PAID app install guide changed in light of 'one click boot'
    *Fixed keyboard mapping of random letters in Gnome

    18/01/12
    *Large ubuntu image now allows user to set screen size on boot!
    *Large Ubuntu image now lets you select between LXDE and Gnome desktops
    *Large Ubuntu image has been recompiled to fix the likes of Java (note some of the above changes will be included in the small image in the future)
    *FAQ section updated with more answers to questions I have been getting
    *Install guide updated in light of the new large image

    06/01/12
    *PAID app file downloads now use new fast FTP server and support direct downloading (click the button to download a image and it starts to download right away)
    *New boot script which has fixed problems with it not booting on alot of devices, and fixed problem which some people getting a grey screen when loading UI
    *Boot script now downloaded in zip file to fix problems with downloading script
    *Both apps fixed to support low resolutions
    *Both apps cleaned up

    28/12/11
    *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 easier updating

    19/12/11
    New 'lighter' ubuntu image options for all resolutions already supported

    15/12/11
    New ubuntu images with all updates up to 15/11/11
    FREE app ubuntu image resized to fit 800x480 resolution
    PAID app ubuntu images now includes 4 images for 800x480, 854x480, 1024x600 and 1280x800 resolutions
    6
    On htc sense 3.5 doesn`t work, this is the rom i`ve tested www.sms.goodluckwith.us with your image of ubuntu(the large one)
    4
    Passion!

    zacthespack you know you are just great man...thanks a lot for your hard work because you put a lot of soul and passion here!
    3
    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

    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 :)
    2
    is this like a flash or a new launcher?
    i would like to test it
    lg optimus s
    kravens iho
    looks like its pretty solid would u conisder porting this to the hp touch pad?

    This is a guide to running a full ubuntu image within android, the guide includes links to everything you need etc, I have been working on the ubuntu image and guide for some time in the forums of devices I have so now want to expand to all android devices that can support it.
    Does the HP touch pad have android/a android port? If so its quite possible this would work