yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] corybucher:
Thats the same one I used, I will try and re-download and see if that will fix the issue. Quick question though do I create a folder on the root of my sdcard called Ubuntu? That is how I have it know.
[HTC EVO 3D] danaff37:
http://db.tt/gin57Gd

Oops forgot link

It's a modified one I did myself
[HTC EVO 3D] unCoRrUpTeD:
Worked 14 hours yesterday. Slept, got up and went right back to work. Fixing to get home. Will update then.
[HTC EVO 3D] donnyevo4g:
nope no luck still same error when i adb push bootubuntu /system/bin :(
[HTC EVO 3D] danaff37:
Actually, I messed up and left a syntax error thanks to swype's inability to type a lower case i. So it shouldn't of ran at all. So either you didn't get it actually pushed right, or you need to push it to /system/xbin as well. I fixed it now and changed the link, so re download and try again
[HTC EVO 3D] corybucher:
Ok, I got it to work after a fresh download.
[HTC EVO 3D] unCoRrUpTeD:
Try this and do adb remount before pushing it.

If this doesn't work I'll put up a small script to test out your loop devices and see if it works.
[HTC EVO 3D] danaff37:
Ah crap probably should have mentioned adb remount... Just assumed I guess
[HTC EVO 3D] ZeeGerman:
To uninstall do I just delete it off the SD card?
[HTC EVO 3D] unCoRrUpTeD:
Yes.

Did you ever get it to work?
[HTC EVO 3D] ZeeGerman:


Nope gonna try again now

this is what happened when i reinstalled after deleting the ubuntu file of the sd card and re putting it there from the zip

C:\AndroidSDK\tools>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
HT162T528762 device

C:\AndroidSDK\tools>adb shell
# su
su
# cd /sdcard
cd /sdcard
# cd ubuntu
cd ubuntu
# sh ubuntu.sh
sh ubuntu.sh
modprobe: chdir(/lib/modules): No such file or directory
←[H←[Jrm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
mkdir failed for /data/local/mnt, File exists
←[H←[JUnable to chmod bootubuntu: Operation not permitted
←[H←[J
Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
This process does NOT damage Android OS!

Original Installer by Charan Singh
Modified for Ubuntu Chroot by Max Lee at AndroLinux.com ,G2Hacks.com and NexusOn
eHacks.net

To enter the Ubuntu Linux console just type 'bootubuntu'
# bootubuntu
bootubuntu
losetup: /dev/block/loop1
mount: Device or resource busy
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexist
ent
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexist
ent
Setting localhost on /etc/hosts
bootubuntu: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent
READY TO ROCK AND ROLL BABY!
Brought to you by NexusOneHacks.net and the open source community!

chroot: can't execute '/bin/bash': No such file or directory

Shutting down Ubuntu
failed.
failed.
failed.
failed.
losetup: /dev/block/loop1: Device or resource busy
#
[HTC EVO 3D] donnyevo4g:
nope no beans even pushing to system/xbin and doing adb remount ugh i wanna punch a whole in my phone lol
[HTC EVO 3D] danaff37:
try the bootubuntu script I posted a few posts back... download it and if on computer

adb remount

adb push bootubuntu /system/bin

if on phone, just copy it to /system/bin and change the permissions to rwxr-xr-x

then just try and run bootubuntu (do not run the ubuntu.sh script again)
[HTC EVO 3D] danaff37:
give us a readout of this

ls -l /system/bin/bootubuntu

cat /system/bin/bootubuntu
[HTC EVO 3D] tbm48813:
exact same thing for me, even with the kernel change
[HTC EVO 3D] tbm48813:
if i run the commands seperately it gets stuck on chmod 4777 *. It says something about how it does not have permission. I do have # and i verified su
[HTC EVO 3D] tbm48813:
sh-4.1# ls -l /system/bin/bootubuntu

ls -l /system/bin/bootubuntu

-rwsrwxrwx root root 1182 2011-08-12 22:40 bootubuntu

sh-4.1# cat /system/bin/bootubuntu

cat /system/bin/bootubuntu

#modprobe ext2

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

export kit=/sdcard/ubuntu

export bin=/system/bin

if [ ! -d /data/local/ubuntu ]

then

mkdir /data/local/ubuntu

fi

export mnt=/data/local/ubuntu

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH

export TERM=linux

export HOME=/root

mknod /dev/loop1 b 7 0

losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img

mount -t ext2 /dev/block/loop1 /data/local/ubuntu

#mount -o loop,noatime -t ext2 $kit/ubuntu.img $mnt

mount -t devpts devpts $mnt/dev/pts

mount -t proc proc $mnt/proc

mount -t sysfs sysfs $mnt/sys

sysctl -w net.ipv4.ip_forward=1

echo "Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4"

echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf

echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf

echo "Setting localhost on /etc/hosts "

echo "127.0.0.1 localhost" > $mnt/etc/hosts

echo "READY TO ROCK AND ROLL BABY! "

echo "Brought to you by NexusOneHacks.net and the open source community! "

echo " "

chroot $mnt /bin/bash

#After exit command is executed clear it all up

echo " "

echo "Shutting down Ubuntu"

umount $mnt/dev/pts

umount $mnt/proc

umount $mnt/sys

umount $mnt

losetup -d /dev/block/loop1
[HTC EVO 3D] donnyevo4g:
what is this should i enter these commands ^
[HTC EVO 3D] danaff37:
That's the script catted out.

I posted a different script a few pages back that I think will help you guys. I modified it so we should have no trouble with apps in sd.. I finally got a bigger sdcard so I can test this stuff and this script works great. Please guys try this script. If you download it in phone it will change the name and add a bin on it I think, so rename it accordingly and make sure it gets into /system/bin with the right permissions (755 or rwxr-xr-x), then run it

http://db.tt/gin57Gd
[HTC EVO 3D] evilvoice:
Well using the original developers instructions, I am going in to try and build me a custom version of 11.04, wish me luck.

Also uncorrupted...nice to see you here as well as danaff37...guess you all ditched the Hero as well.

@StrummerJohn, the first post is a little misleading now. I think when uncorrupted posted those instructions, it was on making the image file larger, not on how to install the system from the phone...
[HTC EVO 3D] danaff37:
Also note the OP boot ubuntu script is remounting the wrong partition when trying to remount /system.

I was thinking about putting together my own package with my fixed boot script and an ubuntu image with already working lxde and touch keyboard for the vnc... Would any of you guys find that helpful?

Edit: I've seen a lot of the old hero clan here too... Good to see you guys! I was on the shift for a few months before this, so I know I missed some of the drama back at hero forums.. But I think there is plenty here.

On that note.. Fixxxer isn't still around is he? I keep dreading the thought he might show up in here.
[HTC EVO 3D] evilvoice:
I dont know if he is still around or not, I thought I saw him pop up in the evo 4g forums from time to time...but then didnt he have like 2 or 3 names?

I would definitely find it useful...I am thinking about using one of their prebuilt images...according to the directions on androlinux.com, this command : --seed linux-image-omap, means we are using the OMAP3 version of ubuntu. They have prebuilt images that just need to be extracted and written to an image. I am going to test that out and see if it is bootable. Then I was thinking of increasing the size per uncorrupteds instructions and adding things.

On a side note, while ubuntu is nice to run, do we need everything that comes preinstalled? Cant we take stuff out that we would not benefit from like the browser, or cd burning, or other things? The only reason I mention the browser is because it seems like a lot of work when we have opera/stock browser on the phone that takes a whole lot less time to run than the image...how would we get a package list of stuff to remove? Maybe we can make the image a whole lot smaller, and add stuff like the kitchen, svn tools, compiling tools. I believe EarlyMon was talking about connecting to the vnc from his mac (???), so maybe the browser is not something that should be removed if we can vnc into the image from other computers, but there is definitely some stuff as I dont see the cd burning working or does it load the drivers of the machine you are on? There is a lot I dont understand about linux yet, so if I am wrong, then disregard my statements.

Another side note, I would love to get a version of windows (newer than 98) running in much the same fashion if that would be possible, maybe an embedded version.

PS would it be possible to pxe boot from the ubuntu vnc to boot other computers in the network to this version of ubuntu - THAT would be awesome...I have a few satellite computers that I would love to just pxe boot from, but dont want to lock a machine to be the server. Just a thought

Another thought - DAMMIT, this post is so not gonna flow. In the original image, it looks like we are not using the fsrw, mountonly, unionfs files. I have checked both scripts and they are not called other than to be copied in ubuntu.sh...is there a reason we have these?
[HTC EVO 3D] danaff37:
Those extra files aren't used. Don't know why they are there. I think the mountfs one was originally supposed to be used with union to try and share file systems, but that's why I added in mounting sdcard to /media in the boot ubuntu scrip (the only file system I would really need access to anyways). And I think the fsrw script had the wrong mtd positions listed for out phones anyways; I have a version of it that's universal (just remounts system as writable)

As far as your pxe questions, that's a little above my head. I thought of trying later builds of ubuntu, but don't think it's all that necessary myself... This one runs fine I think. But no reason it shouldn't work. And I already removed some stuff, like gnome, apt-get remove package name is all you need to do
[HTC EVO 3D] freeza:
Is there anyway to install this with a bunch of apps moved to SD?
[HTC EVO 3D] EarlyMon:
Nicely done!

I had run the script immediately after mounting my partition by hand - I believe I recall that I used adb push to move the ubuntu folder over - and I never once caught that.

I'd recalled a few people having trouble with the adb remount command from the temp-root days, so that's why my earlier advice called for a re-run of that original ubuntu.sh (despite the nasty chmod 4777) - I'd assumed that that would undoubtedly mount /system rw.

Never assume. :o

Again - very nicely done!
[HTC EVO 3D] kenny21:
I had all the same problems then i went through all my Apps on my sd card and moved them to main memory and now im able to get past the bootubuntu step

Sent from my EVO 3D
[HTC EVO 3D] danaff37:
yep. My script I posted should by pass that though. I can run it with apps on my sd.
[HTC EVO 3D] donnyevo4g:
yea i did not work for me sir
[HTC EVO 3D] unCoRrUpTeD:
Don't mention fixxer. He will appear out of no where.
[HTC EVO 3D] donnyevo4g:
What happened to everyone lol i hope we have not given up yet but im sure you guys are hard at work i have faith
[HTC EVO 3D] freeza:
How many apps do you have on SD?
[HTC EVO 3D] danaff37:
Seven or eight.

Donny... What rom are you on?
[HTC EVO 3D] j91hernandez:
has anyone tried on a different kernal?
[HTC EVO 3D] danaff37:
Works for me on ziggy kernel in synergy and on netarchy kernel
[HTC EVO 3D] donnyevo4g:
im using bloody rom it worked on here before on my old evo 3d now it wont work but i dont think its the rom its somthing else
[HTC EVO 3D] danaff37:
I was asking because if you were on synergy I was going to have you set up dropbear so I could ssh into your device to try and figure it out. We could try doing picme maybe though.

And, Unfortunately, this quit working for me with apps on my sd. Going to look into it, but I think if you have the loop device tied up to ubuntu before installing app to the sdcard, it would stay, even after reboot. Sorry guys, though I had one over on it on that one. For now, I would recommend removing all apps from sd.
[HTC EVO 3D] -viperboy-:
C:\Users\Derek\Downloads\Android\SDK\android-sdk\tools>adb shell
# cd /sdcard/ubuntu
cd /sdcard/ubuntu
# sh ubuntu.sh
sh ubuntu.sh
modprobe: chdir(/lib/modules): No such file or directory
←[H←[Jrm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
←[H←[Jrm failed for /system/bin/fsrw, No such file or directory
rm failed for /system/bin/bootubuntu, No such file or directory
rm failed for /system/bin/unionfs, No such file or directory
rm failed for /system/bin/mountonly, No such file or directory
Unable to chmod bootubuntu: Operation not permitted
←[H←[J
Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
This process does NOT damage Android OS!

Original Installer by Charan Singh
Modified for Ubuntu Chroot by Max Lee at AndroLinux.com ,G2Hacks.com and NexusOn
eHacks.net

To enter the Ubuntu Linux console just type 'bootubuntu'

Not working, any ideas? I have a kernel with loop support and I do have a few apps on my sd, maybe I should remove them and try.
[HTC EVO 3D] danaff37:
Errors on that first script doesn't matter. Only the bootubuntu script. And yeah, move all apps to internal first. I thought my bootubuntu script would fix apps, but at least it mounts your sdcard in the ubuntu img.
[HTC EVO 3D] -viperboy-:
I tried running bootubuntu (and I named yours bootubuntu2) and I got erros as well. I figured it was because of the first script not working. I will paste up the errors when I get home from work.
[HTC EVO 3D] anti-up:
SUPER EASY!! Thank you! Installed flawlessly the first try. Got errors running the first script but ignored them and kept it moving! For anybody wondering I'm running "Shooter Rewind RLS3"
[HTC EVO 3D] danaff37:
It you can run bootubuntu that's all the first script is accomplishing. If you're getting a device or resource busy error for the bootubuntu script, that's the apps on sdcard error.Don't know what the error would be, but there would be a different error if your kernel doesn't support ext2. Everything else needed should be handled by busybox, so you definitely need to be sure that is set up properly.

Back in my hero days, you had to be sure the kernel had loop support, but since that's how the native apps to sd works, all kernels pretty much have that now.
[HTC EVO 3D] donnyevo4g:
has anyone been able to fix my problem why i cant bootubuntu or why i get the error message i had like 3 people helping me and then i got no response after a couple days of working on it im willing to donate to anyone who can help me fix this i want to run ubuntu on this phone PLEASE HELP!
[HTC EVO 3D] evilvoice:
honestly, if you followed the first post, then it should work. If it does not, try changing your sdcard and try it again. Check the md5 of your download versus what is in the post. Out of all the help that was given to you in this thread, if it still does not work, your phone just wont run it for some reason. I hate to say that, but there are some of us that have gotten this to run from the beginning, and that is about the only thing left is an sdcard issue.
[HTC EVO 3D] EarlyMon:
Make sure you're not overclocking - maybe things went wacky over that?

Can always try to re-install your rom. :confused:
[HTC EVO 3D] EarlyMon:
Quick note before anyone tries - if you go to the stock rooted 2.08.651.2 rom, netarchy's Silverneedle 1.0 won't install on that - so - you lose Ubuntu.
[HTC EVO 3D] htcsensation:
how can i fix?
[HTC EVO 3D] danaff37:
Do you have any apps on sdcard (using the built in a2sd... Under settings/applications/manage applications)?
[HTC EVO 3D] htcsensation:
im using leedoird with stock kernel

# insmod /system/lib/modules/tun.ko

insmod /system/lib/modules/tun.ko

insmod: can't read '/system/lib/modules/tun.ko': No such file or directory

# modprobe ext2

modprobe ext2

modprobe: chdir(/lib/modules): No such file or directory

can be kernel issue?
[HTC EVO 3D] htcsensation:
no app on SDcard
[HTC EVO 3D] danaff37:
Looks like a possibility.. Try another one to see... Make sure it has ext2 support
[HTC EVO 3D] evilvoice:
Hey EarlyMon and danaff37, have either of you updated to a newer version of ubuntu that is usable? I tried a few times, but could never get it to make the image. When running rootstock, it would error out. Any news would be good news.
[HTC EVO 3D] danaff37:
I haven't. Did try the back track image for fun though. It worked about the same. I have a link on my laptop for a 10.10 image though if you want
[HTC EVO 3D] htcsensation:
anything news for ledroid option? installing ubuntu on leedroid?
[HTC EVO 3D] evilvoice:
Hey danaff37, you are pretty knowledgeable. What would it take to build my own ubuntu image? The reason I ask is because I would like to have everything needed installed already, instead of having to pull tightvncserver, like we do currently. Would also like to include things not already there, like java for the kitchen. I try doing the rootstock from a usb booted ubuntu 11.04, but it always errors out, and in different places. I tried using the site EarlyMon posted about creating a chroot image and it never works. I read it is dependent on memory and that rootstock put everything in ram. If that is the case, then that is why it wont work since I only have 2gb and am trying to make a 4gb image...if rootstock does not work that way, I have no idea why it isnt working, unless it only works on a installed ubuntu (which I tried in virtualbox and still errors). Any help is greatly appreciated.

Since the keyboard works with the lxde desktop, shouldnt we use lubuntu as an image?
[HTC EVO 3D] danaff37:
I haven't tried building my own image. Haven't even looked into it. Don't know what's available pre built, and what needs to be cross compiled from source. You could just take a current image, install what you want, then copy that if you're talking about making it available for others.

As far a using lubuntu, it could be a possibility. But it's just as easy if you ask me to remove gnome and install lxde.

On a side note, as a fix to all this loop mess, I think the ultimate would be to dd the image to a separate partition on the sdcard. Then ail you have to do is mount bind dev and proc and chroot, no loop mess needed. But haven't had the time now that college started back... college and a full time job is a lot of work.
[HTC EVO 3D] j91hernandez:
well, i got lost in trying to install lxde on the nano portion of the whole process(couldn't figure out what to do when it needed the scroll ball to be pushed??)...

anyway, I have this running really smooth keyboard doesn't work(duh) but yea!
[HTC EVO 3D] rust1n:
how do i shut down ubuntu
[HTC EVO 3D] StrumerJohn:
You're question has been responded to.

View your PM Inbox ;)
[HTC EVO 3D] StrumerJohn:
Updated the Thread as of 10/7/11, please read the third post if you are interested in Beta Testing for my upcoming release!!
[HTC EVO 3D] iJohnny:
I get this after entering bootubuntu command:

losetup: /dev/block/loop1
mount: Device or resource busy
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
bootubuntu: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent
Setting localhost on /etc/hosts
bootubuntu: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent
READY TO ROCK AND ROLL BABY!
Brought to you by NexusOneHacks.net and the open source community!

chroot: can't execute '/bin/bash': No such file or directory

Shutting down Ubuntu
failed.
failed.
failed.
failed.

Any solution?
[HTC EVO 3D] jadoe05:
I would love to test if you still have slots
[HTC EVO 3D] kMogs17:
Aosp

will this work on aosp such as cm7 with taimat or no? i noticed some have said it works on miui. I imagine it should be similar
[HTC EVO 3D] gmp029:
Will this work with hboot 1.5 / HTC unlock method? Thx,
[HTC EVO 3D] StrumerJohn:
For now just read through the thread, I believe one other user was having a similar issue. There's an alternative script you can run too in the |OP|. I've already fixed 3 or 4 installation bugs and they aren't fun to fix :P. I'll take a look at that one too.
[HTC EVO 3D] StrumerJohn:
Yes it will. Just requires you to do a lot more (Flashing the kernels). I think there's a guide for it.... I'll edit and post a link if I find it.
[HTC EVO 3D] StrumerJohn:
Based on the poll, a member says it should work on Tiamat.

I use MIUI not pure AOSP so I wouldn't know sorry;-; I'll have my beta-testers check :)
[HTC EVO 3D] shalkith:
It seems that the first mirror is broken and the second is very slow. Anyone have a faster mirror?
[HTC EVO 3D] MikeCriggs:
Is this still on Karmic Koala (9.10)?
[HTC EVO 3D] clewis.it:
Just thought i would mention, great work!

I have been playing with this for a few days now. Havent had any issues except for the keyboard, which you already know about. Found out it affected my vnc session on the computer & locally with my bluetooth keyboard too.

Found an alternative fix for it too, if you manage to figure out they keys to type. Unfortunately, writing those down was an afterthought... I will have to copy the original image back over to figure those out again.

Anyway, I was thinking of something interesting. It would be cool if we had a way to output full resolution with the MHL port. So far as i could tell, androidvnc just mirrors the phone display.
[HTC EVO 3D] danaff37:
You can kill the vnc server and start it back using the -geometry tag with whatever resolution you want.
[HTC EVO 3D] clewis.it:
Was that directed at me?

I tried that with -geometry 1280x720

But since it only mirrors the phones screen, i ended up with the a 960x540 display that pans with the mouse pointer.

I think i want to find a way to take over the secondary video output. This will take some time.
[HTC EVO 3D] StrumerJohn:
Thanks for all the requests guys!

I'll be going through them throughout the week and pick around 5 of the 22 I got.

Beta testers-- I will have the beta build out sometime this month.

:::::Also:::: Ewww the OP is gross, I will be re-organizing it soon with updated links and FAQs, etc, etc :)
[HTC EVO 3D] kMogs17:
If anyone is interested, i can confirm that this is working on cm7 with tiamat on the evo 3d. also if you are having issues, remove all apps from sd card as others have said. This is what fixed it for me.

The only thing i cant get working is the keyboard. sorry if this has already been answered, but how do i install lxde?
[HTC EVO 3D] MikeCriggs:
Terminal: sudo apt-get install lxde
[HTC EVO 3D] clewis.it:
Hi again. I was curious if anyone has given this idea a shot yet? Any idea if it will perform better than mounting a loop file?
[HTC EVO 3D] unCoRrUpTeD:
You can use logwrapper to mount a loop devices without knowing what loop devices are not used....

system/bin/logwrapper /system/bin/busybox mount /sdcard/ubuntu/ubuntu.img /data/local/ubuntu
[HTC EVO 3D] clewis.it:
Brilliant!

I use Boot Manager, and I realized after I read this that the reason the ubuntu install doesn't work in my sd card slots is because, "Duh, the system boots from a image file." multiple image files actually.

Now, that logwrapper command didn't work for me, not sure why. instead, I used this one:

busybox mount -o loop -t ext2 /sdcard/ubuntu/ubuntu.img /data/local/ubuntu

Works perfectly in the sd card slots now (if a bit slow). Time to upgrade my SD card.