Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set up PAN networking on Raspbian Stretch (use sudo to create these files and run all commands)
# in /etc/systemd/system
[Unit]
Description=Bluetooth Agent
[Service]
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
Type=simple
[Install]
WantedBy=multi-user.target
# in /etc/systemd/system
[Unit]
Description=Bluetoot PAN
After=pan0.network
[Service]
ExecStart=/usr/bin/bt-network -s nap pan0
Type=simple
[Install]
WantedBy=multi-user.target
# in /etc/systemd/network
[NetDev]
Name=pan0
Kind=bridge
# in /etc/systemd/network
[Match]
Name=pan0
apt-get install bluez-tools
# place other files
systemctl enable systemd-networkd
systemctl start systemd-networkd
systemctl enable bt-agent
systemctl start bt-agent
systemctl enable bt-network
systemctl start bt-network
bt-adapter --set Discoverable 1
@tdegrunt

This comment has been minimized.

Copy link

commented Jul 16, 2019

Thanks for the gist!
Had to run apt install bluez to get bluetoothd, which seemed to be missing.

@rcarmo

This comment has been minimized.

Copy link
Owner Author

commented Jul 16, 2019

Oh, right. I already had it in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.