[APP] Ubuntu Install Guide - Transformer Testers wanted - 12.04 in testing - Eee Pad Transformer Themes and Apps

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.
Website
http://linuxonandroid.blogspot.com/
Video
http://www.youtube.com/watch?v=UCqzs8yQTM8
App Download
Free App
Paid App
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 [email protected]
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:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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

downloading the image now i would love to help out. Nice work
edit: found one problem. In your guide it says to run
// cd/sdcard/ubuntu //
but it is actually
// cd sdcard/ubuntu //
maybe just a little mistype sort of thing

mrevankyle said:
downloading the image now i would love to help out. Nice work
edit: found one problem. In your guide it says to run
// cd/sdcard/ubuntu //
but it is actually
// cd sdcard/ubuntu //
maybe just a little mistype sort of thing
Click to expand...
Click to collapse
Ah yeah, last update I was playing round with the text formatting, a little mistake! I shall change it in the next update, thank you

Here's what I got when I tried to install ubuntu after downloading the files and extracting to sdcard/ubuntu:
/ $ su
~ # cd sdcard/ubuntu
/mnt/sdcard/ubuntu # sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
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: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 32: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 33: can't create /data/local/mnt/etc/hosts: nonexistent 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.
failed.
failed.
/mnt/sdcard/ubuntu #
I'm on Revolver 3.11 with Clemsyn's 22a kernel. Using the paid version of the app.

mrevankyle said:
downloading the image now i would love to help out. Nice work
edit: found one problem. In your guide it says to run
// cd/sdcard/ubuntu //
but it is actually
// cd sdcard/ubuntu //
maybe just a little mistype sort of thing
Click to expand...
Click to collapse
Did you get this working? I am very interested!
Sent from my DROIDX using XDA App

philburkhardt said:
Here's what I got when I tried to install ubuntu after downloading the files and extracting to sdcard/ubuntu:
/ $ su
~ # cd sdcard/ubuntu
/mnt/sdcard/ubuntu # sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
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: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 32: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 33: can't create /data/local/mnt/etc/hosts: nonexistent 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.
failed.
failed.
/mnt/sdcard/ubuntu #
I'm on Revolver 3.11 with Clemsyn's 22a kernel. Using the paid version of the app.
Click to expand...
Click to collapse
Thank you, this is the last error I have to fix, it effects a range of devices on some roms/kernels still trying different fixes. Best thing to do is try a different rom/kernel

Does it allow to install on external sd?

Sopa strike
Tomorrow as im sure you all know XDA will be having a 12 hour black out and all of tomorrow my sites will be blacked out and I will not be doing any work on my linux projects in protest, if the SOPA and PIPA bills are past then it will be the end of freedom of speech and the internet as we know it.
This would put a hell of a lot of pressure on developers to keep within the 'laws', its very likely this site would face alot of pressure to shut down most of this forum if not the lot.
Thank you all, and I hope you also support the movement! for more information check this site
http://fightforthefuture.org/pipa

tanguita said:
Does it allow to install on external sd?
Click to expand...
Click to collapse
kind of, the problem is different roms mount it at differnet mount points so its not easy to write a script that 'knows' where the external sd is mounted. Write now the boot script only works if the ubuntu folder is in the mount point sdcard/ubuntu
However you could edit the script (change where it says /sdcard/ubuntu) to the mount point for your external sdcard

philburkhardt said:
Here's what I got when I tried to install ubuntu after downloading the files and extracting to sdcard/ubuntu:
/ $ su
~ # cd sdcard/ubuntu
/mnt/sdcard/ubuntu # sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
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: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 32: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 33: can't create /data/local/mnt/etc/hosts: nonexistent 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.
failed.
failed.
/mnt/sdcard/ubuntu #
I'm on Revolver 3.11 with Clemsyn's 22a kernel. Using the paid version of the app.
Click to expand...
Click to collapse
Same for me on Revolver with the stock Asus kernel. I cant change the kernel because it is the only one that has proper HDMI support for my TV.

bkmo said:
Same for me on Revolver with the stock Asus kernel. I cant change the kernel because it is the only one that has proper HDPI support for my TV.
Click to expand...
Click to collapse
I would say try a few other roms then to (but by all means keep the same kernel) that way we can see if its the kernel or rom in this case that stops it from working

zacthespack said:
I would say try a few other roms then to (but by all means keep the same kernel) that way we can see if its the kernel or rom in this case that stops it from working
Click to expand...
Click to collapse
I'm going to pass on this then. If it does not work on my rom, or not from the microsd card then it is not for me. I am sure I can tweak it, but it is not a priority for me right now. Thanks for the reply and for doing this app as I am sure it is very helpful to many.
Sent from my Transformer TF101 using xda premium

bkmo said:
I'm going to pass on this then. If it does not work on my rom, or not from the microsd card then it is not for me. I am sure I can tweak it, but it is not a priority for me right now. Thanks for the reply and for doing this app as I am sure it is very helpful to many.
Sent from my Transformer TF101 using xda premium
Click to expand...
Click to collapse
out of interest what is the mount point for the sdcard on the transformer? it is a feature I want to add as i make the boot script 'smarter'

micro sd is
cd Removable/MicroSD
SdCard on dock is
cd Removable/SD
Usb ports are
cd Removable/USBdisk1 ans USBdisk2

mrevankyle said:
micro sd is
cd Removable/MicroSD
SdCard on dock is
cd Removable/SD
Usb ports are
cd Removable/USBdisk1 ans USBdisk2
Click to expand...
Click to collapse
Thank you, what about the internal storage?
I will be looking at ways to make the script not be location dependent as well after tomorrow/today here so no more posting for me!

zacthespack said:
Thank you, what about the internal storage?
I will be looking at ways to make the script not be location dependent as well after tomorrow/today here so no more posting for me!
Click to expand...
Click to collapse
Internal is /sdcard for compatibility.
Sent from my Transformer TF101 using xda premium

can you change the it to 1280x750 to fit our screen size
and the small version works on revolver but the big version does not

Ubuntu 800x480 works good on my nexus s rom ics 4.0.3 kangy v.6 kernel glados 2.8 with Light version. But when I enter sh ubuntu.sh in terminal emulator I see this: /data/local/mnt/external_sd failed
No such file or directory
Net.ipv4.IP_forward =1
Ubuntu id configured... eth0: no such device.
After that ubuntu start well and I can enter in with vnc.
Why have this? Thx for help.
Inviato dal mio Nexus S usando Tapatalk

RealBearTears said:
Ubuntu 800x480 works good on my nexus s rom ics 4.0.3 kangy v.6 kernel glados 2.8 with Light version. But when I enter sh ubuntu.sh in terminal emulator I see this: /data/local/mnt/external_sd failed
No such file or directory
Net.ipv4.IP_forward =1
Ubuntu id configured... eth0: no such device.
After that ubuntu start well and I can enter in with vnc.
Why have this? Thx for help.
Inviato dal mio Nexus S usando Tapatalk
Click to expand...
Click to collapse
Why would you post this here? You already posted it in the Nexus S forum:
http://forum.xda-developers.com/showpost.php?p=21543875&postcount=39
...this is the Asus Transformer forum. If we start talking about the Nexus S in here it's just going to make the thread confusing.

The new update for the paid version has now been pushed to the marketplace!
I have also started a source forge project for this project, which can be found here https://sourceforge.net/projects/linuxonandroid/ I am still setting it up but I will host the files for the free app here and the source code for the boot script init.sh. We can also then make use of the sites wiki and bug tracker to make it easier for me to handle the bugs that are found.
My next job will be to update the small image, and then I will be doing some more work on the boot script, my aim will be to make it so it doesn't matter where the script and image are it will still boot.
I also want to script to be able to work out what mount points a device has so it can mount both internal and external storage, but for this I need you help!
I need everyone to post the mount points for different storages for example on my archos 101 the internal storage is mounted at /sdcard and the external is /sdcard/externalsd.
Once I have a large list I can make the script look for all of these and mount what a device has.
Thank you all

Related

[Guide] Installing Fedora 12 on SGS4G

Good news for this guide:
I've done it already so you just need to download the files and follow these simple instructions:
YouTube Video of earlier stages of me running Fedora 12
0) make sure your Android Device is rooted (added so I get less nonsensical "It doesn't work!!!!!" and more "I followed everything I get an <insert error here> error! HELP!"
1) download files from http://zornco.net/androfedora/
2) extract fedora_scripts.rar and place all four files (bootfedora, unmountfedora, fedora.sh, fedora.img) in /sdcard/fedora/
3) open android terminal emulator
4) run command "su" (you might have to press allow in the Superuser App)
5) run command "cd /sdcard/fedora"
6) run command "sh fedora.sh"
7) run command "bootfedora" If that returns "not found" run "sh /sdcard/fedora/bootfedora"
8) now you're in fedora (should now see [[email protected] /]#)
OPTIONAL:
9) run "service sshd start" - to run an SSH server
P.S.: I set the root password to password
P.S.S.: I'm pretty sure it's impossible to screw up your Android OS doing this unless you terribly, terribly mess up this guide
Run the scripts and post your errors <- this will help me immensely to make this available on all Android Devices! please, thank you, and have fun!
N4melessS0ldier said:
Good news for this guide:
I've done it already so you just need to download the files and follow these simple instructions:
0) make sure your SGS4G is rooted (added so I get less nonsensical "It doesn't work!!!!!" and more "I followed everything I get an <insert error here> error! HELP!"
1) download files from http://anonymouslyacquired.info/fedoraonsgs4g/
2) place all three files in /sdcard/fedora/
3) open android terminal emulator
4) run command "su" (you might have to press allow in the Superuser App)
5) run command "sh /sdcard/fedora/fedora.sh"
6) run command "bootfedora" If that returns "not found" run "sh /sdcard/fedora/bootfedora"
7) now you're in fedora (should now see [[email protected] /]#)
8) run "startvnc" (my automated vncserver script)
AND/OR
9) run "service sshd start"
If you want to see your newly installed Fedora 12 OS:
android-vnc-client to localhost:5901 with password = password
P.S.: I set the root password to password
P.S.S.: I'm pretty sure it's impossible to screw up your Android OS doing this unless you teriibly, terribly mess up this guide
P.S.S.S: I'm running a rooted Bionix Frost SGS4G ROM with Bali KERNEL (don't think that matters but I do know being rooted matters!)
edit: apparently this isn't working for anyone but myself so far sooooo:
To Moderators: You may delete this thread and move the thread in Galaxy S 4G General: [Guide] Installing Fedora 12 on SGS4G to Galaxy S 4G Android Development (I only posted in General because I didn't have permissions to post here yet and posting here (I hope) will increase my ability to make this available to all SGS4G owners!)
Click to expand...
Click to collapse
forgive me for asking because im usually one to read to learn, but since you made this
what BENEFITS are gained from fedora?
i just dont know exactly what it is? thank you
I suppose mainly for developing. If you have fedora installed on a phone with a kernel that supports adding kernel modules and the kernel headers then you can build new modules for your phone on your phone. Also, it's sortof fun to show off, and it can potentially do some neat things (potentially aircrack-ng if it supports the WiFi device - maybe unlocking some features by allowing you to add linux tools and binaries - adding new media players - converting different media files to things accessible by Android Apps (or just playing them from Fedora) - extracting weird archives - and I'm sure if you take them time you can probably think of cool things you can do with an extremely portable, extremely customizable Linux Operating System Distribution (whether "legit" or less than))
edit: also, most things are already precompiled on a Fedora 12 ARM repo but if they aren't you can easily compile them from your phone (I suggest plugging it in and compiling/installing so you don't waste battery life (also I suggest doing that from your computer to your phone through SSH for easier typing, quicker command entering, etc.) and it may take some time depending on how overclocked the phone is)
Thanks for the explanation brotha!
sent from my sgs4g 2.3.3, finally
So I would be able to modify the frameworkres.apk and other things of that nature?
Sent from my SGH-T959V using XDA Premium App
I got it!
http://forum.xda-developers.com/showpost.php?p=8755526&postcount=7
If bootubuntu gets executed before Android loads all app2sd applications, it is possible solves the loop device busy error even with App2SD applications installed. It requires a very perfect timing, today after few experiments on my phone, I worked out a process which can always boot up Ubuntu on my phone:
1. Reboot phone
2. as soon as you enter lock screen, unlock screen
3. quickly go to terminal emulator
4. become su by typing su and enter
5. type bootubuntu and wait (type it fast... practice )
Click to expand...
Click to collapse
So apparently it's apps2sd causing this problem. I used the ubuntu guide but I'm sure fedora will work now, since it was just a mounting issue.
What I did to type this quickly was change the bootubuntu (or bootfedora in this case) script to just b so i could just do su, press enter, then b, press enter
EDIT
This means that it's possible to boot it as an init.d script to make sure it loads before the phone is done scanning the SD card. I think I'll wind up doing that... It's easier to kill the script when you don't need it than boot it when you want it.
Oh gosh, thank you so much I was just about to give up on public releases. Now that I know the problem I can fix my scripts to get arpund it. Thanks so much!
Sent from my SGH-T959V using XDA App
Just wanted to post again to express my gratitude I will definitely post a new script that will mount regardless of app2sd. Thank you! Thank you! Thank you!
Sent from my SGH-T959V using XDA App
Hey man I'm as happy as you are... Just spent the last few hours messing with ubuntu on the phone. Piece of work that is. You said fedora has sound support when booting on the phone?
Yeah I managed to get sound working.... sad part is my (granted I forgot to make a backup) version of the filesystem image became corrupt.... oops. Well, I'm buying a larger sd card in about 30 mins and I'm going to redo it so soon I'll upload the new img and scripts aswell as a kernel module for you and others using a different linux distro than fedora
Sent from my SGH-T959V using XDA App
Sounds great. Just a heads up, I was messing with the bootscript and I added the lines that mount the sdcard to the other OS's filesystem. Twice I got the phone freezing up so I did a hard reboot (battery pull) and when the phone rebooted it seems as if the /data partition got wiped (except for my background image which got saved, go figure). Weird, not even sure how that could've happened.
Very odd. If this forum has private messaging, PM me exactly what you added so I can make sure that or something more serious doesn't happen to others. Thanks
Sent from my SGH-T959V using XDA App
I just updated the script to mount whether or not you have App2SD installed on your phone.
It turns out App2SD uses a separate loop device for each app you have moved to your SD Card.
I've set the script "bootfedora" to create a "/dev/loop99"
So, unless you have 99 or more Apps moved to your SD Card it should work!
Re-download "bootfedora" from:
http://anonymouslyacquired.info/fedoraonsgs4g/
edit: currently working on new version of my Fedora 12 filesystem (should include a lot more (including working sound for a "nicer" feel) but it sucks if you have less than 2GB of freespace on your SD Card)
I'm completely in the dark when it comes to Fedora but I find it very interesting. It is going to be a Big Development for our phone I'm sure.
Wish I could help you but this is way out of my league.
I'm definitely following your progresses closely. Keep up the Great Work fellas!
Thanks
N4melessS0ldier said:
I just updated the script to mount whether or not you have App2SD installed on your phone.
It turns out App2SD uses a separate loop device for each app you have moved to your SD Card.
I've set the script "bootfedora" to create a "/dev/loop99"
So, unless you have 99 or more Apps moved to your SD Card it should work!
Re-download "bootfedora" from:
http://anonymouslyacquired.info/fedoraonsgs4g/
edit: currently working on new version of my Fedora 12 filesystem (should include a lot more (including working sound for a "nicer" feel) but it sucks if you have less than 2GB of freespace on your SD Card)
Click to expand...
Click to collapse
Alright man, I got it to boot perfectly without doing this at boot startup! Aww yeah, it's on!
One thing though, the scripts you've been posting lately have windows line endings insteads of Unix, so I had to convert them before they worked.
FBis251 said:
Alright man, I got it to boot perfectly without doing this at boot startup! Aww yeah, it's on!
One thing though, the scripts you've been posting lately have windows line endings insteads of Unix, so I had to convert them before they worked.
Click to expand...
Click to collapse
I'm not sure what I'm doing wrong but I keep getting the error
chroot: notfound
: not found
Shutting down Fedora
: not found
glt0404 said:
I'm not sure what I'm doing wrong but I keep getting the error
chroot: notfound
: not found
Shutting down Fedora
: not found
Click to expand...
Click to collapse
What rom/kernel are you using?
FBis251 said:
What rom/kernel are you using?
Click to expand...
Click to collapse
Stock rom with Bali 3.3UV
I'm pretty sure that's not the problem cause I've successfully booted Ubuntu (without gui).
Post up the whole list of commands you ran, plus the errors. Just copy the whole command line text
FBis251 said:
Post up the whole list of commands you ran, plus the errors. Just copy the whole command line text
Click to expand...
Click to collapse
This is what I got.
Code:
export PATH=/data/local/bin:$PATH
# #cd /sdcard/fedora/
# su
# sh fedora.sh
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Usage: mount [-r] [-w] [-o options] [-t type] device directory
rm failed for -f, No such file or directory
: not found
: not found
: not found
: not found
: not found
: not found
Fedora Chroot Bootloader v0.1
Fedora Bootloader is now installed!
This process does NOT damage Android OS!
Original Installer by Charan Singh
Modified for Fedora Chroot by N4melessS0ldier
To enter the Fedora Linux console just type 'bootfedora'
: not found
: not found
# sh bootfedora
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Usage: mount [-r] [-w] [-o options] [-t type] device directory
: No such file or directoryxtcard2
': Read-only file systemctory '/mnt/extcard2
'knod: invalid number '0
losetup: not found
failed: No such file or directory/extcard2
': No such file or directoryy '/mnt/extcard2/rootfs-f12
failed: No such file or directoryp1 on /mnt/extcard2/rootfs-f12
': No such file or directoryy '/mnt/extcard2/rootfs-f12
failed: No such file or directoryard2/rootfs-f12
': No such file or directoryrd2/rootfs-f12
': No such file or directoryrd2/rootfs-f12
failed: No such file or directoryrd2/rootfs-f12
failed: No such file or directoryxtcard2/rootfs-f12
failed: No such file or directoryrd2/rootfs-f12
failed: No such file or directoryrd2/rootfs-f12
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
: directory nonexistentte /mnt/extcard2/rootfs-f12
: directory nonexistentte /mnt/extcard2/rootfs-f12
Setting localhost on /etc/hosts
: directory nonexistentte /mnt/extcard2/rootfs-f12
Operation complete!
Courtesy N4melessS0ldier!
chroot: not found
: not found
Shutting down Fedora
: not found
#

[Q] Anyone have Linux/Ubuntu/Fedora Working Currently On GB?

Problem:
I've worked with every available distribution of Linux, trying to get the damn thing working on my phone. Troubleshooting the ***t out of it, and no deal. Constant errors/files not found etc. So, rather than post my logs and ask for help troubleshooting them (as I've obviously been unable to do), I thought I'd just ask:
Does anybody have a Linux build (besides android!) working on their phone that's running Gingerbread or ICS? If yes, can you post your software specs?
Here are mine currently:
Busybox- v1.19.3-Stericson in /system/xbin
Firmware Version- 2.3.5
Baseband Version- T959VUVKG6
Kernel- 2.6.35.7-T959VUVKI3-CL611444
Build Number- Gingerbread.VUVKI3
Mod Version- Octaine Team Acid
Thanks, this has been a pain in my **s for too long now!
S
I had both Fedora and Ubuntu working on Froyo at one point through lots of modifying and editing of the scripts.
What do you need them for anyway? I think it's more of a hassle to set them up than it's worth.
Well, I am working quite a bit now with linux for servers and such, and it's good to have a system (even minimal) that I can use/reference, plus it helps me get better at it.
Get this: I was so frustrated that I went back to BlackIce (keeping my gb bootloaders) and the damn thing loads right up, ubuntu 11.04, no problem. So, I then loaded up Valhalla's GB build and, sure enough, that works too. So, going with my luck I load octane 2.x GB which i've been digging of late and no deal, ubuntu just won't load.
Now, trying the same trick I cannot get it to work. It just won't load now when I SH it. Here's the instructions that worked before (and I've tried them all!):
http://www.nerd65536.com/2011/07/installing-ubuntu-in-android-version-2.html
Also, I hard bricked again (corrupted bootloaders from a Parallels Windows stallout) but did Adam's UnBrickable Mod and that's all better. Everybody needs to check it out, it's awesome:
http://forum.xda-developers.com/showthread.php?t=1333424
So FBI, any idea why linux is so temperamental? Once it SH's properly, it always works.
(Thanks to all the developers for their great roms!)
Yeah I noticed that slight changes from different ROMs based on the same kernel base had that effect too. I'm thinking it had to do something with the busybox installations since I had to edit the script sometimes. For some reason on some installs running mount won't work unless you use it as busybox mount. It was very iffy like that. I haven't even tried it again because of how frustrating it is to get even a boot. The other thing is that if you try to do a shutdown from ubutu/fedora it doesn't even kill the processes all the way so the only way you can clear some ram up with with a reboot.
Yeah man, I was figuring Busybox myself. I've tried old installs, new installs, xbin only, bin only, xbin & bin, etc. It's so frustrating because I can't figure it out. When it was working it was great, pretty stable.
So the first problem always lists as:
Remounting /system rw...
Mount: no such file or directory
Usage: mount [-r] [-w] etc, etc
So does this tell us that the system is not mounted rw? I used the Mount/system r/w application, but I cannot verify it's doing it's job. Everything is rooted properly, CWM also.
In Terminal on the phone I ran:
"mount | grep system"
which gave me
"/dev/block/st19 on /system type ext4 (rw,relatime,barrier=0,data=writeback)"
which leads me to believe the system is r/w.
I'm converting the system back from ext4 using CWM Voodoo to disable Lagfix and system Lagfix to see if this has any effect. Will report.
No deal. Didn't do a damn thing. I'm going to crack this if it's the last thing I do....
I'm using Better Terminal Pro, Bash shell, and under command line in options it lists the Shell as: /system/bin/sh-
The sh install.sh also tells me:
"Mounting: Loopback mount
mknod: /dev/block/loop254: File exists"
Does this mean that all (255) of my loops are used? Do I need to remove programs?
The available loop device thing never got resolved. Nameless originally fixed it by making it use 254 so that there was a low chance of the loop device being available, but the phone's OS is very iffy about letting a new loop device get assigned to a system image file. Can't really help you out since I never got it to consistently mount with different roms.
Linux on SGS4G Working! Done and Done!
Figured it out.
I can get Ubuntu 11.04, 11.10 & Debian 6 to mount repeatedly in all sorts of ui updatable configurations using this information:
http://www.nerd65536.com/2011/07/installing-ubuntu-in-android-version-2.html
It's a friggin Christmas Miracle! Can't tell you how much time I've wasted working this out, and it all boils down to the sh and run scripts.
So, without further ado, here goes.
!!Make sure you're rooted!!
!!The quotes just tell you what to type. Don't type them!!
1.
Download one of the three builds on the website listed above (or build your own, it should work fine). Extract it from tar.bz2, they should all extract to a linux file, this includes the necessary scripts. Put it on the sd-card on your phone.
2.
Download the new scripts that (Nerd) listed found here: http://ohm.nerd65536.com/android-linux/scripts-latest.tar.bz2
And extract them. You'll have another file that says linux. Open it, take the three files inside (install.sh, root-scripts & scripts) and paste them in the linux folder you moved to your sd-card. They will overwrite the ones currently there. These scripts work for sgs4g, the originals did not.
3.
Install the latest BusyBox in xbin if it's not already installed (must be rooted). Latest is 1.19.3
4.
Download a terminal client, like Better Terminal Emulator or Android Terminal Emulator. I use the first. The terminal needs to run the commands as root, especially the linux vnc command as it didn't want to work for me no matter if I started by typing su. Better Terminal Emulator has a check box to always start in root.
5.
Open up your terminal emulator and type su if you are not rooted there. Then change directory to the linux file on the sd-card. run the sh file there.
Like this:
"su"
"cd /sdcard/linux"
"sh install.sh"
If it works, the resulting dialog in terminal won't throw up any problems.
6.
Get back to / on sd by typing in terminal:
"cd /"
You should then have a: / # prompt, which means you are still rooted.
Enter:
"linux"
Which should result in a: [email protected]:/#
This means Linux is running. Congratulations. It should continue to run unless you shut down your phone.
7.
Download a VNC client, like Android VNC Viewer (free) or Remote VNC Pro, which I use. Add a new entry in it, with the following settings:
Host: localhost
Port: 5901
Password: cheesecake
Color: 24-bit
Name: Linux
When that's done save if you can or back out if you can't, and go back to your terminal emulator.
8.
It should still say: [email protected]:/#
If it doesn't, fine, if it does, just go back to root prompt by typing:
"exit"
Which should get you: / #. Then type:
"linux vnc"
Which should run itself and mount the chroot environment. It should tell you your new 'X' desktop is localhost:1, and have a: / # prompt again.
It might also ask you for a password, if so then put whatever password you'll remember in that's longer than 6 characters and verify it. This only happens once.
9.
Go back to your VNC client and if you entered a password in step 8. then edit your listing to your password instead of cheesecake, if not then don't.
Click on the Linux link and BAM! (shameless Emerilism), you're at your Linux desktop which should be running a iceWM desktop interface, which is fast. The LXDE desktop is nicer and if you want that then go into you're terminal and get into the linux shell by typing:
"linux"
And then switch to LXDE by typing:
"apt-get autoremove icewm- lxde+"
Which will run through the removal/ installation, and verify you want to download the <400mb files. Type:
"y"
And give it time to finish. When finished, just go back to your VNC client and hit Linux again, and you will have a nice looking functional desktop, with a cpu load graph on the bottom. I tried using Gnome desktop and Unity 2d, but both of these would install and not fully run with all options. They are heavier and slower, but cool non-the-less. Let me know if anyone has luck with these on Android.
Notes-
You only have to type "linux vnc" once in terminal to start linux every time you boot your phone. Otherwise, just open your VNC client and click on Linux to use it. Easy!
You will want to update and upgrade your linux after install, do so by typing in terminal:
"apt-get update"
"apt-get upgrade"
Also, you might run across a problem if you try to add-apt-repository, that's because that python command is not present. To use it, enable by typing:
"apt-get install python-software-properties"
Also of note, the downloadable linux builds are sized to about 2.15gig on your sd, which is big enough for most. There is a way to resize them which I tried but it gave me trouble in loading. I will try again and see if I can get it to work.
Here's the link from Dangermouse:
http://www.androidfanatic.com/community-forums.html?func=view&catid=9&id=1610
Thanks to Nerd65536 for the info, write-up and files. He fixed my problem.
sconsylman said:
Also of note, the downloadable linux builds are sized to about 2.15gig on your sd, which is big enough for most. There is a way to resize them which I tried but it gave me trouble in loading. I will try again and see if I can get it to work.
Here's the link from Dangermouse:
Click to expand...
Click to collapse
You're welcome.
It's actually a lot easier than that to make the image larger. Just pop the SD card into a Linux machine and:
(Assuming the original file is: /media/phone/linux/linux.img)
Code:
resize2fs /media/phone/linux/linux.img 4095M
And you're done. resize2fs is made of magic!
Note: Most SD cards are FAT32, which has a filesize limit of 4GiB. The above instructions will make the file a megabyte less than that.
nerd65536:
Thanks! Worked like a charm. Had to e2fsck -f /media/SDCARD/linux/linux.img (phone plugged in to Mint) before i did it to check over the file system, but then it ran immediately. Much appreciated.
Have you had any luck on native boot? I've been working a little on this, as I can't run BackTrack arm well virtually, it gets buggy. Granted the telephony systems won't work during, but the functionality should be pretty good if we could run it standard.
Also, while I'm thinking of it, is it possible to run the img from an ext4 partition on the card? I have an existing one being used for link2sd files and would much prefer using it as it's a far superior file system to fat32, without the 4G limits. Vnc should have no problem graphically, but would the linux.img chroot properly?
It would probably work but you would have to alter the script to mount the other partition if it doesn't do it automatically and change the path. Shouldn't be too hard.
I'm getting an error when I try running sh install.sh:
Code:
# sh install.sh
readlink: applet not found
Remounting /system rw ...
sh: Can't open /linux/scripts/fsrw
Installing scripts in /system/bin ...
cd: can't cd to /linux/scripts
cp: write error: No space left on device
cp: omitting directory 'root-scripts'
Unable to chmod /system/bin/root-scripts: No such file or directory
cp: omitting directory 'scripts'
Unable to chmod /system/bin/scripts: No such file or directory
cp: omitting directory 'tmp'
Unable to chmod /system/bin/tmp: No such file or directory
Mounting the Linux image ...
install.sh: /system/bin/linux: not found
Customizing the image ...
install.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
install.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
Installing root-scripts ...
mkdir failed for /data/local/mnt/root/scripts, No such file or directory
Unable to chmod /data/local/mnt/root/scripts: No such file or directory
cp: can't stat '/linux/root-scripts/*': No such file or directory
Unable to chmod /data/local/mnt/root/scripts/*: No such file or directory
Install finished
# linux
linux: not found
NuVanDibe said:
I'm getting an error when I try running sh install.sh:
Code:
# sh install.sh
readlink: applet not found
Remounting /system rw ...
sh: Can't open /linux/scripts/fsrw
Installing scripts in /system/bin ...
cd: can't cd to /linux/scripts
cp: write error: No space left on device
cp: omitting directory 'root-scripts'
Unable to chmod /system/bin/root-scripts: No such file or directory
cp: omitting directory 'scripts'
Unable to chmod /system/bin/scripts: No such file or directory
cp: omitting directory 'tmp'
Unable to chmod /system/bin/tmp: No such file or directory
Mounting the Linux image ...
install.sh: /system/bin/linux: not found
Customizing the image ...
install.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
install.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
Installing root-scripts ...
mkdir failed for /data/local/mnt/root/scripts, No such file or directory
Unable to chmod /data/local/mnt/root/scripts: No such file or directory
cp: can't stat '/linux/root-scripts/*': No such file or directory
Unable to chmod /data/local/mnt/root/scripts/*: No such file or directory
Install finished
# linux
linux: not found
Click to expand...
Click to collapse
cp: write-error.. no space left on device? You need more space dude

[APP]Ubuntu Install Guide - Nexus One Testers wanted

Hello guys,
Thank you all for the amount of support you have given this project! I have now decided to stop updating this thread. If people still have bugs or want to keep following this project please go to the Main project thread HERE.
I will stop updating this thread because I feel we now know what roms/kernels do and don't work so there is no need for me to keep updating this thread (And the other 5 threads I run for certain devices), but of cause if you do still have problems reply to the main thread or PM me!
Once again thank you all!!
I have released the first version of my 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 only been able to test the app on my HTC Desire S and Gen 8 Archos tablet and as such I need you guys to test this on your phone/tablet and post back how it works on your device!
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.
Website
http://zpwebsites.com/android-app/ubuntu-install-guide/devices/
Video
http://youtu.be/3WNeY9b5DIg
App Download
Free App
Paid App
Boot Script
ubuntu.sh(V5)
Full Images
These images are 1.5GB to download, once extracted 3.5GB, and include alot of programs like openoffice, thunderbird, firefox and over programs for 'developing'
Ubuntu 10.10 V4 - 800x480
Ubuntu 10.10 V4 - 854x480
Ubuntu 10.10 V4 - 960x540
Ubuntu 10.10 V4 - 1024x600
Ubuntu 10.10 V4 - 1280x800
Lightweight Images
These images are just under 500MB to download, once extracted 2.5GB, and include only programs needed (LXDE desktop, firefox, + other basic programs)
Ubuntu 10.10 V4 - 800x480
Ubuntu 10.10 V4 - 854x480
Ubuntu 10.10 V4 - 960x540
Ubuntu 10.10 V4 - 1024x600
Ubuntu 10.10 V4 - 1280x800
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 [email protected]
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:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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
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
See how deep the rabbit-hole goes...
http://linuxonandroid.blogspot.com/
Would you mind having a look at the procedure in the video and let me know what is the advantage of yours against that one? (Asking because this image is much smaller and have all basic apps included too.) Thanks anyway!
Bexton said:
Would you mind having a look at the procedure in the video and let me know what is the advantage of yours against that one? (Asking because this image is much smaller and have all basic apps included too.) Thanks anyway!
Click to expand...
Click to collapse
Main advantages over this include:
*A Much large range of apps included in the large image including java/python/emac and other apps for developing
*vncserver will start automaticly with GUI (no need to install this and set this up etc)
*My Images are updated to the newest updates for 10.10
I would recommend trying it out for yourself, but simply my guide makes the process much much easier
Will give it a shot tomorrow and report some feedback.
Hey zacthespack,
installed the minified Ubuntu 10.10 V4 - 800x480 version today and had no issues with the install process (for device/kernel/rom see my sig). It's running for half an hour now, so a detailed feedback will follow. But one thing what i recognized immediately is the navigation using the trackball what is a bit tricky - and sometimes "not possible". The problem is the amount of pixel the cursor moves per trackball movement. If i open any window and want to navigate to the [x] to close it again, depending on the position, i cannot reach it with the cursor which will move either left, or right or on top or below the [x]. Thus i have to adjust the overall zoom level to a size that i can reach it (with the trackball; pointing with the finger is no problem of course). So, is there any way to adjust the trackball navigation?
Another (minor) thing: You may want to point out in your App's install description that you don't need 3.5Gigs free space in general, but only for the full version.
Bexton said:
Hey zacthespack,
installed the minified Ubuntu 10.10 V4 - 800x480 version today and had no issues with the install process (for device/kernel/rom see my sig). It's running for half an hour now, so a detailed feedback will follow. But one thing what i recognized immediately is the navigation using the trackball what is a bit tricky - and sometimes "not possible". The problem is the amount of pixel the cursor moves per trackball movement. If i open any window and want to navigate to the [x] to close it again, depending on the position, i cannot reach it with the cursor which will move either left, or right or on top or below the [x]. Thus i have to adjust the overall zoom level to a size that i can reach it (with the trackball; pointing with the finger is no problem of course). So, is there any way to adjust the trackball navigation?
Another (minor) thing: You may want to point out in your App's install description that you don't need 3.5Gigs free space in general, but only for the full version.
Click to expand...
Click to collapse
Glad it is working well for you!
I am not sure about adjusting the trackball movement as I do not have a device that has a trackball, you could however use a different input method, if you press menu while in vnc and slect input method you could change it to use the touch screen as a track pad etc.
Ah yes thank you very much, shall adjust the description
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
$ export PATH=/data/local/bin:$PATH
$ su
# cd sdcard
# cd ubuntu
# sh ubuntu.sh
mkdir: can't create directory '/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 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: ip 192.168.2.77 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/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
#
peserey said:
$ export PATH=/data/local/bin:$PATH
$ su
# cd sdcard
# cd ubuntu
# sh ubuntu.sh
mkdir: can't create directory '/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 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: ip 192.168.2.77 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/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
#
Click to expand...
Click to collapse
Yes this is the same problem alot are having, hopefully this is fixed in next release
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
Hello everyone,
I have set up a new server that will be used for the paid apps that should give much faster downloads than the multiupload I use at the moment, it will also allow for direct downloading (i.e. when you press the button in the app the download starts you don’t have to go onto a website to download)
I would like you al if possible to try downloading the test file (the 800x480 sm Ubuntu image) and report back to me with what kind of download speeds you were getting, against what your normal download rate is.
http://zpwebsitefiles.com/apps/ubuntu/ubuntuV4-sm-800.zip
Thank you very much
Evo 4G
well i have this running on my OG ..so far so good
benny3 said:
well i have this running on my OG ..so far so good
Click to expand...
Click to collapse
did you use the v4.2 script or just v4
Just the 4
benny3 said:
Just the 4
Click to expand...
Click to collapse
could you possible test the 4.2 for me as well
I am on a viewsonic G Tablet,Got all working using the 4.2 script,but when it loads I get screen that is blank with a x as a pointing device which I can move around but nothing on screen.?
bambamishere said:
I am on a viewsonic G Tablet,Got all working using the 4.2 script,but when it loads I get screen that is blank with a x as a pointing device which I can move around but nothing on screen.?
Click to expand...
Click to collapse
have you tried the v4 script? some people on the v4.2 cant get the GUI to load, however the v4.2 does get ubuntu booting on alot more devices, just got the fix the UI problem
Yes using the 4.2 script.
bambamishere said:
Yes using the 4.2 script.
Click to expand...
Click to collapse
ok give the V4 script a try
zacthespack said:
ok give the V4 script a try
Click to expand...
Click to collapse
Thats what I am using.

[APP] Linux Installer Taken almost 4 Days to Install

It has taken me almost 4 Days (Since Sunday at 1pm Central Time to now) to download and install Linux on my ASUS Transformer TF101 running AOKP Build 33 using Linux Installer from Google Play... AND IT IS STILL NOT DONE!!!! It is at package number 50,280 of Debian Testing. I don't want to press the Home or Back button cause that might screw up my device... And I can't cancel cause the button disappeared... I tried to email the maker of the app to ask them if this was normal or if I could do anything about it and haven't got a reply back...
Can anybody help me?
It is probably your internet connection.
Just download it to your computer and transfer it as per this thread
http://forum.xda-developers.com/showthread.php?t=1449678&highlight=linux+installer
mrevankyle said:
It is probably your internet connection.
Just download it to your computer and transfer it as per this thread
http://forum.xda-developers.com/showthread.php?t=1449678&highlight=linux+installer
Click to expand...
Click to collapse
One, It has been done downloaded cause my WiFi has been turned off for 3 of the now 5 days.
Two, I am not using that app, I am using https://play.google.com/store/apps/details?id=com.galoula.LinuxInstall
Three, It says it is Verifying Packages and it is at 70,000 something.
EDIT: Okay I canceled using that app and am now using the one you suggested...
However I get a bunch of errors
Kinda like this:
/ $ su
~ # cd sdcard/ubuntu
/mnt/sdcard/ubuntu # sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
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: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 32: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 33: can't create /data/local/mnt/etc/hosts: nonexistent 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.
failed.
failed.
/mnt/sdcard/ubuntu #
Not exactly the same but I also get an extra one saying loop255 not found and I looked and all my stuff in my dev folder has the year 2012 in front of it. So loop255 says "2012 loop255" making the script not work.
Edit 2: Here is correct output from terminal, I am on AOKP build 33.
[email protected]:/ $ export PATH=/data/local/bin:$PATH
[email protected]:/ $ su
[email protected]:/ # cd /sdcard/ubuntu
[email protected]:/sdcard/ubuntu # sh ubuntu.sh
Loop device exists
mount: mounting /sdcard on /data/local/mnt/sdcard failed: I/O error
mount: mounting /Removable/MicroSD on /data/local/mnt/external_sd failed: I/O error
net.ipv4.ip_forward = 1
ubuntu.sh[58]: cannot create /data/local/mnt/etc/resolv.conf: Not a directory
ubuntu.sh[59]: cannot create /data/local/mnt/etc/resolv.conf: Not a directory
ubuntu.sh[60]: cannot create /data/local/mnt/etc/hosts: Not a 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': Not a directory
Shutting down Ubuntu ARM
failed: I/O error
failed: I/O error
losetup: /dev/block/loop255: No such device or address
1|[email protected]:/sdcard/ubuntu #
Any update on the issue with the never ending "validating packages"?
I have the same issue. Was running it for the whole day until it reached 7000, then I canceled and tried again.
The weird fing is, when i tried it the first time, it worked very wuickly and without any issues. But as I had a far too small 500MB image, I tried it again. But since that, no success.
Is it possible that there are some old data kept somewhere?
Is it possible to do a clean start?
I tried already the "reset config" function.
Neverending Validating Packages, No Network Required same as previous poster...
gruinelli said:
Any update on the issue with the never ending "validating packages"?
I have the same issue. Was running it for the whole day until it reached 7000, then I canceled and tried again.
The weird fing is, when i tried it the first time, it worked very wuickly and without any issues. But as I had a far too small 500MB image, I tried it again. But since that, no success.
Is it possible that there are some old data kept somewhere?
Is it possible to do a clean start?
I tried already the "reset config" function.
Click to expand...
Click to collapse
I am having the same issue, I also have a Transformer TF-101
I had issues with the "other" Complete Linux Installer that resulted in I/O errors that I've read about being a problem on Transformer tablets or possibly NVidia Tegra tablets
I am using Linux Installer STD or "Galoula" linux installer
I e-mailed a note to [email protected] but it was kind of wordy and didn't include any attachments, don't know if I will get a reply
I did not mention to them that it was a TF-101
I will probably try debootstrap for myself in a while. I think they've put out a ****load of documentation and I can probably learn more from that documentation than I could by just running the app and installing...
Anyway, I too am not convinced that it's doing anything, I waited for 7000 last night and gave up.
Here is a screenshot of the last status report before I cancelled this time.
This is a really useful looking tool, that could save me a lot of time, but with ext2 filesystem I'm not sure how useful it would be...
Does anyone know how to get mkfs.ext4 on a transformer? It has kernel support, all of the existing filesystems are ext4. But no mkfs.ext3 or mkfs.ext4 seems to be available or on the disk already. I am thinking about preparing my loop file on another machine with some instructions from the wiki instead. It's just debootstrap... I already know how to use debootstrap. Hopefully this tool will recognize the installed system and prompt me to update my linuxchroot script, if it does that it would still be worthwhile to use.
--Kingdon
lol @ waiting 4 days, I'd have cancelled after 40 minutes
dotmaniac said:
It has taken me almost 4 Days (Since Sunday at 1pm Central Time to now) to download and install Linux on my ASUS Transformer TF101 running AOKP Build 33 using Linux Installer from Google Play... AND IT IS STILL NOT DONE!!!! It is at package number 50,280 of Debian Testing. I don't want to press the Home or Back button cause that might screw up my device... And I can't cancel cause the button disappeared... I tried to email the maker of the app to ask them if this was normal or if I could do anything about it and haven't got a reply back...
Can anybody help me?
Click to expand...
Click to collapse
4 days? Damn that's a long time. I could have flashed 4 nightlies. It took me 20 minutes on a low wifi connection with the epic 4g
treat ur girl like how u treat ur epic
I have the feeling it could have to do something with the /etc/hosts file
i blanked mine out (came prefilled by rom dev) and used AdFree
now it does not stuck at "validating", now its stuck at "resolving dependencies"
finaFub every
fixed in latest release

SSHFS on Android - Extend Android features with Debian KIT

HI,
I would like to share the way how I mounted my NAS folders with SSHFS based on Debian KIT.
SSH-FS is ssh based mountable file system. If you have SSH account you can mount and access that server like a windows share.
Forewords:
Debian KIT is free! and it is _NOT_ yet another chroot debian!
This method is an alternative and FREE way to have SSHFS vs to the unique native Android SSHFS app (which is unfortunately paid. )
It is fully integrated with Androitd! Less ram resources and faster than chroot. Debian libraries are binded to Android.
So you enjoy Android and Debian advantages all together.
Steps to have SSHFS:
Set up Debian on your Android! Go to Debian Kit page and set up Debian!
Run Debian. Open Terminal Emulator and type
Code:
$deb
$sudo su
Set up SSHFS
Code:
#apt-get update
#apt-get install sshfs
Mount SSHFS
Code:
#mkdir /mnt/nas
#sshfs [email protected]:/ /mnt/nas/ -o allow_other
Checking mount:
Code:
#mount
[email protected]:/ on /mnt/nas type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=65536)
Then SSHFS will ask your root password and that all!
If no error then its ok, You Mounted!!
You done! :laugh:
Go back to Android and use your mounted share with any Android file manager under /mnt/nas (or where ever you mounted.)
Finishing all, just
Code:
#deb u
(It will umount and close debian session.)
For more comfort, set up password-less login to ssh server with authorized_keys.
#ssh-keygen
#cat ~/.ssh/id_rsa.pub >> /mnt/nas/root/.ssh/authorized_keys
#chmod 600 /mnt/nas/root/.ssh/authorized_keys
After above steps your ssh server wont ask root password from this site to that site logging in with root user.
Press "Thanks" button if its helps for you.
Regards
Robert
Convert docs to pdf with Openoffice within Debian Kit
Another great usage example of Debian kit:
Use your installed Open/Libre/Star/Office to convert your document to pdf:
#!/bin/bash
time soffice --headless --convert-to pdf $1
exit
Check your doc converted to pdf after a minute.
Thanks for the awesome guide. Any idea about mounting virtual drives from my Ubuntu?
whu007 said:
Thanks for the awesome guide. Any idea about mounting virtual drives from my Ubuntu?
Click to expand...
Click to collapse
Hi,
thanks.
>mounting virtual drive...
Can you please describe a little, what is the scenario?
Regards Robert
SSHFS problems @ Android 4.2.2 Nexus 10 - apps cannot see mounted content
Hi,
Robert, thanks for the guide to sshfs with debian-kit. I've been longing to get sshfs on my Android for three years
My problem is that Android Apps cannot see the mounted content, which is what I desire.
I have managed to get debian-kit + sshfs installed, and my nas mounted using sshfs. I can browse the files on the nas from the mounted directory in the ConnectBot Shell, but I cannot see the mounted directory through android apps (or adb shell), eg TotalCommander, OI FileManager, MX video player. I have tried the TotalCommander Android app, and tried telling TotalCommander to always use root (in case user made a difference).
I mounted the nas using ConnectBot local shell with the command:
> sshfs [email protected]:/mnt/user/ /mnt/tower/ -o allow_other
I can see the /mnt/tower content both with the ConnectBot shell as normal user ([email protected]), as root, and with the shell I get after running 'deb' from a ConnectBot shell.
If I remote login from PC to an SSHDroid server on the Android, then I cannot see the mounted content of /mnt/tower (even as root). Neither can Android apps. If I install the openssh-server in debian and stop the SSHDroid server, then I can see the /mnt/tower content from my ssh login from PC.
Best Alex
I've an issue, after mounting the nas folder I try to add it into the Poweramp library, it recognizes it (I've mounted into /sdcard/nas) but none of the mp3 is added to library
thank you
Thanks for the great guide!
Now how can you unmount the SSHFS directory?
The normal way is with:
Code:
fusermount -u /mnt/share
However this causes an error:
Code:
fusermount: failed to bind parent to /: Invalid argument
Does that happen for everyone or is it just me?
Restarting the Debian system with
Code:
deb -u
also did not cause the SSHFS directory to unmount.
Sent from my Nexus 4 using xda app-developers app
Hi
Just try umount /mnt/mountpoint.
Robert
Sent from my GT-N8013 using xda app-developers app
Thank you for this guide! Unfortunately this solution isn't quite what I'm looking for. I found that in order to get my apps to recognize the mounted share I have to first run the app, then mount the share. Also, if the app gets killed I have to unmount the share and then remount it in order for the share to become visible again from within the android app. However, the share remains mounted when viewed from within the debian shell or adb.
Anyone have an idea why this might be happening?
Debian kit not working on S4
Hey, there. I have a rooted Samsung Galaxy S4 (VZW) running stock.
I get this error after all MD5 sums pass:
ash: id: Permission denied
Can someone please assist me or point me in the right direction?
aikeru said:
Hey, there. I have a rooted Samsung Galaxy S4 (VZW) running stock.
I get this error after all MD5 sums pass:
ash: id: Permission denied
Can someone please assist me or point me in the right direction?
Click to expand...
Click to collapse
did you get this right after you started installing? after you used the 'sh' command?
Sounds to me like you might not have root in android, or you didn't click the accept button when the app asked for root permissions.
---------- Post added at 10:46 AM ---------- Previous post was at 10:44 AM ----------
m2xtreme said:
Thank you for this guide! Unfortunately this solution isn't quite what I'm looking for. I found that in order to get my apps to recognize the mounted share I have to first run the app, then mount the share. Also, if the app gets killed I have to unmount the share and then remount it in order for the share to become visible again from within the android app. However, the share remains mounted when viewed from within the debian shell or adb.
Anyone have an idea why this might be happening?
Click to expand...
Click to collapse
I don't think there is much you can do to get around always having to have deb environment open. One way you might be able to kill a few steps is use the 'autofs' package in debian to automatically mount the sshfs share when you login to the debian envorinment.
I haven't tried autofs yet, but it's on my todo list, i'll report back with my findings.
---------- Post added at 11:19 AM ---------- Previous post was at 10:46 AM ----------
chrisonline1991 said:
I haven't tried autofs yet, but it's on my todo list, i'll report back with my findings.
Click to expand...
Click to collapse
So i had some problems running autofs and i can't seem to find the problem, maybe someone more knowledgeable can help. When i install autofs the output is below, but it looks like it did install fine.
Code:
Starting automount: Error: failed to load autofs4 module.
invoke-rc.d: initscript autofs, action "start" failed.
dpkg: error processing autofs5 (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
nfs-common
autofs5
E: Sub-process /usr/bin/dpkg returned an error code (1)
When i run
Code:
$ sudo dpkg --configure -a
it returns
Code:
Setting up nfs-common (1:1.2.2-4squeeze2) ...
insserv: warning: script '99CleanTWEAKS' missing LSB tags and overrides
Starting NFS common utilities: statd failed!
invoke-rc.d: initscript nfs-common, action "start" failed.
dpkg: error processing nfs-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up autofs5 (5.0.4-3.2) ...
insserv: warning: script '99CleanTWEAKS' missing LSB tags and overrides
Starting automount: Error: failed to load autofs4 module.
invoke-rc.d: initscript autofs, action "start" failed.
dpkg: error processing autofs5 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nfs-common
autofs5
I found this bug report which points to this bug report that says something about the newest autofs using a new upstart feature called 'wait-for-state' and something is going wrong with it. Looks like they added the bugfix to Ubuntu Precise. And looks like that fix might now have solved the problem as another bug was opened, but i'm not sure if it's related to this. I'm a little burnt out on this at the moment.
Hope this helps someone. If anyone else has some suggestions let me know and i'll try them out.
Hi
I have been trying to get something like this working for awhile...
Any chance by using debian kit this can automatically run at startup and mount my PC to my Android device?
my android apps just see an empty dir. In my terminal the sshfs command works as expected. When I cd into the mounted directory I can see its contents, android apps just see an empty dir.
Has any one managed to solve this?
late-2017 update
bisbal said:
my android apps just see an empty dir. In my terminal the sshfs command works as expected. When I cd into the mounted directory I can see its contents, android apps just see an empty dir.
Has any one managed to solve this?
Click to expand...
Click to collapse
I ran into a thread on stack exchange that says to mount the sshfs-accessed shares to subdirectories of /data/media/0/. I've yet to try it myself, but it sounds plausible.
(https://android.stackexchange[dot]com/questions/50246/mount-inside-subdir-of-storage-emulated-0)
I was initially reluctant to raise an old topic, but I think this is important; being able to mount a remote data store to your local filesystem is crucial to the mobile environment as the tendency of well-known phone companies like Samsung and Apple in removing the external sd card feature (even my OnePlus 3 doesn't have it). I did consider the Nextbit Robin as my next phone for the smart data storage design, but opted out because of the aging hardware.

Categories

Resources