yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Schmich:
No luck with just "dev tap" unfortunately. But now I know what to play around with..the config file that is. Just to make sure, when I say I'm connected it's OpenVPN settings app that says I am. It does the whole connecting/authenticating and then says I'm connected. I don't know if there's another way to see if I'm really connected.

I'll spend more in the evening playing around with the config file and learn (again) what each variable does. But I'll probably come back for help later on ^^

I didn't use the Ovpn section of DDWrt but put everything as a start-up command. If this helps anyone to help me I'll just put the config here (note this is the "server"):

cd /tmp
openvpn --mktun --dev tap0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up

echo "
# Tunnel options
mode server # Set OpenVPN major mode
proto udp # Setup the protocol (server)
port xxxx # TCP/UDP port number
dev tap0 # TUN/TAP virtual network device
keepalive 15 60 # Simplify the expression of --ping
daemon # Become a daemon after all initialization
verb 3 # Set output verbosity to n
comp-lzo # Use fast LZO compression
push "redirect-gateway def1" # Schmich added
push "dhcp option DNS 192.168.2.1" # Schmich added
push "route-gateway 192.168.2.1"

# OpenVPN server mode options
client-to-client # tells OpenVPN to internally route client-to-client traffic
duplicate-cn # Allow multiple clients with the same common name

# TLS Mode Options
tls-server # Enable TLS and assume server role during TLS handshake
ca ca.crt # Certificate authority (CA) file
dh dh1024.pem # File containing Diffie Hellman parameters
cert server.crt # Local peer's signed certificate
key server.key # Local peer's private key
" > openvpn.conf

sleep 5
ln -s /usr/sbin/openvpn /tmp/myvpn
/tmp/myvpn --config openvpn.conf

route add -net 192.168.2.0/24 dev br0
[Galaxy S II Themes and Apps] Gawis:
hmm.. there are a few differences..

here's script I use to launch openvpn:

/jffs/etc/config/lopenv.prewall

#!/bin/sh

openvpn --mktun --dev tap0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
ifconfig br0 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255
openvpn --config /jffs/etc/openv/openvpn_tap.conf

here's the server config file:

/jffs/etc/openv/openvpn_tap.conf

port xxxx
proto udp
dev tap0
ca /jffs/etc/openv/ca.crt # Certificate authority (CA) file
dh /jffs/etc/openv/dh1024.pem # File containing Diffie Hellman parameters
cert /jffs/etc/openv/server.crt # Local peers signed certificate
key /jffs/etc/openv/server.key # Local peers private key
server-bridge 192.168.2.1 255.255.255.0 192.168.2.40 192.168.2.45
ifconfig-pool-persist /jffs/etc/openv/ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status /jffs/etc/openv/openvpn-status.log
log-append /jffs/etc/openv/openvpn-log.log
verb 3
tls-server
cipher BF-CBC
push "dhcp-option DNS 192.168.2.1" # this doesn't seem to work, setting it through OpenVPN Settings seems to work..
daemon # Become a daemon after all initialization

and here's my client config file

client
dev tap

redirect-gateway def1

proto udp
remote xxx.xxx.xxx.xxx xxxx

resolv-retry infinite
nobind
persist-key
persist-tun

cipher BF-CBC
tls-client

tls-remote

ca /sdcard/openvpn/keys/ca.crt
cert /sdcard/openvpn/keys/client1.crt
key /sdcard/openvpn/keys/client1.key

comp-lzo
verb 3

and then punch the right hole in the firewall of DD-WRT :)

Administration - Commands - Save Firewall

/usr/sbin/iptables -I INPUT -p udp --dport xxxx -j ACCEPT

this combo works fine for me, I can access all my clients on the lan of the vpn and also FTP servers and stuff..

I'm sure the config files can be improved so if anybody has some tips I'll gladly hear them :)
[Galaxy S II Themes and Apps] Schmich:
I was missing a few things you had which I added and now they work! I think it was the "server-bridge" that was missing because when I was connected it said "Connected to <IP address>" only. It didn't have the "as <internal address>".

I maybe removed it when I went away from bridging two routers and thought "server-bridge" was unneeded since you now only have one DHCP. It's strange that it worked on the Windows client without it though.

Thanks a lot for the help. This is pure awesome.
[Galaxy S II Themes and Apps] ivangs1:
Thank you.

Can this OpenVPN save username and password ?
[Galaxy S II Themes and Apps] bofh999:
Just to make one Point clear (i know it wont help you) but i think this part should be clarified for many users

Openvpn cannot save username password - none can

you got 2 ways for user pass -

#1 the cert itself is password locked -

#2 (thats what youre asking about i think) is the credentials of the server itself

.. aka ldap/login script on the server side to ask for additional username password from the system as an additinal security step

this one cannot be saved either but - if script security is off you can add a password username script in your config file

howerver youve to create a textfile with username pass (one each line) and you need a compiled openvpn binary with --script-security=off flag at compiletime

then you can use

auth-user-pass password.txt (username fist line pass second)

ts also possible to use a hole script - for example autologin with gui

however i cant confirm or denie if this openvpn binary give that option or not

but i would strongly recommend not to use it

make no senes investing so much time into a working vpn with additional security/crendentials just to compromise your network by a mobilephone

phones get stolen/lost - could be hacked by blootooth or a spyapp and so on

i know your asking because you want it or think you need it but still please rethink

dont forget - openvpn is a optout vpn - means once a cleint is signed by the server theres no way your sysadmin can find it anymore - you can only lockout certs but only those you already got so if someone get access to the net and maybe with you credentials to a lethal part of your vpn server he could easily create his own access without ever get noticed by anyone (beside some logentries) - result is youve to resetup all keys to lockhim out forever again

isnt that nice :)

ps. i know i know i hate it too ...:)
[Galaxy S II Themes and Apps] bofh999:
Update

i had a few minutes so i tested it

yes you can do that - the binary provides the no script security flag

all you have todo is long press the vpn connection in the "openvpn settings" app

settings (there are a lot of connection specific settings)

set script security to script and password

edit the config file on the client and add

auth-user-pass passwordfile.txt

then create a textfile in the same directory your conf file is name it passwordfile.txt

end simple fill it with:

---

username(in the first line)

password/in the second line)

---

nothing else

save it and youre good to go

but agian i strongly recommend not todo so

maybe make a second server - just copy existing server conf

use another directory for certificates

use another port - create your keys

done - without password security for mobile use only

if that second ovpn instance get compromised its way easier to drop it complete and restart those keys from scratch - 5 min setup time plus distribution of the keys

but thats jsut a suggestion :)
[Galaxy S II Themes and Apps] mohdizwan:
Im not clear with openvpn..can u tell me what the function of openvpn?
[Galaxy S II Themes and Apps] greatmagician:
thanks but after i install in recovery I search in the xbin there is no folder (bb)

the files become like this

/system/xbin/route
/system/xbin/ifconfig
and there is no busybox ?!

and there is problem for the tun.ko i search but i didn't found it

it must be (/system/xbin/tun.ko)

i try to add the tun.ko from this post

http://xdaforums.com/showthread.php?t=919403

it's for 2.3.3 but it give me error

invalid module format

we need tun.ko for 2.3.5 plz any one can help :confused:
[Galaxy S II Themes and Apps] thracky:
This worked fantastic for me on latest CheckROM, thank you!
[Galaxy S II Themes and Apps] thracky:
Is there any chance of a "generic" version of this without the asserts for the model of the phone? The latest CM9 build (0104) seems to have changed the ro.product.device and ro.build.product to

"galaxys2" and now this zip obviously won't install for me. Any help would be much appreciated.

EDIT: Figured it out, just changed the asserts in the updater script and resigned the zip. Thanks :)
[Galaxy S II Themes and Apps] Gawis:
I'm happy people find this usefull :)

I'm on CM7.1 for my SGSII and no longer need to use this update.zip, it was only with the first few nightlies that it didn't work for me out of the box (and with Samsung based roms).

I am looking forward to testing CM9 but am also participating in the Tasker 1.2 beta and it will be difficult to report bugs for either when combining a beta app with an experimental rom :)
[Galaxy S II Themes and Apps] thomas89_de:
openvpn installer

Hi @ All,

I had tested this update.zip on my SGS2 with my rooted XXKI3 and it doesn´t worked (I don´t know, what mistake i did).

After that I reinstalled openvpn installer and openvpn-settings. I saw then, that you have different path settings for ifconfig. So I tested these and with one of them it works fine! I don´t know, which one I´ve chosen, just try it.

Thomas
[Captivate Q&A, Help & Troubleshooting] Gupone:
Please help!!! I have searched and searched and searched the forums and have come across so many threads on how to add a custom rom to your Captivate.

To start, what I have been trying to do is add a custom rom after upgrading my phone from ver 2.2 to 2.3.3 GB. Some posts say you can just upgrade with the 2.3 on the phone, other posts say you need to take the phone back to the stock 2.1 rom. Then you find posts that say, make sure you have the stock bootloaders and kernals when you downgrade to the stock 2.1.

You can easily see how even a somewhat above novice can get confussed. To take my phone back to 2.1 I have followed posts that say use Odin 1.3. I have used odin before so no big deal. However in this case again you are getting different opionions and versions on this. Some have just the odin .exe and others have the .exe and the MD5 and .ini it the package. I am assuming that the one with just the .exe has everything built in as the size is quite big.

I have tried both ways and after I "Flash" it will not finish with the normal recovery mode and see the linux script. It will go to the ATT window and just keep rebooting over and over. I then will use my JIG and get back in download mode in order to reflash back to 2.3.3 just to get the phone to work again.

Can someone please give me a clue as to what I am doing wrong or direct me to the proper files and maybe some better step by step instructions.

Thanks in advance for the help.
[Captivate Q&A, Help & Troubleshooting] Rhiannon224:
What Rom is currently on you phone? Which Bootloaders do you have installed?
[Captivate Q&A, Help & Troubleshooting] Gupone:
Here is the info:

Firmware: 2.3.3

Baseband: I897UCKF1

Kernel: 2.6.35.7-I897UCKF1-CL273832

Build: GIGERBREAD.UCKF1
[Captivate Q&A, Help & Troubleshooting] 4-2ndtwin:
^ From the looks of what u posted, it looks like u have the leaked i897uckf1 currently on ur phone. If that is the case, then u could Odin the Cognition Beta 2 Kernel and then flash the latest Cog Rom (having already copied it to ur internal sd).

Just flash the kernel through Odin then use button combo (volume +/- and power...release after u see the at&t screen) to get into CWM 4.0.0.5 and flash Cog 5 v 1.00 from there.
[Captivate Q&A, Help & Troubleshooting] Rhiannon224:
Are you plugging into a usb port in the back of your pc? Also, there are several methods for flashing back to stock now, once you upgrade to GB bootloaders you don’t ever want to use the Odin with the button fix because it will only flash the secondary bootloader and the primary bootloader will remain GB and the result will be a hardbrick. Also, some of the newer builds came with Froyo installed and using the older 1 click Odin by DesignGears will put those devices in a bootloop. So it really is dependent on your device and your needs. I now use the method outlined in the Continuum 6.1 thread which will not touch the bootloaders and brings you safely back to 2.1 stock. I always clear user data and cache in recovery, flash back to stock using Cezar's method (not a 1 click) prior to flashing a new Rom. Most devs recommend flashing to stock first because there is less chance of corruption.
[Captivate Q&A, Help & Troubleshooting] james.arroyo:
http://www.youtube.com/watch?v=UOyx5JQ_8_I

MobileTechVideos video is how i flashed my first gingerbread ROM. Its easy, straight forward and he has all the links you will need under the video.

piece-a-cake
[Captivate Q&A, Help & Troubleshooting] Wally72:
Listen, I'm new at this and learned watchin mobiletech videos from youtube. At first I found it hard but now is pretty easy (in my opinion). The first thin I do is back up apps with titanium and paste to my laptop (for me is faster to install them back), go back to stock 2.2, master reset using dialer (no odin), root, reboot, install rom on sd card, using odin i install bootloaders (I9000), flash talon kernel (odin), flash rom (CWM) and reboot. That's how I do it. Now, I could b wrong but doing it that way, in that pattern works for me. Like I said, I'm new at this but trust me....I've done it several times and it works for me. Keep reading and then decide how you want to do it. Good luck..."HONESTLY"!!!:)
[Captivate Q&A, Help & Troubleshooting] Born2BeMild:
It all depends on where you are now and where you want to go.
[Captivate Q&A, Help & Troubleshooting] duckJAI:
I'm new to all of this and have done a good amount of research but seems like the information never ends and there are a few ways to load a custom rom.

Method one

BACK UP!!!

Flash to stock (FTS)

Wait for your phone to reboot and then re-enable debugging

Hook phone back up to pc and Master Clear (MC) using Odin

Load Clockwork update.zip (DOWNLOAD)

Load FireFly_X-X.zip to phone memory

Remove sim and external SD, and unplug USB

Boot into recovery and reinstall packages (You may have to reinstall packages twice to get to Clockwork recovery)

Once in Clockwork recovery (Green Text), select install zip from SDcard

Next select choose zip from sdcard

Scroll down to FireFly_X-X.zip and select the file

This will run the script and install the ROM to your phone

After this is done, select go back and then select reboot phone

This may take a while, so leave your phone and go grab a snack!

Method 2

Load ROM file onto phone

Boot into recovery

Select ROM and flash it

Reboot, wait and enjoy

Wash, rinse, repeat!

What are the differences? Which one is better?

Seems like the first video is very simple and straight forward?

Am I missing something here? I'm already rooted and used titanium backup.

I'm on 2.2 Froyo and wanting to flash to Firefly 3.0

Thanks!
[HTC EVO 3D] dels28:
After getting S off and root yesterday, and leaving it all over 24 hours, I was down to about 7 percent charge. Since me and the wife were heading out to breakfast, I decided to power off real quick to get more charge. When I powered the phone on, the battery was at 1 percent charge, so I powered down and plugged in to charge, but the phone would not and still does not charge while powered OFF. I've pulled the battery to see if a reboot would solve the issue. Nothing. I have not flashed another rom or tried a new kernal yet, any suggestions.
[HTC EVO 3D] AyyRayy:
Flash the newest version of twrp
[Desire HD Q&A, Help & Troubleshooting] t3rm3y:
i get this message on numerous roms: t-mobile you've got a picture message from 07xxx go to a website and enter this code...

sometime i receive a pic message, sometimes i get this text. how do i fix this issue? or what i causing this please
[Desire HD Q&A, Help & Troubleshooting] cementboy:
Call T-Mobile. Your MMS settings aren't set up correctly.
[Galaxy S II Q&A, Help & Troubleshooting] birdbox:
Hi

My s2 is on contract with o2 and next month Im off on my honeymoon with the new Mrs Birdbox to California for 2 weeks :)

Was looking for some info on a few things really

Can I buy a unlimited (or high limit) sim for data while in the USA? I want to use the phone for Nav (I know the difference between GPS and GPRS!) and general google maps/tripadviser style exploring on foot/car.....I could cache the maps in lastest google maps I suppose but I havent tried that yet, any recommendations of a pre pay sim greatfully received and will I get Hsdpa or just gprs??

we are heading from San Francisco into Yosemite so wifi will be non existant - does anyone know about phone(cell!) service in the park??

We are then headed for Vegas - got the app for our hotel already :)...we are then headed for Los Angeles...anyone recommend any good apps to play with on the way?? especially any map apps that download the map data to the phone

any other top tips (phone or not) for what will be trip of a lifetime would be great

thanks

BB
[Galaxy S II Q&A, Help & Troubleshooting] chadlondon:
goto an at & t store, tell them you want a sim card for their new gophone package. its $50 a month for unlimited data, calls, text. However - it is not designed for androids. if android, they wanna charge you a **** ton extra.

basically just tell them you dont have your phone with you, and the one you do have is a really old nokia from england - not a smartphone but a feature phone.

tell them you want it for that.

then just put the sim in and away you go.

i'm from london and am living in usa right now, I just did that the other day with my unlocked s2 from uk.
[Galaxy S II Q&A, Help & Troubleshooting] snowwhite007:
Lol hes going on holiday why wood he want a contract? Im going on honeymoon to florida in sept so id like to no this also
[Galaxy S II Q&A, Help & Troubleshooting] chadlondon:
its a package that is monthly and you can only do one month if you want... its like pay as you go...

unlimited mins, text (including international), and data for $50 is great even if he only goes there for 2 weeks.
[Galaxy Tab 10.1 General] Sevent33n:
After about a week of use my sgt got water under the screen or something. Should I return it
[Galaxy Tab 10.1 General] 5thElement:
Considering that the screen is sealed/glued to the glass its hard to substantiate your claim.
[Galaxy Tab 10.1 General] Sevent33n:
Other people have had this problem too. The screan leaked
[Galaxy Tab 10.1 General] 5thElement:
Again, there is no kind of liquid "leaking". It requires an education in physics to understand what the issue is instead of making assumptions out of thin air. You can start by reading http://en.wikipedia.org/wiki/Newton's_rings
[Galaxy Tab 10.1 General] Sevent33n:
When I turn the tablet the liquid goes to the bottom... I'm just asking if I should return it
[Galaxy Tab 10.1 General] tghockey07:
Does it look like this http://xdaforums.com/showthread.php?t=1130230 ?
[Galaxy Tab 10.1 General] rm2011:
If the "liquid" is "Moving" it might actually be water under the screen. But the only way it could have gotten there is from water damage. A picture would greatly help us diagnose this.
[Galaxy S II Q&A, Help & Troubleshooting] Warrimonk:
EDIT: Got it working using version 1.0.2. Please Delete this thread. Thanks
[Galaxy S II Q&A, Help & Troubleshooting] Willbuh:
Hi there.

Getting kind of worried and irritated at the same time. My phone has recently been turning itself off and it seems the only way I can get it back on is removing the battery and putting it back in. Lock button doesn't work to turn it on. This happened a few days ago when I was sitting by a fire so I thought it might be the heat, but even then, my phone heats up often if I'm playing games etc. it also happened just a moment ago when my phone was just laying on the floor.

Has anyone else had this problem? :(
[Galaxy S II Q&A, Help & Troubleshooting] Willbuh:
Anyone..?

charlimit
[Galaxy S II Q&A, Help & Troubleshooting] Regretful:
And what ROM might you be using? Stock or a custom one? Giving a little info never hurts :)
[Galaxy S II Q&A, Help & Troubleshooting] arabbitte:
Dunno what a lock button is, but when you say the phone turns itself off, are you sure it hasn't just frozen? Next time it happens, press and hold the power button for about 8 seconds. If there is something still alive in the phone it should turn off/reboot without having to remove the battery.

And yes, lots of others have seen this type of behaviour. I have personally seen this freeze, "slow" reboots and "fast" reboots. Lots of threads out there about this type of stuff. I have no idea why it happens. I don't even know if its a hardware or software (app or OS) problem. And I don't think anyone else knows either ...

My phone was returned for replacement 1 week ago and it now appears to have been sent for repair / investigation / lost (take your pick). :mad:
[Galaxy S II Q&A, Help & Troubleshooting] Willbuh:
I'm on stock rom by the way
[Galaxy S II Q&A, Help & Troubleshooting] shaevy:
I have the same problem. It started a few weeks ago. I had about 4 reboots/shut offs per day.

About one week ago it just stopped:-).

I haveno idea why it started or stopped.
[Galaxy S II Q&A, Help & Troubleshooting] shaevy:
I am also on stock.

It occured on KE2 and KF3.
[Galaxy S II Q&A, Help & Troubleshooting] Lucas1:
i have the same problem right now, at first i believe that because i havent set a lock, maybe my phone turn off in my pocket by accident, but today it happens again just over my desk..... curious????
[HTC Flyer, EVO View 4G] CuzinBucksBx:
Hey fellas, I just S-OFF my EVO View Tablet but I see there no Recovery for the Tablet. Will there be a Recovery for the EVO Tablet. BTW I have tried the Flyers Recovery but the img file is different.
[HTC Flyer, EVO View 4G] globatron:
http://xdaforums.com/showthread.php?p=14693680 fourth one in the list.
[HTC Flyer, EVO View 4G] CuzinBucksBx:
Thanks, should of search a little bit better. Mod please close this thread.
[HTC Flyer, EVO View 4G] Joelski144:
Stuck at S=Off

I successfully got my view through the S=off portion, but am having all kinds of trouble getting the recovery file flashed over to my tablet. I am running in fastboot USB mode and attempting to enter the string posted, but get "unrecognized command" errors for flash recovery. This is what I am typing:

C:\view\ fastboot flash recovery recovery_cwm-4.0.1.4-express.img

I have all the necessary files in the folder and am using a command prompt in win 7 x64. I have the latest versions of adb and jdk installed as well.

Should I move this party to the root of my system drive? Any suggestions would be greatly appreciated!

Joel
[HTC Flyer, EVO View 4G] knokstudios:
Try to type in only "fastboot flash recovery cwm-4.0.1.4-express.img" instead
[Atrix 4G Q&A, Help & Troubleshooting] Treello:
I was curious if there is a way to change lock screens? The fascinate had a puzzle piece that I like I have seen ones that are the weather. Just curious if there are ways to port these if its worth it and so on. Thank you for your time
[Atrix 4G Q&A, Help & Troubleshooting] dritz33:
I wish I could find the puzzle lock one. The only thing I've found is an app called "Widget Locker" it allows you to customize your lockscreen and make it whatever you'd like. I got the HTC Sense lock screen( the cool looking one that you drag down)
[Atrix 4G Q&A, Help & Troubleshooting] Treello:
I saw that you can use an app but I would rather have something that was built in doing not an app that always has to be running
[Atrix 4G Q&A, Help & Troubleshooting] Treello:
What little I understand is im assuming its in framework-res.apk or I think that file plays a role
[Atrix 4G Q&A, Help & Troubleshooting] dLo GSR:
it doesn't constantly run like you're thinking. there is little to no change in battery usage.