Related
Hi all of you, XDA fans!
After googling and looking in XDA forums, I was not able to find any ways to port linux apps to Android and was wondering if it was even possible.
Knowing that Android runs on 2.6.25 kernel, I thought that maybe it was possible.
I recently purchased a G1, successfully rooted it, and now am looking for ways to port linux apps to Android.
Is there a way to build apps from source code on Android, using the build tools provided with desktop distros? (I am using Ubuntu atm).
Anybody want to share some lights on this?
I'll keep you posted if I find anything intresting...
XDA ROCKS!!!
I'm looking into this myself, especially with respect to vlc, mplayer, and some console emulators...all of which have been compiled for ARM before, most successfully on the GP2X handheld.
Cross-compiling apps on an Ubuntu system is possible, but I'm not sure how well compiled apps will work with the Android framebuffer. There's also no x-windows system, so you know graphical apps that need it won't cut it at all.
Let us know what you find out.
Found this: Debian on Android
Hey i found this, Thought it might be intresting to look into this.
Debian & Android Together on G1
It's a guide to have Debian running alongside android, at least for what I understand...
I haven't tried yet since I have rooted rc8 and it's written for rc29/Mrc30, but that seems like a good solution.
Would be nice to be able to compile on android rather than on eclipse on ubuntu...
I've got no programming knowledge, that's why I'm looking for a solution allowing to compile directly on android...
"There's also no x-windows system, so you know graphical apps that need it won't cut it at all."
I was thinking as an experience to compile aircrack-ng, and it has no gui... The hardware might not support it but tha g1 might be able to handle it.
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
efbenson said:
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
Click to expand...
Click to collapse
enable telnetd from terminal and see if you can telnet from your computer to it via 3G (i.e. your wireless computer ---> G1)
My G1's edge ip is 25.97.51.2XX tried to telnet in, host unreachable. Did a traceroute from both my web server and home computer, both showed that the 3rd hop and all hops after that did not respond, and as expected ICMP echo (ping) sent to the phone timed out. Therefor we can i think say that T-mobile was not dumb and put a firewall up as any network administrator would. Gonna double check the IP of my G1 and i'll get back if it figure out my ip is different or something.
EDIT: pinged my router this time, got the IP 208.54.4.61, still same story times out and my G1 died so im going to reboot it and plug it in to try again.
well i'm sure t-mobile was wiser on that end, but did you try telnetting on port 80? also if you were to get a webserver running on your g1, you could always just use a non-standard port (81?) and just use a service like dyndns to control the port redirect, since i'm assuming they're already managing the dyndns updates.
rak500 said:
Hey i found this, Thought it might be intresting to look into this.
Debian & Android Together on G1
It's a guide to have Debian running alongside android, at least for what I understand...
I haven't tried yet since I have rooted rc8 and it's written for rc29/Mrc30, but that seems like a good solution.
Click to expand...
Click to collapse
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
deprecate said:
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
Click to expand...
Click to collapse
If you have JF 1.3+ you don't need to insmod ext2.ko. Just type "busybox insmod ext2".
deprecate said:
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
Click to expand...
Click to collapse
Do you think I can have it working on my rooted UK RC8?
I want to try it but it seems the configuration are slightly different for RC19 and RC29 according to the tutorial, so I thought it might be different on RC8 too.
I tried the web server in the market, didn't seem to work on edge
I'm not quite sure but I believe that T-mobile's VPN add-on might provide an externally accessible IP.
does anyone know if you can compile samba for the g1 ?
I've never dealt with linux on anything besides x86 and x64, so forgive me if this is stupid, but what about running gentoo on the G1 here? Seems to me that portage for ARM might be a little bit better for the G1 than the Debian repositories.
Although, NONE of us will be excited about having our G1 churning away for hours/days just to get Xorg compiled, as well as the headaches associated with installing and configuring gentoo.
I'm sure someone's thought of this, and Debian is pretty great anyway, just thought I'd put this out there.
kash04 said:
does anyone know if you can compile samba for the g1 ?
Click to expand...
Click to collapse
I am using Samba by way of Debian. So, yeah, it's possible.
DDM123 said:
I've never dealt with linux on anything besides x86 and x64, so forgive me if this is stupid, but what about running gentoo on the G1 here? Seems to me that portage for ARM might be a little bit better for the G1 than the Debian repositories.
Although, NONE of us will be excited about having our G1 churning away for hours/days just to get Xorg compiled, as well as the headaches associated with installing and configuring gentoo.
I'm sure someone's thought of this, and Debian is pretty great anyway, just thought I'd put this out there.
Click to expand...
Click to collapse
It's not stupid. If it works for you and is to your liking, go for it. It is debatable, however, whether portage (as good as it is) is any better for the G1 than Debian's packaging system. Packages compiled for the ARM architecture are already optimized for ARM processors. There wouldn't be as much self-compiling gain in this architecture as there would be optimizing between i386, i686, amd-64, etc. You'd be doing a lot of work and wasting a lot of time having portage compile your apps...and you'd have very little pluses to show for it.
Oh ok, I just thought that many apps were being compiled manually and portage might make some of that easier. I figured there wouldn't be any speed gains over Debian or other binary-based distros, and the barebones installation of gentoo is absolute hell, but I hoped it might get us into full-blown X quicker somehow.
It could definitely work with Portage. Keep in mind, though, that apt-get under Debian *can* download and build the source into a package automatically as well.
Web Server on TMO
Hey guys,
I'm new on XDA, getting my galaxy S tomorrow, I was a nokia fan up untill maemo 5 and the N900...
Anyway, one thing to remember is - Cellular Operators usually manage their own IP address pools, they don't give "Real" IP addresses to cellular phone, but rather use NAT services and all sort of nasty hacks to the IP system.
Therefore, in order for port 80 (http web server) to work on your server, it's not enough to just run it and get the IP, you also need the provider/operator to forward TCP packets coming to your External IP on port 80 to be forwarded to your internal IP > to your phone.
This, will never happen. If it will, you will get charged heavily for this as it will increase traffic and allow upstream traffic to your phone, and also risk your phone to potential hackers.
Edit : And I just noticed I resurrected an almost 2 years old thread Oopsy.
efbenson said:
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
Click to expand...
Click to collapse
get dyndns account there is an app on the market that will sync it.
(Ergh. Link won't come through since I'm new. The tutorial to install Ubuntu on the Nexus One on the nexusonehacks website is the one i'm referring to)
Following this tutorial, Ubuntu installed perfectly on my Mez. No problems whatsoever! Just need to root the phone (I rooted with z4root if it matters).
Couldn't find any info on the MezBuntu combo, so I figured I'd post my experience with it here.. if it's already been known, sorry. Haha!
First post here btw
Post the link to this if you can or type it if you have problems as I would like to look at this thanks.
http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
-ignore, forum is being retarded-
I've spent a lot of time this evening getting some stuff added into this and tweaked tonight. I'm going to keep working a little more on this and then host my own copy so people don't have to jump through so many hoops to use it.
I can't post the link since I have less than 8 posts.. anyways, msullivan, I had no trouble with it at all. Didn't have to do any changes whatsoever. If you mean making it less complicated, then ignore me. Haha
Do you need adb to do it or can I just do it through android terminal?
Using my computers a pain lol
Sent from my SPH-D700 using XDA App
I'm assuming you need ADB, but it might work through the terminal.. I did it through ADB and had no problems whatsoever so I'd do it ADB just to be safe.
You don't need ADB, you can do most of it through a terminal emulator app. First enable WiFi and find out the WiFi IP address. Follow all the guide steps until you get to the part about finally seeing "[email protected]:/#"
Then issue the commands:
Code:
apt-get update
apt-get install openssh-server nano
service ssh start
passwd root
After that last command you'll be asked to set a password for the root account, do something simple to type on the android keyboard, like 'qwerty'.
Now go to a computer and SSH into your phone via PuTTY or whatever your favorite SSH client app is. Now it will be WAY easier to install things via apt, get the GUI running from the howto guide, etc etc. Also then you'll have a real file editor (nano) to work inside of, so you can edit the config files (such as 'bashrc' without having to do very complicated cat commands. This is how I performed my setup and it worked flawlessly. Note that if you set it up to create a VNC session for you automatically in the bashrc, you'll really feel the slowdown. In my tweaked version (which, like I said, I'll release on here soon), I have created a simple prompt on login that asks if you want to create a VNC session or not. That way if you are just there for command-line you don't have to eat the phone's RAM away.
msullivan said:
You don't need ADB, you can do most of it through a terminal emulator app. First enable WiFi and find out the WiFi IP address. Follow all the guide steps until you get to the part about finally seeing "[email protected]:/#"
Then issue the commands:
Code:
apt-get update
apt-get install openssh-server nano
service ssh start
passwd root
After that last command you'll be asked to set a password for the root account, do something simple to type on the android keyboard, like 'qwerty'.
Now go to a computer and SSH into your phone via PuTTY or whatever your favorite SSH client app is. Now it will be WAY easier to install things via apt, get the GUI running from the howto guide, etc etc. Also then you'll have a real file editor (nano) to work inside of, so you can edit the config files (such as 'bashrc' without having to do very complicated cat commands. This is how I performed my setup and it worked flawlessly. Note that if you set it up to create a VNC session for you automatically in the bashrc, you'll really feel the slowdown. In my tweaked version (which, like I said, I'll release on here soon), I have created a simple prompt on login that asks if you want to create a VNC session or not. That way if you are just there for command-line you don't have to eat the phone's RAM away.
Click to expand...
Click to collapse
What exactly did you do to get your tweaked version? Just wondering as I might give this a try
droidzach said:
What exactly did you do to get your tweaked version? Just wondering as I might give this a try
Click to expand...
Click to collapse
I didn't 'get' it, I just added some stuff like auto-starting SSH and a prompt asking whether or not you want a VNC service started. If you or others are still interested I can probably get it posted.
msullivan said:
I didn't 'get' it, I just added some stuff like auto-starting SSH and a prompt asking whether or not you want a VNC service started. If you or others are still interested I can probably get it posted.
Click to expand...
Click to collapse
Yeah that's what I meant. Ill see if I get around to getting ubuntu running and play with it then maybe I'll ask you what you did if I'm gonna actually use it. Thanks
Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Newanzer said:
Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Click to expand...
Click to collapse
Did you try one of clemsyn's latest kernels - they have the tun support. Also on market place there is an OpenVPN app that attempts to install an openvpn binary - that same dev also has an OpenVPN settings app that you can use to create your tunnel. Perhaps that will work for you.
prscott1 said:
Did you try one of clemsyn's latest kernels - they have the tun support. Also on market place there is an OpenVPN app that attempts to install an openvpn binary - that same dev also has an OpenVPN settings app that you can use to create your tunnel. Perhaps that will work for you.
Click to expand...
Click to collapse
I can currently get a VPN connection, but the server refuses it because it isn't encrypted - even with the encryption option on. I'll try clemsyn's kernel. I noticed he posted one specific to the ZTab ROM recently.
Newanzer said:
I can currently get a VPN connection, but the server refuses it because it isn't encrypted - even with the encryption option on. I'll try clemsyn's kernel. I noticed he posted one specific to the ZTab ROM recently.
Click to expand...
Click to collapse
PLEASE keep us updated. This is also essential to my job and I want to use android! GTab in particular.
jmdearras said:
PLEASE keep us updated. This is also essential to my job and I want to use android! GTab in particular.
Click to expand...
Click to collapse
No luck. Tried the new kernel and still get the same error. G-Tab shows connection lost. Server log shows same error (port 47 blocked or unable to negotiate encryption). Since our laptops all work I'm going to assume port 47 isn't blocked on our network. Maybe not enabled on G-Tab?
Which ROM are you using?
EDIT: nevermind - I see zpad rom. Did you try the vegan rom or tnt rom?
I am setting up a server with two cards and windows server 8 and an accesible ip just as test lab for this. If any dev wants access pm me.
Sent from my DROIDX using XDA App
Newanzer said:
Would one of the Dev's be willing to tackle getting VPN PPTP with encryption (mppe 128 or 256) working on the G-Tab? Right now it is either not working or working as unsecured PPTP (depending on the ROM). If anyone knows of a ROM where this is functional please let me know.
What little I have found on the history of VPN in android indicates that the last version with encrypted PPTP was version 1.6. Google was having problems keeping a connection to the VPN server.
Reference: http://code.google.com/p/android/issues/detail?id=4706
For myself and my coworkers this has become an important need. If we can't get the feature we may be forced to get iPads (*cringe*). I for one am willing to make donations to Dev(s) who can add this. Some ROMs have the option but seem to be lacking the module (unconfirmed) to handle encryption through the included PPPD.
It is possible this may come back in Android 3.0 since it is geared toward tablets but I haven't been able to find any information either way.
Thank you for your time.
Click to expand...
Click to collapse
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
clemsyn said:
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
Click to expand...
Click to collapse
Brillant! I have a connection! From home even. Many Thanks! (but I can only hit the button once...)
I'll keep an eye on it and see how long the connection lasts. That seemed to be the bug that killed Google's interest in this. With luck it wont show because someone tweaked over it.
I'll spread the word. Thanks again!!
Update: Unfortunately the data traffic stops within a minute. The connection stays up and reports a server connection just no data passes. This is the same issue as Google has in it's bug report. I"ll look at the server logs in the morning to see if anything is reported, but it is at least a step in the right direction.
BTW: The GUI seems a bit faster. Were there any other tweaks in that kernel?
Newanzer said:
Brillant! I have a connection! From home even. Many Thanks! (but I can only hit the button once...)
I'll keep an eye on it and see how long the connection lasts. That seemed to be the bug that killed Google's interest in this. With luck it wont show because someone tweaked over it.
I'll spread the word. Thanks again!!
Update: Unfortunately the data traffic stops within a minute. The connection stays up and reports a server connection just no data passes. This is the same issue as Google has in it's bug report. I"ll look at the server logs in the morning to see if anything is reported, but it is at least a step in the right direction.
BTW: The GUI seems a bit faster. Were there any other tweaks in that kernel?
Click to expand...
Click to collapse
There is a cryto sha 256 or 512. Lmk which to enable
clemsyn said:
Try this, I enabled everything re: PPP in this kernel including PPTP and also enable MPPE (Microsoft PPP Encryption). I hope this helps. BTW, this MPPE is experimental in the kernel but I hope it works for you.
Click to expand...
Click to collapse
This is awesome - and just what I was looking for! Any chance you could post the Vegan version as well? Thanks so much!
Hi Clemsy,
Thanks again for all the great work you're doing. If you could also do this for vegantab it would be greatly appreciated.
Cheers
Jonesie
How do I install this file?
Jonesie18 said:
Hi Clemsy,
Thanks again for all the great work you're doing. If you could also do this for vegantab it would be greatly appreciated.
Cheers
Jonesie
Click to expand...
Click to collapse
I might have to take a pause on this since I'm having issues with my Gtab at the moment. My screen turned white and I can't see a thing. I was playing angry birds and noticed that my screen sensitivity turned bad and a few seconds later it turned all white. I might have to get a replacement for my Gtab
I can build the kernel for Vegan tab but there is no way for me to test it but it should work fine
I read a post that doing this might fix it:
Add the following to /etc/pptpd.conf
mru 1280
mtu 1280
Please try and see how it goes.
More Info
I had our network admin look at the VPN server logs for my connection. No errors or warning from the server.
One interesting thing to note, it seems that when the data transfer between the tab and the VPN server stops it's only one way. I was able to send mail out from the tab, but not receive mail or view web pages. I'm wondering if the decryption side (incoming to tab) of MPPe is broken. That could explain why the server keeps a connection, but the data flow seems to stop.
Could we steel code from a linux kernel that works?
clemsyn said:
I read a post that doing this might fix it:
Add the following to /etc/pptpd.conf
mru 1280
mtu 1280
Please try and see how it goes.
Click to expand...
Click to collapse
I don't have a pptpd.conf in /etc. What is the file syntax? I'll make one and copy it in. I'm assuming this is ./etc and not ./system/etc.
Edit: Never mind found info here: http://www.linux.org.au/~quozl/pptp/pptpd.conf.5.html
Edit Edit: Ok I think I have reached the level of my ignorance. How do you get a file copied to /etc? I have tried a file manager with SU permissions, and a terminal with SU permissions. In both cases I am getting a permission denied error. What's the secret?
Newanzer said:
I don't have a pptpd.conf in /etc. What is the file syntax? I'll make one and copy it in. I'm assuming this is ./etc and not ./system/etc.
Edit: Never mind found info here: http://www.linux.org.au/~quozl/pptp/pptpd.conf.5.html
Edit Edit: Ok I think I have reached the level of my ignorance. How do you get a file copied to /etc? I have tried a file manager with SU permissions, and a terminal with SU permissions. In both cases I am getting a permission denied error. What's the secret?
Click to expand...
Click to collapse
Upload the file and ill make a zip file for you to flash it.
So close ... I think Google may need to work out a few of their bugs first.
First off a big thanks to clemsyn for the hard work. (I used Root Explorer to copy the file pptp.conf)
Using the latest kernel posted here for VeganTab I was able to connect to a MS PPTP VPN and ping for a long while however just like my Samsung Vibrant the VPN appears to die once a burst of traffic is shot through the tunnel. The tunnel I have discovered is not disconnected but unusable through the Android system. If I disconnect the VPN session remotely the log files indicate that the remote server killed the connection. Not sure much can be done as now I feel I am hampered by Google's inability to care for VPN access. I am sure the developers here can figure this out but why should they have to figure this out when it seems to be a fundamental issue with Google's code. Maybe this disconnection does not happen with OpenVPN? Anybody use it? I am tempted to setup a test OpenVPN server just to see how long I can keep my connection.
BTW ... After remotely killing the VPN connection the VPN services crashes and throws up an exception in the back ground when terminating the service.
Not working. I might try without the encryption in the server side to check if that works. It actually connects (pings) a couple of seconds with the LAN computers... then it nevers connects again... even with reboots. Does the pptpd.conf only need those two lines?
I found this site which may help
http://code.google.com/p/android/issues/detail?id=6402
A user stated this:
"Hey! Saw another post elswhere in the forum. For Microsoft VPN using PPTP, I think it helps to disable Software Compression in Routing and Remote Access Manager on the Windows server hosting VPN. After I did that, I was able to connect to VPN.
In Routing and Remote Access Manager, right click on the server in the tree and select Properties. Then, under the PPP tab, uncheck Software Compression. I am the Sys Admin at my Co, so I was able to do this myself. Others may have to submit a request to your respective Sys Admins. Besides, who uses compression on VPN's since the death of Dial-up?
Good Luck!"
Would it be possible with the transformer? I need to set gateway, group name, group password, user name and userpassword. I don't see the group fields in the vpn configuration.
I would rather not root.
Yes, I really want know too if anybody knows about Cisco VPN. I heard somewhere Cisco built the client for Android but I have not found it anywhere.
The only client that I know working is VPN Connections (my friend has it working in his Evo phone), but it requires root access, so I have not tried it yet in my transformer.
Nothing available as of yet, I've spent hours searching.
Samsung had announced they were including this on the 10.1, however I posted the question in that forum, and it was not included in the initial release.
More on this topic at http://code.google.com/p/android/issues/detail?id=3902&cnum=500&cstart=1233#makechanges
I got this working last night !
I am running Prime 1.4 which includes the tun.ko kernel module which is needed. Then install this app: http://code.google.com/p/get-a-robot-vpnc/
The app is designed for phones, looks absolutely terrible on a tablet, and is unusable in portrait mode. BUT with all that said, I created a profile, entered the vpn address, group name, group password, username and left the user password blank (token auth for me). I set it up to load tun.ko automatically. long press the profile and select "Connect", got prompted for my password, entered it and bam! I'm vpn'd into my work cisco vpn.
Good luck.
That is super news that you got it working! The project is open source, so making it tablet friendly will surely happen. But installing a kernel module means having root.
ppirate said:
That is super news that you got it working! The project is open source, so making it tablet friendly will surely happen. But installing a kernel module means having root.
Click to expand...
Click to collapse
Indeed it does. I'm actually surprised/disappointed tun.ko is not a standard on all devices. I'd also like to see cifs.ko standard, but there are far fewer people tht wold find that useful I think.
If I understand correctly, the only thing asus would have to do is add tun.ko to the modules. Then everything can be done in userland.
One other link I found was the following:
https://www.nixuopen.org/blog/2011/5/android-and-cisco-ipsec-vpn/
This nicely integrates the cisco vpn support into android. This would be the perfect solution.
Starting with Cisco ASA version 8.4(1) Cisco is supporting Android remote clients using Android native VPN client (only L2TP/IPsec is supported at this point)
http://www.cisco.com/en/US/docs/security/asa/asa84/release/notes/asarn84.html
I hope Google will include a full featured VPN client (group support, etc.), and Cisco will provide clientless VPN support for Android devices.
lqaddict said:
Starting with Cisco ASA version 8.4(1) Cisco is supporting Android remote clients using Android native VPN client (only L2TP/IPsec is supported at this point)
http://www.cisco.com/en/US/docs/security/asa/asa84/release/notes/asarn84.html
Click to expand...
Click to collapse
Aha, this might be useful for me. One of the vpn addresses at my uni starts with asa1vpn.* . Thus in my case it might work, I'll probably better send the IT department the above link, they will help me further.
Though I still hope native cisco vpn gets supported in android.
Cisco is supposed to release the anyconnect ssl vpn client for android....but knowing how cisco works ot may be a while. Its supposed to be on their cius tablet.
Sent from my DROIDX using XDA App
timekillerj said:
I got this working last night !
I am running Prime 1.4 which includes the tun.ko kernel module which is needed. Then install this app: http://code.google.com/p/get-a-robot-vpnc/
The app is designed for phones, looks absolutely terrible on a tablet, and is unusable in portrait mode. BUT with all that said, I created a profile, entered the vpn address, group name, group password, username and left the user password blank (token auth for me). I set it up to load tun.ko automatically. long press the profile and select "Connect", got prompted for my password, entered it and bam! I'm vpn'd into my work cisco vpn.
Good luck.
Click to expand...
Click to collapse
How did you setup tun.ko to auto load? I've got get-a-robot-vnc working on my HTC Supersonic running CM7 out of the box. However, on TF104 running Prime 1.4 when I try to connect, I get an immediate "Failed to Connect" error. I'm guessing the tun.ko module is not loaded.
Looking online, I searched for the tun.ko module via "find -iname tun.ko" and found it at "/system/lib/modules/tun.ko"
To load it I did "inmod /system/lib/modules/tun.ko" and got a # prompt which I think is expected (I'm linux dumb).
I went back to VPN Connections and got the same error.
Looking at the LogCat, VPN_Connections is saying that tun doesn't exist
Edit in:
ok I think I had a typo in my command up there, should be ins[/]mod. When I run that command, I get "insmod: init_module '/system/lib/modules/tun.ko' failed (File exists)
jefbal99 said:
How did you setup tun.ko to auto load? I've got get-a-robot-vnc working on my HTC Supersonic running CM7 out of the box. However, on TF104 running Prime 1.4 when I try to connect, I get an immediate "Failed to Connect" error. I'm guessing the tun.ko module is not loaded.
Looking online, I searched for the tun.ko module via "find -iname tun.ko" and found it at "/system/lib/modules/tun.ko"
To load it I did "inmod /system/lib/modules/tun.ko" and got a # prompt which I think is expected (I'm linux dumb).
I went back to VPN Connections and got the same error.
Looking at the LogCat, VPN_Connections is saying that tun doesn't exist
Edit in:
ok I think I had a typo in my command up there, should be ins[/]mod. When I run that command, I get "insmod: init_module '/system/lib/modules/tun.ko' failed (File exists)
Click to expand...
Click to collapse
I had this problem as well. Doing a full wipe including cache and dalvik then reflashing prime 1.4 cleared that up for me.
Here is where I am at now. I can connect to the VPN, checking the netcfg from the shell or terminal emulator shows that my tunnel interface is up and has an IP address but when I attempt to use the connection either by web browser or ping from within the shell the tunnel interface drops out.
Checking the last connection log I can see the MOTD banner pop up and show I am connected then I see the following;
Device "wlan0
wlan0" does not exist
RTNETLINK answers: No such device
cp: can;' stat '/etc/resolv.conf' : No such file or directory
process stderr Device "wlan 0
wlan0" does not exist
RTNETLINK answers: No such device
cp: can;' stat '/etc/resolv.conf' : No such file or directory
Connection string detected
velocd said:
I had this problem as well. Doing a full wipe including cache and dalvik then reflashing prime 1.4 cleared that up for me.
Here is where I am at now. I can connect to the VPN, checking the netcfg from the shell or terminal emulator shows that my tunnel interface is up and has an IP address but when I attempt to use the connection either by web browser or ping from within the shell the tunnel interface drops out.
Checking the last connection log I can see the MOTD banner pop up and show I am connected then I see the following;
Device "wlan0
wlan0" does not exist
RTNETLINK answers: No such device
cp: can;' stat '/etc/resolv.conf' : No such file or directory
process stderr Device "wlan 0
wlan0" does not exist
RTNETLINK answers: No such device
cp: can;' stat '/etc/resolv.conf' : No such file or directory
Connection string detected
Click to expand...
Click to collapse
Fixed this issue by applying this fix in the link below.
http://bugs.gentoo.org/show_bug.cgi?id=331445
I also placed a set-x command at the beginning of the VPNC-script file to get a better debug in the lastconnection.log
Now I am seeing the following error;
+ fix_ip_get_output
+ sed s/cache//;s/metric \?[0-9]\+ [0-9]\+//g;s/hoplimit [0-9]\+//g
+ /system/bin/ip route add
RTNETLINK answers: No such device
I can still connection and in the log I can see the router tables build but I am having issues getting the data to pass through the tunnel. The tun0 interface drops as soon as I attempt to pass date through it.
Anyone have any ideas?
tun.ko / VPN Connections does NOT work on Prime 1.4.
Even if it looks like it is working it does not pass traffic through the tunnel.
M-A-A said:
tun.ko / VPN Connections does NOT work on Prime 1.4.
Even if it looks like it is working it does not pass traffic through the tunnel.
Click to expand...
Click to collapse
Yup, my problems were related to a lack of SuperUser providing root access to the VPN Connections software. I got the updated binary and it says it connects, but disconnects within minutes.
Must be a bug in either HoneyComb or the Prime 1.4 ROM. I have VPN Connections fully functioning on my HTC Supersonic running CM7
I checked out the project from the SVN, changed the target to Android 3.1 and rebuilt it.
Now, the UI is a lot better.
The thing that happens to me (it happened before), is that the apps stays on trying to disconnect. I checked on the ASA (the device that manages the connection), and it's not there... So dunno. I just kill the app...
I've attached the program below. Its license is GPLv3 so there shouldn't be a problem.
sh337 said:
I checked out the project from the SVN, changed the target to Android 3.1 and rebuilt it.
Now, the UI is a lot better.
The thing that happens to me (it happened before), is that the apps stays on trying to disconnect. I checked on the ASA (the device that manages the connection), and it's not there... So dunno. I just kill the app...
I've attached the program below. Its license is GPLv3 so there shouldn't be a problem.
Click to expand...
Click to collapse
This definitely looks a lot better! We just need to get the backend stuff working now
M-A-A said:
This definitely looks a lot better! We just need to get the backend stuff working now
Click to expand...
Click to collapse
What do you mean? It is working for me...
sh337 said:
What do you mean? It is working for me...
Click to expand...
Click to collapse
When I connect to my corp network, no packets flow. As soon as I try to access anything, the VPN session drops.
sh337 said:
What do you mean? It is working for me...
Click to expand...
Click to collapse
You have it passing traffic through the tunnel?
Hi,
I'm rooted and I've tried all the apps, Set Dns, Dns changer, etc...
It simply doesn't seem to work.
Any ideas?
P.S.: I don't know if this has something to do with it but a couple of months ago the dns settings on my main pc didn't seem to do it anymore.
I found out that my provider switched me over to ipv6, once I added google ipv6 dns adresses it worked again
What app did you use to change it?
Dns
dJ_Turfie said:
Hi,
I'm rooted and I've tried all the apps, Set Dns, Dns changer, etc...
It simply doesn't seem to work.
Any ideas?
P.S.: I don't know if this has something to do with it but a couple of months ago the dns settings on my main pc didn't seem to do it anymore.
I found out that my provider switched me over to ipv6, once I added google ipv6 dns adresses it worked again
Click to expand...
Click to collapse
Go through this once, hope it will help you out.
http://www.site-helper.com/dns.html
Kindly reply.
PainfulLover said:
What app did you use to change it?
Click to expand...
Click to collapse
I used practically all the DNS apps there are.
I've come a little further since I've made this post.
I have a /etc/resolv.conf file with the 2 google dns servers in there.
Now I'm trying to get the ipv6 dns servers in there aswell.
However, I cannot get permission.
I tried to chmod the file, with no avail, still no permissions for me to change the file.
Then i learned about lchattr and chattr, that didn't work aswel.
Now I'm looking for a way to edit the file... (That is if android actually uses the file)
dJ_Turfie said:
I used practically all the DNS apps there are.
I've come a little further since I've made this post.
I have a /etc/resolv.conf file with the 2 google dns servers in there.
Now I'm trying to get the ipv6 dns servers in there aswell.
However, I cannot get permission.
I tried to chmod the file, with no avail, still no permissions for me to change the file.
Then i learned about lchattr and chattr, that didn't work aswel.
Now I'm looking for a way to edit the file... (That is if android actually uses the file)
Click to expand...
Click to collapse
So did I, it just occurred to me that you meant you figured it out on the pc (you know you're on xda, right?!).
It's sad there's no app for dns changing on kitkat.
Let us know if you figure it out.
PainfulLover said:
So did I, it just occurred to me that you meant you figured it out on the pc (you know you're on xda, right?!).
It's sad there's no app for dns changing on kitkat.
Let us know if you figure it out.
Click to expand...
Click to collapse
No I'm still trying to figure it out on 4.4 KitKat.
I've managed to make a resolv.conf file now ( Simply mounted r/w in file explorer, silly me)
But it seems to me that android doesn't even use that file...
Now I have no idea what to do
Override DNS for KitKat
dJ_Turfie said:
No I'm still trying to figure it out on 4.4 KitKat.
I've managed to make a resolv.conf file now ( Simply mounted r/w in file explorer, silly me)
But it seems to me that android doesn't even use that file...
Now I have no idea what to do
Click to expand...
Click to collapse
Hi, I feel your pain because I was on the same situation.
Many things dealing with name resolution have changed in Android 4.4 KitKat and so all the Play Store apps suddenly stopped working.
Changing the "resolv.conf" file does not affect anything because it's simply ignored by the "netd" daemon which now takes care of the task.
The classical "setprop" method used by all the DNS changer apps does not work anymore. Those values, when changed, get simply ignored by the "netd" daemon, too.
It’s necessary to communicate directly to the daemon via socket.
I created an app which automatically guesses the network device name and applies the right commands each time a mobile network gets activated.
I think it's the only one which works for KitKat (at the time of writing). You need a rooted phone (which is your case).
You can find the app on the Play Store, it's called "Override DNS for KitKat".
Hope it helps.