Ubuntu on N1, Desire next? - Desire Q&A, Help & Troubleshooting

Anyone seen this yet?
This guy got Ubuntu to run on his nexus one, is it also possible on our Desire?
http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/

It's a chroot. I don't know if it's me, but this isn't fascinating since Debian could be chrooted already (right?) - its the native boot we really want. This still runs the Android kernel.

-
I think it would be very facinating.. Android kernel running or not, I'd still be happy to be able to have a full worthy Ubuntu desktop enviroment to play around in. Think of all the apps you can then run! Millions!

But this is an ubuntu x11 session opened via VNC!! this isn't ubuntu on android!

Why would you need ubuntu on a phone? I don't get it...
Can't you just buy a netbook?

Why not just try to use the guide for N1? It should work I think... will try when I have some spare time.

I thought using the N1 guide would work, but i kept getting "bootubuntu not found" (or something similar) when trying to launch bootubuntu. Also I thought Ubuntu would be running on the phone itself, using vnc to access X11, in effect giving the more or less full Linux experience from the phone alone, or have I misunderstood?

N1 guide doesn't work
The N1 guide doesn't work on the Desire because the ubuntu.sh trys to install files onto the devices system partition. But this fails because we don't have write permission to the system partition unless the device is in recovery. I booted into recovery, mounted the /system partition & pushed the files to /system/bin using adb. I then changed the files permission using. I can now run bootubuntu but it fails, I think it's trying to mount ubuntu.img somewhere on the system partition. I think the bootubuntu script needs edited but i hav en't had a chance to do it yet.

You can mount on the system partition regardless of write permissions.
If this is the same as the debian one the mount point is /data/local/mnt
/

Related

Kaiser (Tilt), Android and Debian Issues

I posted this over on the Updated Getting Android and Linux on Kaiser but I think this needs a new thread.
I used http://www.saurik.com/id/10 with his debian.img, busybox, ext2.ko, etc. I'm running ATT Tilt with I believe currently the 1.1 build of Android from 02/17/09 since the screen rotates correctly, calls don't drop, makes me waffles, etc.
I am not new to Linux and will help get this to work as best as I can (not looking for you to do all the work, just need direction):
Here's my issues (besides wifi... another post perhaps)
No internet and "I hate this terminal emulator" = paraphrasing the output:
1.) I can't get bootdeb to run:
"mount: cannot setup loop device: no such file or directory"
I try manually typing it in and I get a "mount usage ... blah blah rtfm, etc"
2.) "chroot: cannot execute /bin/bash: No such file or directory"
you already know I have it there... I've specified it, not, whatever nothing goes. This is saurik's debian image and the file is there...
3.) I've been told to modprobe ext2 first. Well..
with ext2.ko from the post in my /sdcard directory:
Code:
"$ su && cd /sdcard"
"# insmod ext2.ko
insmod: init_module 'ext2.ko' failed (No such file or directory)"
"# modprobe ext2.ko
modprobe: cannot parse modules.dep"
whether or not I use busybox for this or not:
Code:
"# busybox insmod ext2.ko
insmod: cannot insert 'ext2.ko' : unknown symbol in module (-1): No such file or directory"
"# dmesg
ext2: Unknown symbol __might_sleep"
That and the usual incoming call can hang until I reboot, no speakerphone action (my tape adapter in my car now hates me) and wifi. Without wifi, I can't even try telnetting in and getting the mounts to work. But if I can get Debian running, I'm hoping to maybe use ndiswrapper to give me internet.
My ultimate goal is to make a final package for devs and noobs alike to get a ready-made version so we can get the rest of the bugs taken care of.
OK im here. Im wanting debian as well. Ive tried what you have with no luck. So lets hope someone will have a way.
Oh and i hate to ask but do you have a data connection in WinMo before you boot into android? As thats the only way to get it to work.
I've tried that trick but no go. Wifi works fine in LoseMo (i hate you wm6...) and an active connection doesn't survive the 'reboot' into Androidland.
double post somehow
enatefox said:
I've tried that trick but no go. Wifi works fine in LoseMo (i hate you wm6...) and an active connection doesn't survive the 'reboot' into Androidland.
Click to expand...
Click to collapse
What is LoseMo? Never heard of it. That may be the issue then. If you lose the connection when you boot into android it wont connect. I had that issue for awhile. Once i figured it out all was fine. If you dont have a active connection when android starts it will fail to have a connection to data no matter what you do.
enatefox said:
3.) I've been told to modprobe ext2 first. Well..
with ext2.ko from the post in my /sdcard directory:
Code:
"$ su && cd /sdcard"
"# insmod ext2.ko
insmod: init_module 'ext2.ko' failed (No such file or directory)"
"# modprobe ext2.ko
modprobe: cannot parse modules.dep"
whether or not I use busybox for this or not:
Code:
"# busybox insmod ext2.ko
insmod: cannot insert 'ext2.ko' : unknown symbol in module (-1): No such file or directory"
"# dmesg
ext2: Unknown symbol __might_sleep"
Click to expand...
Click to collapse
I get the same thing when I tried it.
Although when I try to run the commands from a script I get the second one if I run it at the command prompt I get no such file or directory
smokestack76 said:
What is LoseMo? Never heard of it. That may be the issue then. If you lose the connection when you boot into android it wont connect. I had that issue for awhile. Once i figured it out all was fine. If you dont have a active connection when android starts it will fail to have a connection to data no matter what you do.
Click to expand...
Click to collapse
Kidding about LoseMo (WinMo)... I don't have a data plan I was talking about wifi.
Hopefully there are more people in on getting this to work. I think we (anyone listening) need to break this down a little and try to isolate individual problems nailed.
My plan:
I'm going to try to work with the emulator and see if I can get the Kaiser blends to run. If not, then the dev phone, lastly the stock FW that comes with the emulator.
If I can mount a fake SD card in it and get debian (first the premade one then ultimately a custom one) to install in the emulator with it's shortcomings then it should work in Haret right?
Please let me know who wants to help me do this-- I know we have the same phones and software but being in IT, I know sometimes the same directions can be interpreted many ways and maybe one will work if we have a large enough group testing it. Let me know.
Well i know wifi doesnt work at all yet. As i dont think there are any drivers for the kaiser and android. Data will only work if you setup the apn settings for your carrier. Not sure about the emulator. I havent tried anything like your idea but sounds good to me. Im going to try it now. Should work like you say But it is a emulator so who knows the outcome lol. Got ya now on loseMo. I was wondering what in the world you were talking about Had roms on my mind again.
ndiswrapper?
Has anyone either on Debian or Android, tried ndiswrapper with the WinMobile driver to see if wifi would work?
Regarding Ndiswrapper, that's what I'm wanting to know. I'm not comfortable with Android's apk format and no idea how or if one could convert a deb or rpm into an apk. And while busybox is fun it can't even mount an image due to module issues at least on smokestack76 and my phones so good look with ndiswrapper modules. I have no idea how to put ndiswrapper on Android and all the experience of 4 laptops behind me on Debian to get it working with that.
I need to boot Debian before attempting ndiswrapper.
Unless you know how to do it in Android.... if you do then we can try another avenue to get Debian running:
On the G1 you need to telnet in to get root access. The builds on our phones seem to give us root but I'm suspicious that it's really a pseudo-root environment and that's the cause of the failure to mount the Debian image. I might be able to try telnetting and mounting Debian remotely in that case. No wifi and no dataplan mean I have no way to confirm this yet.
It will be nice when we get it to work once and back up the install for further development but that's a little ways away.
I have not been able to get Kaiser ports to work in the emulator and the standard Android images to run in Haret... I understand the great lengths the devs have made but I wish there was some slack here.
I tried the emulator and had the same results. Mainly posting here to keep it alive Ive been busy but i will have time to play with this some more this weekend.
Alright, I had my fun with Android but I want to get Debian running on it more than anything. Android is nothing more than a JAVA VM that can be ported to any respectable Linux distro. Since there are serious issues with hardware support for it, I think getting Debian to work should be the priority.
I've got Debian installed on QEMU but can not get it working on HaRET with Kaiser/Tilt. Does anybody know how to get the image to run with HaRET?
Main guide: http://mojo.handhelds.org/node/66
Guide that fills in the gaps: http://blog.gbraad.nl/2008/11/mojos-hasty-distribution-for-use-with.html
HaRET crashes at 100% for my images even though QEMU boots them just fine...
thought id quickly say, u wont get ndiswrapper running on the kaiser. it binds windows desktop infs....not windows mobile.
HaRET crashes at 100% for my images even though QEMU boots them just fine...[/QUOTE]
Do you have the kernel log? can you create the qemu image so it writes to the boot / kernel log a SD card?
Have you consulted the Android devs or their bug tracker? Haret use to do the same thing when booting Android on my phone, so I image they made a kernel tweak somewhere.
Finally, what is the difference between the actual kaiser chipsets and those emulated by qemu? Are the ARM processors the same revision?
http://forum.xda-developers.com/showthread.php?p=6026287

[MOD][SOLVED] Ubuntu install on G2

Unable to install ubuntu on the G2 i get an error when i run the ubuntu.sh and bootubuntu commands , see attached . i got the files from http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
Please help !!! Also i am running this rom ROM] (ext3-sdcard-based) - StockG2 (optional Manup456 Themed) - v1.1 - 10/14/2010 .
UPDATE I was able to get the following method to work on my root G2 running the desire z rom . http://forum.xda-developers.com/showthread.php?t=836022 .
*bump*
Id actually really like to see this able to be accomplished
I have Debian working perfectly in a chroot. I'll give Ubuntu a shot this weekend.
keenerb said:
I have Debian working perfectly in a chroot. I'll give Ubuntu a shot this weekend.
Click to expand...
Click to collapse
What steps did you follow to get debian to work ? It shout be the same process just sub out the debian image for the ubuntu image . Are you running the enomther themed rom off the sdcard? do you have the instructions in a step by step format i could try ? Thanks in advance i was able to get this running on the mytouch slide but no luck on the G2 , i think i just need an updated install.sh or ubuntu.sh script to write to the corect paths .
bled82 said:
What steps did you follow to get debian to work ? It shout be the same process just sub out the debian image for the ubuntu image . Are you running the enomther themed rom off the sdcard? do you have the instructions in a step by step format i could try ? Thanks in advance i was able to get this running on the mytouch slide but no luck on the G2 , i think i just need an updated install.sh or ubuntu.sh script to write to the corect paths .
Click to expand...
Click to collapse
My method used actual linux partitions.
http://forum.xda-developers.com/showthread.php?t=811765
It was based on my Cliq Ubuntu chroot here:
http://modmymobile.com/forums/403-m...ent/526845-successful-debian-chroot-cliq.html
The Cliq chroot guide worked perfectly except the filesystem for /system is EXT3 now instead of yaff2, and the partition numbers have changed.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system
Needs to be
mount -o rw,remount -t ext3 /dev/mmcblk0p25 /system
And
mount -t ext2 -o noatime /dev/block/vold/179:2 /system/debian
Needs to be
mount -t ext2 -o noatime /dev/block/vold/179:34 /system/debian
Everything else should pretty much be identical.
You may want to substitute /data/debian for /system/debian, since /system gets wiped every reboot.
If you used the parallel SD-card based rom that enom posted the debian block device might be 179:35 or 179:36, depending on whether you added one or two partitions for that rom.
keenerb said:
My method used actual linux partitions.
http://forum.xda-developers.com/showthread.php?t=811765
It was based on my Cliq Ubuntu chroot here:
http://modmymobile.com/forums/403-m...ent/526845-successful-debian-chroot-cliq.html
The Cliq chroot guide worked perfectly except the filesystem for /system is EXT3 now instead of yaff2, and the partition numbers have changed.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock1 /system
Needs to be
mount -o rw,remount -t ext3 /dev/mmcblk0p25 /system
And
mount -t ext2 -o noatime /dev/block/vold/179:2 /system/debian
Needs to be
mount -t ext2 -o noatime /dev/block/vold/179:34 /system/debian
Everything else should pretty much be identical.
You may want to substitute /data/debian for /system/debian, since /system gets wiped every reboot.
If you used the parallel SD-card based rom that enom posted the debian block device might be 179:35 or 179:36, depending on whether you added one or two partitions for that rom.
Click to expand...
Click to collapse
Cool thanks i bet the partion was what was hanging my up ill try it later and let you know
Since im running the rom of the sdcard i would need to place my img on the ext3 correct ? in which cause i guess placing it in the system folder should work then ? Just wondering if i can get it on my ext partition without running linux , they switched out my work pc and i dont have time to setup a vm right now .
Quick question.
Dont bash me please
What is the point of doing this? other then the fact of being able to do it?
keenerb said:
I have Debian working perfectly in a chroot. I'll give Ubuntu a shot this weekend.
Click to expand...
Click to collapse
Hey just wondering if you gave this a try over the weekend i was away from my pc all weekend so i did not try any thing .
Has anyone been successful in getting the n1 method to work on the g2, it doesn't look like anything propitory to the N1 is done....think ima give it a go tomorrow
i was able to get debian to natively install on my g1, being g1 is very slow compared to the processing power the g2 can give out i might give this a go and see how well it will run along side with android. if i remember correctly g1 was very slow running along side android like this hope g2 would be way much better.
native debian g1
hXXp://novaspirit.com/blog/?p=6
i will give this a go for the g2 =)
p.s. replace hxxp with http
This is as far as I got...I'm thinking its because the fs isn't ext2?
Not sure, ima try playing with the script and see what I can come up with.
Curently runin CM 6.1.0-RC2
Sent from my two cans and a peice of string.
This is what happenes with the 'updated' bootubuntu script :/
Sent from my two cans and a peice of string.
This worked for me, but a) I can't figure out how to right-click in VNC, b) it starts and runs as root, c) why is it Karmic? Is there something wrong with Ubuntu Maverick under ARM? d) can I expand the size of the .img loop-file so that I can install more stuff?
EDIT: BTW, I fixed the above problem that MrOtsKrad was having by doing "sh bootlinux" at the command line instead of just "bootlinux." Or bootubuntu, whatever it was
Is there a way to get this working natively? Booting ubuntu/debian on the G2 without booting into android first? I tried building a boot.img, but I just end up in reboot loop after the white HTC screen and I haven't been able to debug anything yet.
bdogg64 said:
Is there a way to get this working natively? Booting ubuntu/debian on the G2 without booting into android first? I tried building a boot.img, but I just end up in reboot loop after the white HTC screen and I haven't been able to debug anything yet.
Click to expand...
Click to collapse
I get the impression that is a SERIOUSLY non-trivial project, hence the reason we haven't seen (for example) MeeGo ported yet.
So, I figured out a, above: just hold the camera button while tapping. Still don't know how to not be root. Haven't tried an upgrade to Maverick yet mostly because the loopimg only has 111MB (roughly) free.
starkruzr said:
This worked for me, but a) I can't figure out how to right-click in VNC, b) it starts and runs as root, c) why is it Karmic? Is there something wrong with Ubuntu Maverick under ARM? d) can I expand the size of the .img loop-file so that I can install more stuff?
EDIT: BTW, I fixed the above problem that MrOtsKrad was having by doing "sh bootlinux" at the command line instead of just "bootlinux." Or bootubuntu, whatever it was
Click to expand...
Click to collapse
Yes you can change the img size . You can follow the instructions here that where made for the debian image on the g1 . http://www.androidfanatic.com/community-forums.html?func=view&catid=9&id=1610
Can someone post step-by-step instructions to get Ubuntu Maverick working? I tried getting Debian to work on my G1 a while ago and it always rebooted my phone.
I get nothing when I do "sh ./ubuntu.sh" (and it IS there, I checked by doing ls)
And of course if I try "sh bootubuntu" after that, I won't get results.
What rom are you trying this on ? When i did this i was on either stock or one of the very first roms . if you can provide the rom i can flash it and test and see what the issue is .

G-Slate root

There's no G-Slate forum yet, so this goes here.
How to root your T-Mobile G-Slate
This process works under Linux. The hard part under Windows would be mounting a file as an ext4 filesystem, but if you can do that you win.
You need:
The four files in the gslate_root.zip archive attached to this post.
To root:
Put those four files in a directory and open a terminal to there.
Shut down your G-Slate and plug it into your computer via USB.
Hold down both volume buttons and press the power button. The G-Slate will not appear to turn on, but it'll go into APX mode.
Running "lsusb" should show an entry "0955:7820 NVidia Corp."
Run the command "sudo su" to get a root shell. Running "ls" should still show the four files.
./nvflash --bl bootloader.bin --getpartitiontable ptable.txt
./nvflash -r --read 8 system-orig.img
Wait while 400 meg of data copies.
cp system-orig.img system.img
mkdir system
mount -o loop system.img system
cp su system/bin
chmod 4755 system/bin/su
cp Superuser.apk system/app
umount system
./nvflash -r --download 8 system.img
Wait while it copies back.
./nvflash -r --sync
Press the reset button under the sim cover to reboot.
There's your rooted G-Slate. Making that process "one click" is going to suck.
Troubleshooting:
You may need to install the package libstdc++6 or lib32stdc++6 to get nvflash to run.
You may need to use "sudo" on the nvflash commands.
If you want to try to make this work on Windows, the nvflash.exe binary and the APX USB drivers are are available from nvidia.com
This is unbelievable! Can't wait to give it a shot.
EDIT: For future reference, DO NOT use Virtual Box to try and root your device. There are issues getting the drivers to work properly. Lsusb will not work. The following methods have been tested and work:
1. Wubi install of Ubuntu Linux
2. VMware install of Ubuntu Linux
3. Dual-boot install of ""
4. Dedicated Linux box (duh)
And remember: If at first you don't succeed, try try again. Then visit our IRC channel.
Trying this on Windows 7 is gonna be a trip. Never workt with ext4 before.
Install Ubuntu and you can dual boot into Windows or Ubuntu. That's what I do.
Sent from my LG-V909 using XDA Premium App
This method is confirmed working. Thank you so much for the hard work Chandon. It wasn't very hard to complete on Linux. I can't believe my G-Slate is rooted!!!! Hell yes! Oh and the device is not wiped during the process either just to let everyone know!
Some More Help
Would it be possible to pull the recovery partition off now?
Why I ask. I am in a bit of a pickle. My slate will get to the first LG boot screen and then freeze. It does not even go to the boot animation. I can still get into fastboot and APX mode and it is seen by my computer.
How did i get here. While poking around in fastboot I am pretty sure i wiped they recovery partition D'OH.
I was able to complete the steps listed (for root) with out issue but still cannot get past the boot screen since this is only modifying the system partition.
I am thinking that if that could be pulled from the device i could flash it to mine and bring my slate back to life?
Am I way off on this one?
SmellyTunic -
Attached are all the reasonably small partitions that I could pull off my device with nvflash. This should be everything except /system, /cache, and /data.
I suggest backing everything up before flashing any of these, on the off chance that there's some difference between devices.
Thanks so much for this! Is there a good linux live cd(or bootable usb flash drive) someone could suggest where this could be accomplished easily? Not ready to take the plunge actually installing linux on my system yet >.>
Here you go
shinkinrui
Info and steps can be found here http://www.ubuntu.com/download
Pretty easy to set up a dual boot machine.
Chandon,
Any chance you know off hand which one of those partitions is the recovery?
I suggest doing a Wubi install [1], where Ubuntu pretends to be a Windows app (which you can then uninstall like any other app later). Alternatively you could try using VirtualBox [2], but that's less guaranteed to work.
The only reason I wouldn't do this with a Live CD is that you'd risk losing your backup of the stock /system partition when you reboot. It would also make losing power in the middle of the flash really annoying.
[1] https://wiki.ubuntu.com/WubiGuide
[2] (edit: virtual box doesn't easily see the USB device)
Thanks guys, reading about that Wubi solution looks like the simplest way to have a dual-boot system. I like it! I'll be getting my root on later tonight
i prefer Ubuntu just cause you can install it in windows then simply restart and boot into Linux or Windows. This way you don't need to worry about not having Linux again.
SmellyTunic said:
Any chance you know off hand which one of those partitions is the recovery?
Click to expand...
Click to collapse
I'm sure that /system is 8 and the kernel is 13, but don't know about anything else. You might be able to figure it out by reading the ptable.txt file generated by the --getpartitiontable command - it's pretty clear except for the part where it uses 3 letter partition names.
Thanks. I will take a look when i get home from work.
Sent from my GT-I9000 using XDA App
While we are on the topic of development, we really need a forum over here at XDA for the G-Slate!
deez1234 said:
While we are on the topic of development, we really need a forum over here at XDA for the G-Slate!
Click to expand...
Click to collapse
I definitely concur.
thengkiu so much
works like a charm
I have no idea why I'd ever need/want to root my G Slate, I'm fairly simple in my desires for my device - but I have to say I'm delighted to see it is possible and am ever so grateful for folks who figure this stuff out because it keeps moving G Slate towards legitimacy.
Thank you!!
The hard part under Windows would be mounting a file as an ext4 filesystem, but if you can do that you win.
Click to expand...
Click to collapse
No kidding. Since the linux method failed miserably for me, I've decided to press forward with trying to do it on Windows. Problem is, I have yet to find any way to mount an ext4 filesystem on Windows. There are several options out there that will allow you to read ext4 filesystems on Windows, but not write. Any suggestions?
my friend will be happy to see that this is possible.

[GUIDE ME] I wanna Dev

[New Question.] So let's start with the first things I'll need to know.....
how do I build root into a stock rom?
How do I create a flashable .Zip from scratch for my rom to go in?
How do I edit the text from cwm when I flash this rom?
And yes this thread is going to become a guide once I learn all I need to know about Building roms for the epic =]
[ANSWERED]So I'm thinking about kicking windows out the, erm, window lol..... I want to start learning about developing and want to start a few projects to pay back the community..... I'm guessing I can't develop on windows so I was wondering what would be the best version of Linux to use?..... and would it be possible to port a driver from windows to Linux?[ANSWERED]
A little how to for this guide..... Thank you mkasick =]
mkasick said:
Download Superuser su-2.3.6.3-efgh-signed.zip. Unzip, and copy "su" to "/system/xbin/su" on your phone, and run:
Code:
chown root.shell /system/xbin/su
chmod 4755 /system/xbin/su
from an adb root shell or terminal emulator. Then optionally copy Superuser.apk to /system/app. The part is optional because you can also install it to /data like a normal .apk, or install it from the Market, there's nothing special about it.
Grab tws_fix_ringer_vib_silent-EC05-deodex.zip (from this thread). Unzip and delete "META-INF/MANIFEST.MF", "META-INF/CERT.SF", "META-INF/CERT.RSA", and "system/framework".
Now, place whatever you want in the appropriate subdirectory of "system", creating them as necessary. Edit "META-INF/com/google/android/updater-script" to match the description of whatever you want to flash. And zip everything back up, e.g.,:
Code:
zip -9r update-unsigned.zip META-INF system
Note the zip should contain "META-INF/com/google/android/update-binary" and "META-INF/com/google/android/updater-script", in addition to anything you've placed in "system".
At this point the update.zip is flashable in ClockworkMod, but it's nice to sign it so that it can also be flashed in a test-keys stock recovery. To do so, download the attached "signapk.tar.gz". Extract it, then run:
Code:
java -jar signapk/signapk.jar -w signapk/testkey.x509.pem signapk/testkey.pk8 update-unsigned.zip update.zip
The resulting update.zip of which you can now distribute.
As for the "from scratch", update-binary and signapk.jar are both build from Froyo AOSP sources, specifically the android-cts-2.2_r2 branch. If you get an AOSP build environment setup as described, update-binary is made with:
Code:
make out/target/product/generic/system/bin/updater
cp -a out/target/product/generic/system/bin/updater update-binary
and signapk.tar.gz with:
Code:
make out/host/linux-x86/framework/signapk.jar
mkdir signapk
echo "java -jar signapk.jar -w testkey.x509.pem testkey.pk8 update-unsigned.zip update.zip" > signapk/README
cp -a out/host/linux-x86/framework/signapk.jar build/target/product/security/testkey.* signapk
tar cf signapk.tar signapk
gzip -9 signapk.tar
See above, but basically just modify the "ui_print" strings in "META-INF/com/google/android/updater-script".
Click to expand...
Click to collapse
If you've never used Linux before I would recommend using something like Mint just to get your feet wet.
Oh I've used mint, opensuse,Ubuntu, fedora, and debian before..... but I don't know which one is best for developing roms and compiling kernels and all that jazz..... and I don't think my wifi USB has a native driver for Linux so that's what's really keeping me from overwriting windows.....
theduce102 said:
Oh I've used mint, opensuse,Ubuntu, fedora, and debian before..... but I don't know which one is best for developing roms and compiling kernels and all that jazz..... and I don't think my wifi USB has a native driver for Linux so that's what's really keeping me from overwriting windows.....
Click to expand...
Click to collapse
I use Ubuntu, I know a lot of people use gentoo but it's definitely not like debian based distros lol
Like you said with the driver, it all comes down to what is available and compatible with your system. I recommend Ubuntu just because of the (duh) massive support base compared to other distributions in terms of drivers and such.
Sent from my SPH-D700 using XDA Premium App
thomasskull666 said:
I use Ubuntu, I know a lot of people use gentoo but it's definitely not like debian based distros lol
Like you said with the driver, it all comes down to what is available and compatible with your system. I recommend Ubuntu just because of the (duh) massive support base compared to other distributions in terms of drivers and such.
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
Thank you for the advice =]
EDIT: I don't know much about command lines..... what do people mean when they say "cd" like "cd to the folder in the terminal"?
Change Directory
So something like cd /sys/app nvigates you in the "app" directory within the system *folder* you will then be installing / modify / editing or whatever to the files in that specified directory.
Okay well I just installed Ubuntu 11.04 on top of vista and I can already tell I'm going to be spending most of my time on Linux instead of windows if I can get this driver installed without causing wwIV
EDIT: Okay so everytime I type "sudo" to gain root the terminal asks for my password but it won't let me type it???? What do I dooo!!!!
For application and kernel development it doesn't really matter which distribution you're running as the commonly used packages (e.g., Android SDK/NDK, Java, Sourcery G++ Lite) are fairly agnostic.
If you wanted to compile the AOSP source tree, Ubuntu might be the best route, only because the documentation uses Ubuntu configurations and package names as examples.
And yes, it worth going through command line tutorials. I don't recommend that one specifically, it was just the first hit on Google.
As for your sudo issue, just type the password. It doesn't show you the password as you type it for privacy purposes.
mkasick said:
As for your sudo issue, just type the password. It doesn't show you the password as you type it for privacy purposes.
Click to expand...
Click to collapse
Yeah I went ahead and typed it but no go..... ill boot back into Ubuntu and try it again but if its still not working what's my next move? Sorry for being such a Linux noob in xda lol
theduce102 said:
Yeah I went ahead and typed it but no go..... ill boot back into Ubuntu and try it again but if its still not working what's my next move? Sorry for being such a Linux noob in xda lol
Click to expand...
Click to collapse
Did you install or are you running live?
Got this from http://ubuntuforums.org/
You can't login as root. Ubuntu does not use the root account. You can use sudo if you need to do anything as root, see: https://help.ubuntu.com/community/RootSudo
As far as I know, the password on the live CD is empty. Just press Enter when it asks for a password after entering "sudo <command>".
Well I did the dual boot option so when I boot my system I choose between Ubuntu and vista..... I had to choose a password and it worked when I typed it this time..... but now I have another problem lmao.....
I can enter "sudo make" and it does its thing, then I enter "sudo make install" and all goes well, but then I enter "sudo modprobe rt3572sta" and it returns "Invalid module format".....
I copied the entire terminal convo if it would help I can post it?
Any ideas?
EDIT: yeah I made an account over their at the forums but it seems pretty slow especially when I need help with one specific device?
One way to avoid the nightmare of patching together a working wifi driver in linux, install it in a VM (Virtualbox or Vmware) on the vista side. Then you can use the wifi adapter through the windows driver.. And then you don't have to do a full reboot to get to windows or ubuntu/mint.. (love Mint btw.. it lives in my VM, laptop, seedbox and soon to be server)
pvtjoker42 said:
One way to avoid the nightmare of patching together a working wifi driver in linux, install it in a VM (Virtualbox or Vmware) on the vista side. Then you can use the wifi adapter through the windows driver.. And then you don't have to do a full reboot to get to windows or ubuntu/mint.. (love Mint btw.. it lives in my VM, laptop, seedbox and soon to be server)
Click to expand...
Click to collapse
Lol I once compiled a driver to use my blackjack 2 as a modem on a 300mhz thin client rdp computer that I got puppy linux to run on in 2007
Sent from my SPH-D700 using XDA Premium App
pvtjoker42 said:
One way to avoid the nightmare of patching together a working wifi driver in linux, install it in a VM (Virtualbox or Vmware) on the vista side. Then you can use the wifi adapter through the windows driver.. And then you don't have to do a full reboot to get to windows or ubuntu/mint.. (love Mint btw.. it lives in my VM, laptop, seedbox and soon to be server)
Click to expand...
Click to collapse
Good suggestion, makes things a lot easier. The only thing is performance, you will be running on (usually) half the power of the computer which will slow compile times to a crawl for example.
As far as the root password goes, use the passwd command to change it:
Code:
sudo passwd root whateverpassword
pvtjoker42 said:
One way to avoid the nightmare of patching together a working wifi driver in linux, install it in a VM (Virtualbox or Vmware) on the vista side. Then you can use the wifi adapter through the windows driver.. And then you don't have to do a full reboot to get to windows or ubuntu/mint.. (love Mint btw.. it lives in my VM, laptop, seedbox and soon to be server)
Click to expand...
Click to collapse
Thanks that's what I was thinking about doing but like thomasskull said it likely gonna take a dump on performance but may be the only choice I have....
thomasskull666 said:
Good suggestion, makes things a lot easier. The only thing is performance, you will be running on (usually) half the power of the computer which will slow compile times to a crawl for example.
As far as the root password goes, use the passwd command to change it:
Code:
sudo passwd root whateverpassword
Click to expand...
Click to collapse
Well I don't really care much about changing password anymore cause I was finally able to enter the password but as always there's another problem..... ill probably post the terminal readings later on tonight when I get back to my computer.... and as for using a virtual machine, is there another way to go without dumping performance and without dealing with installing drivers through the terminal.....
Thank you all so much.... you guys have no idea how much I appreciate your help =]
So I downloaded VMware Player, where do I go from there to get the drivers installed so that I can reboot into Ubuntu and use the wifi card?
Well, under vmware workstation you should be able to just install a vm with just the iso file or the cd of the ubuntu build you want to install, its prescripted, and easy t use. With vmware workstation you can define hoow many proscessors you want to use, threads, ram, w/e... then vmware also installs a network service under windows that uses windows to transfer the network data into your vm. No need to configgure your wifi under linux anymore
Also, I think you're missing the point of a Virtual Machine. A VM runs alongside your current OS install. Software like VMWare Workstation acts as if its a virgin computer and makes an image file on your hard drive that acts as a hard drive for the VM. You can be running windows and linux simutaneously with a VM. For instance, whenever I develop or need linux, I open my vm nd use it on my seccond monitor. One monitor windows, the other linux, and you can even drag and drop **** to each other os. Its amazing. Just make sure you allocate uenough threads and ram to your vm and you should be fine.
Can I use all the ram and threads because I only have 1GB ram and a 3GHhz dual core processor..... or is that enough to run it
with only 1gb of ram, you probably wouldn't want to run a VM since you'd really not want to use more than 512mb of your total 1gb.. With that little ram, your best choice is the dual boot setup.

Galaxy Nexus MTP and Ubuntu or Mint Linux solved

I didn't have a GN until this week so my only LIMITED experience was with my nephew's GN and I was not able to connect it to my Ubuntu 11.10, 11.04, 10.10 or Mint 12. I got my own this week and started the search. Here is how you do it courtesy of Shannon VanWagner
and his website Humans Enabled
Shannon's info:
https://plus.google.com/115207567016362184954/about
Thanks Shannon. Here is the what you should do: again all credit goes to Shannon VanWagner. Fire up a terminal session:
1-
Code:
sudo apt-get install libusb-dev
2- download libmtp tar.gz from http://sourceforge.net/projects/libmtp/files/libmtp/
3-cd to the directory you downloaded to: Download in this case, case sensitive
Code:
cd Downloads
4- extract the tar package
Code:
tar xvf libmtp-1.1.1.tar.gz
please make sure you check the file version, this file changes as it is updated and change it accordingly per the above website
5- cd to the newly created folder that has the extracted file:
Code:
cd libmtp-1.1.1
again don't forget to change the name if the version has changed
6- compile and install: do each step separately
Code:
./configure --prefix=/usr
Code:
make
Code:
sudo make install
7- while in the same directory in the terminal, copy the rules from there to the udev folder:
Code:
sudo cp 69-libmtp.rules /etc/udev/rules.d
8- install gMTP:
Code:
sudo apt-get install gmtp
9- open up gMTP, go to edit/prefrences and check the box for Always Show Download Path. This way when you are downloading from the phone to your computer, you are asked to choose a location. Use the Add button to upload from your Linux Box to the phone. Delete does, well, Delete a file.
Thanks so much for this. I was having all kinds of problems! Worked flawlessly!
I'm just wondering, why people still using USB cable for file transfers? There's gazillion threads here about broken USB ports and all of them are reall. I had my self that problem on SGS2 and since then i started to use Wifi Explorer. It's just safer and easier.
Don't take this as thread spoiling, i'm really thankful to everyone who shares info. l'm just trying to warn you, because USB port problem does exist even if you're extremely careful as i am.
Sent from my super Galaxy Nexus plusĀ®
I love Wifi Explorer as well but you do run a much greater risk of a corrupted file over wifi as opposed to usb.
I didn't have to do step 2. All I did was install libusb-dev and install gMTP and it worked.
That said I hate what google did here! I can no longer play music via usb on my car deck because of this
MS. said:
I'm just wondering, why people still using USB cable for file transfers? There's gazillion threads here about broken USB ports and all of them are reall. I had my self that problem on SGS2 and since then i started to use Wifi Explorer. It's just safer and easier.
Don't take this as thread spoiling, i'm really thankful to everyone who shares info. l'm just trying to warn you, because USB port problem does exist even if you're extremely careful as i am.
Sent from my super Galaxy Nexus plusĀ®
Click to expand...
Click to collapse
Thanks for the suggestion. I do use that especially since Amazon App store had it as the Free Paid app of the day a few months back. But you still need your wired connection for important files like radios, kernels, and roms. hate corrupted radios
Then i must be lucky, had no corrupted transfers yet (or at least i didn't notice that)
apt-get install gmtp fails.... I get the following::
Reading package list... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gmtp
What now? I'm running 64bit Ubuntu 10.04 LTS
Hello, I wonder if can I expect a Fedora solution?
DAG425 said:
apt-get install gmtp fails.... I get the following::
Reading package list... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package gmtp
What now? I'm running 64bit Ubuntu 10.04 LTS
Click to expand...
Click to collapse
I'm sure you did sudo apt-get, right?
gMTP is in the Ubuntu software center. I guess you can get it that way too.
Yes, any time i know im gonna need sudo multiple times i just run root terminal.... Got it from package manager! Thanx!!
Anyone else noticing massive slow ups when transferring files? The only things that happens quick is to download something from the device, uploading, and deleting take forever.
Thanks man for the guide.
its working but its supposed to be so slow(connect takes so long)??
Hi I've followed your guide down to the letter but my Nexus won't mount gMTP hangs and refuses to respond. What do you suggest?
emmib said:
Hi I've followed your guide down to the letter but my Nexus won't mount gMTP hangs and refuses to respond. What do you suggest?
Click to expand...
Click to collapse
a little info may help. What version of Ubuntu are you running? Any errors?
You may also want to look in to mtpfs which is a FUSE filesystem providing access to MTP devices. It's easy to use and with correct permissions you can mount the device as a user.
I've been using it and there is a long pause mounting the device for some reason but read / write speeds are very good. When the phone is connected you simply mount it with:
mtpfs [mount point]
Lost Dog said:
You may also want to look in to mtpfs which is a FUSE filesystem providing access to MTP devices. It's easy to use and with correct permissions you can mount the device as a user.
I've been using it and there is a long pause mounting the device for some reason but read / write speeds are very good. When the phone is connected you simply mount it with:
mtpfs [mount point]
Click to expand...
Click to collapse
so you just connect the point and type the above? Do you have to specify the mount point? What do you use?
loveubuntu said:
so you just connect the point and type the above? Do you have to specify the mount point? What do you use?
Click to expand...
Click to collapse
Make a directory to mount it at (~/phone or something). Connect your phone in MTP mode then type:
mtpfs ~/phone
It's user space so you don't need to use su or sudo. You do however need to have FUSE support in your kernel. You may need some of the other dependencies but if you install mtpfs in mint it should pull those in (I'm using Mint 12).
loveubuntu said:
a little info may help. What version of Ubuntu are you running? Any errors?
Click to expand...
Click to collapse
I'm terribly sorry about that, how rude of me XD I'm not running Ubuntu, I'm running Linux Mint 12, 32-bit. My Nexus is completely stock, GSM, running 4.0.2.
I finally can transfer files between ubuntu and my galaxy Nexus. Dumb google.
It took me days to find this thread. Wow you are amazing. I have tried different tutorial that would freeze my pc. Thanks for for sharing.

Categories

Resources