Reply
Thread Tools
Posts: 716 | Thanked: 303 times | Joined on Sep 2009 @ Sheffield, UK
#21
Personally, I think WiFi would be the better solution than Bluetooth but I have not heard of anyone getting it working as a MiFi yet.

Glad to know it works easily over USB though. I was shocked how easy my 3G USB dongle works in Linux these days, a lot better/easier than in Windows in fact.
 
Posts: 22 | Thanked: 13 times | Joined on Nov 2009
#22
I got my Mac to tether through my N900 using that unsupported BT DUN script

The script runs as root, which I created by ssh'ing into the phone as root (with openssh server installed). What is a good way to just get it to run whenever the phone boots and continue to run? Hack a script into the /etc/init.d dir and link it to /etc/rc2.d/ (since it appears that the default run level is 2 on this).
 
johnkzin's Avatar
Posts: 1,878 | Thanked: 646 times | Joined on Sep 2007 @ San Jose, CA
#23
Originally Posted by Alex Atkin UK View Post
Personally, I think WiFi would be the better solution than Bluetooth but I have not heard of anyone getting it working as a MiFi yet.
I absolutely agree. Though others may chime in about it ravaging your battery life. Still, the ubiquity of wifi these days is greater than that of USB tethering, BT DUN, or BT PAN. IMO, it's easier, and more likely, that you'll be able to get your devices to talk to your N900 if it's acting as an access point, than through the other methods.

There just needs to be a "low power wifi" mode that's more commonly implemented. Something where all of the devices involved only expect to be within 1-2 meters of each other. That would probably help the battery life issue quite a bit.
__________________
My Personal Blog
 
Posts: 3 | Thanked: 0 times | Joined on Dec 2009 @ Alkmaar, Netherlands
#24
I've made a howto for getting tethering using Bluetooth work on Ubuntu Karmic .. It's focussed on DUN, not PAN (yet)..
 
Posts: 1 | Thanked: 0 times | Joined on Feb 2010
#25
I've got a tethering howto for USB for linux. Tried with kubuntu 9.10 but should work with anything else. This uses wvdial.
 
Posts: 282 | Thanked: 337 times | Joined on Dec 2009 @ Austin, TX, USA
#26
I had no problem tethering Ubuntu. Everything basically set itself up. The only tricky part was that you have to select "PC Suite" as the option on the phone when you connect it.
 
Posts: 208 | Thanked: 69 times | Joined on Nov 2009 @ saint petersburg, fl
#27
Originally Posted by Alex Atkin UK View Post
Personally, I think WiFi would be the better solution than Bluetooth but I have not heard of anyone getting it working as a MiFi yet.

Glad to know it works easily over USB though. I was shocked how easy my 3G USB dongle works in Linux these days, a lot better/easier than in Windows in fact.
MiFi would kill your battery. You would have to be connected to the charger. Bluetooth uses much less power. MiFi should only be the option if you do not have bluetooth or your usb cable.
 
Posts: 48 | Thanked: 8 times | Joined on Oct 2009
#28
works fine on my Aspire One running Ubuntu Netbook remix, in fact, it was originally set up to use my e90 but plugging teh N900 in teh vodafone connection was available and worked out teh box. I do have Bluetooth DUN installed if that makes a difference.
 
Posts: 197 | Thanked: 101 times | Joined on Dec 2009 @ Netherlands
#29
Based on the usb wiki by dartarrow I setup my n900 as a router so I can access internet on my fedora 12 laptop via the cellular network without dun or wvdial. So the n900 is still fully usable. See below script that includes all the documentation.

Code:
#!/bin/sh
#
# usbnet.sh - script to setup the N900 as an ip router
#
# Author:   Mirakels 
#
# Date:     may 2010
#
# This script and documentation sets up the N900 as a router
# between your PC and the wlan/cellphone on your n900.
#
# We need to setup the usb device, allow forwarding and
# masquerade all traffic going outside...
# to get simple dns working on your PC we als need to update
# dnsmasq on the n900.
# 
#
# Preparations
# ============
# So you need the iptables package (apt-get install iptables)
# and a kernel that supports iptables (don't know if the
# default kernel supports iptables. I use the titan overclock
# kernel)
#
# Note the preparation woork needs to be done as root...
# 
#
# SETUP USB0
# ----------
# Changed usb0 definition in /etc/network/interfaces
# from:
#      auto usb0
#      iface usb0 inet static
#              address 192.168.2.15
#              netmask 255.255.255.0
#              gateway 192.168.2.14
#
# to:
#      auto usb0
#      iface usb0 inet static
#              address 192.168.50.1
#              netmask 255.255.255.0
#
# I just picked the 192.168.50.x subnet to act as the intermediate
# network. It should be a subnet that is not used within your campus.
#
# SETUP DNSMASQ
# -------------
# Changed dnsmasq exec line in /etc/event.d/dnsmasq
# from:
#      exec /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z 
#
# to:
#      exec /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z -i usb0
#
# So it also listens on the usb0 network interface for dns queries
#
#
# With above steps the n900 is prepared to act as a router.
#
# STARTUP
# =======
# Connect the n900 with the usb cable to your laptop.
# When the n900 asks for 'mass storage' or 'PCsuite',
# select 'PCsuite'.
#
# Run this script without options, e.g.:
#
#       sudo gainroot
#       /home/user/usbnet.sh
#
# This will start he usb0 network device, allow
# ip forwarding and sets up masquerading.
#
# Now it is time to do some steps on your laptop/PC.
# The steps depend on your laptop OS. For my Fedora 12
# system I will see a new network interface called usb0.
# All I need to do now as root is:
#
#   ifconfig usb0 192.168.50.2
#   route add default gw 192.168.50.1
#   echo "nameserver 192.178.50.1" > /etc/resolv.conf
#
# and I have internet access from the laptop through the n900
# while the n900 still can be used as fully functional network
# device and phone.
#
# The nice thing in this setup is that I can still monitor the
# total traffic  through the cell phone network via the n900
# dataplan tool.
#
# PS: I tried to defined the usb0 network in network manager
#     but then I need a MAC address of the usb0 device to define
#     the connection. Unfortunately the MAC address seems to
#     be a random address so changes every time the usb connection
#     is recreated.
#
#
# To stop acting as a router run this script again with some
# dummy command line argument
#
#       sudo gainroot
#       /home/user/usbnet.sh done

if [ -z "$1" ] ; then
    echo "Starting network and forwarding through usb0"
    ifup usb0
    echo 1 > /proc/sys/net/ipv4/ip_forward
    iptables -t nat -A POSTROUTING -o gprs0  -j MASQUERADE
    iptables -t nat -A POSTROUTING -o wlan0  -j MASQUERADE
else
    echo "Stopping network and forwarding through usb0"
    ifdown usb0
    echo 0 > /proc/sys/net/ipv4/ip_forward
    iptables -t nat -D POSTROUTING -o gprs0  -j MASQUERADE
    iptables -t nat -D POSTROUTING -o wlan0  -j MASQUERADE
fi

#
# The End
#
 

The Following User Says Thank You to mirakels For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#30
Originally Posted by x61 View Post
This is strange. The N900 is linux based phone yet it is not "out-of-the-box" ready to work with linux.
"Linux" is just the name of the kernel. The distribution on the phone is Maemo - Fremantle.
Out-of-the-box compatibility with every single feature of a desktop machine would be resource wasteful for a phone.
If you *do* want it, it's easily installable - either from Nokia repositories or community repositories.

In other words, "there's a *free* app for that".
Enjoy your N900.
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:35.