LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-27-2016, 12:45 AM   #1
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Any Successful Headless Bluetooth PAN Setups in 2016?


Background: I have a mythtv frontend running Debian Testing and connected via HDMI to the flat panel.

If the monitor is ON, then bluetooth PAN works using blueman and dnsmasq as the gateway. If the monitor is turned off, the xorg session with blueman running, "goes away." No more blueman.

I'm wondering if anyone has set up bluetoothd on Debian Testing in 2016 without using a display.

Last edited by mpapet; 09-27-2016 at 12:47 AM.
 
Old 09-27-2016, 05:13 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Bluetooth command line. Hope it helps you get started.
 
Old 09-30-2016, 12:25 AM   #3
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Original Poster
Rep: Reputation: 72
I think I have the headless bluetooth network figured out. I'm using Debian Stretch, which is "testing" at the moment.

These are very incomplete instructions.

You need everything bluetooth and bluez-related including bluez-firmware. Ideally your bluetooth radio is supported. Be sure bluetoothd is not running after installation. systemctl stop bluetooth (??) Be sure it's actually dead "ps aux | grep bluetooth."


Modify /etc/bluetooth/main.conf and change the class to Class = 0x020100 The byte-values are very meaningful and old documentation seems to be valid.

Open up a terminal and start bluetothd without backgrounding "bluettothd -n --debug"
Set up an ethernet bridge with your NIC as one of the devices in the bridge. Give the bridge a LAN address of your choosing.
Open up another terminal. launch bluetoothctl. "Power on", "pairable on" "agent on" and leave bluetoothctl running.
This next part might not do anything.
launch /usr/bin/bt-network -d -s panu pan0 in another terminal and leave that window open.

Open up another terminal and visit this URL and download this very important script. https://github.com/mk-fg/fgtk/blob/master/bt-pan. The command for bt-pan.py python bt-pan.py --debug -u nap server $your-ethernet-bridge

Pair your device watching bluetoothctl. Internet access should "just work" after pairing. For me, there was no bt network device like a /dev/pan0 created. Somehow the python script adds the bluetooth device to the network bridge without any evidence of the bluetooth device being added to the bridge.

Last edited by mpapet; 10-03-2016 at 11:45 AM.
 
  


Reply

Tags
bluetooth



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
bluetooth PAN gee182 Linux - Networking 2 03-05-2016 05:05 AM
[SOLVED] Slackware 13 bluetooth PAN 0rphu Slackware 1 10-03-2009 10:08 AM
Slackware and PAN/Piconet (Over bluetooth) ljones0 Slackware 5 03-02-2009 02:03 PM
How to use Bluetooth PAN to communicate in Fedora 3 chen8002004 Fedora 0 01-10-2006 08:25 PM
Bluetooth PAN Network HaPagan Linux - Networking 1 09-23-2005 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:01 AM.

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