[Q] Problems with Ubuntu on G2 - G2 and Desire Z General

I have recently gotten ubuntu working on my G2. I have ran into 3 problems though...
1) after rebooting my phone and going into terminal (to start ubuntu up) i type
"cd /sdcard/ubuntu"
then
"bootubuntu"
Which goes off without a hitch, but when i start up the VNC so i can use the GUI, i get a problem. all the commands go through but it makes a new localhost.. which gives me problems because A) i dont wanna setup a new VNC everytime i wanna use ubuntu and B) When the new localhost:2 or localhost:3 (depending on how many times i run "bootubuntu") i dont know the port its calling for or whatever information its needs for to connect to it with VNC. (to see what i mean by this look at the screenshot i took!
AND SECONDLY...
2) WHEN i can get into ubuntu (the only way ive gotten it to work is when i use it the first time) (ie. whenever i wanna use it i delete the ubuntu SD card contents and recopy them over and re-run "sh install.sh" this doesnt take long to run but it does take long to copy over 2 GB of stuff to the SD card) Which definately isnt the way its supposed to be used everytime i wanna use ubuntu. BUT BUT BUT, when i do this and it works, the keyboard inputs in ubuntu or completely screwed up! Ive yet to find the answer online so if anyone can help me this would be much appreciated, but not useful if i cant fix my first problem...
THIRDLY...
3) When i try to use USB storage after running ubuntu in VNC it simply wont connect, I have tryed and tryed again. The only way to fix this is to reboot my phone, which is when i found my problem with restarting and not being able successfully restart ubuntu without recopying the files over..
ANY HELP IS APPRECIATED!!!

This is hardly the place for this post. You would get a much better response if this was in the G2 and Desire Z Android Development Forum.
Either way, I'd say you should try creating a virtual partition on your SD card and see how that works out.

will do, mods, please delete this post!

Posting your thread in General, Q&A AND Dev will not get your results. It will get you banned.

Related

[Tutorial] Boot Linux on the Typhoon

Started to mess about with this earlier today, finally got the damn thing to work Turns out it is quite easy..
First, to get one thing straight, this will only boot the kernel, it will dump you at a shell which you have to remotely log on to via telnet over usb. There will be some (not so) fancy text appearing on your phone's screen but that is about it. Also, it only works on unlocked phones.
This is what you get:
On your computer you'll get this:
Cool, huh? Btw, this is running from a memory card, your OS will be untouched so as soon as you reboot the phone it will boot right back into WM2003/5/6.
1. What you need
* A HTC Typhoon running any rom of your choice (I did it on WM6).
* A miniSD memory card
* A Linux distro - I downloaded the Ubuntu Live CD and ran it through VMWare, no need to install anything or reboot your computer.
* miniSD image of Xanadux - this is the linux port for HTC devices. Grab the latest version here: http://rapidshare.com/files/92218185/Linux.zip.html
(these files are extracted from the miniSD image file found here: http://vivien.chappelier.free.fr/typhoon/download.html)
2. How to run linux on the Typhoon
1. Instead of installing linux properly on your phone which requires partitioning of the internal memory etc (a lot can go wrong) we'll put it on the memory card then a Windows Mobile program called HaRET will boot linux for us from WinCE. Completely non invasive in other words.
This bit is dead easy, just extract the Linux.zip file you just downloaded and copy the files to the root of your memory card (must be memory card, can't do this from the internal memory afaik). Next, go to the File Explorer on your phone and find the file HaRET.exe. Run it then press the run button (this button has focus when you execute HaRET.exe so just press the joystick when the windows appears) and you will see a message saying "Booting linux", then after a few seconds your screen will go black and some text will appear.
Voila! That's linux running on your phone!
2. Connect to the phone via telnet
If read the last line of text that appeared on screen you'll see that it says "Press enter to activate this console" but no matter what buttons you press on the phone nothing happens, some gibberish appears but that's it.
Solution: telnet to the phone from your computer.
Get Ubuntu to boot on your computer, then go to Applications->Accessories and run the Terminal. Next type in the following commands:
Code:
modprobe cdc_ether
modprobe usbnet
ifconfig usb0 up 192.168.9.1
and finally
Code:
telnet 192.168.9.10
Login with username root and you'll find yourself at a shell like the screenshot above. Everything you see from now on is coming linux from your phone!
I've noticed that Xanadux doesnt always initialise the USB port unless it is connected via USB when booting up so make sure you always have your phone connected via USB when you run HaRET.
Now I'm going to try to figure out how to get the GSM module to work...
LINUX based ROM??
Hi shandar,
I have read your post and I am interested to know if you are cooking a LINUX based ROM that will run in a WIndows Mobile device? That would be too good to be true.
Also another question is do you need to have Linux running on your desktop to make this tutorial work?
ryanchanmd said:
Hi shandar,
I have read your post and I am interested to know if you are cooking a LINUX based ROM that will run in a WIndows Mobile device? That would be too good to be true.
Also another question is do you need to have Linux running on your desktop to make this tutorial work?
Click to expand...
Click to collapse
Hey, well, I don't know enough to make a linux rom for smartphones. I'd love a working linux distro for Typhoons & Windows Mobile phones in general but it is way out of my league unfortunately.
Btw, I probably should clarify that I only wrote the tutorial, the actual linux port is made by someone else.

[Q] Disaster - need help...

I got a copy of Android - I think its 1.6 - running on my laptop - and it seemed to work ok and be stable so I wanted to put it onto the machine permanantly.
Trouble is its decided that nothing else on the machine exists and I can't get back into vista whatever I try
It boots into something called grub loader and the only two options are the normal boot and a sort of safe mode - that lists drivers much like the old one for Windows 95/98 where you could y/n each one...
I really need help to get vista back again since there is stuff I really need like internet banking that I don't think I can do any other way (to be fair I have yet to try)
Thanks in advance
Jemma
Please tell me you partitioned off your hard drive before doing this?
If not then its a reinstall I guess, which isn't to bad as it allows you to install a decent copy of windows such as XP
That quite simply isn't an option - I was told that there is a way of solving it by using a windows CD or boot disk to reload the MBR - I was also told that the file running GRUB can be edited to find windows.
The problem is I don't have another machine and I am on state benefits - I need this computer up and running and I need access to my documents.
I can't seem to mount anything in android - and as the only option is 'format sd card' I don't really want to take it..
Does anyone else have any suggestions?
Jemmauk said:
That quite simply isn't an option - I was told that there is a way of solving it by using a windows CD or boot disk to reload the MBR - I was also told that the file running GRUB can be edited to find windows.
The problem is I don't have another machine and I am on state benefits - I need this computer up and running and I need access to my documents.
I can't seem to mount anything in android - and as the only option is 'format sd card' I don't really want to take it..
Does anyone else have any suggestions?
Click to expand...
Click to collapse
Well thanks for the sob story but what does being on benefits have to do with anything?
Anyway simply set your pc bios to boot from cd first, insert disk and boot up. From there you will be asked do you want to install or repair. Choose repair.
I'm unsure of the next step because I don't use Vista *spits* but if you can get to recovery console then you can run fixmbr from the prompt and also there is a boot manager that can fix your boot sector.
Alternatively you could from a dos prompt delete the 1.6 folders and rewrite the msconfig to open windows only.
There is also the root of trying the f8 safe mode boot into admin account and rewrite the msconfig from with windows if accessible from f8 safe.
But hell I ain't anyone else but I guess my 24 years in the business of building custom machine and my extensive knowledge of windows xp and below means nowt? Maybe try being a little less dismissive next time hey?
Add me on gmail - [email protected] if you want me to help you sort it out faster than we can here
Did you create partitions before installing android? if not then windows doesnt exist anymore, which is why grub didnt automatically add it to the list of things to boot (mine always listed everything, but sometimes it doesnt do that automatically)
this happend to me to. I had to use I linux live cd to delete the linux partition. and fix the mbr.
Sent from my Liberty using XDA App

{Q} CM7 Nook Color not recoginzed in either Linux or Windows

Hello, I have CM 7.0.3 encore with the overclocked kernel on my nook. Lately I have not been able to get the thing to connect to my computer in either windows or Linux. (It's XP and "Lucid Lynx" 10.04 Ubuntu if that helps)
If I connect my cable to either the front of back USB ports (because I have tried both under both OSs) at best I get my windows install to see and start to run auto hardware install. This, of course does not work and the machine will inform me that my new hardware (which it correctly ids as a nook until this point) may not work correctly. And, it does not. It displays as 'removable drive' and clicking on it pulls up an 'insert disk please' message.
In Ubuntu the Nook will show up as B&N Ereader. Both SD cards (the internal and the card in slot) show as the same thing. Clicking on them brings up a message that this drive is not a folder and cannot be opened as such.
This thread leads me to think that there should be a notification in windows about the usb being connected...and as soon as I post this I will be restarting to check that... but I really rather do this under Ubuntu. ETA. This does not work for me. Canceling the install software wizard does not work either. (I have been uninstalling the faulty installs each time and rebooting the comp without the nook attached. Oh, and the Nook IS awake too. )
Searches bring up nothing, and I'm a bit lost.
I must be missing something so basic and simple no one has had this issue but me. I mean, Android is a Linux variant, right? They should be able to talk to one another!??
If your trying to accomplish what I think you are then it doesn't matter what your computers says. Plug your Nook into the PC and open your notifications window. There should be a USB icon on the status bar waiting for your input. Just follow the prompts.
Given you have gone through the process of installing the Android SDK, in Linux, from the terminal you need to change to your target folder to
Code:
~/android-sdk-linux_86/platform-tools
then you need to log in as root and kill, then start the server. make sure to exit root when you are done.
Code:
su : enter password
# ./adb kill-server
# ./adb start-server
# exit
then it should pick it up.
I have the same problem as OP and went crazy trying to figure out what I was doing wrong. It's not as simple as everyone suggests.
To be clear I'm using Linux, Ubuntu Natty. I have a Samsung Vibrant also running CM7 nightlies. Start adb, plug in Vibrant, shows up in adb devices list without any problem. Plug in the NC no device in adb. running lsusb there is no android vendorID for the NC but there is for the Vibrant. The NC only shows a vendorID for the mass storage just like the OP says.
The NC is booting with CM7 nightlie on the SD card, not eMMC. Will that make a difference?
IFLATLINE, Thing is, there is no notification popup on my Nook for me to tap.
neidlinger, I will be trying that ASAP. I do not have that installed... I'm rather new to Linux.
I did manage to brick the nook trying to update the build last night so I'm in the middle of reflashing it. So, as soon as I finish making a boot micro SD (I know, I should just have one I keep for this but I don't) I will be flashing phiremod's version of CM7 on the nook.
digver, I did find somewhere on here that the OC kernel was causing some people grief and that once they removed it they had no issues connecting the the computer... but I think they were windows. I'm not sure if that will fix this very annoying little problem.
katsrevenge said:
neidlinger, I will be trying that ASAP. I do not have that installed... I'm rather new to Linux.
Click to expand...
Click to collapse
personally i <3 linux. It's the only way to fly esp with dealing with Androids. Android Central has a GREAT write up on how to install the SDK on your Linux unit.
I'll have to look up the link @ home. I'm at work and WebSense blocks 99% of everything.

[Q] Ubuntu on my home pc... flashing android from it

Hello,
Ive been on this site for some time now and have flashed countless roms from windows roms, sd android and now, of course, nand roms. I have always had windows on my home pc, but after the experience of going from windows to android, I started looking for something better for my home pc. I ended up wiping windows from my computer and installed Ubuntu, which is smooth, fast and I love it. However, one thing has me stumped. I cant figure out how to get the tools, ex. SYNC, installed on my computer. I am trying to use WINE to accomplish this... anyway, im not an expert, but if someone could just give me a little help, I would appreciate it!!!
I hope i opened this in the right place...
I dont think I need the SYNC program, but when I try to use the DFT flash program, ubuntu says it cant be opened... I dont want to use microsoft windows anymore... help me obi wan...
VirtualBox and install a Windows image. That should probably work.
Not sure about sync, but for flashing, http://forum.xda-developers.com/showthread.php?t=611433
quote
- Take any "RUU_signed.nbh" from a ship ROM and copy it to SD card.
- Rename it to "leoimg.nbh"
- Reset the device while pressing the volume down button.
Although you probably know about this already

[Q] A500 acer logo screen, Yes, I searched

I'm having some trouble understanding how to get my CPUID. I tried to reply to some of the relevant threads but was not allowed due to some kind of missing "Approval". I'm hoping this gets through. My Acer A500 froze about a week ago while running the clock program. It was used mostly as a night stand toy. I've tried lots of stuff here including trying to install the Acer default roms.
SD_PB_G100W_1.007.03_COM_GEN1.zip and Acer_AV041_A500_1.031.00_WW_GEN1-FULL-ROOT.zip and Acer_AV041_A500_1.054.00_WW_GEN1-FULL-ROOT.zip. I copied these to my SD card one at a time then renamed them update.zip. None worked. I tried several others without success.
I cannot get passed the CPUID thing. I tried the A500 manager and I got nowhere. My windows 7 PC does see this tablet in APX mode "Hold power and reset buttons "and so did the A500 manager. Now the strange part, the A500 manager did not reveal any text on the program for any of the buttons. I used a screenshot found on the forum to blindly use it. Of course, it did not give me the info I need "CPUID" to do much of anything else. The A500 boots to the Acer logo and that all it does. I tried hardware and software reset, Power + -volume and power + + volume move the orientation lock button. The first ends up showing Android guy dead with red exclamation and the second shows erasing and clearing message, reboots back to Acer logo screen and that's it.
If I could get the CPUID from this thing, I would try the other tools from the forum. I have nothing to lose at this point. I read the CPUID forum threads over the last few days and I'm beginning to lose hope. Can someone tell a noob step by step how to get my CPUID? I have never hooked this tab up to a PC before and I do not have access to an XP machine. If this is a clue, if I just power the tab up to the Acer logo screen, the driver fails but in APX mode, the machine sees the tab.
Please let me know if you need any other info. I'm a PC guy and know nothing about any form of linux/ubuntu.
You have a couple of options...
If you've got a nandroid backup you'll find it in a txt file.
If you've previously had it plugged into yr pc use usbfeview.
Use Linux to retrieve it.
Also if yr pc does not recognise yr tab you won't get very far at all. Ensure u have them installed correctly, both the Acer ones and the usb ones
Sent from my HTC_PN071 using Tapatalk
dibb_nz said:
You have a couple of options...
If you've got a nandroid backup you'll find it in a txt file.
I've never backed up this tab. Where would I find this text file?
If you've previously had it plugged into yr pc use usbfeview.
I've never had it hooked up to a PC before it died.
Use Linux to retrieve it.
I have no clue how to use Linux.
Also if yr pc does not recognise yr tab you won't get very far at all. Ensure u have them installed correctly, both the Acer ones and the usb ones
My PC installs the USB driver correctly in APX mode. When I boot to the Acer logo screen, the driver install fails. I installed the drivers found on the forum before I hooked the tab up to my PC.
Sent from my HTC_PN071 using Tapatalk
Click to expand...
Click to collapse
At this point I would pay someone who knows Linux to get this working again. I had planned to use it at a relatives wedding to take pics for them and play music at the reception. Looks like I wont be doing that now. Can you tell me step by step how to get the CPUID? I'm willing to try anything other than using it for target practice.
See the sticky in general forum by srbeen
Sent from my HTC_PN071 using Tapatalk
dibb_nz said:
See the sticky in general forum by srbeen
Sent from my HTC_PN071 using Tapatalk
Click to expand...
Click to collapse
That is much too involved for me. A programmer I am not. Thanks for trying. I have a new target this weekend. :silly:
dibb_nz said:
See the sticky in general forum by srbeen
Sent from my HTC_PN071 using Tapatalk
Click to expand...
Click to collapse
Quick question, I have the original retail box, will this help? Will the numbers on the box be my CPUID?
No
Sent from my HTC_PN071 using Tapatalk
BigJohn15906 said:
That is much too involved for me. A programmer I am not. Thanks for trying. I have a new target this weekend. :silly:
Click to expand...
Click to collapse
It is a step by step instruction so no need to be a programmer.
Which part of it is giving you trouble?
eppeP said:
It is a step by step instruction so no need to be a programmer.
Which part of it is giving you trouble?
Click to expand...
Click to collapse
I know nothing about Linux. Most guys are telling me I need a Linux machine to fix the tab.
BigJohn15906 said:
I know nothing about Linux. Most guys are telling me I need a Linux machine to fix the tab.
Click to expand...
Click to collapse
You don't have to have a linux machine per say. There are 3 ways to install Ubuntu (most popular linux OS) on a normal windows pc.
1) Install Cygwin. This creates a virtual window to run an ubuntu installation
2) VMWare. Again, creates a virtual window to run Ubuntu
3. Install Ubuntu on top of Windows to have a dual boot system (easiest and more efficient method).
The big difference between 1 & 2, and option 3, is that the first 2 options share resources with both Ubuntu and Windows. This can be a little buggy if you don't have a pretty powerful system (i5 and i7 with lots of RAM).
Where as option 3 gives 100% of the system resources as you boot straight to Ubuntu.
The advantage to options 1 & 2, is that it's easy to uninstall when you no longer need Ubuntu.
Just Google "install ubuntu on windows" and several links to do it. It's actually pretty easy.
Another thing to try first is to download these full ICS Update files for the A500 (501 owners can try this also, but you'll have a 500, but that might can be changed later)
These files are already "decrypted" and are named differently as to keep them separate. Download them all to a folder.
Now, select one of them, rename it to "update" (end result is a file called update.zip) copy it to SD card, boot tab and see if it installs. If it hangs on the install, delete it from SD card, and do the same with the next. Hopefully one of them might take. You may have to try all 4 of them before one works. It's hit and miss.
http://d-h.st/Zf8
http://d-h.st/2cm
http://d-h.st/gw8
http://d-h.st/KXl
Hope this gets you going.
MD
And a Big Hello to @dibb_nz glad to see you still helping!
Moscow Desire said:
You don't have to have a linux machine per say. There are 3 ways to install Ubuntu (most popular linux OS) on a normal windows pc.
1) Install Cygwin. This creates a virtual window to run an ubuntu installation
2) VMWare. Again, creates a virtual window to run Ubuntu
3. Install Ubuntu on top of Windows to have a dual boot system (easiest and more efficient method).
The big difference between 1 & 2, and option 3, is that the first 2 options share resources with both Ubuntu and Windows. This can be a little buggy if you don't have a pretty powerful system (i5 and i7 with lots of RAM).
Where as option 3 gives 100% of the system resources as you boot straight to Ubuntu.
The advantage to options 1 & 2, is that it's easy to uninstall when you no longer need Ubuntu.
Just Google "install ubuntu on windows" and several links to do it. It's actually pretty easy.
Click to expand...
Click to collapse
I tried a few times to install Ubuntu on my Dell 8400. It's a good PC but I do not understand how to "Compile" or install the drivers needed. Can I do this with "Live CD" or a USB boot of Ubuntu without trying to install drivers? The drivers I need for Ubuntu on my Dell are video and on board sound card drivers. Everything else works from the start. I'm very lost when it comes to any flavor of Linux. I've been asking people on several boards for a few years now if they have a working image for the Dell 8400 they could ship to me but haven't got one yet. I would love to get this tablet up and running again. I saw a few listings for Acer A500 repair on Ebay. I wonder if this might be the best route to take? They are charging $50.00 for software repairs and $130.00 for hardware replacement (Motherboard). The hardware replacement is a little steep as I see some used A500s listed starting at $150.00. I would hate to end up buying someone else headache.
Moscow Desire said:
Another thing to try first is to download these full ICS Update files for the A500 (501 owners can try this also, but you'll have a 500, but that might can be changed later)
These files are already "decrypted" and are named differently as to keep them separate. Download them all to a folder.
Now, select one of them, rename it to "update" (end result is a file called update.zip) copy it to SD card, boot tab and see if it installs. If it hangs on the install, delete it from SD card, and do the same with the next. Hopefully one of them might take. You may have to try all 4 of them before one works. It's hit and miss.
http://d-h.st/Zf8
http://d-h.st/2cm
http://d-h.st/gw8
http://d-h.st/KXl
Hope this gets you going.
MD
And a Big Hello to @dibb_nz glad to see you still helping!
Click to expand...
Click to collapse
I tried all of these just the way you said without success. The tab does not see the update zip. It ends up either with dead Android guy with red ! or stuck on the Acer logo screen. :crying:
BigJohn15906 said:
I tried a few times to install Ubuntu on my Dell 8400. It's a good PC but I do not understand how to "Compile" or install the drivers needed. Can I do this with "Live CD" or a USB boot of Ubuntu without trying to install drivers? The drivers I need for Ubuntu on my Dell are video and on board sound card drivers. Everything else works from the start. I'm very lost when it comes to any flavor of Linux. I've been asking people on several boards for a few years now if they have a working image for the Dell 8400 they could ship to me but haven't got one yet. I would love to get this tablet up and running again. I saw a few listings for Acer A500 repair on Ebay. I wonder if this might be the best route to take? They are charging $50.00 for software repairs and $130.00 for hardware replacement (Motherboard). The hardware replacement is a little steep as I see some used A500s listed starting at $150.00. I would hate to end up buying someone else headache.
Click to expand...
Click to collapse
If you install, its with a recent "Live CD" (or USB Stick, which I have never used) I prefer the CD version.
I don't have a dell, or know much about them. But if Ubuntu starts up, regardless of sound or perhaps video drivers, there should be no issues in making things work.
As for getting replacement parts, I would think you can almost a better deal with a new device rather than paying for replacement parts.
A working A500/501 goes for about 100-150$ these days,
If the updates I linked you to, didn't work, then it's probably a bad memory block. But you'll have to use Ubuntu, for a couple of reasons, an really no way to avoid it.
1) babsector (although it can be run through windows)
2) UID
Can't help you with your dell Mate, don't own one.
MD
Moscow Desire said:
If you install, its with a recent "Live CD" (or USB Stick, which I have never used) I prefer the CD version.
I don't have a dell, or know much about them. But if Ubuntu starts up, regardless of sound or perhaps video drivers, there should be no issues in making things work.
As for getting replacement parts, I would think you can almost a better deal with a new device rather than paying for replacement parts.
A working A500/501 goes for about 100-150$ these days,
If the updates I linked you to, didn't work, then it's probably a bad memory block. But you'll have to use Ubuntu, for a couple of reasons, an really no way to avoid it.
1) babsector (although it can be run through windows)
2) UID
Can't help you with your dell Mate, don't own one.
MD
Click to expand...
Click to collapse
I have an old live CD, Ubuntu 10.X I can try. The Dell 8400 is a business class PC I used in my DJ business. I have 5 of them. I'll just install on one of the idle ones and be done with it. Then I'll stop back to get the files. Thanks for trying Moscow Desire.

Categories

Resources