maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [HOWTO] N900 WiFi Hotspot (shell script version) (https://talk.maemo.org/showthread.php?t=73406)

9000 2011-06-06 07:25

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023083)
I disabled completely the avast internet security + anti-virus, as well as the windows firewall but the results of the connection is the same....
Identifying and no internet

How did you connect to the connection. Have you prompted to enter password?

Show me the corresponding screenshot please.

downstormaf 2011-06-06 07:32

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
4 Attachment(s)
Here are the screen shots of the process.

9000 2011-06-06 07:39

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023086)
Here are the screen shots of the process.

I'm afraid for some reason the DHCP request wasn't broadcast (firewall) or the DHCP server didn't response.

Click the 'Change adapter settings', right click the WiFi interface, choose the IPv4, click property, and enter the following information manually:

IP: 192.168.1.99
Netmask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 192.168.1.1

And then test the connection again.

downstormaf 2011-06-06 07:58

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
This did the trick, with no need to turn off the firewall....
I managed to change it manually but used the alternate configuration tab in the IPv4 properties in case I want to change to any house connection the automatic IP will act and when changing to the N900 connection it will also connect but waiting not more than 2 minutes (due to the IPv4 will run the automatic first and after finding a no successful connection it will check the alternate configuration)

Thanks 9000 for all your help and time spent due to my problem

9000 2011-06-06 08:02

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1023094)
This did the trick, with no need to turn off the firewall....
I managed to change it manually but used the alternate configuration tab in the IPv4 properties in case I want to change to any house connection the automatic IP will act and when changing to the N900 connection it will also connect but waiting not more than 2 minutes (due to the IPv4 will run the automatic first and after finding a no successful connection it will check the alternate configuration)

Thanks 9000 for all your help and time spent due to my problem

You're welcome. I'm glad that I managed to help you solved the problem before I going out for dinner tonight. ;)

downstormaf 2011-06-06 08:09

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
dinner, wow it's 4:07 am over here in Puerto Rico. Thanks again for your help from half way around the world and enjoy your dinner.:)

help78 2011-06-07 13:29

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
i am having trouble figuring out how to use my nokia 6790 slide phone as a wi-fi hotspot and i would apreciate any and all help you can give me. i dont understand how to create a widget etc if you could help me id really apreciate it
thank you very much for your time have a good day :) .

9000 2011-06-07 13:38

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by help78 (Post 1024094)
i am having trouble figuring out how to use my nokia 6790 slide phone as a wi-fi hotspot and i would apreciate any and all help you can give me. i dont understand how to create a widget etc if you could help me id really apreciate it
thank you very much for your time have a good day :) .

Is 6790 running s60v3? IIRC Joikuspot supports this platform, you'd like to check their official website, or OVI.

help78 2011-06-07 14:25

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
i ve tried joikuspot ,Whisher:Easy Wifi,& WeFi for Nokia: so far and i cant seem to get anywhere its driving me buggy if theres any way to do so i would apreciate yor assistance.:)

9000 2011-06-07 14:29

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by help78 (Post 1024164)
i ve tried joikuspot ,Whisher:Easy Wifi,& WeFi for Nokia: so far and i cant seem to get anywhere its driving me buggy if theres any way to do so i would apreciate yor assistance.:)

I see. However, you can't use my script in 6790 as it is not Linux based.

help78 2011-06-07 14:50

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
is there a script for windows that i could use i dont know what to do at this time im so tired of being way over charged for internet. next they will be charging me for air ...o wait to late

9000 2011-06-07 15:33

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by help78 (Post 1024200)
is there a script for windows that i could use i dont know what to do at this time im so tired of being way over charged for internet. next they will be charging me for air ...o wait to late

LOL yes we are charged for air these days.

6790 is not running on Windows, it's running on Symbian. I wondered why you can't get Joikuspot running on Symbian. Where did you get your Joikuspot from? Is it from the official site? Does it has extension sisx?

Other option is to connect to your mobile phone via Bluetooth DUN and use it as modem for your PC, but this is quite device and mobile carrier specific, say you need to know how to establish DUN with PC, and the connection string to connect to your mobile carrier, which I can't offer further help for you in this as I'm not using 6790 and I probably use the different carrier as yours.

downstormaf 2011-06-07 19:04

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
3 Attachment(s)
Help 78,
I used to have a nokia n97 that runs on symbian and I used to connect the phone to my pc using the nokia usb cable. After the pc having installed the mobile phone drivers you can check and see if you phone appears in the "Device and Printer" folder of windows. There should be two icons of the nokia, one for the storage device and the other for the nokia 6790.
I have set an example for you on the pictures attached, (note that this can be made with a pc that has a bluetooth device connected).

Step on how i did it,
1. go to Devices and Printers folder > right click on the phone icon > Dial - up Networking > create a dial-up connection
2. choose the first bluetooth modem selection (if it doesn't work try the others just in case)
3. In the Dial-up phone number write *99# (I don't remember where I got this number from but it has worked for me on the N97). Leave Both Username and Password in blank. You can also change the Connection Name if you like.
4. press connect button

Note,
I am using windows 7 and i think that vista also has the same feature of this kind

My_PeSePe 2011-06-09 18:28

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I've been al day tryingand nothing



/home/user # cd MyDocs/wifi_hotspot/
/home/user/MyDocs/wifi_hotspot # sh open_wifi_hotspot.sh
+ start wlancond
start: Job not changed: wlancond
+ modprobe crc7
+ modprobe mac80211
+ modprobe wl12xx
+ modprobe ipt_MASQUERADE
FATAL: Module ipt_MASQUERADE not found.
+ iptables -F
+ iptables -t nat -F
iptables v1.4.6: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
+ iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
iptables v1.4.6: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
+ echo 1
+ ifconfig wlan0 down
+ iwconfig wlan0 mode ad-hoc
+ ifconfig wlan0 up
+ iwconfig wlan0 essid honeypot
+ iwconfig wlan0 key s:0000000000000
+ iwconfig wlan0 channel 10
+ ifconfig wlan0 192.168.1.1 netmask 255.255.255.0 up
+ start-stop-daemon -S -p /var/run/wifi_tethering.pid -m -b -x /usr/sbin/dnsmasq -- -k -I lo -z -a 192.168.1.1 -F 192.168.3.100,192.168.3.127 -b
+ run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:WiFi HotSpot Activated
/home/user/MyDocs/wifi_hotspot # ifconfig
gprs0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.170.74.54 P-t-P:10.170.74.54 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MTU:1400 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:130 (130.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:65 errors:0 dropped:0 overruns:0 frame:0
TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5240 (5.1 KiB) TX bytes:5240 (5.1 KiB)

phonet0 Link encap:UNSPEC HWaddr 15-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP POINTOPOINT RUNNING NOARP MTU:4000 Metric:1
RX packets:285 errors:0 dropped:0 overruns:0 frame:0
TX packets:137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:8688 (8.4 KiB) TX bytes:2271 (2.2 KiB)

/home/user/MyDocs/wifi_hotspot #

http://db.tt/RgbIKrW

Point in the image is established and connected , but when i navigate says not conected . Can it be by the ip's or the mask ?

Greetings

9000 2011-06-10 00:15

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
From the output you provided the kernel module ipt_MASQUERADE failed to load.

Show me the output of the following:

uname -a

My_PeSePe 2011-06-10 10:10

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
2.6.28.10-power47 the last kernel

9000 2011-06-10 11:32

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by My_PeSePe (Post 1026362)
2.6.28.10-power47 the last kernel

How about:

ls /lib/modules/2.6.28.10power47/ip*.ko

My_PeSePe 2011-06-10 11:48

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
ls /lib/modules/2.6.28.10-power47/lip*.ko
ls: /lib/modules/2.6.28.10-power47/lip*.ko: No such file or director
ls /lib/modules/2.6.28.10power47/lib*.ko
ls: /lib/modules/2.6.28.10��power47/lib*.ko: No such file or director y

9000 2011-06-10 11:59

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by My_PeSePe (Post 1026413)
ls /lib/modules/2.6.28.10-power47/lip*.ko
ls: /lib/modules/2.6.28.10-power47/lip*.ko: No such file or director
ls /lib/modules/2.6.28.10power47/lib*.ko
ls: /lib/modules/2.6.28.10��power47/lib*.ko: No such file or director y

None of the above typed correctly. May be you could use copy&paste to paste the command line in my post to the xterminal.

My_PeSePe 2011-06-10 12:54

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
http://img12.imageshack.us/img12/310/screenshot11rc.png

9000 2011-06-10 13:10

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I wondered why there is no ip* module in it. Please show me the listing of upper directory:

ls -l /lib/modules/

My_PeSePe 2011-06-10 13:21

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
$ ls -l /lib/modules/
drwxr-xr-x 2 root root 7600 Jun 9 10:45 2.6.28-omap1
drwxr-xr-x 2 root root 20208 Jun 9 10:45 2.6.28.10-power47
lrwxrwxrwx 1 root root 17 Jun 9 10:45 current -> 2.6.28.10-power47

9000 2011-06-10 13:44

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I see, they've changed the directory name with an additional '-' in 47. I'm still using 46 and my directory is like ' 2.6.28.10power46'.

Anyway, now please show me the listing of:

ls /lib/modules/current/ip*.ko

My_PeSePe 2011-06-10 15:08

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
~ $ ls /lib/modules/current/ip*ko
/lib/modules/current/ip6_tables.ko
/lib/modules/current/ip6t_LOG.ko
/lib/modules/current/ip6table_filter.ko
/lib/modules/current/ip_gre.ko
/lib/modules/current/ip_tables.ko
/lib/modules/current/ipcomp.ko
/lib/modules/current/ipcomp6.ko
/lib/modules/current/iphb.ko
/lib/modules/current/ipip.ko
/lib/modules/current/ipt_LOG.ko
/lib/modules/current/ipt_MASQUERADE.ko
/lib/modules/current/ipt_NETMAP.ko
/lib/modules/current/ipt_REDIRECT.ko
/lib/modules/current/ipt_REJECT.ko
/lib/modules/current/iptable_filter.ko
/lib/modules/current/iptable_mangle.ko
/lib/modules/current/iptable_nat.ko
/lib/modules/current/ipv6.ko

9000 2011-06-10 16:10

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
ipt_MASQUERADE.ko is there...

Try load the module in absolute path as root:

Code:

insmod /lib/modules/current/ipt_MASQUERADE.ko

My_PeSePe 2011-06-10 17:10

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
/home/user # insmod /lib/modules/current/ipt_MASQUERADE.ko
insmod: error inserting '/lib/modules/current/ipt_MASQUERADE.ko': -1 Unknown symbol in module

9000 2011-06-10 17:54

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by My_PeSePe (Post 1026611)
/home/user # insmod /lib/modules/current/ipt_MASQUERADE.ko
insmod: error inserting '/lib/modules/current/ipt_MASQUERADE.ko': -1 Unknown symbol in module

I always wondered why mobile hotspot stops working after kernel-power updated to v47. This module is essential in IP routing. The tethering would not work without it.

To resolve the module problem, you might have to seek the maintainer's help. Note that the maintainer of v47 is no longer Titan. You may run 'apt-cache show kernel-power' for the contact of current maintainer.

The only help I could give is telling you how to downgrade your kernel-power back to v46, the version I'm using right now.

Downgrade is risky and you must prepare to reflash your N900 if anything goes wrong during dowgrading. I wouldn't recommend you to downgrade unless you're desperate to open a WiFi hotspot.

Tell me if you're prepared for it. I'll show you the instructions to downgrade then.

downstormaf 2011-06-11 06:00

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
there must be something missing on My_PeSePe version of the power kernel 47... a package... I have the same Kernel as he does and mine is running fine thanks to you...

My_PeSePe, where did you get the info on installing the power_kernel_47?
Have you done anything after installing it?

downstormaf 2011-06-11 06:10

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
also i noticed the following in My_PeSePe wifi on code:

+ iptables -t nat -F
iptables v1.4.6: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

My_PeSePe check if you can install the iptables through

apt-get install iptables

Maybe the installation of the kernel failed at some point that didn't install the iptables and make the ipt_MASQUERADE to malfunction...

downstormaf 2011-06-11 06:13

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Or, since his iPad detects the honeypot connection, can he change the settings to manual connection and change the IP?

IP: 192.168.1.99
Netmask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 192.168.1.1

And then test the connection again.

9000 2011-06-11 07:58

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by downstormaf (Post 1026909)
also i noticed the following in My_PeSePe wifi on code:

+ iptables -t nat -F
iptables v1.4.6: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

My_PeSePe check if you can install the iptables through

apt-get install iptables

Maybe the installation of the kernel failed at some point that didn't install the iptables and make the ipt_MASQUERADE to malfunction...

I think it was because the module failed to know. I also noticed that he has no wlan0 interface display in his ifconfig listing...but first thing first, the module needs to be taken care of first.

Estel 2011-06-16 22:12

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Hi 9000. I've just found Your thread and I'm very thankful to You for it. Ho ever, while reading whole topic, i noticed that "mess" about modules in kp47. I'm by no way expert. but I'm active in kp47 topic, and AFAIK current maintainer is very "open" for fixing mistakes like that.

Can You summarize, in a way understandable for "average" kernel maintainer, what doesn't work and why + if You can what should be done to make it work? I would be my pleasure to forward all info to kernel maintainer.

/Estel

9000 2011-06-17 00:37

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Hi Estel, I am sure Pali is and you guys are very helpful, otherwise he wouldn't take up the task of the most important package kernel power.

However, since I froze my kernel to version 46, it is unfair to comment on version 47 if I am not using it.

Nevertheless, from what My_PeSePe had reported in #66, the ipt_MASQUERADE.ko was failed to load with unresolved symbol error. This could easily be fixed by exporting the list of missing symbols during compilation, provided that the problem is consistent across all circumstance, but since downstormaf also reported the module loaded without any problem, then the issue might due to a case specific to My_PeSePe.

Therefore unless My_PeSePe could provide more information to the kernel power team, there is no way others could really help in this case, my apology.

Estel 2011-06-17 14:17

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
I understand, thank You. By the way, if it's not "secret", can You tell me why you "frozen" You kernel version to v46? I was waiting to be sure that kp47 is rock stable, but after update few days ago, I'm very happy with it. If there are some serious things that are wrong with kp47, it would be glad to know it.

9000 2011-06-19 07:55

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by Estel (Post 1030851)
I understand, thank You. By the way, if it's not "secret", can You tell me why you "frozen" You kernel version to v46? I was waiting to be sure that kp47 is rock stable, but after update few days ago, I'm very happy with it. If there are some serious things that are wrong with kp47, it would be glad to know it.

I would only upgrade the kernel when it's stable enough and there is something new that I'd need. I'm sure v47 is stable enough but I've yet to see if there's anything new that is missing from v46. May be you could tell me? ;)

Tesno 2011-08-03 16:56

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Rats. I was going to start using my N900 again, but can't get wifi hotspots to work.

jpala16 2011-09-04 02:08

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Is there someone there with kernel power v47 or even v48, able to create wifi hotspots? I thought that it was simply not working but for what I read on this thread maybe there's something that can be done to get it working.

Thanks in advance.

peterleinchen 2011-09-04 19:46

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Running KP47 (reflashed and reinstalled all my apps a month ago) and there is no problem at all with MobileHotSpot. Started it up and got connected my other mobile to the internet via N900.

miked1541 2011-12-06 22:48

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Does anybody know if this works with KP49?

kolos 2011-12-06 23:02

Re: [HOWTO] N900 WiFi Hotspot (shell script version)
 
Quote:

Originally Posted by miked1541 (Post 1134219)
Does anybody know if this works with KP49?

Qt Mobile Hotspot works fine with KP 49.


All times are GMT. The time now is 09:13.

vBulletin® Version 3.8.8