Active Topics

 


Reply
Thread Tools
Posts: 263 | Thanked: 301 times | Joined on Oct 2021 @ Poland
#1
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
__________________
My Telegram group (Maemo / MeeGo / Sailfish):
https://t.me/linuxmobile_world
Channel for Maemo/MeeGo:
https://t.me/maemomeegoapps
 
Maemish's Avatar
Posts: 1,718 | Thanked: 4,764 times | Joined on Apr 2018 @ Helsinki, Finland.
#2
Have you checked if HEN can do the trick?
__________________
"I don't know how but I can try!" (active)

Master of not knowing (active)

For me it is possible to get lost in any case (active)

Learning to fall from high (DONE)

Learning to code with BASIC (WIP)
 
Posts: 1,424 | Thanked: 2,622 times | Joined on Jan 2011 @ Touring
#3
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.
 

The Following 2 Users Say Thank You to biketool For This Useful Post:
Posts: 263 | Thanked: 301 times | Joined on Oct 2021 @ Poland
#4
Your link bricked my N900!!!
__________________
My Telegram group (Maemo / MeeGo / Sailfish):
https://t.me/linuxmobile_world
Channel for Maemo/MeeGo:
https://t.me/maemomeegoapps
 
Posts: 263 | Thanked: 301 times | Joined on Oct 2021 @ Poland
#5
It can't boot now after making this things that link says
__________________
My Telegram group (Maemo / MeeGo / Sailfish):
https://t.me/linuxmobile_world
Channel for Maemo/MeeGo:
https://t.me/maemomeegoapps
 
Posts: 1,424 | Thanked: 2,622 times | Joined on Jan 2011 @ Touring
#6
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
 

The Following 4 Users Say Thank You to biketool For This Useful Post:
Posts: 263 | Thanked: 301 times | Joined on Oct 2021 @ Poland
#7
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, followLinux/Windows). "? 3. Do I need to use genwall?
P.S. I have CSSU testing and kernel-power
__________________
My Telegram group (Maemo / MeeGo / Sailfish):
https://t.me/linuxmobile_world
Channel for Maemo/MeeGo:
https://t.me/maemomeegoapps

Last edited by dredlok706; 2021-12-27 at 14:38.
 
Posts: 1,424 | Thanked: 2,622 times | Joined on Jan 2011 @ Touring
#8
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.
 
Community Council | Posts: 685 | Thanked: 1,234 times | Joined on Sep 2010 @ Mbabane
#9
Originally Posted by biketool View Post
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?
__________________
RX-51
 
Posts: 263 | Thanked: 301 times | Joined on Oct 2021 @ Poland
#10
Originally Posted by biketool View Post
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
__________________
My Telegram group (Maemo / MeeGo / Sailfish):
https://t.me/linuxmobile_world
Channel for Maemo/MeeGo:
https://t.me/maemomeegoapps
 
Reply

Tags
hotspot


 
Forum Jump


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