maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Creating AP hotspot from N900 - possible? (https://talk.maemo.org/showthread.php?t=101276)

dredlok706 2021-12-26 09:54

Creating AP hotspot from N900 - possible?
 
Hello :)
I have Nokia N900.
I want to share internet from my N900 to some Android devices (Tab S5e, Cat S61, S5 Active).
I know, there is Mobile HotSpot app. It allows to create hotspot. But unfortunately, only in Ad-Hoc mode. Only Windows 7 and Arch Linux are able to connect to Ad-Hoc for me :(
Is there any tweak to create AP hotspot on N900?
I really need it!

Thanks in advance, greetings :)

Maemish 2021-12-26 10:18

Re: Creating AP hotspot from N900 - possible?
 
Have you checked if HEN can do the trick?

biketool 2021-12-26 10:50

Re: Creating AP hotspot from N900 - possible?
 
I recommend bypassing wifi and choose a better solution.
https://wiki.maemo.org/Bluetooth_PAN
Lower power consumption, more secure pairing, same useable bandwidth.
I have used this after moving house until hardwired telephone and data are connected as well as mobile computers, tablets, and other equipment needing wireless internet or data linking.

dredlok706 2021-12-27 09:18

Re: Creating AP hotspot from N900 - possible?
 
Your link bricked my N900!!! :mad::mad::mad::mad::mad::mad::mad:

dredlok706 2021-12-27 09:18

Re: Creating AP hotspot from N900 - possible?
 
It can't boot now after making this things that link says :mad: :mad:

biketool 2021-12-27 11:13

Re: Creating AP hotspot from N900 - possible?
 
are you using kernel power or CSSU-thumb?
Bluetooth PAN should have been packaged into a .deb and put onto the repos or just part of CSSU upgrades six years ago, but what in this would interrupt booting?
Do you have backupmenu installed where reinstall is easy over USB? You could also use backupmenu to access the filesystem over USB and remove or fix the script files.
anyways when you are back installed follow the link
https://wiki.maemo.org/Bluetooth_PAN
and start after it mentions Genwall which you do not really need, the scripts and iptables do it all.

Sharing your connection over bluetooth [n900]


Using udev to automatically setup internet connection sharing over bluetooth comes now.


A kernel with iptables support is needed,

Kernel Power is the recommended way to achieve this. see Kernel Power for installation details.

The default kernel with CSSU-thumb is also suitable.


Install the iptables package:

Code:

apt-get install iptables
create the following 2 files:

/etc/udev/rules.d/98-bnep0.rules:

Code:

ACTION=="add", SUBSYSTEM=="net",  KERNEL=="bnep0", RUN+="/etc/udev/bluenet.sh"
ACTION=="remove", SUBSYSTEM=="net",  KERNEL=="bnep0", RUN+="/etc/udev/bluenet.sh"

/etc/udev/bluenet.sh:

Code:

#! /bin/sh
if [ $ACTION = "add" ]; then
        echo 1 > /proc/sys/net/ipv4/ip_forward
        iptables -t nat -A POSTROUTING ! -o lo -j MASQUERADE
        ifconfig bnep0 192.168.3.1
        ifconfig bnep0 up
        /usr/sbin/dnsmasq -I lo -z -a 192.168.3.1 -F 192.168.3.64,192.168.3.127 -x /var/run/dnsmasq.pid.bnep0
else
        iptables -t nat -D POSTROUTING ! -o lo -j MASQUERADE
        if [ -f /var/run/dnsmasq.pid.bnep0 ]; then
                DNSMASQ_PID=`cat /var/run/dnsmasq.pid.bnep0`
                rm -f /var/run/dnsmasq.pid.bnep0
                kill $DNSMASQ_PID
      fi
fi

then set /etc/udev/bluenet.sh as executible:

Code:

chmod +x /etc/udev/bluenet.sh
now whenever an authorised remote device makes a bluetooth pan (nap) connection iptables and dnsmasq are setup to allow that device access to the phones network. TODO: when no internet connection is active ask to set it up

dredlok706 2021-12-27 14:19

Re: Creating AP hotspot from N900 - possible?
 
Will try, but now I will make rootfs and optfs backup in BackupMenu ;)
So what I need to do? Send me commands I need to run.
1.Do I need to remove network from disabled plugins?
2. Do I need to install "libicd-network-null"?
3. Or do I just need to use everything from after "Using genwall for internet connection sharing over bluetooth, follow:(Linux/Windows). "? 3. Do I need to use genwall?
P.S. I have CSSU testing and kernel-power

biketool 2021-12-27 20:26

Re: Creating AP hotspot from N900 - possible?
 
I would just mount the drives and then use backupmenu to access the / filesystem, since you dont have clean backups, and delete the two files you made.
/etc/udev/rules.d/98-bnep0.rules
/etc/udev/bluenet.sh
Then try to reboot.
If that doesn't fix the problem then it seems that other files have been edited or deleted.
If the above doesn't work I hope you have clean backups.
If deleting the two files doesn't work then it is something other than the BT tethering that has gone wrong.

sicelo 2021-12-28 21:15

Re: Creating AP hotspot from N900 - possible?
 
Quote:

Originally Posted by biketool (Post 1573181)
I recommend bypassing wifi and choose a better solution.
https://wiki.maemo.org/Bluetooth_PAN
Lower power consumption, more secure pairing, same useable bandwidth.
I have used this after moving house until hardwired telephone and data are connected as well as mobile computers, tablets, and other equipment needing wireless internet or data linking.

Don't most Android phones have no (builtin?) ability to source internet via bluetooth?

dredlok706 2021-12-29 08:11

Re: Creating AP hotspot from N900 - possible?
 
Quote:

Originally Posted by biketool (Post 1573191)
I would just mount the drives and then use backupmenu to access the / filesystem, since you dont have clean backups, and delete the two files you made.
/etc/udev/rules.d/98-bnep0.rules
/etc/udev/bluenet.sh
Then try to reboot.
If that doesn't fix the problem then it seems that other files have been edited or deleted.
If the above doesn't work I hope you have clean backups.
If deleting the two files doesn't work then it is something other than the BT tethering that has gone wrong.

I haven't made backup, unfortunately. I reflashed rootfs, and my N900 is alive again :)
I think I give up. Too dangerous and hard for me. I will stay with replacing SIM card (from N900 to tablet for example). Thank you for all help, topic can be closed ;)


All times are GMT. The time now is 03:03.

vBulletin® Version 3.8.8