Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-13-2005, 10:58 AM
|
#1
|
Member
Registered: Jun 2004
Posts: 59
Rep:
|
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
|
|
|
03-25-2006, 05:22 AM
|
#2
|
LQ Newbie
Registered: Jul 2005
Posts: 15
Rep:
|
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.
|
|
|
03-25-2006, 09:01 AM
|
#3
|
Member
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161
Rep:
|
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
|
|
|
03-25-2006, 12:47 PM
|
#4
|
LQ Newbie
Registered: Jul 2005
Posts: 15
Rep:
|
Bluetooth DUN in Linux
I use Fedora core 4.So pls send me the scripts you have.Good night we will meet tomorrow.
|
|
|
03-27-2006, 05:17 AM
|
#5
|
Member
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161
Rep:
|
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.
|
|
|
03-27-2006, 10:33 AM
|
#6
|
Member
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|