Simple bash script for managing Bluetooth and transferring files via Bluetooth.
- Make script executable:
chmod +x bluedrop.sh- For global access, copy to
/usr/local/bin:
sudo cp bluedrop.sh /usr/local/bin/bluedropInstall required packages:
# Ubuntu/Debian
sudo apt install bluetooth bluez obexftp
# Fedora/RHEL
sudo dnf install bluez obex-data-serverbluedrop [command] [options]on- Turn on Bluetoothoff- Turn off Bluetooth--scan- Scan for devices and show pairing statusrefresh- Restart Bluetooth service and rescan<file> <device>- Send file to device
# Turn on Bluetooth
bluedrop on
# Scan for devices
bluedrop --scan
# Send file
bluedrop /path/to/file.txt "Device Name"- Linux with systemd
- Bluetooth adapter
- Root/sudo access for service management