Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pand totally missing from gentoo box
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mousedrx
n00b
n00b


Joined: 20 Jun 2007
Posts: 27

PostPosted: Sat Mar 29, 2008 12:41 pm    Post subject: pand totally missing from gentoo box Reply with quote

Hi all!
I am trying N-th day to setup a bluetooth PAN...
Followed off course many documentaries over internet,
they all are telling me at some point to run the following command:
8)# pand --listen --role NAP8)[/b]
Well, pand seems to be not found at all in my binaries...
More than that, it seems to reside inside bluez-pan package
but gentoo's portage is missing it, too.
I think it is time to suck windows milkbottle..
Or there exist any solutions? :?: 8)
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sat Mar 29, 2008 5:07 pm    Post subject: Reply with quote

Did you read these docs? http://www.gentoo.org/doc/en/bluetooth-guide.xml
Back to top
View user's profile Send private message
mousedrx
n00b
n00b


Joined: 20 Jun 2007
Posts: 27

PostPosted: Sat Mar 29, 2008 7:37 pm    Post subject: Reply with quote

Well, that was my bible for bluetooth...
I used it as my start point when connected a Motorola to my PC via bluetooth.
Let be closer to problem: where Setting up a Personal Area Network (PAN) section is beginning,
I see these words: We have to start the pand daemon in the host that will provide the NAP.
No explanation where it is taken from -- they assume it already exists on my gentoo distro?
But running pand as root gives me only an answer from bash that command not found:
which: no pand in (/sbin:/bin:/usr/sbin:/usr/bin).
Maybe kernel is quilty? Here are some snapshots from it:
Code:

--- Bluetooth subsystem support
<M>   L2CAP protocol support
<M>   SCO links support
<M>   RFCOMM protocol support
[*]     RFCOMM TTY support
<M>   BNEP protocol support
[*]     Multicast filter support
[*]     Protocol filter support
<M>   HIDP protocol support
Bluetooth device drivers  --->
    <M> HCI USB driver
    [*]   SCO (voice) support
    <M> HCI UART driver
    [*]   UART (H4) protocol support
    [*]   BCSP protocol support
    <M> HCI BCM203x USB driver
    <M> HCI BPA10x USB driver
    <M> HCI BlueFRITZ! USB driver
    < > HCI VHCI (Virtual HCI device) driver


On USB -- OHCI,UHCI,EHCI -- all are enabled;
Have I missed something?

P.S.: address of my bluetooth dongle is 11:11:11:11:11:11. Is it normal? :roll:
P.P.S.: bluez-utils is emerged...
Back to top
View user's profile Send private message
mousedrx
n00b
n00b


Joined: 20 Jun 2007
Posts: 27

PostPosted: Sat Mar 29, 2008 8:00 pm    Post subject: Reply with quote

Well, just now I succeeded to do a rfcomm connection between my laptop and PC,
but still don't know what to do with this to provide an inet link to my laptop (PC is connected);
That means drivers are O.K., settings also...
- -
Still carrying an UTP cable-reel with myself anywhere I go with laptop... Funny! :wink:
Back to top
View user's profile Send private message
mousedrx
n00b
n00b


Joined: 20 Jun 2007
Posts: 27

PostPosted: Sun Mar 30, 2008 8:42 am    Post subject: Reply with quote

Somebody...
Anybody...
.....
Back to top
View user's profile Send private message
MorpheuS.Ibis
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2006
Posts: 143

PostPosted: Sun Mar 30, 2008 9:37 am    Post subject: Reply with quote

i am using BT to connect my ipaq (old one, no wifi) to my computer and the Internet.

Code:
qfile pand
net-wireless/bluez-utils (/usr/bin/pand)


Code:
# Bluetooth configuraton file

# Start of hcid (allowed values are "true" and "false")
HCID_ENABLE=true

# Config file for hcid
HCID_CONFIG="/etc/bluetooth/hcid.conf"

# Start sdpd (allowed values are "true" and "false")
SDPD_ENABLE=true

# Start hidd (allowed values are "true" and "false")
HIDD_ENABLE=false

# Arguments to hidd
HIDD_OPTIONS=""

# Run hid2hci (allowed values are "true" and "false")
HID2HCI_ENABLE=false

# Bind rfcomm devices (allowed values are "true" and "false")
RFCOMM_ENABLE=true

# Config file for rfcomm
RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"

# Start dund (allowed values are "true" and "false")
# If you want to use dund, you must install: net-dialup/ppp .
DUND_ENABLE=false

# Arguments to dund
DUND_OPTIONS="--listen --persist"

# Start pand (allowed values are "true" and "false")
PAND_ENABLE=true

# Arguments to pand
PAND_OPTIONS="--listen --role NAP"


try
http://gentoo-wiki.com/HOWTO_Configure_a_bluetooth_network_access_point
Back to top
View user's profile Send private message
mousedrx
n00b
n00b


Joined: 20 Jun 2007
Posts: 27

PostPosted: Sun Mar 30, 2008 1:50 pm    Post subject: Reply with quote

While crawling through various forums, I already get one difference between std gentoo bluetooth guide
and the reality: they say that sdpd is deprecated and not used anymore, while gentoo's guide is telling vice-versa...

Maybe this is the key:
Code:

mousedrx mousedrx # hcitool --help
hcitool - HCI Tool ver 3.28
Usage:
   hcitool [options] <command> [command parameters]
Options:
   --help   Display help
   -i dev   HCI device
Commands:
   dev    Display local devices
   inq    Inquire remote devices
   scan   Scan for remote devices
   name   Get name from remote device
   info   Get information from remote device
   spinq   Start periodic inquiry
   epinq   Exit periodic inquiry
   cmd    Submit arbitrary HCI commands
   con    Display active connections
   cc     Create connection to remote device
   dc     Disconnect from remote device
   sr     Switch master/slave role
   cpt    Change connection packet type
   rssi   Display connection RSSI
   lq     Display link quality
   tpl    Display transmit power level
   afh    Display AFH channel map
   lst    Set/display link supervision timeout
   auth   Request authentication
   enc    Set connection encryption
   key    Change connection link key
   clkoff   Read clock offset
   clock   Read local or remote clock


Notice that line: cc Create connection to remote device -- probably this is newer pand?
I didn't test this yet, but will try to backtrack...
Wish me luck... or tell me that I'm sisif...
Back to top
View user's profile Send private message
mousedrx
n00b
n00b


Joined: 20 Jun 2007
Posts: 27

PostPosted: Mon Mar 31, 2008 5:51 pm    Post subject: Reply with quote

Answering to myself: no, it isn't...
Back to top
View user's profile Send private message
mousedrx
n00b
n00b


Joined: 20 Jun 2007
Posts: 27

PostPosted: Wed Apr 02, 2008 9:15 am    Post subject: Reply with quote

Closing topic: you just ahve to emerge the new bluez-utils with the following USE flag enabled:
Code:

# USE='old-daemons' emerge -pv bluez-utils
[ebuild   R   ] net-wireless/bluez-utils-3.28-r1  USE="alsa cups gstreamer hal old-daemons usb -debug -examples -test-programs" 0 kB
#


and pand appears to be present this time...

P.S. I still could not setup a Bluetooth network between laptop and PC...
This is because class of laptop BT adapter is 0x00XXXX, meaning no network capabilities...
Shame for ASSUSS!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum