Related
First let me say this was hard work to figure out! THANKS to KAREEM FOR THE HELP!!!
OK this is how to get wap and mms on the HTC VOGUE on metro!!!!
please sticky!!!!
WAP
1: Check your Windows\startup folder for "HTC_CM_Guardian.lnk", which is a shortcut to Windows\HTC_CM_Guardian.exe. If the shortcut exists delete it. If not then you probably have a newer Sprint ROM which doesn't have the shortcut to launch that application. It is still launching it in some other way however and I have not been able to figure it out from searching forums and the web. The general consensus is to replace the file with a dummy file that I've attached (extract from the zip). Download the attached file and replace "Windows\HTC_CM_Guardian.exe" with the dummy file which will prevent it from running.
NOTE: This file is what resets your Sprint connection to its default settings despite editing these settings. Disabling this file by deleting or replacing it is critical. You may need to use a program such as Resco File Explorer or another File Explorer utility to overwrite/delete/rename Read-Only or ROM files.
2: Rename the following files and folders:
Windows\iota.exe ---> windows\iotaOLD.exe
Windows\iotaconf.txt ---> windows\iotaconfgOLD.txt
Program Files\IOTA ---> Program Files\IOTAOLD
NOTE: renaming the IOTA folder is probably all that is needed however I found the files as well and renamed them for good measure and haven't had a problem.
3: Open your phone and enter ##778#, select "EDIT" and enter your unlock code.
4: Set the following values:
M.IP Settings:
MIP_MODE = Simple IP Only
M.IP Default Profile:
NAI = [email protected]
Home Address = 0.0.0.0 (just delete the values and save)
Primary HA Address = 0.0.0.0 (just delete the values and save)
Secondary HA Address = 0.0.0.0 (just delete the values and save)
Security:
HDR AN AUTH User Id = [email protected]
PPP USER ID = yourtendigitphonenumber[email protected]
PPP PASSWORD = metropcs
5: Goto Connections and delete any existing connections and setup a new one using the following settings:
Number to dail = #777
Username: [email protected]
Password: metropcs
Domain: (Leave Blank)
Select Proxy Settings and enter the following values:
wap.metropcs.net port:3128 (http)
wap.metropcs.net port:3128 (wap)
wap.metropcs.net port:443 (secure wap)
wap.metropcs.net port:3128 (socks)
6: Back in the "Connections" screen where you have two tabs at the bottom of the screen of "Tasks" and "Advanced", go to Advanced, click on "Select Networks" and select the name of the connection you just setup.
Example if you leave as Sprint then choose that one as your internet connection and do it for both settings.
MMS
MAKE SURE YOUR WEB IS WORKING PROPERLY (ABOVE INSTRUCTIONS) AS YOU CAN'T HAVE MMS WITHOUT WORKING INTERNET!!!!!
Remove/Uninstall any existing MMS composer you have attempted to setup. Also a good idea to remove any registry keys it may have created that are left behind after the uninstall.
1: Install Arcsoft MMS version 5.0.70.24 from Verzion.
2: Open your Messaging and click on the SMS/MMS option.
3: Click on "Menu" and select "MMS Options" then select the "Servers" tab.
4: Add a new server with the following settings:
Server Name: metropcs
Gateway: wap.metropcs.net
Port number: 3128
Server address: http://mms.metropcs.net:3128/mmsc
Connect via: SELECT EITHER THE CONNECTION YOU SETUP ABOVE OR "The internet"
Send limit: 399K
5: Click "Done" and then set the new server as default.
6: Using a Registry Editor edit the following values:
[HKEY_LOCAL_MACHINE\SOFTWARE\Arcsoft\ArcSoft MMS UA\Config\mm1\WspHeader]
DELETE KEY -> "X-VzW-MDN"
ADD STRING -> "X-metropcs-MDN"="XXXXXXXXXX" ( Insert your 10 digit phone Number )
ADD STRING -> "X-DEVICE-MIN"="1XXXXXXXXXX" ( Insert your 10 digit phone Number WITH the 1 in front of it )
Code:
http://rapidshare.com/files/166154036/HTC_VOGUE_METRO_WEB_MMS_SETTINGS.rar.html
Very Useful.
Stickied.
Files uploaded.. if some one can do mirrors please?
PLEASE LET ME KNOW HOW USEFUL THIS IS TO YOU ALL. AND if you have any questions please ask.
Good work....very useful
DumbDumb said:
3: Open your phone and enter ##778#, select "EDIT" and enter your unlock code.
Click to expand...
Click to collapse
How does one obtain the unlock code?
question
hey can anyone tell me where in los angeles can i get touch vogue flashed to metro.. im tired of dealing with these people at the metro stores...
whackatak said:
How does one obtain the unlock code?
Click to expand...
Click to collapse
Your unlock code is carrier specific. but try 000000
clifford said:
hey can anyone tell me where in los angeles can i get touch vogue flashed to metro.. im tired of dealing with these people at the metro stores...
Click to expand...
Click to collapse
I dont know about LA but in the bay area there are plenty of people...check out craigslist
I have tried the setting and still can't get the internet. Keeps coming up saying username and password is wrong.
do you know the settings for t-mobile
thanks for this
does anyone know the settings for Verizon?
rascal75 said:
I have tried the setting and still can't get the internet. Keeps coming up saying username and password is wrong.
Click to expand...
Click to collapse
Quick question, do you have internet access on your billing/account? If the information is entered correctly and exactly as posted, it will work as long as you pay for internet on your account.
Search HowardForums For more info.
Thank you!!!
Works great - it was a lot of work just getting someone to flash it correctly, and then getting everything to work right; I can't imagine what you must have gone through figuring out these settings!!! I thank you and my wallet thanks you!
Thank you
Nice - always enjoy the support from members in this forum.
Great Info, but needs file shared again
DumbDumb said:
First let me say this was hard work to figure out! THANKS to KAREEM FOR THE HELP!!!
OK this is how to get wap and mms on the HTC VOGUE on metro!!!!
please sticky!!!!
WAP
1: Check your Windows\startup folder for "HTC_CM_Guardian.lnk", which is a shortcut to Windows\HTC_CM_Guardian.exe. If the shortcut exists delete it. If not then you probably have a newer Sprint ROM which doesn't have the shortcut to launch that application. It is still launching it in some other way however and I have not been able to figure it out from searching forums and the web. The general consensus is to replace the file with a dummy file that I've attached (extract from the zip). Download the attached file and replace "Windows\HTC_CM_Guardian.exe" with the dummy file which will prevent it from running.
NOTE: This file is what resets your Sprint connection to its default settings despite editing these settings. Disabling this file by deleting or replacing it is critical. You may need to use a program such as Resco File Explorer or another File Explorer utility to overwrite/delete/rename Read-Only or ROM files.
2: Rename the following files and folders:
Windows\iota.exe ---> windows\iotaOLD.exe
Windows\iotaconf.txt ---> windows\iotaconfgOLD.txt
Program Files\IOTA ---> Program Files\IOTAOLD
NOTE: renaming the IOTA folder is probably all that is needed however I found the files as well and renamed them for good measure and haven't had a problem.
3: Open your phone and enter ##778#, select "EDIT" and enter your unlock code.
4: Set the following values:
M.IP Settings:
MIP_MODE = Simple IP Only
M.IP Default Profile:
NAI = [email protected]
Home Address = 0.0.0.0 (just delete the values and save)
Primary HA Address = 0.0.0.0 (just delete the values and save)
Secondary HA Address = 0.0.0.0 (just delete the values and save)
Security:
HDR AN AUTH User Id = [email protected]
PPP USER ID = [email protected]
PPP PASSWORD = metropcs
5: Goto Connections and delete any existing connections and setup a new one using the following settings:
Number to dail = #777
Username: [email protected]
Password: metropcs
Domain: (Leave Blank)
Select Proxy Settings and enter the following values:
wap.metropcs.net port:3128 (http)
wap.metropcs.net port:3128 (wap)
wap.metropcs.net port:443 (secure wap)
wap.metropcs.net port:3128 (socks)
6: Back in the "Connections" screen where you have two tabs at the bottom of the screen of "Tasks" and "Advanced", go to Advanced, click on "Select Networks" and select the name of the connection you just setup.
Example if you leave as Sprint then choose that one as your internet connection and do it for both settings.
MMS
MAKE SURE YOUR WEB IS WORKING PROPERLY (ABOVE INSTRUCTIONS) AS YOU CAN'T HAVE MMS WITHOUT WORKING INTERNET!!!!!
Remove/Uninstall any existing MMS composer you have attempted to setup. Also a good idea to remove any registry keys it may have created that are left behind after the uninstall.
1: Install Arcsoft MMS version 5.0.70.24 from Verzion.
2: Open your Messaging and click on the SMS/MMS option.
3: Click on "Menu" and select "MMS Options" then select the "Servers" tab.
4: Add a new server with the following settings:
Server Name: metropcs
Gateway: wap.metropcs.net
Port number: 3128
Server address: http://mms.metropcs.net:3128/mmsc
Connect via: SELECT EITHER THE CONNECTION YOU SETUP ABOVE OR "The internet"
Send limit: 399K
5: Click "Done" and then set the new server as default.
6: Using a Registry Editor edit the following values:
[HKEY_LOCAL_MACHINE\SOFTWARE\Arcsoft\ArcSoft MMS UA\Config\mm1\WspHeader]
DELETE KEY -> "X-VzW-MDN"
ADD STRING -> "X-metropcs-MDN"="XXXXXXXXXX" ( Insert your 10 digit phone Number )
ADD STRING -> "X-DEVICE-MIN"="1XXXXXXXXXX" ( Insert your 10 digit phone Number WITH the 1 in front of it )
Code:
http://rapidshare.com/files/166154036/HTC_VOGUE_METRO_WEB_MMS_SETTINGS.rar.html
Click to expand...
Click to collapse
Dumb Dumb, thanks for the great Info. I have my phone almost there... but the proxy info continues to be dropped. Is there any chance someone can post HTC_VOGUE_METRO_WEB_MMS_SETTINGS.rar again? Please pm me if you can, and I'll share it. Thanks!
DumbDumb said:
First let me say this was hard work to figure out! THANKS to KAREEM FOR THE HELP!!!
OK this is how to get wap and mms on the HTC VOGUE on metro!!!!
please sticky!!!!
WAP
1: Check your Windows\startup folder for "HTC_CM_Guardian.lnk", which is a shortcut to Windows\HTC_CM_Guardian.exe. If the shortcut exists delete it. If not then you probably have a newer Sprint ROM which doesn't have the shortcut to launch that application. It is still launching it in some other way however and I have not been able to figure it out from searching forums and the web. The general consensus is to replace the file with a dummy file that I've attached (extract from the zip). Download the attached file and replace "Windows\HTC_CM_Guardian.exe" with the dummy file which will prevent it from running.
NOTE: This file is what resets your Sprint connection to its default settings despite editing these settings. Disabling this file by deleting or replacing it is critical. You may need to use a program such as Resco File Explorer or another File Explorer utility to overwrite/delete/rename Read-Only or ROM files.
2: Rename the following files and folders:
Windows\iota.exe ---> windows\iotaOLD.exe
Windows\iotaconf.txt ---> windows\iotaconfgOLD.txt
Program Files\IOTA ---> Program Files\IOTAOLD
NOTE: renaming the IOTA folder is probably all that is needed however I found the files as well and renamed them for good measure and haven't had a problem.
3: Open your phone and enter ##778#, select "EDIT" and enter your unlock code.
4: Set the following values:
M.IP Settings:
MIP_MODE = Simple IP Only
M.IP Default Profile:
NAI = [email protected]
Home Address = 0.0.0.0 (just delete the values and save)
Primary HA Address = 0.0.0.0 (just delete the values and save)
Secondary HA Address = 0.0.0.0 (just delete the values and save)
Security:
HDR AN AUTH User Id = [email protected]
PPP USER ID = [email protected]
PPP PASSWORD = metropcs
5: Goto Connections and delete any existing connections and setup a new one using the following settings:
Number to dail = #777
Username: [email protected]
Password: metropcs
Domain: (Leave Blank)
Select Proxy Settings and enter the following values:
wap.metropcs.net port:3128 (http)
wap.metropcs.net port:3128 (wap)
wap.metropcs.net port:443 (secure wap)
wap.metropcs.net port:3128 (socks)
6: Back in the "Connections" screen where you have two tabs at the bottom of the screen of "Tasks" and "Advanced", go to Advanced, click on "Select Networks" and select the name of the connection you just setup.
Example if you leave as Sprint then choose that one as your internet connection and do it for both settings.
MMS
MAKE SURE YOUR WEB IS WORKING PROPERLY (ABOVE INSTRUCTIONS) AS YOU CAN'T HAVE MMS WITHOUT WORKING INTERNET!!!!!
Remove/Uninstall any existing MMS composer you have attempted to setup. Also a good idea to remove any registry keys it may have created that are left behind after the uninstall.
1: Install Arcsoft MMS version 5.0.70.24 from Verzion.
2: Open your Messaging and click on the SMS/MMS option.
3: Click on "Menu" and select "MMS Options" then select the "Servers" tab.
4: Add a new server with the following settings:
Server Name: metropcs
Gateway: wap.metropcs.net
Port number: 3128
Server address: http://mms.metropcs.net:3128/mmsc
Connect via: SELECT EITHER THE CONNECTION YOU SETUP ABOVE OR "The internet"
Send limit: 399K
5: Click "Done" and then set the new server as default.
6: Using a Registry Editor edit the following values:
[HKEY_LOCAL_MACHINE\SOFTWARE\Arcsoft\ArcSoft MMS UA\Config\mm1\WspHeader]
DELETE KEY -> "X-VzW-MDN"
ADD STRING -> "X-metropcs-MDN"="XXXXXXXXXX" ( Insert your 10 digit phone Number )
ADD STRING -> "X-DEVICE-MIN"="1XXXXXXXXXX" ( Insert your 10 digit phone Number WITH the 1 in front of it )
Code:
http://rapidshare.com/files/166154036/HTC_VOGUE_METRO_WEB_MMS_SETTINGS.rar.html
Click to expand...
Click to collapse
I know this is a stupid question but on the the New REG strings do you Include the " In the beginning? of the string?
The file link is down. Can you please repost it? I really need that dummy file...
help
Im trying to get mms on my Sprint htc pro that i flashed to metro i got the web working but when i get to the last part #6 cant find the key "X-VzW-MDN" to delet and where do i put the strings ( "X-metropcs-MDN"="XXXXXXXXXX" ( Insert your 10 digit phone Number )ADD STRING -> "X-DEVICE-MIN"="1XXXXXXXXXX" ( Insert your 10 digit phone Number WITH the 1 in front of it )
help..
xv68k flashed metropcs
Net. check.
MMS out. check
MMS in. no won't download image.
When in Evdo network range, no net. 1x settings only. Is there a cab to enable my gps chip outside of flashing.?
Are there evdo network setting for metro pcs?
Does anybody know of an app with which I can remotely control an UX desktop(XDMCP connection).
thank you
Is xdmcp a must? If not, android-vnc should do the job
Sent from my HDfied HTC Desire
I tried android vnc but I could not connect.
Thread moved to Q&A.
Connect androidvnc to linux xdmcp with multi user access via xinetd
I have finally accomplished this in Linux Mint 13
Step 1: install tightvncserver
sudo apt-get install tightvncserver
Step 2: install xinetd if not already installed
sudo apt-get install xinetd
Step 3: configure xinetd
sudo gedit /etc/xinetd.d/vnc-1
paste this into editor and save
service vnc-1
{
disable = no
socket_type =stream
protocol =tcp
wait =no
user =nobody
server =/usr/bin/Xvnc
server_args = :1 -inetd -query localhost -geometry 1280x800 -depth 16 -once -rfbport 5901
# the server_args value may need -securitytypes=none
# to stop the remote vncviewer being prompted for a vnc
# password instead of the MDM Login prompt.
}
Step 4: Add the service
paste this at the bottom of the list above the #Local Services mark
vnc-1 5901/tcp # vnc session 1
Step 5: Configure xdmcp on host computer
under the menu -> Administration -> Login Window
under general tab uncheck Disable multiple logins for a single user
under remote tab select same as local
then hit the button saying configure xdmcp
make sure there it is check marked
under security tab uncheck deny tcp connections to Xserver
and in permissions i would allow all access
reboot and connect your vnc client
As many of you know, most of our android(not only android) devices can't connect to ad hoc hotspots. There's a solution for win7/8 users to set up infrastructure hotspot on their laptop using software like connectify and so on. Ubuntu also allows to create wifi hotspot to share internet, but it will be ad hoc one.
So here's the guide how to set up infrastructure hotspot on ubuntu 12.04/12.10. Unlike some other methods described on the internet, this one will not break default network manager.
1. First of all you should make sure, that your wifi adapter supports infrastructure hotspots. If you used connectify on your windows system and it worked, skip this step.
open terminal and type: sudo lshw | less
find -network section and make sure that driver is ath5k or ath9k, this solution will only work for those drivers, but should fit the needs for the most laptop users.
2. We now need to install 2 additional tools to make out hotspot, 1st one is hostapd(hotspot server), 2nd one is dnsmasq(dns dhcp server)
in terminal type: sudo apt-get install hostapd dnsmasq
3. stop those services if started already, and prevent them from starting on system start up.
in terminal type:
sudo service hostapd stop
sudo service dnsmasq stop
sudo update-rc.d hostapd disable
sudo update-rc.d dnsmasq disable
4. Now we need to set up config files.
in terminal type: sudo gedit /etc/dnsmasq.conf
or sudo kate /etc/dnsmasq.conf if you use kde
add those lines to the config file
Code:
# Bind to only one interface
bind-interfaces
# Choose interface for binding
interface=wlan0
# Specify range of IP addresses for DHCP leasses
dhcp-range=192.168.150.2,192.168.150.10
5. hostapd config
in terminal type: sudo gedit /etc/hostapd.conf
and add those lines
Code:
# Define interface
interface=wlan0
# Select driver
driver=nl80211
# Set access point name
ssid=myhotspot
# Set access point harware mode to 802.11g
hw_mode=g
# Set WIFI channel (can be easily changed)
channel=6
# Enable WPA2 only (1 for WPA, 2 for WPA2, 3 for WPA + WPA2)
wpa=2
wpa_passphrase=mypassword
You can change ssid name and password for anything you want here. Current config will create hotspot named myhotspot with mypassword password.
6. Now create anywhere you want a file named start.sh
edit it with any text editor like this:
Code:
#!/bin/bash
# Start
# Configure IP address for WLAN
sudo ifconfig wlan0 192.168.150.1
# Start DHCP/DNS server
sudo service dnsmasq restart
# Enable routing
sudo sysctl net.ipv4.ip_forward=1
# Enable NAT
sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
# Run access point daemon
sudo hostapd /etc/hostapd.conf
# Stop
# Disable NAT
sudo iptables -D POSTROUTING -t nat -o ppp0 -j MASQUERADE
# Disable routing
sudo sysctl net.ipv4.ip_forward=0
# Disable DHCP/DNS server
sudo service dnsmasq stop
sudo service hostapd stop
You will probably need to change ppp0 in this to eth0 (or any other number which refers to your wired connection.
7. Last step. Now you can start your hotspot by starting our script. just run it using sudo sh
for me it looks like this sudo sh /home/ogyct/Desktop/start.sh because I have it on my desktop
I am not sure who is the author of this guide, I only translated it to english. But anyway if this helped, hit the thanks button. Good day
Android device having issues connecting to AP
I have an eth0 connection running behind an authenticated proxy server.
I followed the steps and managed to create a hotspot which my google nexus 7 detects. However, it seems stuck at "obtaining an ip address" and is not able to connect to the internet.
I initially received the following error message when running your script in the terminal:
dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use [fail]
I figured it is because of a conflict with the network manager, I commented out the "dns=dnsmasq" line in the nm configuration file. After a network-manager restart, the first error doesn't show up but I get the following:
Configuration file: /etc/hostapd.conf
Failed to create interface mon.wlan0: -23 (Too many open files in system)
Try to remove and re-create mon.wlan0
In both cases, however, the hotspot is created and is detected by my android device. only that it cannot "obtain an ip address" and connect to it.
Is it because my eth0 connects via a proxy server?
Or could there be something wrong with the dnsmasq config? Any help would be appreciated.
anandkarthikeyan said:
I have an eth0 connection running behind an authenticated proxy server.
I followed the steps and managed to create a hotspot which my google nexus 7 detects. However, it seems stuck at "obtaining an ip address" and is not able to connect to the internet.
I initially received the following error message when running your script in the terminal:
dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use [fail]
I figured it is because of a conflict with the network manager, I uncommented "dns=dnsmasq" line in the nm configuration file. After a network-manager restart, the first error doesn't show up but I get the following:
Configuration file: /etc/hostapd.conf
Failed to create interface mon.wlan0: -23 (Too many open files in system)
Try to remove and re-create mon.wlan0
In both cases, however, the hotspot is created and is detected by my android device. only that it cannot "obtain an ip address" and connect to it.
Is it because my eth0 connects via a proxy server?
Or could there be something wrong with the dnsmasq config? Any help would be appreciated.
Click to expand...
Click to collapse
I've never worked with a proxy server, but from what I see, it seems like your problem has nothing to do with a proxy server. Something's wrong with configuration on wifi side. Try to disable network manager first, if it doesn't help, try to completely clean dnsmaq and hostapd configs and paste code from this thread again. Unfortunately I can not provide any further help, since I have a different configuration on my side.
My galaxy s2 is able to see the "myhotspot" network created following this guide. I set a static ip and gateway to make it obtain an ip address.
Now it seems to be connected, but I have no internet access on my phone...
Could anyone help me?
gio182 said:
My galaxy s2 is able to see the "myhotspot" network created following this guide. I set a static ip and gateway to make it obtain an ip address.
Now it seems to be connected, but I have no internet access on my phone...
Could anyone help me?
Click to expand...
Click to collapse
I am using ubuntu 12.04 and I just figured out the instructions on ".../questions/180733/how-to-setup-a-wi-fi-hotspot-access-point-mode/" (askubuntu) thread worked like a charm for me. It uses the isc-dhcp-server instead of dnsmasq and a different dhcp range I guess. I really don't know enough to tell the difference but it worked. Maybe ogyct can explain it to us.
gio182 said:
My galaxy s2 is able to see the "myhotspot" network created following this guide. I set a static ip and gateway to make it obtain an ip address.
Now it seems to be connected, but I have no internet access on my phone...
Could anyone help me?
Click to expand...
Click to collapse
If everything's made right, there'll be no need for setting static ip adress, dhcp will do it for you.
Try to check if your devices are called wlan0 and eth0, if not, change configs accordingly. Simply type in console iwconfig to see the names. Remember, you may have a different configuration of your system, so be aware of that
HI ogyct,
This is the error i received.
Code:
wlan0: ERROR while getting interface flags: No such device
* Restarting DNS forwarder and DHCP server dnsmasq
dnsmasq: unknown interface wlan0
[fail]
net.ipv4.ip_forward = 1
Configuration file: /etc/hostapd.conf
Could not read interface wlan0 flags: No such device
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
net.ipv4.ip_forward = 0
* Stopping DNS forwarder and DHCP server dnsmasq * (not running)
And my wifi config reads this
Code:
*-network
description: Wireless interface
product: BCM4313 802.11b/g/n Wireless LAN Controller
vendor: Broadcom Corporation
physical id: 0
bus info: [email protected]:03:00.0
logical name: eth1
version: 01
serial: cc:af:78:78:44:03
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=wl0 driverversion=5.100.82.112 latency=0 multicast=yes wireless=IEEE 802.11
resources: irq:17 memory:f1500000-f1503fff
I guess I need to update the interfaces file in /etc/network....??
Any suggestions?
BCM4313 doesn't support AP
You wireless card doesn't support the AP operation mode. You can look up on the hostapd support website and there is a list of suppored devices. The BCM 4313 is part of brcmsmac which is in the NO section for AP. You would need to get a new card or purchase an external wifi card. Hope this helps.
bad_asteroid said:
HI ogyct,
This is the error i received.
Code:
wlan0: ERROR while getting interface flags: No such device
* Restarting DNS forwarder and DHCP server dnsmasq
dnsmasq: unknown interface wlan0
[fail]
net.ipv4.ip_forward = 1
Configuration file: /etc/hostapd.conf
Could not read interface wlan0 flags: No such device
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
net.ipv4.ip_forward = 0
* Stopping DNS forwarder and DHCP server dnsmasq * (not running)
And my wifi config reads this
Code:
*-network
description: Wireless interface
product: BCM4313 802.11b/g/n Wireless LAN Controller
vendor: Broadcom Corporation
physical id: 0
bus info: [email protected]:03:00.0
logical name: eth1
version: 01
serial: cc:af:78:78:44:03
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=wl0 driverversion=5.100.82.112 latency=0 multicast=yes wireless=IEEE 802.11
resources: irq:17 memory:f1500000-f1503fff
I guess I need to update the interfaces file in /etc/network....??
Any suggestions?
Click to expand...
Click to collapse
a little help
I made the hotspot successfully but its not sharing the internet connection
im using linuxmint 14 and HUAWEI EC1261-2 (EVDO)
unkown interface error
it says unknown interface wlan1 [fail]
.....phone detects the network but gets stuck during authentication, and then disabled, and keeps on trying...
stuck at # what to do please help
getting an error
here's the error i'm getting
Code:
SIOCSIFFLAGS: Operation not possible due to RF-kill
* Restarting DNS forwarder and DHCP server dnsmasq
dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use
[fail]
net.ipv4.ip_forward = 1
Configuration file: /etc/hostapd.conf
Could not set interface wlan0 flags: Operation not possible due to RF-kill
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x8e20908 user_data=0x8e20e88 handler=0x807c5e0
ELOOP: remaining socket: sock=6 eloop_data=0x8e22ca0 user_data=(nil) handler=0x8086770
net.ipv4.ip_forward = 0
* Stopping DNS forwarder and DHCP server dnsmasq * (not running)
It doesn't work!
It's a pity!
Thanks
THANKS BRO IT REALLY WORKED LIKE A CHRAM!!!!! :highfive:
Thanks!
ogyct said:
As many of you know, most of our android(not only android) devices can't connect to ad hoc hotspots. There's a solution for win7/8 users to set up infrastructure hotspot on their laptop using software like connectify and so on. Ubuntu also allows to create wifi hotspot to share internet, but it will be ad hoc one.
So here's the guide how to set up infrastructure hotspot on ubuntu 12.04/12.10. Unlike some other methods described on the internet, this one will not break default network manager.
1. First of all you should make sure, that your wifi adapter supports infrastructure hotspots. If you used connectify on your windows system and it worked, skip this step.
open terminal and type: sudo lshw | less
find -network section and make sure that driver is ath5k or ath9k, this solution will only work for those drivers, but should fit the needs for the most laptop users.
2. We now need to install 2 additional tools to make out hotspot, 1st one is hostapd(hotspot server), 2nd one is dnsmasq(dns dhcp server)
in terminal type: sudo apt-get install hostapd dnsmasq
3. stop those services if started already, and prevent them from starting on system start up.
in terminal type:
sudo service hostapd stop
sudo service dnsmasq stop
sudo update-rc.d hostapd disable
sudo update-rc.d dnsmasq disable
4. Now we need to set up config files.
in terminal type: sudo gedit /etc/dnsmasq.conf
or sudo kate /etc/dnsmasq.conf if you use kde
add those lines to the config file
Code:
# Bind to only one interface
bind-interfaces
# Choose interface for binding
interface=wlan0
# Specify range of IP addresses for DHCP leasses
dhcp-range=192.168.150.2,192.168.150.10
5. hostapd config
in terminal type: sudo gedit /etc/hostapd.conf
and add those lines
Code:
# Define interface
interface=wlan0
# Select driver
driver=nl80211
# Set access point name
ssid=myhotspot
# Set access point harware mode to 802.11g
hw_mode=g
# Set WIFI channel (can be easily changed)
channel=6
# Enable WPA2 only (1 for WPA, 2 for WPA2, 3 for WPA + WPA2)
wpa=2
wpa_passphrase=mypassword
You can change ssid name and password for anything you want here. Current config will create hotspot named myhotspot with mypassword password.
6. Now create anywhere you want a file named start.sh
edit it with any text editor like this:
Code:
#!/bin/bash
# Start
# Configure IP address for WLAN
sudo ifconfig wlan0 192.168.150.1
# Start DHCP/DNS server
sudo service dnsmasq restart
# Enable routing
sudo sysctl net.ipv4.ip_forward=1
# Enable NAT
sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
# Run access point daemon
sudo hostapd /etc/hostapd.conf
# Stop
# Disable NAT
sudo iptables -D POSTROUTING -t nat -o ppp0 -j MASQUERADE
# Disable routing
sudo sysctl net.ipv4.ip_forward=0
# Disable DHCP/DNS server
sudo service dnsmasq stop
sudo service hostapd stop
You will probably need to change ppp0 in this to eth0 (or any other number which refers to your wired connection.
7. Last step. Now you can start your hotspot by starting our script. just run it using sudo sh
for me it looks like this sudo sh /home/ogyct/Desktop/start.sh because I have it on my desktop
I am not sure who is the author of this guide, I only translated it to english. But anyway if this helped, hit the thanks button. Good day
Click to expand...
Click to collapse
This is running awesome. Just one question. How do I stop the script?
I find disabling and enabling wifi works. But is there any other way?
Hi, this script works perfectly. I was having issues with ubuntu shared wifi not being visible with android.
Now the hard question. I have a box that is already acting as a router sharing ip with dnsmasq over eth1
i added a wifi card wlan0 and i want to share not only internet but also the services running on my box
the problem is this script uses a different ip range and i cannot access my nfs shares.
my network is 192.168.128.x and i have set up this script in other range.
Setting it up in 192.168.128.10x for instance will not work
Is it possible to make this wifi share part of my network?
regards.
worked !!!
ogyct said:
As many of you know, most of our android(not only android) devices can't connect to ad hoc hotspots. There's a solution for win7/8 users to set up infrastructure hotspot on their laptop using software like connectify and so on. Ubuntu also allows to create wifi hotspot to share internet, but it will be ad hoc one.
So here's the guide how to set up infrastructure hotspot on ubuntu 12.04/12.10. Unlike some other methods described on the internet, this one will not break default network manager.
1. First of all you should make sure, that your wifi adapter supports infrastructure hotspots. If you used connectify on your windows system and it worked, skip this step.
open terminal and type: sudo lshw | less
find -network section and make sure that driver is ath5k or ath9k, this solution will only work for those drivers, but should fit the needs for the most laptop users.
2. We now need to install 2 additional tools to make out hotspot, 1st one is hostapd(hotspot server), 2nd one is dnsmasq(dns dhcp server)
in terminal type: sudo apt-get install hostapd dnsmasq
3. stop those services if started already, and prevent them from starting on system start up.
in terminal type:
sudo service hostapd stop
sudo service dnsmasq stop
sudo update-rc.d hostapd disable
sudo update-rc.d dnsmasq disable
4. Now we need to set up config files.
in terminal type: sudo gedit /etc/dnsmasq.conf
or sudo kate /etc/dnsmasq.conf if you use kde
add those lines to the config file
Code:
# Bind to only one interface
bind-interfaces
# Choose interface for binding
interface=wlan0
# Specify range of IP addresses for DHCP leasses
dhcp-range=192.168.150.2,192.168.150.10
5. hostapd config
in terminal type: sudo gedit /etc/hostapd.conf
and add those lines
Code:
# Define interface
interface=wlan0
# Select driver
driver=nl80211
# Set access point name
ssid=myhotspot
# Set access point harware mode to 802.11g
hw_mode=g
# Set WIFI channel (can be easily changed)
channel=6
# Enable WPA2 only (1 for WPA, 2 for WPA2, 3 for WPA + WPA2)
wpa=2
wpa_passphrase=mypassword
You can change ssid name and password for anything you want here. Current config will create hotspot named myhotspot with mypassword password.
6. Now create anywhere you want a file named start.sh
edit it with any text editor like this:
Code:
#!/bin/bash
# Start
# Configure IP address for WLAN
sudo ifconfig wlan0 192.168.150.1
# Start DHCP/DNS server
sudo service dnsmasq restart
# Enable routing
sudo sysctl net.ipv4.ip_forward=1
# Enable NAT
sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
# Run access point daemon
sudo hostapd /etc/hostapd.conf
# Stop
# Disable NAT
sudo iptables -D POSTROUTING -t nat -o ppp0 -j MASQUERADE
# Disable routing
sudo sysctl net.ipv4.ip_forward=0
# Disable DHCP/DNS server
sudo service dnsmasq stop
sudo service hostapd stop
You will probably need to change ppp0 in this to eth0 (or any other number which refers to your wired connection.
7. Last step. Now you can start your hotspot by starting our script. just run it using sudo sh
for me it looks like this sudo sh /home/ogyct/Desktop/start.sh because I have it on my desktop
I am not sure who is the author of this guide, I only translated it to english. But anyway if this helped, hit the thanks button. Good day
Click to expand...
Click to collapse
Thank you.
Its worked successfully in Xperia J.
Worked in Linux Mint v15 (based on Ubuntu 13.04)
johnp
A little update, I am glad if this guide helped. but in case it didn't try this one http://www.webupd8.org/2013/06/how-to-set-up-wireless-hotspot-access.html. I didn't check this myself, but that script seems to be smart.
Hi
I've got a paid VPN from ProXPN and I'm trying to set it up on my HTC One X using the official OpenVPN Connect app.
Copied my *.ovpn, *.crt and *.key files over from my laptop to the device, but get the following error:
"Error Parsing OpenVPN profile : ProXPN.ovpn : option_error: remote option not specified"
Does anyone know what I'm doing wrong, please?
Thanks
Rob
P.S. Not a huge issue if I can't get it working, as I'll just use the built-in VPN via pptp, but hopefully I'll be able to sort this out.
Rushey_Platt said:
Hi
I've got a paid VPN from ProXPN and I'm trying to set it up on my HTC One X using the official OpenVPN Connect app.
Copied my *.ovpn, *.crt and *.key files over from my laptop to the device, but get the following error:
"Error Parsing OpenVPN profile : ProXPN.ovpn : option_error: remote option not specified"
Does anyone know what I'm doing wrong, please?
Thanks
Rob
P.S. Not a huge issue if I can't get it working, as I'll just use the built-in VPN via pptp, but hopefully I'll be able to sort this out.
Click to expand...
Click to collapse
Judging by the error message I would say that your config file contains a typo or the line that specifies the remote address to connect to is missing or misformed.
http://openvpn.net/index.php/open-source/documentation/manuals/65-openvpn-20x-manpage.html
# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
remote my-server-1 1194
Click to expand...
Click to collapse
And http://openvpn.net/index.php/open-source/documentation/howto.html#examples
Obviously you cannot copy paste the examples . Can you not get a ready made ovpn config file from those ProXPN dudes?
If this config file contains no sensitive information you could post it here for a quick syntax check?
pakjebakmeel said:
If this config file contains no sensitive information you could post it here for a quick syntax check?
Click to expand...
Click to collapse
I don't think any of this is sensitive (hopefuly!) so here it is:
Code:
client
dev tun
proto tcp
resolv-retry infinite
nobind
persist-key
persist-tun
ca ssl/ca.crt
cert ssl/client.crt
key ssl/client.key
cipher BF-CBC
keysize 512
comp-lzo
verb 4
mute 5
tun-mtu 1500
mssfix 1450
auth-user-pass
reneg-sec 0
route-method exe
route-delay 1 10
route-metric 512
route 0.0.0.0 0.0.0.0
# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
;http-proxy-retry # retry on connection failure
;http-proxy [proxy server] [proxy port #]
So yes, you're missing the 'remote' statement in your config file.. Client doesn't know to which server it has to connect if this line is omitted.
That explains.
Also, this config looks like a config for a Windows client. Can you not just use a prefab config file for linux?
Think this is what you're on about: http://www.proxpn.com/ ?
I don't know this service but maybe use something like this: http://downgoat.net/2013/04/20/proxpn-openvpn-on-linux-configuration/
client
dev tun
proto tcp
remote uk.proxpn.com 443
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher BF-CBC
keysize 512
comp-lzo
verb 3
mute 5
tun-mtu 1500
mssfix 1450
auth-user-pass
reneg-sec 0
redirect-gateway def1
Click to expand...
Click to collapse
Also, it uses this config to connect to VPN but you still need to provide a username and password because of the auth-user-pass statement. I've not seen this option in my Android client but maybe it appears on the connection preferences when it sees this statement? Or maybe it will ask you upon connecting.. Not sure but try this and see if you get an option to configure username and pass or whether it asks you upon connecting..
Make sure the ca.crt, client.crt and client.key files are in the same folder as the ovpn config file. I use /sdcard/openvpn.
If you get stuck enable logging on the connection and post that. (AFTER YOU HAVE REMOVED ANY SENSITIVE INFORMATION).
Great, thanks, that tip enabled me to successfully import the linux-based profile.
After import I was indeed asked for a username and password, and then it connected to ProXPN. However, it then got stuck in some sort of connect / disconnect loop, with the disconnect message disappearing so fast I can't actually read what it says!
Rob
Rushey_Platt said:
Great, thanks, that tip enabled me to successfully import the linux-based profile.
After import I was indeed asked for a username and password, and then it connected to ProXPN. However, it then got stuck in some sort of connect / disconnect loop, with the disconnect message disappearing so fast I can't actually read what it says!
Rob
Click to expand...
Click to collapse
Enable logging, that's what it's for.
Some loops are terminating because of session invalidated; others because of a transport error.
Rushey_Platt said:
Some loops are terminating because of session invalidated; others because of a transport error.
Click to expand...
Click to collapse
Maybe if you post the full log file we can see what's happening. As I don't know what the correct settings should be for this provider it makes it harder to troubleshoot.
Hello,
I had a problem - when I connect through VPN to the office I couldn't open some intranet pages, I understood where the problem come from - from the MTU of the tu0 interface.
So I changed the MTU via this command: "ifconfig tun0 mtu 1360", so everything is OK, but when I disconnect and reconnect the VPN - the MTU of the tun0 interface is again 1500, this is because ifconfig change the mtu in /sys/devices/virtual/net/tun0/mtu, but when vpn is disconnected this folder is removed and when connect again - new folder is created might be from template of preset of settings.
So my question is where can I change mtu of the tun0 interface so that it will be permanent even after restart.
Thanks in Advance!