2022-05-24 19:00:04 +01:00
|
|
|
---
|
2024-06-15 11:30:03 +01:00
|
|
|
tags:
|
|
|
|
- networks
|
|
|
|
- procedural
|
|
|
|
- Linux
|
2022-05-24 19:00:04 +01:00
|
|
|
---
|
|
|
|
|
2022-09-06 13:26:44 +01:00
|
|
|
# Bluetooth
|
2022-05-24 19:00:04 +01:00
|
|
|
|
|
|
|
## Connect to devices with `bluetoothctl`
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Start bluetooth first
|
|
|
|
bluetoothctl power on
|
|
|
|
```
|
2022-09-06 13:26:44 +01:00
|
|
|
|
|
|
|
Then:
|
2022-05-24 19:00:04 +01:00
|
|
|
|
|
|
|
```bash
|
2022-09-06 13:26:44 +01:00
|
|
|
# Launch bluetoothctl
|
2022-05-24 19:00:04 +01:00
|
|
|
bluetoothctl
|
|
|
|
```
|
2022-09-06 13:26:44 +01:00
|
|
|
|
|
|
|
This initiates `[bluetooth] #` prompt. Then follow this sequence:
|
2022-05-24 19:00:04 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
[bluetooth]# agent on
|
|
|
|
[bluetooth]# default-agent
|
|
|
|
[bluetooth]# scan on
|
|
|
|
pair [device_code]
|
|
|
|
connect [device_code]
|
|
|
|
```
|