首先安装bluez, obexfs

1
sudo pacman -S bluez obexfs

启动bluetooth(也可以加入/etc/rc.conf的daemon中)

1
/etc/rc.d/bluetooth start

获取蓝牙的mac地址

1
hcitool scan

启动另外一个term,然后进行连接,如:

1
bluez-simple-agent hci0 00:26:37:45:29:8F

在其他term中可以进行文件传输了:

1
obexftp -b 00:26:37:45:29:8F -p xxx.txt