public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Rafael Vidal Aroca <rafael@3wt.com.br>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Initialization script
Date: Tue, 28 Sep 2004 16:58:42 -0300	[thread overview]
Message-ID: <4159C272.1080601@3wt.com.br> (raw)


    Hello people,

    i'm very happy using bluez tools as a wireless internet gateway to 
my ipaq via my linux box.

    I'll report the way i did it in case anyone is interested:

    added the lines to /etc/modules.conf:
   
    alias net-pf-31 bluez
    alias bt-proto-0 l2cap
    alias bt-proto-2 sco
    alias bt-proto-3 rfcomm
    alias bt-proto-4 bnep
    alias tty-ldisc-15 hci_uart
    alias char-major-10-250 hci_vhci

    Run the following commands:
    ---------------------------------------
    hciconfig hci0 up
    hcid
    sdpd
    /opt/kde/bin/kbluetoothd
    pand --listen --role NAP
    dund --listen
    dund --listen --msdun call dun
    echo 1 > /proc/sys/net/ipv4/ip_forward                        
    iptables -t nat -A POSTROUTING -j MASQUERADE -o eth0

    And set a peer called dund in /etc/ppp/peers.

    All worker nicely!  


    The only problem i have is that i have to issue these commands every 
time i turn the computer on.

    I tried to edit hotplug's bluefw script so that after inserting my 
usb bluetooth dongle, and loading the firmware, i get all user space 
apps running.

    But it does not work!
    Yes, if i issue a ps, i see that all needed daemons are running, but 
when my ipaq searches for services, if fails....

    any hint to this strange behavior?

thanks
[]s Rafael.




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

                 reply	other threads:[~2004-09-28 19:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4159C272.1080601@3wt.com.br \
    --to=rafael@3wt.com.br \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox