yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] liam.lah:
I used the standard terminal emulator that comes with cyanogenmod typing it in with keyboard. I also tried using ADB Shell, but you cant do the trackball plus D in that as far as i know.

There is no error when i do it, it just gives no response, and doesnt give me a new line to put commands in.

Cheers.
[Nexus One Android Development] Chopes:
the trackball + d should close the file out works for me using the default one that comes with cyanogenmod. "Terminal Emulator" is what the app is called, pretty sure it came with it, lol.

EDIT: Still unpacking the required packages even before installing git lol. Been ~an hour now.
[Nexus One Android Development] houzuoguo:
If you're using Windows+adb, when you twice press ctrl+D on computer keyboard, that equals to a trackball+d on Android
[Nexus One Android Development] liam.lah:
Thanks, ill use that. Adb shell is much easier. Though I still can't figure out why cat < x doesn't work.
[Nexus One Android Development] Chopes:
Problem:

So I finally got everything made (following along with the instructions of this thread) and all that but I ended up running into this error:

Ideas guys? hopefully this can work.
[Nexus One Android Development] hotweiss:
Try this:

http://www.howtogeek.com/howto/6697/how-to-force-extension-compatibility-with-firefox-3.6/
[Nexus One Android Development] billp:
I put the ubuntu folder to the sdcard but when I type "sh u" it returns:

"rm failed for -f, no such file or directory"

I posted a photo from terminal.What I'm doing wrong? :confused:
[Nexus One Android Development] Chopes:
Same issue as I am not sure what to set the n1 to be spoofed as.
[Nexus One Android Development] Daeden:
I ran those commands, this is what it gives me.

localhost ubuntu # rm -r -f /data/local/ubuntu

localhost ubuntu # mkdir /data/local/ubuntu

localhost ubuntu # chmod 777 /data/local/ubuntu

localhost ubuntu # b

SET VARIABLES

SET UP LOOP DEVICE

MOUNT

mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: Invalid argument

mount: mounting devpts on /data/local/ubuntu/dev/pts failed: No such file or directory

mount: mounting proc on /data/local/ubuntu/proc failed: No such file or directory

mount: mounting sysfs on /data/local/ubuntu/sys failed: No such file or directory

SET UP NETWORK

net.ipv4.ip_forward = 1

/system/bin/b: line 25: /data/local/ubuntu/etc/resolv.conf: No such file or directory

/system/bin/b: line 26: /data/local/ubuntu/etc/resolv.conf: No such file or directory

/system/bin/b: line 27: /data/local/ubuntu/etc/hosts: No such file or directory

ENTER UBUNTU

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

UMOUNTING

umount: can't forcibly umount /data/local/ubuntu/dev/pts: No such file or directory

umount: can't forcibly umount /data/local/ubuntu/proc: No such file or directory

umount: can't forcibly umount /data/local/ubuntu/sys: No such file or directory

umount: can't forcibly umount /data/local/ubuntu: Invalid argument

localhost ubuntu #

Is there something I am missing?
[Nexus One Android Development] hotweiss:
Did you try the above Firefox hack?
[Nexus One Android Development] Chopes:
Yeah thats what I am asking about, what version should I spoof as using that hack? (Not sure what would be acceptable to the extension).

I tried using the same version information they used in the above hack 3.6 and when i try and open the xpi it just crashes Firefox and the application leaves no dump file.
[Nexus One Android Development] hotweiss:
I think you have to cross-compile it against the ARM source also...
[Nexus One Android Development] Chopes:
Any howto u can link me to?
[Nexus One Android Development] hotweiss:
I will compile it on my computer and upload it for you. I am not sure that it will work though...
[Nexus One Android Development] Chopes:
Worth a shot. Thanks for the assistance.
[Nexus One Android Development] hotweiss:
Give it a try:

http://www.mediafire.com/?6oakdlao40f4w82
[Nexus One Android Development] Chopes:
Gives the same error in the screenshot that I posted a few posts back about incompatable version.
[Nexus One Android Development] hotweiss:
I have no idea at this stage, but it was worth a try.
[Nexus One Android Development] Chopes:
Indeed, going to start googling around on how to spoof build types as it seems that is more the issue then the version #.
[Nexus One Android Development] houzuoguo:
Could you two please post what are your:

version of Busybox

Rom

kernel version
[Nexus One Android Development] Daeden:
Busybox: v1.16.2androidfull

ROM: MicroMod v.18 (AOSP 2.3.1)

Kernel: 2.6.35.7-59410-gba07db7

android-build@apa26 #1

I have also tried MIUI and Cyanogen 6.1.1 stable, if you need info from those I switch between with nandroid.

Thanks.
[Nexus One Android Development] houzuoguo:
I successfully ran ubuntu 10 in CM7, not sure about MicroMod's Gingerbread..

But, try to flash a different kernel, like Pershoot's here:

http://droidbasement.com/db-blog/?p=1377

it worked on CM7, so i guess it will work on MicroMod's Gingerbread too.
[Nexus One Android Development] Daeden:
I flashed the kernel both on MicroMod then on CM6.1.1

Same results.
[Nexus One Android Development] houzuoguo:
that sounds unusual.

What applications do you have in your android?
[Nexus One Android Development] Daeden:
On the CM6.1.1 I don't have anything installed. It is just for testing ubuntu. On the micromod, I have a tons of random/standard apps. Same errors on both though.
[Nexus One Android Development] iammuze:
thanks, this was a great guide. quick question, why do you use 1024x800 for the vnc server? i tried it with 800x480 and it worked fine without any panning.
[Nexus One Android Development] iammuze:
this got me for a second too, i'm not super with linux yet. first of all, you need the opposite symbol (> instead of <) but i think that was a typo on your end. this won't return a new command line, type the rest of the commands in anyway, the instructions will eventually take you out of editing x and back to ubuntu.

the command "cat > x" specifies that whatever you type after that and before you exit with trackball + d will get saved to file x

if it makes you feel better, you can substitute "cat > x" with "nano x", type the commands before the instructions tell you to exit with trackball + d (but don't use trackball + d). when you're done, use trackball + x and hit "y" (enter)

that creates the x script as well.
[Nexus One Android Development] houzuoguo:
In your terminal, run only these two commands:

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

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

Do they report any error?

:D very good question,

800*480 fits Nexus One very well, but some windows in Ubuntu are a bit tall, you won't see the whole window if it's taller than 480px
[Nexus One Android Development] iammuze:
ah, that makes sense thanks. :)

now someone needs to install the android-sdk and get an android emulator running :P
[Nexus One Android Development] mehrad2011:
thanks houzuoguo this works great, your tha man

i have a question about the SD method you mention to run "b" as soon as possible at boot, so is it possible to have a script/service or something that does that automaticly at startup?
[Nexus One Android Development] houzuoguo:
Sorry I didn't make it clear enough.

I actually meaned to run 'b' as soon as "Checking for errors" notification disappears, not as soon as at boot.

I was looking for a /system script that runs as soon as SD FAT32 is mounted, but so far I can't find one.
[Nexus One Android Development] iammuze:
i managed to use this guide to get ubuntu running on a viewsonic gtablet (which is awesome because it has a usb port that supports hubs, mice and keyboards, all which work)

i'm on the zpad clean 3.0 rom with pershoots latest kernel for the gtab. the only things i changed were to edit the "b" script to use /sdcard2/ubuntu because i had my file on internal storage, and to use the tablet's native resolution (1024x600) for the vncserver.

anyone know how to go about reading your devices battery information from within ubuntu?

EDIT: also, how would we go about installing flash on ubuntu? trying with the deb told me i was using the wrong architechture, which makes sense. this looks like the package i want but i dont know how to install it...

thanks to houzuoguo and everyone, this is a fun project.
[Nexus One Android Development] Daeden:
bash-3.2# busybox losetup /dev/block/loop1 /sdcard/ubuntu/ubuntu.img

losetup: /dev/block/loop1: No such file or directory

bash-3.2# busybox mount -t ext2 /dev/block/loop1 /data/local/ubuntu

mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: No such file or directory

bash-3.2#

This is what it reports on MicroMod. I can switch over to CM6.1.1 in a bit and check.

Thanks.
[Nexus One Android Development] houzuoguo:
That sounds like your kernel doesn't support loop device... :confused:
[Nexus One Android Development] Jywa:
Thanks for your work.

It works great on my device.

I have some questions, hope you will be able to help me:

1 - how do you create the ubuntu.img ? Is it possible to make it with any os? Ubuntu Netbook or Crunchbang Linux for example ?

2 - it is possible to make à bigger ubuntu.img ? Without lose what is already on it ?

3 - i installed ubuntu-netbook but was not able to launch it. Do you think it's possible ? At start-up ?

4 - eclipse + Android sdk : will it work ? Develop, compile and test application in my 3 hours of transport is my dream.
[Nexus One Android Development] houzuoguo:
I'm new to Linux but I do my best to answer :)

1. I've seen a tutorial on how to create Linux image file, sorry I forget where it is. I think It is quite possible to run most ARM Linux on Nexus One.

2. Yes there is a way, but Fat32 has a 4GB file size limitation and the ubuntu.img has already got around 900MB free space, so I think there's no much need to expend it.

3. Android low-mem-killer killed it? perhaps

4. Although it is called "Ubuntu on Nexus One" but actually every process in Ubuntu is managed by Android's kernel, thus programs which need huge memory will get killed, it's almost impossible to run those huge programs.

I just found the tutorial:

http://www.cyberciti.biz/faq/howto-create-lage-files-with-dd-command/

I haven't tested it by myself but it should work.
[Nexus One Android Development] Jywa:
Thanks for your help.

I forget the 4GB limitation...

I will try to see for how mount 2 or more img. Something like one with /root and /user and one for others folder for be able to have more space.

I will try develop without eclipse and use directly the Android tools and gedit for see if it usable or not.

Thanks again for your tutorials. They very easy to follow and make things easy to do.
[Nexus One Android Development] leopard106:
really gr8 step by step method

if you could make the same for meego

i wish i can see meego running on my n1
[Nexus One Android Development] dekkon:
10characters
[Nexus One Android Development] billp:
me too :confused::confused:
[Nexus One Android Development] dekkon:
Are you running DT's A2SD? As best I can figure it may have something to do with that.
[Nexus One Android Development] houzuoguo:
I think I need more Linux knowledge to answer about the question :)

sounds to me that your kernel has lack support of loop device...

oh no!

I'm not sure if this has caused the problem:

"Note:

This is not to be used on Gingerbread/CM7 RC0"

from pershoot's kernel page
[Nexus One Android Development] ijama:
I need help..someone can guide us whose interest run ubuntu 10.10 on their nexy one..i'vr download ubuntu zip file from hd2 forum..unzip and rename it..copy all requierement file on my root sdcard..open terminal and execute command script..but fail..what version busybox need for this and rite now i run stock gingerbread plus succesfully install ubuntu version 9.10 guide from nexusonehacks.net..i cant boot ubuntu version 10.10 on my nexy..please guide comrade..blurr...and SORRY for my broken language..i'm not good in typing english

Sent from my Nexus One
[Nexus One Android Development] houzuoguo:
There is another "distribution" of Ubuntu 10.10 for Android that provides more pre-installed applications and more robust. I remember the thread is in a Samsung phone forum, I followed the instructions and got it working on my Nexus One, so if my tutorial does not work, maybe try the another one.

Unfortunately I cannot find the thread anymore, but I have a copy of it, the credits in the script gives:

# by Martin Rhodes (fire314)- martin.rhodes@gmail.com #

What is this?

An ubuntu 10.10 maverick (with LXDE window manager) machine in your pocket. Perfectly usable from the phone itself using a VNC client, this allows you to install any ubuntu software onto your phone and have it with you always. Coupled with the (potential) ability for your phone to be hooked up to a television with TV Out (works with the Nokia TV Out cable available on eBay), and for (supposedly any) HID-compliant bluetooth keyboard and mouse to be linked up to the phone (requires Android 2.2), this really does become a PC in your pocket.

Requirements:

- android phone

- superuser + busybox

Included:

- 3.5GB virtual machine image (ubuntu.img) with ubuntu and certain applications pre-installed (listed below). The image is resizable with uec-resize-image, although FAT32 (the most likely format of your SD Card) has a maximum file size of <4GB.

- A script to boot into ubuntu from android (ubuntu.sh)

- A script to start the VNC Server and other startup commands. This is contained within the ubuntu.img file at /root/init.sh, accessible and modifiable once ubuntu.img has successfully booted.

Martin Rhodes (martin.rhodes@gmail.com, fire314 @ XDA).

Hope that helps :)
[Nexus One Android Development] houzuoguo:
At the moment when the first tutorial appeared, Cyanogen Mod was at 5.7 or 5.8, the tutorial also worked in 6.0 i think, the busybox version was probably 1.16.1 or 1.16.2.

Theoretically busybox version shouldn't matter much to run Ubuntu.
[Nexus One Android Development] ijama:
Thanks for the hint and guide...will try this tonight

Sent from my Nexus One
[Nexus One Android Development] peserey:
$ export PATH=/data/local/bin:$PATH

$ cd sdcard

$ cd ubuntu

$ sh u

mount: you must be root

cp: can't create '/system/bin/b': File exists

cp: can't create '/system/bin/e': File exists

Type 'b' to boot Ubuntu

$ b

mount: you must be root

SET VARIABLES

mkdir: can't create directory '/data/local/ubuntu': Permission denied

chmod: /data/local/ubuntu: No such file or directory

SET UP LOOP DEVICE

losetup: /dev/block/loop1: Permission denied

MOUNT

mount: you must be root

mount: you must be root

mount: you must be root

mount: you must be root

SET UP NETWORK

sysctl: error setting key 'net.ipv4.ip_forward': Permission denied

b: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent

b: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent

b: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent

ENTER UBUNTU

chroot: can't change root directory to /data/local/ubuntu: No such file or directory

UMOUNTING

umount: can't forcibly umount /data/local/ubuntu/dev/pts: No such file or directory

umount: can't forcibly umount /data/local/ubuntu/proc: No such file or directory

umount: can't forcibly umount /data/local/ubuntu/sys: No such file or directory

umount: can't forcibly umount /data/local/ubuntu: No such file or directory

losetup: /dev/block/loop1: Permission denied

$
[Nexus One Android Development] Dark-Side:
Perhaps... you must be root ;)
[Nexus One Android Development] blackcell1:
im getting this error,

$ su

# sh u

Type 'b' to boot Ubuntu

# b

SET VARIABLES

SET UP LOOP DEVICE

losetup: /dev/block/loop1

MOUNT

mount: mounting /dev/block/loop1 on /data/local/ubuntu failed: Device or resource busy

mount: mounting devpts on /data/local/ubuntu/dev/pts failed: No such file or directory

mount: mounting proc on /data/local/ubuntu/proc failed: No such file or directory

mount: mounting sysfs on /data/local/ubuntu/sys failed: No such file or directory

SET UP NETWORK

net.ipv4.ip_forward = 1

b: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent

b: cannot create /data/local/ubuntu/etc/resolv.conf: directory nonexistent

b: cannot create /data/local/ubuntu/etc/hosts: directory nonexistent

ENTER UBUNTU

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

UMOUNTING

umount: can't forcibly umount /data/local/ubuntu/dev/pts: No such file or directory

umount: can't forcibly umount /data/local/ubuntu/proc: No such file or directory

umount: can't forcibly umount /data/local/ubuntu/sys: No such file or directory

umount: can't forcibly umount /data/local/ubuntu: Invalid argument

losetup: /dev/block/loop1: Device or resource busy

#

iv been getting this error with other tutorials on installing ubuntu onto my nexus one :( can anyone help me out ? (all my phone specs are listed in my sig)
[Android Software/Hacking General [Developers Only]] bellatrix2011:
I have an HTC EVO 4G flashed to cricket. I am unable to use internet and mms on this device however. Maybe my phone is not flashed properly. Now I have never tried to flash any phone before. It would be great if you could guide me how to perform this on my own and tell me what I need to download and how to go about it.

Thank you
[G2 and Desire Z Q&A, Help & Troubleshooting] DankDomo:
Hi, I got a G2 yesterday =] I have a couple of questions.

I rooted my phone and put the cyanogen rom on it and it works fine but i dont understand whats so great about it. I liked the Stock one better. So I wanted to know whats the best rom out right now.

Another question is how do i properly Unroot the phone if i want it dead stock again? I didnt think about unrooting before i rooted =/.

Aaaaaand my last question. I want to have music controls on my locked screen so i can just hit the lock button once and be able to control the music. Is that possible?

Thats it for now. Thanks in advance to anyone who can help.
[G2 and Desire Z Q&A, Help & Troubleshooting] androidcues:
1. cm has settings and more control over what the phone does. go back to stock if you like - try enomther's official (search for it)

2. read the wiki on how to unroot your phone. (seach for it - or look up)

3. music controls in cm settings....

4. search before you post your next question.
[G2 and Desire Z Q&A, Help & Troubleshooting] DankDomo:
Dang fast reply. My bad. and thanks a lot.
[G2 and Desire Z Q&A, Help & Troubleshooting] dontbes:
I would try a sense ROM :D it makes Android way better in my opinion. Stock is great and all but it all depends on what you like :]
[Captivate Q&A, Help & Troubleshooting] AmznAzn:
I have a Samsung Captivate, its my first smartphone but its a GREAT phone! but i think the one i have is defective. Here is whats wrong:

It doesnt find my location AT ALL. I tried (think) everything out there:

the lbstestmode method,

the samsung gps fix app,

update for 2.1,

updated to 2.2,

and finally the method involving the back cover.

All with the same result.

The next thing is it randomly turns off after a full charge or on standby overnight.

The speaker is not strong.

This is not important but the text plus app doesnt connect through wi-fi.

Are these things fixable? If not should I return this one for a brand new one?

Thanks everyone!
[Captivate Q&A, Help & Troubleshooting] koreancanuck:
Shutdown issue alone you should return the device and get a replacement one (or get another device if you desire). AT&T will replace your device free of charge.

Regarding the speaker, it's very strong for me. It might be the roms that you use.

I don't use text plus app but maybe try a different wifi connection?
[Captivate Q&A, Help & Troubleshooting] ccdoggy:
Agreed. take it back. the poor GPS happens on some of the Phones but not all. the other problems are all not common and so it needs to be taken care of.
[Captivate Q&A, Help & Troubleshooting] flashman2002:
When you updated to 2.2 was it just JI6? Did you go to a Rom that has any overclock to it? There are fixes now for the GPS by running different Rom's. Each work with different results from phone to phone. I have had really good results with I9000 Rom's. The speaker is quite, not much to really do about it. I don't know what text plus is. Are there other alternatives to that app?
[Galaxy S I9000 Q&A, Help & Troubleshooting] darkside748:
Hello,

Sorry you probably think. OMG he's not bothering to look around on how to do this... Well as a matter of fact I've already been trying for 4 hours straight and looking for information. ALL FAILS #@&^$. I can't get the root to work.

I tried:

http://xdaforums.com/showpost.php?p=7150299&postcount=1

http://xdaforums.com/showthread.php?t=849028

and a few more from this website and also one a few from google, but I'm running into a dead end. Each time I try to flash it says:

"E:signature verification failed

Installation aborted."

That's it... I keep getting that error message no matter what I try :( I'm just without I trace can anyone help me out here?
[Galaxy S I9000 Q&A, Help & Troubleshooting] ed10000:
It says that when you try to apply an update.zip from the stock 3E recovery. To root your phone, go into Download Mode and flash the appropriate CF-Root kernel using Odin.

P.s. This is not the right section to post these kinds of questions :D
[Galaxy S I9000 Q&A, Help & Troubleshooting] darkside748:
Do you have a link on how to do it or some suggestions on what I should be searching?

P.S.: Mods you can move this topic then I guess. Sorry!
[Galaxy S I9000 Q&A, Help & Troubleshooting] g00ndu:
Look out for Superoneclick root, or Chainfire CFRoot.
[Galaxy S I9000 Q&A, Help & Troubleshooting] nwsk:
Should've used the search function? If you had searched for something like 'signature verification' you'll see a massive amount of posts on essentially the same question, like

http://xdaforums.com/showthread.php?t=882270&highlight=signature+verification
[Galaxy S I9000 Q&A, Help & Troubleshooting] darkside748:
Alright thanks a million. Nwsk did you even read my post, thanks for the link though.
[Droid 2 Themes and Apps] draya1986:
This is a port of Benn879's (theme images from Manup456 and m00moo) Revolution Remix for the Droid2. You must be rooted, deodexed, and have Koush's Bootstrapper to install. Credits and thanks to Fernando Sor for letting me use his themed market.

I'm not responsible for whatever happens to your phone. Do a backup and use at your own risk!!

Liberty 1.0 Link: http://www.droid2files.com/themes/Revolution_Remix_Final_Liberty_1.0.zip

Installation

1. Download file and place on the root of your SD card.

2. Use Koush's Bootstrapper to reboot into recovery.

3. Install .zip from sdcard, choose zip from sdcard.

4. Install Revo Remix Theme.

5. Enjoy!

If you like what I do for this community, feel free to buy me a redbull =P
[Droid 2 Themes and Apps] draya1986:
Added the themed sliders to this:
[Droid 2 Themes and Apps] mikeyinid:
Dude! Thats sweet! I might have to use that myself :)
[Droid 2 Themes and Apps] ugrifja:
Awesome thanks!

Any way we can get 10% battery increments? It appears that its only setup for 20% right now.

Thanks!
[Droid 2 Themes and Apps] phoenixus:
Great Theme! I love the icons....is there a chance more of those will be made for more apps (google talk, maps, facebook, ect?)
[Nexus One Q&A, Help & Troubleshooting] houzuoguo:
Try the kernel from here:

http://droidbasement.com/db-blog/?p=1377

Remember to turn off WIFI before you flash a kernel.

Wifi driver is integrated into Android kernel, so a later version of the driver may solve the problem..
[Nexus One Q&A, Help & Troubleshooting] ztruelove:
Since I'm not running a custom ROM, and I need my camera as much as I need wifi, I don't think I'll be able to use this one. But thanks for the info, I'll dig around and see if I can find a kernel that will suit my needs.

"Camera will not work unless you are using CM6, CM6 Nightly or Enom’s Latest"
[Nexus One Q&A, Help & Troubleshooting] ztruelove:
Well, I decided to bite the bullet and unlock the bootloader and load up the latest CM ROM. Everything is working like a champ now.