Set Hostname on tnt lite?
sgboy1202
You might need to be rooted/superuser but edit the hosts file and add a line
192.186.my.address thishostname
leave the 127.0.0.1 localhost line alone.
edit - This might not be the Android way to do things. If someone else knows a better way please let us know.
I don think that changing the hosts file, changes the name that other devices see the tablet as.
sgboy1202
You'd need to alter their hosts files too or add the tablet's info to a dns server
Found must do "setprop net.hostname name" at term, but does not stay with reboot. I also found a way to for the hostname to survive a reboot, but it requers disassembling and reassembling the services.jar in the system dir.
sgboy1202
Related
To use wifi at school I have to wpa corporate + TTLS etc, and g-tablet does not support that. In one of the earlier post one person suggested that I use "wifi advanced configuration editor", but the secured signal does not show up so there is nothing for me to edit. I tried to manually add the wifi connection via "setting" but I can't.
I know what wpa_supplicant.conf looks like on my Pandigital Novel; if I could edit this file on my g-tablet then I should be okay, right? Any suggestions on how to do this editing? (sheepishly looking at my back) I still can't get ADB working with my g-tab, and in any case I assume there would be issue with permission...
Thanks!
if you can get root you can use root explorer to turn R/W access on to the conf file in /data/misc/wifi and edit the conf in text editor. You may be asking for more but that is where I was editing mine to get ad-hoc mode on. Sorry I dont know the exact settings to tell you to make the actual edits.
case-sensitive said:
To use wifi at school I have to wpa corporate + TTLS etc, and g-tablet does not support that. In one of the earlier post one person suggested that I use "wifi advanced configuration editor", but the secured signal does not show up so there is nothing for me to edit. I tried to manually add the wifi connection via "setting" but I can't.
I know what wpa_supplicant.conf looks like on my Pandigital Novel; if I could edit this file on my g-tablet then I should be okay, right? Any suggestions on how to do this editing? (sheepishly looking at my back) I still can't get ADB working with my g-tab, and in any case I assume there would be issue with permission...
Thanks!
Click to expand...
Click to collapse
Add it using the normal Android tool, assuming it's hidden? Anyway, then modify it with the WiFi Advanced Config Editor. It's always possible the firmware here isn't working well with that app, but if it's a hidden AP you might need to manually add, then edit.
khaytsus said:
Add it using the normal Android tool, assuming it's hidden? Anyway, then modify it with the WiFi Advanced Config Editor. It's always possible the firmware here isn't working well with that app, but if it's a hidden AP you might need to manually add, then edit.
Click to expand...
Click to collapse
By "normal android tool" I assume you mean "setting" -- that's what I used on the pandigital novel anything. But as I said in the OP, g-tablet does not allow me to manually add an entry, so I can't use the wifi config editor :-( I also tried the app "full wifi" but I (rather, g-tablet) does not seem to be able to save the connection so created.
I'll look into root explorer as mentioned in post #2 and see how it goes... If you have better/different ideas please do share it with us!
I've edited my hosts file, with various different methods... signed flash, rooted copy, adb push, move, and EVERY time, it is a partial success. ALL of the hosts in the file successfully direct to 127.0.0.1 when I ping them from Terminal Emulator. They show as they should from nano. However, when I try any and all of them in any browser (Safari, Opera Mini, Dolphin HD), it connects fine to everything in the file!
One of the blocks are suggestqueries.google.com - Since I have no choice, I use this to block Google search suggestions from the YouTube application. This does its job in YouTube, but you guessed it, I can connect (and get redirected) in the browser perfectly.
"Anything" browser related to my hosts file are not working. Namely, the one I want to block the most is clients1.google.com. It's in there in the hosts file, and pings back to 127.0.0.1, but of course, the browsers redirect this to Google.co.uk, and picks up suggestions normally. The same goes for all of the sites in the file.
DroidWall wouldn't solve this issue either as I can only block applications, not hosts. I tried fixing permissions, changing APN maybe it would clear DNS cache I don't know?? (if it really makes any difference). Tried with and without Adfree with/without symlink. The behaviour does not change. If it pings back to 127.0.0.1 and works for all other applications, I don't think there is anything wrong with the file or its operation. Can someone please advise me why this is happening and how to solve it? I've spent about a week searching, editing, flashing and more searching.
So I take it nobody knows? Is it supposed to be like this?
Sent from my HTC Magic/Dream using XDA App
Witopia OpenVPN SSL for CM7
Rooted Android versions 2.2.1-2.3.4
By: Z3n
(tested on HD2 CM7 and Nexus S CM7)
(Probably works for any build you can install the needed packages on too)
I asked the tech guys at witopia about using its service with android, and they didnt have a way, so i found out for myself,
This probably works for all OpenVPN SSL connections too, not just Witopia.
enjoy
-Windows only till i can insert links -
-Mac guide for finding your files and certs can be found at Witopia's wiki page-
-=#REQUIRES ROOT#=-
Required Packages – Busybox, OpenVPN installer, OpenVPN Settings
Both can be found in the android marketplace.
Install Busybox (if you haven't already)
Run installer first, and install openVPN binaries to all listed places.
ON PC
Install Witopia client on your PC, Then navigate to:
C:/programfiles/personalvpn/config
Copy the configuration files and certificates to a new folder called “openvpn” on your desktop.
For each location you plan on using, you need to modify the .ovpn file relevant for it, and also rename the file to a .conf extension.
First, in the .ovpn file, change these:
“nobind” to “bind”
(allows VPN to stay connected while screen is off, I tested this on CM7 for HD2 and also on Nexus S, so it may not need to be changed depending on the build you use. If this setting is left, when the screen is off, the VPN will not be “binded” to your cellular network, breaking your VPN connection everytime you turn off the screen.)
Remove “show-net-up” at the bottom
(this breaks the VPN connection as the phone cannot process this {its for the windows/Mac GUI for VPN})
Save each .ovpn to .conf (save as… ; file type = all types ; save with .conf extension)
ON PHONE
Copy the whole openVPN folder from your desktop onto your SDcard, so the path looks like /sdcard/openvpn (openvpn all lowercase.)
Run OpenVPN settings and turn on OpenVPN. It will load your certificate, key, and .conf files for use.
If nothing shows up, make sure your folder path matches /sdcard/openvpn.
one thing is, if you set the "bind" string, your battery will drain a bit faster, since its constantly connected, even with the screen off.
To save battery life, leave this as "nobind" and you will have to go to OpenVPN settings, disconnect, and reconnect to your desired location.
Enjoy your encrypted connection
Thank you mate, this is just what I needed.
Now WiTopia SSL is working perfectly on my SGS2 running nightly CM7 10201011 nightly-89 rooted with CF-root.
btw, I left my setting on "nobind" in the config file and it stays connected after waking the screen. All else is as you suggested.
Cheers
Anyone know how??
I am rooted using prime 2.0., can't figure out which file...
The /proc/sys/kernel/hostname file just says localhost, but the hostname shows up as Android_######### according to my dhcp server and other devices on the network.
AFAICT The TF gets the hostname from /init.rc around line 191. If you remounted things rw and edited the file, I assume the change would be reflected but I'm more familiar with BSD/Slackware/RedHat/Debian when it comes to such things.
There might also be something useful in a forum search here, idk if you've tried that.
You could also try this.
http://forum.xda-developers.com/showthread.php?p=19786131#post19786131
I need an app that quite simply sets a few variables that I can define. and writes them into text files.
Ultimately I want to process these variable in shell scripts and python.
It would be ideal if I could set at least
username
password
but might be nice if there wer other variables I could set.
The user should not have access to anything more than setting the variables inside of what appears to be a normal android app for username and password or whatever variables I define at installation (if such an app permits) . What I mean is they shold be locked out of configuring the app.
i need it to run on aandroid 7.1..2
thanks
Mark