yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] Crusoe86:
Oh sorry, maybe I should had told you that you have to type "su" before you use this command.

But it is great that you found your own solution :)
[HD2 Android Q&A, Help & Troubleshooting and Genera] cnwatch:
can anyone help with setting up the openvpn with dd-wrt router, I am using

the following config file, (i am using the static key)

remote xxx.xxx.xxx

port 2008

dev tap

secret static.key

proto udp

comp-lzo

route-gateway 192.168.1.1

redirect-gateway

the .ovpn and static key files had been put under the sdcard/openvpn directory.

I tried to use traceroute google and nothing happens (shows bad address), but when I use ping google it can give me the correct address.

The following are the commands I executed from terminal and results I got!

cd sdcard/openvpn

openvpn --config abc.ovpn

------------

Thu Jan 6 01:14:04 2011 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jul 26 2010

Thu Jan 6 01:14:04 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or

executables

Thu Jan 6 01:14:04 2011 WARNING: file 'static.key' is group or others accessible

Thu Jan 6 01:14:04 2011 LZO compression initialized

Thu Jan 6 01:14:05 2011 TUN/TAP device tap0 opened

RTNETLINK answers: No such process

Thu Jan 6 01:14:05 2011 ERROR: Linux route add command failed: external program exited with error status: 2

Thu Jan 6 01:14:05 2011 UDPv4 link local (bound): [undef]:2008

Thu Jan 6 01:14:05 2011 UDPv4 link remote: xxx.xxx.xxx.xxx:2008

Thu Jan 6 01:14:32 2011 Peer Connection Initiated with xxx.xxx.xxx.xxx:2008

Thu Jan 6 01:14:32 2011 Initialization Sequence Completed

Does it mean that I don't have tun/tap file installed? How can I find the file?
[HD2 Android Q&A, Help & Troubleshooting and Genera] jbbandos:
I am having a strange problem with OpenVPN and MIUI ROM. Seems like OpenVPN connects, but when I check my IP (using checkmyip.com or something similar) it still is the one of the original network, so traffic isn't going through the tunnel. I have busybox in /system/bin, and I set that dir in OpenVpn settings (got it from the market). I also downloaded openvpn to /system/xbin using OpenVpn installer.

What can I check to find what is wrong here? Calling route by itself always gives me an invalid parameter, so it might be some problem with how busibox was compiled, but I'm not sure.

Thanks!
[HD2 Android Q&A, Help & Troubleshooting and Genera] cnwatch:
anyone can help on this?
[HD2 Android Q&A, Help & Troubleshooting and Genera] jbbandos:
In the end, the only way I got openvpn to work was to create /system/xbin/bb, link /system/xbin/route and /system/xbin/ifconfig to /system/xbin/bb/route and /system/xbin/bb/ifconfig respectively, and use the openvpn installer to install openvpn in /system/xbin and look for route and ifconfig in /system/xbin/bb. Any other way it wouldn't work. :(
[HD2 Android Q&A, Help & Troubleshooting and Genera] sudanee:
I follow

but I get this error

fetal: linux ifconfig failed: could not execute external command

any help plz
[HD2 Android Q&A, Help & Troubleshooting and Genera] nickgallis:
hi all I try to setup a vpn work connect and give ip but I can't surf on vpn network ... any help to make routing?
[HD2 Android Q&A, Help & Troubleshooting and Genera] SucceeD:
Hey guys,

I have the same problem as nickgallis :(

I have successfully installed OpenVPN on my SGS I9000. Establishing a connection to the OpenVPN Server is no problem, but after this the traffic isn't routed through the VPN-connection and I don't know why :(

OpenVPN config:

client
dev tun
proto udp

remote 193.197.62.35 1195
remote 193.197.62.35 1196
remote 193.197.62.35 1197
remote 193.197.62.35 1198

remote-random

resolv-retry infinite

nobind

persist-key
persist-tun

mute-replay-warnings

ca dhbw-openvpnca.txt

comp-lzo

verb 3

auth-user-pass

Can someone help please?
[HD2 Android Q&A, Help & Troubleshooting and Genera] jbbandos:
How are you guys installing openvpn? I had the same problem of the route not being used when I didn't link ifconfig and route to /usr/xbin/bb (check my post above to how I fixed it, or even simpler, check Crusoe86 and ladidaaa posts).
[HD2 Android Q&A, Help & Troubleshooting and Genera] SucceeD:
Hey jbbandos,

I did what you have written in your post above, but I get the following error: "FATAL: linux ifconfig failed: could not execute external command".

Ifconfig and route are in the directory "system/xbin/bb/", i looked it up with the Root Explorer.. And OpenVPN is installed in the directory "system/xbin/" Do you have an idea why the error occurs?
[HD2 Android Q&A, Help & Troubleshooting and Genera] jbbandos:
What happens if you open terminal, do a "su", and then /system/xbin/bb/ifconfig?

Also, what is the output of /system/xbin/bb/route?

Did you reinstall openvpn using the app and telling it to install in /system/xbin and to look for route and ifconfig in /system/xbin/bb?
[HD2 Android Q&A, Help & Troubleshooting and Genera] SucceeD:
Hmm, it's strange.. I executed the following comands:

mkdir /system/xbin/bb
ln -s /bin/busybox /system/xbin/ifconfig
ln -s /bin/busybox /system/xbin/bb/ifconfig
ln -s /system/bin/route /system/xbin/route
ln -s /system/bin/route /system/xbin/bb/route

"/system/xbin/bb/route" works I think, output is "Invalid Argument".

But the comand "/system/xbin/bb/ifconfig" causes the output "/system/xbin/bb/ifconfig: not found". Same with "/system/xbin/ifconfig". But ifconfig exists, when I look it up with the Root Explorer..

I reinstalled OpenVPN with settings you said, but same problem as before.
[HD2 Android Q&A, Help & Troubleshooting and Genera] jbbandos:
I use a simple script (to be run as su):

mount /system -o remount, rw
mkdir -p /system/xbin/bb
ln -sfn /system/xbin/ifconfig /system/xbin/bb/ifconfig
ln -sfn /system/xbin/route /system/xbin/bb/route
mount /system -o remount,ro

I never needed to link route or ifconfig, if I ls -l them they are linked to busybox.

The error you're getting happens when using the default ifconfig (from /usr/bin) which is linked to toolbox, not busybox, so there is something strange with your setup. Could it be that you're linking route and ifconfig to busybox?

Which ROM are you running, I've been using MIUI variants without problems.
[HD2 Android Q&A, Help & Troubleshooting and Genera] SucceeD:
Route and ifconfig in /system/xbin/ are linked to route and ifconfig in /system/bin/.. And these are linked to toolbox.. Is that the problem?

I tried to reinstall busybox with the app from the market in /system/bin/ and /system/xbin/, but there was no change.. I'm using an FROYO.XXJPY (v.2.2.1) rom, but i I have only limited knowledge about roms and different versions of them..
[HD2 Android Q&A, Help & Troubleshooting and Genera] jbbandos:
So you're running a stock ROM. I'd suggest you try googling first on how to correctly install busybox on stock. AFAIK, it should go into /system/xbin, but I've been relying on the version provided on the ROM for a long time.
[HD2 Android Q&A, Help & Troubleshooting and Genera] SucceeD:
Yeah, i found a solution :)

I read that the busybox market installer doesn't overwrite ifconfig and route in /system/bin/, so I linked route and ifconfig in /system/xbin/bb manually to busybox..

ln -s /system/bin/busybox /system/xbin/bb/route
ln -s /system/bin/busybox /system/xbin/bb/ifconfig

Thanks for your help jbbandos!

EDIT:

Is there a solution that OpenVPN needs less energy?
[HD2 Android Q&A, Help & Troubleshooting and Genera] jbbandos:
You're welcome, I'm glad I was able to help.

The only solution I see is doing a new openvpn package, with all the tests and scripts (looking for busybox, installing it if needed, doing the necessary links, etc.). But that might need a lot more energy at the beginning...
[HD2 Android Q&A, Help & Troubleshooting and Genera] pseudoyams:
Since figuring this out took me nearly two days to figure out, I thought Id post what I had to do to get this working. Im running a Droid 2 Global and Android 2.2. This is what it took:

Root phone using Z4Root

Get Busybox installed - I had it installed with Titanium backup (I think, otherwise its installed when rooting via Z4Root)

Download tun.ko from www [dot] saturnwiki [dot] net/droid_tun_driver/2.6.32.9/tun_droid2.ko - sorry had to format the link this way as Im currently new to the forums.

Save to root of sdcard

mv /mnt/sdcard/tun_droid2.ko /system/lib/modules/tun.ko

mkdir /system/xbin/bb
ln -s /system/bin/busybox /system/xbin/bb/route
ln -s /system/bin/busybox /system/xbin/bb/ifconfig

Install OpenVPN Installer from the market

Install in /system/xbin

Look for route and ifconfig in /system/xbin/bb

Download OpenVPN Settings from the market

Get your user config from your OpenVPN server and place into /mnt/sdcard/openvpn

In OpenVPN Settings app

Long click on the config and choose Preferences (Im not sure if this and the next three lines are really needed)

Check Use VPN DNS Server

Set VPN DNS Server to <InternalDNS>

Set Script Security Level to Built-in + Scripts

Click the windows button and choose Advanced

Check Load tun kernel module

Click TUN module settings

Set Load Module using to insmod

Set Path to tun module to /system/lib/modules/tun.ki

Click OpenVPN

Click the client config to connect

Enter username and password

Many MANY thanks to the OP and everybody else here for pointing me in the right direction! I can sleep better tonight....well when the espresso wears off. :eek:
[HD2 Android Q&A, Help & Troubleshooting and Genera] steelorange:
Sorry if my post seem a bit late. I've just recently tried openvpn on NAND builds of Froyo and I've experienced the same problem stated in this thread.

I just recently stumbled upon a solution to make openvpn work with Froyo builds. I hope this post will be useful to someone.

Make sure to follow the instructions stated in earlier posts and make sure that OpenVPN on your device is connecting successfully although internet traffic is not passing throug it.

My version of OpenVPN Settings is 0.4.7. Make sure to tick on the "Fix HTC Routes (Fix HTC routed with Froyo ROMs)" option in the settings of OpenVPN Settings app.

It has a info popup which redirects you to this URL: http://code.google.com/p/android-openvpn-settings/issues/detail?id=35

HTH
[HD2 Android Q&A, Help & Troubleshooting and Genera] Milkan:
I have an "out of memory" error when I try to do the link. I have 43MB of free memory. I did the following :

- Enabled debug mode on my HTC Legend rooted with Cyanogenmod 7.1.

- Entered in the shell with adb.

- Made /system read-write with "mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system".

- Tried to to "ln -s /bin /system/xbin/bb" it gives "ln: /system/xbin/bb: Out of memory"

Anyone know what I am missing?
[Streak 5 General] Chirurg:
After the upgrade to 4993 the market seems really buggy to my, as I can't download anything anymore. Things stop when "starting to download" an app. I don't get a message in the notifications bar or anything else, its just stuck...

So I figured maybe downgrading/restoring to 3883 might solve the problem.

Do you have a clue how to do so? Where can I find a stock version of 3883?

P.S. I've already tried starting google talk, rebooting, restoring to factory default(what left me with 4993), disabling/enabling wifi and nothing did help.
[Desire Q&A, Help & Troubleshooting] veryjiggy:
Hi, it happens many a times that I am at home and push a few links to my phone for later reading in the tube (where there is no net connectivity). These links fully load in my Dolphin Browser HD, and I exit the browser without clearing the history or the cache. But when I open the Browser in the tube, the links start refreshing automatically, and since there is no connectivity, it gives me an error. So I can't access the page which technically should have been there.

Is there any way out? Any browser/addon which supports offline viewing?
[Desire Q&A, Help & Troubleshooting] aljwatson69:
I'm fairly sure there is an add on in the market for Dolphin which lets you save pages for offline viewing. I think it's called "Read It Later" or something similar.
[Desire Q&A, Help & Troubleshooting] veryjiggy:
Thanks. I already tried Read it Later, and it keeps FC. It is lame and doesn't work at all. :(
[Hero, G2 Touch General] factualpuddle:
finally rooted my phone, BUT, it wont read the SD card, nor when i hook it up to my pc i can'y get anything to come up, i'm using Windows 7 x86, plz plz help

Android Version 1.1.1

Baseband 63.18.55.06PH_6.35.15.11

Kernel

2.6.29-ninpo

ninpo@titan #14

Mod Version

Froyd-1.1.1-Hero

and also launcher pro wont uninstall =[

Build Number

FrpydVillain1.1.1

and also my contacts won't update with their face beeok, except one... please help =[
[Hero, G2 Touch General] Wezternator:
1. (SD Card) try going into the settings and formatting it then remount it.

2. (Launcher Pro) Launcher Pro won't installed in the normal fashion because its installed the the system folder. You can get rid of it via ADB although Froyd doesn't have any other launcher installed so you will want to install another one before hand. (and if you install a new one you might as well just swap over to it rather than un-installing

Wez.
[Hero, G2 Touch General] factualpuddle:
i tried to remount, and it wont even read it, when i hook it up to my pc nothing happens. it doesn't even read the new hardware or give me the option to just charge... =/
[Hero, G2 Touch General] pulser_g2:
Ideally, i would recommend you update to latest Froyd 1.2.1, but I'm not sure of what the issue here is...

I'd suggest backing everything on SD to your PC via a card reader, then repartitioning it using recovery, and trying that.
[Hero, G2 Touch General] factualpuddle:
ok, i can boot into carebear, what should i do next? a whole new root? and is Froyo the best ROM to use?
[Hero, G2 Touch General] factualpuddle:
the thing is, i cant get into debugging,i can get into the carebear, but idk what to do from there -.-;
[Hero, G2 Touch General] asad510:
I have the same problem !!!!!!!!!!!!!!!!!!!!!!!
[Hero, G2 Touch General] btdag:
When you attach it to your PC do you mount the sd card? If you drag down the notification bar when it is connected and select "usb connected" then choose "Turn on USB storage". This will mount the SD card.
[Hero, G2 Touch General] asad510:
there is no icon no mount i used the widget no luck
[Hero, G2 Touch General] btdag:
It isn't an icon to mount it. What widget are you talking about?

You simply drag down the notification bar > press "usb connected" > press "turn on usb storage"

You need to:

1. Download the latest version from http://www.villainrom.co.uk/releases/FroydVillain1.2.1/download.php

2. You simply drag down the notification bar > press "usb connected" > press "turn on usb storage" - alternatively plug the sd-card into an sd reader and follow the rest

3. Open the SD Card folder on your computer.

4. Copy the rom from your computer to your SD Card, do NOT change it, extract the files or put it in any folders

5. Unplug your phone and turn it off (put the sd card in now if you used the reader)

6. Turn the phone on by holding down Home and Power till you get to the custom recovery screen.

7. Select Wipe from the menu, then select:

Wipe data/factory Reset

Wipe Dalvik-cache

Wipe SD:ext partition

Press back button

Select Flash Zip from SD Card

Select the file

Click Confirm

N.B. Ignore any "errors", they are normal and usually mean you're not using that feature.

8. Once it is done, select Reboot and you will boot into the OS
[Hero, G2 Touch General] factualpuddle:
in m,y phone it wont even read that there is an SD card -.-; and when i hook it to pc, it still shows none, i KNOW it works, its a braand new PNY 4 Gb...
[Hero, G2 Touch General] btdag:
As I said - hook it up to a sd card reader, place the files on the card and then boot into recovery with the sd card in and you should be able to flash from there.
[Hero, G2 Touch General] factualpuddle:
it boots into carebear mode and doeskin recognize th3e flash name of the update.zip on my flash
[Hero, G2 Touch General] factualpuddle:
nothing happens, it just charges when i hook it up to the pc, no notifications...
[Tilt, TyTN II, MDA Vario III Android Development] heroandroid:
It's linus torvalds. Not linux!
[Hero CDMA Q&A, Help & Troubleshooting] ymitchell7:
Hi everyone,

After three weeks I finally got everything to work on my Cricket Hero. Now, I have an issue with my phone not ringing or showing a missed call notification. I'm on DamageControl v1.0, & I've been experiencing problems for the past couple days. I noticed that in CDMA Options, there are three modes of operation: Hybrid, Evdo Only, & 1x Only. I read in another forum that in Evdo Only mode, you will miss calls & texts. Only problem is that when I change the mode to Hybrid, it sometimes reverts back to Evdo Only. How can I change the mode from Evdo to Hybrid and make it stick? Also, under EPST, I have the preferred mode set to Automatic. Can anyone help me with this?

Thanks
[XPERIA X10 Android Development] UltraNEO*:
Hello everyone!

I recently rooted by phone and now I've been trying to remove the Vodafone bloat-ware from my handset using the titanium application. Unfortunately after so-called uninstalling, the application still remains, why can it be trashed? :mad:
[XPERIA X10 Android Development] Andiiboy:
The crap strikes back..

You either got to DEBRAND or FLASH to generic to get rid m8, Its vodaphones firmware, but just debrand (i did have a vodaphone x10 until I exorcised the daemon) update to RB2A026, and root, get rid of all the crap, or just debrand and lose the vodaphone crap, but be left with sony ericssons crap lol
[XPERIA X10 Android Development] UltraNEO*:
Would reflashing the phone with SEUS do the job? Or would i need to achieve this some otber way, sorry I'm not entirely sure how. Is there a tutorial?

Thanks you.
[XPERIA X10 Android Development] Andiiboy:
The crap strikes back

If you go back a page you will see some links to forum threads, read these, for flashing you will need to have java6 21 (32bit) runtime enviroment (JRE) and java6 21 (32bit) development kit (JDK) installed on your pc (fbrlashing wont work on 64bit OS unless you have them as it doesnt work on 64bit version) when you done that find the thread NEWBIES GUIDE TO ROOT GIVING YOU THE LATEST FIRMWARE, you will only need the first file (this will flash you generic uk rf16 firmware and as such its standard, no vodaphone crap, after that use SEUS to update to R2BA026 and ySeaou can root this, theres a video on one of the threads that shows how to set up the path for the java.

But be aware this voids your warranty, just take time to read the threads ive linked and the NEWBIE THREAD, any q's just ask

heres the link to thread http://xdaforums.com/showthread.php?t=755332
[XPERIA X10 Android Development] UltraNEO*:
Thanks for the help fellas.

I don't worry about the warrenty thing - one could always claim/demand a replacement if anything should happen to this one. Ain't that why we insure our mobiles?

Anyway, I've managed to debrand my phone by using this tutorial in Win7, took a couple of goes (it's all about timing) then updated the firmware without all the bloatware (only SE stuff) and so far the phone seems to be happy. Now, I'm just about to re-root the phone and take out all the useless crap I don't use before I install the stuff that's actually useful :)

Curious. Why can't service providers, provide us with mobiles, like they left the facory? I mean, seriously, who actually uses all that crap?? Ain't it like buying a PC laptop and doing a new install minus all the bloat?
[XPERIA X10 Android Development] UltraNEO*:
Hey guys.. Since updating to 026 I've notice something a little odd, though it doesn't affect the physical workings of the phone.

Under the notifications tab, my mobi always report there's "no service", yet the signal indicator is on max (four bars) !!! The phone continues to work.

Anyone else notice this??
[Captivate General] mchimney:
Hey all,

It seems that both the iphone 4 and the captivate have a 5mp camera. However, there are 2 Huge differences that i have noticed.

1st. The gallery on the iphone allows you to double tap a photo to zoom in, but it also refocuses the image turning it incredibly clear. The captivate allows the double taping, but it does not refocus the image

2nd. The iphone 4 camera appears to be much sharper than my captivate, edges seem smoother and overall quality seems much clearer. The captivate seems like it has a white distortion to it.

I was wondering if anyone else has noticed this. I love the captivate but i'm on a "vacation" with the parents and i keep switching to iphone because of its amazing camera quality. Maybe there are settings that i'm not inputting, or maybe another app i should try?

Camera Settings on captivate:

Focus Mode: Auto focus

Timer: Off

Resolution: 2560x 1920

White balance: Auto

Effects: Normal

ISO: Auto

Metering: Centre-weighted

Image Quality: Superfine
[Captivate General] Kagoshema:
1st. the gallery as in gallery of photos already taken? because it is impossible to refocus a picture you have already taken. although the captivate if you tap the screen while your taking a picture it will focus on that area for you

2nd. could be, never compared them myself
[Captivate General] Berserk87:
He means when you zoom in abd its blurred, the iphone fixes it.
[Captivate General] eatkabab:
The iPhone 4 has got the captivate beat in terms of camera quality. I think even the 3G (not even 3GS) is better than the captivate. I seldom take pictures as do the majority of people I assume. Its not really too important as long as it takes decently clear pictures. No phone can really take the place of a cheap point and shoot camera yet (and I mean current popular phones, not those weird cameras with phones built in.)

The camera quality is definitely somewhat of a bummer even though its acceptable. The worst part is that the camera has a large red blotch in the center if its in anything less than optimal lighting. It can only really be seen when pointing at a white wall though.

Yeah this phone is only good for its small size, screen, processor, and video chip. Everything else it does courtesy of Google. Samsung could very well have produced the perfect phone if they spent as much time as apple did, but I would say the Epic 4G is pretty close.
[Captivate General] BigJayDogg3:
I disagree.

IPhone 4 > Captivate > 3GS > 3G

But almost any decent point and shoot is far better than any of them.

Sent from my Samsung Captivate
[Captivate General] mchimney:
Hey,

Thanks soo much for the quick replies. I've come to learn that the camera on the captivate is very tempramental, sometimes the shots look incredible and others it can be pretty horrific. Sunset photos are much much better on the captivate than on the iphone which is a nice plus.

Another question i have that sort of pretains to this topic is about the gallery itself. If you take photos with the camera and save them to the phone they show up in gallery with the most recent photos in front. If you use the camera and take photos but save them to the SD card, they show up with the most recent photos in the back. Is there anyway to fix that?

P.S. I just recently learned (and accomplished) flashing the JH2 rom to my device!! i'm stoked

Thanks again
[Captivate General] canister214:
When I compare my wife's iphone to my gs, my pictures do stuck compared to it. Not to mention the iphone has a light. But, when it comes to video capture, the gs is better.
[Captivate General] mchimney:
I'm almost inclined to agree, some videos do come out amazing on the captivate and others not so much. But at least with videos there is a close comparison, the photos are no where near eachother though
[Captivate General] E_man5112:
The iPhone has an amazing camera, honestly, I'm not to disappointed in losing to it, I new it probably would going into it. To me lower quality camera is far out weighed by the higher quality OS.
[Captivate General] NikAmi:
I've also noticed that a lot of Captivate video seems better than iP4 video. Aside from a sharper, lesser noise picture, the iPhone seems to exibit some jellyfishing where the Captivate does not.