LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-13-2005, 10:58 AM   #1
riccisit
Member
 
Registered: Jun 2004
Posts: 59

Rep: Reputation: 15
gnubox : giving a nokia phone a bluetooth internet access


Dear Linux users,

I'd like to give my Nokia N-gage QD the internet connection via Bluetooth from my Linux box. I need this trick as I develop mobile sites and I'd like to see them on a real phone.
This was possible with my old xp, but I don't want to come back to that horrible OS.

I can share everything between Linux and Nokia N-Gage through Bluetooth (I use Kbluetoothd).

Doing some Google search, I met someone talking about GNUBOX. I tried it, but it doesn't work even if everything goes right setting up both the phone and the Linux box.

Now I've a doubt : as I take internet connection via wireless card, can a Linux box forward this kind of internet connection ?

Or, easier, anyone has my problem, maybe with some other Nokia phone using GNUBOX ? Anyone managed to work the connection ?

Thanks
Fabio
 
Old 03-25-2006, 05:22 AM   #2
sri_ram1982
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
Smile

Hai i am new to linux.I have an N-Gage mobile but i donot know how to configure for dialup network in linuxin suse linux.I can transfer files from the hdd to mobile.
 
Old 03-25-2006, 09:01 AM   #3
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
Hi,

Don't know if it will be of any use, but I connect to the Internet usinf bluetooth from my Palm T5 PDA via my Fedora Core 4 box.

What it boils down to is getting bluetooth configured, a PPP connection up and running on request from the PDA and sorting out the IP routing.

The standard FC4 bluetooth packages (bluez-utils etc.) provide all the required tools but requires a bit of configuring to get bluetooth active and advertising the right services etc.

Service start-up runs 'hcid' for event handling, 'sdpd' for service discovery and 'rfcomm' to provide a socket interface. A dial-up network daemon 'dund' is run for the appropriate connection events that then runs 'ppp' for the IP connection.

How this would apply to you set-up, I don't know. If you are using FC4 let me know and I can supply the configuration files I use.

Took me about a week of evenings to get it working reliably.

Have Fun!

--DaveG
 
Old 03-25-2006, 12:47 PM   #4
sri_ram1982
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
Bluetooth DUN in Linux

I use Fedora core 4.So pls send me the scripts you have.Good night we will meet tomorrow.
 
Old 03-27-2006, 05:17 AM   #5
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
FC4 packages (base): bluez-hcidump-1.18-1, bluez-utils-2.15-7, bluez-libs-devel-2.15-1, bluez-libs-2.15-1, bluez-pin-0.24-2, ppp-2.4.2-7.

/etc/bluetooth/hcid.conf:
# HCId options
options {
# Automatically initialize new devices
autoinit yes;

# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;

# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;

# PIN helper
#pin_helper /usr/bin/bluepin;

# D-Bus PIN helper
dbus_pin_helper;
}

# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";

# Local device class
class 0x120104;

# Default packet type
#pkt_type DH1,DM1,HV1;

# Inquiry and Page scan
iscan enable; pscan enable;

# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;

# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;

# Authentication and Encryption (Security Mode 3)
#auth enable;
#encrypt enable;
}

/etc/bluetooth/rfcomm.conf: all commented out.

/etc/bluetooth/pin: single line containing your PIN string. e.g. "1234".

/etc/sysconfig/dund:
DUNDARGS='--listen --persist -pppd file /etc/ppp/options.pda'

/etc/sysconfig/hidd:
HIDDARGS="--server"

/etc/sysconfig/pand:
PANDARGS='--listen --role NAP'

/etc/ppp/options.pda
#
# PPP Options for PDA connections.
#
local
passive
auth
name usb
ktune
noipv6
proxyarp
asyncmap 0
ms-dns <your DNS server IP>
# e.g. ms-dns 192.168.1.1
ms-wins <your WINS server IP>
# e.g. ms-wins 192.168.1.16

/etc/ppp/options.rfcomm0:
<server IP>:<device IP>
# e.g. 192.168.99.16:192.168.1.24
linkname rfc0

Notes:
The bluetooth PIN for the server must be set up.
The device and server need to "trust" each other.
PPP will use system defaults plus 'options.pda' for the connection plus 'options.<device>'. The first bluetooth socket will be named 'rfcomm0'. This is used to assign an IP address to the device.
Router and firewall issues are avoided by using proxy ARP - the bluetooth device is assigned an IP address in the same range as the local network and the server does most of the work.
Remove the 'auth' entry in 'options.pda' if you don't want to set up PPP PAP/CHAP passwords.
Enable services; bluetooth, dund and pand.

Typical /var/log/messages for a bluetooth connect-disconnect:
dund[26552]: New connection from <ethernet address>
kernel: CSLIP: code copyright 1989 Regents of the University of California
kernel: PPP generic driver version 2.4.2
pppd[26560]: pppd 2.4.2 started by root, uid 0
pppd[26560]: Using interface ppp0
pppd[26560]: Connect: ppp0 <--> /dev/rfcomm0
kernel: PPP Deflate Compression module registered
pppd[26560]: found interface eth0 for proxy arp
pppd[26560]: local IP address 192.168.99.16
pppd[26560]: remote IP address 192.168.1.24
pppd[26560]: IPCP terminated by peer
pppd[26560]: LCP terminated by peer
pppd[26560]: Hangup (SIGHUP)
pppd[26560]: Modem hangup
pppd[26560]: Connection terminated.
pppd[26560]: Connect time 0.5 minutes.
pppd[26560]: Sent 1206 bytes, received 1452 bytes.
pppd[26560]: Connect time 0.5 minutes.
pppd[26560]: Sent 1206 bytes, received 1452 bytes.
pppd[26560]: Exit.


Hope that helps. Let me know if I've forgotten anything.

--DaveG.
 
Old 03-27-2006, 10:33 AM   #6
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
Just found something else that may be of interest to the Phone Phreaks:
http://www.fenrus.org/tomtom/
Using a Linux server to emulate a GPRS phone for a TomTom Sat Nav.

--DaveG
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing internet through "Bluetooth phone" + GPRS saravkrish Linux - Networking 6 06-28-2006 12:22 PM
Bluetooth Internet Access form Suse to XP Config supwiddiss Linux - Networking 1 10-15-2005 09:16 AM
linux support for internet over bluetooth to cell phone? edman007 Linux - Hardware 3 09-08-2005 03:08 PM
Connecting to the internet using a nokia 6230 and bluetooth pmprichard Linux - Laptop and Netbook 4 05-16-2005 01:12 PM
Backing up Nokia 8310 phone Tom Cumming Linux - Laptop and Netbook 1 11-28-2004 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration