[Q] Turning a broken nexus into a Linux computer - Nexus S Q&A, Help & Troubleshooting

Hi there
After a tragic accident the touchscreen of my Nexus S lost its touch- prefix. I'm thinking into turning it into a linux machine to use as a small home server (I have many uses for those, I'm using serveral Raspberry Pi for this purpose), and I'm looking for the best solution.
I'm open to any Linux distribution (even if I am quite more familiar with debian derivatives). If possible, I would like to get rid of the Android stack itself because it is quite useless without touch input. I won't use a SIM card in it so I only need Wireless LAN.
Here are the options I have found so far :
- Using Ubuntu Touch and hoping it can be accessed with SSH and used like a "normal" distro (I had no luck installing it yet, but I will find out eventually)
- Installing Debian in a chroot over Android, but I don't know if it is possible to do with only adb access. This would not get rid of the Android stack but at least I would be sure to have a functional wireless stack.
Does anyone have pointers to how to achieve this ? Or other solutions ?
Thanks !

Related

[Q] Booting linux from Android - In general

Hello,
I am toying with an idea of using a cheap and chearful android tablet as a car pc. To achieve what I want though I would require linux (ubuntu) running on it not android.
I have been searching around but I couldn't find any non-specific information on booting linux from android. I was wondering if anything similar to HaReT for WinMo exists for android?
Thanks
Stuart

ROM combining android & ubuntu source

I have been flashing others' ROMs for about a year now, but I have also been on Ubuntu (and also tried Bodhi and other distros) on my laptop for years now. I was wondering if a ROM could be compiled using a hybrid of android and ubuntu or debian source code?
I would like to get a BT keyboard and an external monitor, and eventually do away with my laptop. I am in a masters program for instructional technology, and NEED to be able to write in APA format... difficult for QuickOffice Pro, but easy for OpenOffice and/or LibreOffice...
I know that an armel (ARM) version of ubuntu is available, and that a chroot method is possible via VNC. Ideally, however, I would love to run Ubuntu natively, but need phone functions too. I am up for a VZW upgrade anytime now, but wonder what handset would be best for attempting something like this, if it is possible? I am currently using the D1.
Sent from my Droid using XDA App

IPv6 - now working on Android! (no matter if your provider supports it)

I searched xda-developers a lot about IPv6 (Android related) but only questions, no one seamed to get it to work. Now I got IPv6 working on my Android phone and I want to share it.
Of course I can not held any responsibility for anything. I am no developer, just a user, who used Google a lot and who put a lot of single things together. Rather I am not sure why it works, but it does work.
Quick guide:
1. find out if Linux (Debian) is available for your Android phone and learn how to use it
2. find out if a tun module or a kernel with tun support exists for your phone
3. learn how to use IPv6 on Windows (if you are a Windows user) (I was happy with gogo Client at http://gogonet.gogo6.com/page/download-1) and on normal Linux (normal in meaning of running on PC) (I used miredo first)
4. learn what aiccu is and how to use it on PC
5. install Linux (Debian) on your phone
6. load the tun module (or use a kernel with tun support)
8. register aiccu
9. request tunnel at aiccu
10. install aiccu on your rooted Android phone (with tun) inside Debian chroot
11. done, test "ping6 ipv6.google.com" inside console, should work, and test in Android stock browers, it should also work!
Comprehensive guide:
First of all, before you start fiddling with Android and IPv6, which is quite tricky, I highly recommend to learn how to use IPv6 on Windows (only if you are a Windows user) and on some Linux distribution (Debian or Ubuntu recommend, as Debian is imho the most easy to get Linux for our Android phones).
On Ubuntu, which was running in VMware, I installed a package called miredo.(used this guide https://wiki.ubuntu.com/IPv6 look for miredo) It is a great piece of software. I just installed it and afterwards an apache2 webserver and the server was reachable from outside the virtual machine. Furthermore I did run another virtual machine with XP, both virtual machines, XP and Ubuntu where behind NAT (standard network configuration in VMware, setting up port forwardings is quite complicated) and also my router has a NAT and Windows firewall on host computer was also activated. Still... From the XP virtual machine I could access the apache2 running on Ubuntu. Great. You do not need VMware to learn how to use IPv6, of course, you can also use real hardware, but for me, VMware is very convenient.
Also learn what aiccu is and how to use it (https://wiki.ubuntu.com/IPv6#Get_connected_with_SixXS).
After you just learnt how to use IPv6 on normal Linux (normal refers to the normal end user version, no hacked stuff for Android) you have to learn how to use Linux (Debian) on your Android phone.
I used this guide http://forum.xda-developers.com/showthread.php?t=1254283 but you will need another guide for your phone, because this is phone specific. Google the name of your phone in conjunction with chroot, Android, Linux, Debian or search xda. It may not be possible to install Linux on all Android phones. I do not know that and I can not help you with that because I am a Linux noob. Of course, maybe you don't have to use Debian on your phone, I just like Debian because imho you'll find most informations in conjunction with Android about it and because it's more newbie friendly in general compared to other Linux distros. So maybe you prefer some other distro.
Then you need to get a tun module for your phone/kernel or a kernel with tun support for your kernel. Load the module.
You need to register for aiccu and also request a tunnel.
Afterwards, last step, install aiccu. I think I edited aiccu.conf and entered username and password.
ping6 inside Debian chroot is working for me and also in Android stock browser I can access IPv6 websites.
There are quite a lot requirements and things to learn before, I am sorry, because I can not ease this process.
Right now I also can not tell you nothing about how stable this works, how reliable it is or what the benefits are.
Update:
Working - 3g connection on phone (everything only IPv6 of course)
- apache2 webserver
- SSH server - access with Putty
- SFTP - access with FireFTP or WinSCP
Native aiccu for Android
Some time ago, I hacked together a native aiccu port for Android. I only tested it with AYIYA tunnels. It worked greatly both on Android 2.1 in a Xperia X10 mini pro and on Android 2.3 in a Galaxy Tab.
To use, copy the aiccu-android-bin.7z contents to your phone and put your config at /data/aiccu/aiccu.conf.
Please note that you HAVE to use the provided "ip" executable. The one provided with busybox is incomplete for usage with aiccu, and won't work.
The aiccu-android-src.7z contains the source code if someone is interested in hacking deeper. In particular, testing heartbeat tunnels and seeing if any changes are needed to the source would be nice. Also, cleaning up and trying to push upstream would be great.
Nice thx
Sent from my MB860 using Tapatalk
thotypous said:
Some time ago, I hacked together a native aiccu port for Android. I only tested it with AYIYA tunnels. It worked greatly both on Android 2.1 in a Xperia X10 mini pro and on Android 2.3 in a Galaxy Tab.
To use, copy the aiccu-android-bin.7z contents to your phone and put your config at /data/aiccu/aiccu.conf.
Please note that you HAVE to use the provided "ip" executable. The one provided with busybox is incomplete for usage with aiccu, and won't work.
The aiccu-android-src.7z contains the source code if someone is interested in hacking deeper. In particular, testing heartbeat tunnels and seeing if any changes are needed to the source would be nice. Also, cleaning up and trying to push upstream would be great.
Click to expand...
Click to collapse
Very nice. This simplifys the process a lot.
Unfortunately this does not work on my x8. Maybe because busybox is preinstalled with my ROM?
When I do acciu test, it complains about the ip executable. But I already copied both.
Can I get ride of the old buybox ip? Should it work on x8 as well?
T-Mobile USA has an beta native IPv6 service for ICS Nexus S and Galaxy Nexus UMTS phones. You can google the details. It is natively supported on the stock ICS software now using the UMTS network.
New solution:
https://code.google.com/p/gogodroid/wiki/GogoDroid
drawback:
needs ROM (kernel) with TUN (but any app could null that dependency)
First of all thanks for your work of putting all these information together!
I am using a Galaxy Nexus which allready has tun built in to the stock rom (ICS 4.0.4).
Unfortunately I cant get gogoDroid working. It seems it doesnt recognize the built in tun functionality.
So I tried it with the tun.ko module - no luck there neither, since there is no compiled version for the IMM76I Build :-(
Any suggestions on how to get it working anyways?
Edit: I also found another app which supports 6to4 tunneling called IPv6Config - you can find it on the Play market. Unfortunately 6to4 doesnt get thru NATted mobile networks...
Hello all !
Sorry to dig out this old thread again but here some infos about running IPv6 tunnels on a rooted Android phone.
I wrote a little app to simplify the installation, configuration and running the binaries posted by thotypous:
The app is called Androiccu and you can find it in the google market. Sorry, I'm not old enough to be allowed to post a link to it.
It's still in an early development stage but it does basically work for me and I would enjoy some feedback about success or failure.
This application downloads and installs the binaries, creates a config file with your login infos and can start and stop aiccu. All from a GUI, no need to play on a terminal.
Cheers and have fun testing.
why tunnel when you can have native ipv6 https://sites.google.com/site/tmoipv6/lg-mytouch
elgato99 said:
why tunnel when you can have native ipv6
Click to expand...
Click to collapse
Because most mobile network operators don't provide native IPv6 yet. You're among a few lucky ones that has such an operator. I'm not. When i'm at home i don't need this app as my router provides natively an IPv6 address to my phone over the wifi network. But on my router itself i have to run a tunnel as well as my provider is also not able to provide IPv6.
The biggest aim of this application is to become quickly obsolete when finally all mobile network operators will be able to provide IPv6 natively.
Best regards,
Martin
ty for info. my phone now running sixxs and route it on hostpot.
core7x said:
ty for info. my phone now running sixxs and route it on hostpot.
Click to expand...
Click to collapse
I have a sixxs tunnel. But how can I route this to wifi tethering? My ipad is connected to the wifi hotspot from the android, but the ipad can not resolve ipv6.google.com, but the android can do this.

[Q] Android C compiler, offline webserver with PHP

Hi!
I'm looking for an offline C compiler, and an offline webserver with PHP. The best would be a whole IDE, but I don't think it's exist for android 'cause it's for phones for first. I'm doing the C compiling on a chrooted debian, but it's not so comfortable. And the apache in there doesn't work. So any suggestions?
Thx:RiseR
It is possible to do something like this I just wouldnt know where to start. They have been able to get Ubuntu working on it and I am thinking about buying a second one to do that but its still buggy. I did however turn my rooted G1 into a server controller.
I already did it. I'm dual booting it. And on ubuntu it's fine, I can compile my programs but apache doesn't work there as well. I'm using IceWM, the only problem is the following:There're not as good keyboard as android has, so it's a bit slow to use. I'm using xvkbd, tried matchbox-keyboard, and onboard as well, but none of them are tablet ready, I think.
(I still don't have keyboard dock)
Give virtualbox a try ?
Have you tried using something other than Apache? nginx and lighttpd have worked for me under the debian chroot.
Try paw server for android then install the PHP plugin. Works for me so far.

running a (linux) distro on top on android?

Hi,
I'm looking for a new tablet the idea is to have a linux based environment as the main ui, usage will mostly be web browsing media playback and file management the occasional linux program.
why? short version I want a desktop touch experience somewhat similar to what I get out of my windows 8 tablet but without the Microsoft part.
one method I have seen seems to be the chroot ubunto running on top on android and I was wondering if anyone could help with a few questions please?
1/is it possible to use without needing VNC? (not a fan of having to vnc into the local desktop)
2/any performance hits running a linux system on top of an android one? (other than vnc)
3/its running on top of android so it should have full hardware support with any device right? it isn't going to use the touch screen as a track pad right?
4/recommend any devices I might have luck with? looking around maybe $70ish price range with supported rooting/modding.
5/is it actually there? I mean does it work? Im going to assume if it could be done people (someone at least) would be doing it already ?
thanks
~SandG
*edited*
after many days *cough* 10 minute sections where I had nothing better todo* I messed around and finally got the x server working.
it isn't accelerated (and stopped working after I tried to change base distro)
the x wrapper felt slower than VNC.
the dpi is kind of messed up the UI isn't made for it.
the touch screen works like a track pad (urg)
the keyboard erm where is the keyboard? (don't answer that)
for some reason they went and put this really neat tilt thing that moves the mouse around but lacks other things(acceleration?)
I could maybe pass as a really slow desktop if it were hooked upto a usb hub keyboard mouse and hd screen.
I still think it is an amazing feat it just isn't there. it is not usable for day to day tasks, install it for fun with vnc to show your friends you have "linux" installed on your tablet/phone, use it to run scripts / tools on the go you wouldn't normally have access to but that's about the extent to its usefulness, you aren't going to be playing games in it, doing heavy browsing streaming video or even playing sound.
tldr I got no feedback from anyone with experience but from what I gather it isn't going to replace android os on your tablet.
guess I will probably look for a tablet that runs linux native or suck it up and get a vanilla droid tablet and forget about switching out the UI/OS this way

Categories

Resources