Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2339  / 1 Year ago, sun, may 7, 2023, 9:23:11

How do you configure Ubuntu Server to automatically receive files over Bluetooth and save them with no user interaction?



This question is almost identical to this question from 2 years ago, but relates to Ubuntu Server, where no GUI is available.



Edit: To clarify, this question is not about pairing Bluetooth devices, but about making an Ubuntu Server machine automatically accept Bluetooth file transfers. This question is not a duplicate.


More From » server

 Answers
7

A good solution that @wilf and I found was to install obexpushd, a daemon that will accept incoming OBEX (and therefore Bluetooth) file transfers and save the files to its working directory.



Just apt-get install obexpushd, and run it in the directory you want the files to be saved in. Or, if you'd like it to start with your machine, here's a simple Upstart job file that should do the trick:




chdir /home/USERNAME

exec obexpushd -n

start on startup




Save the above as /etc/init/obexpushd.conf (making sure to change the first line to point to the directory you'd like the files to be saved), run initctl reload-configuration, and start obexpushd.



Once you've paired your Bluetooth device with your machine, you should be able to send files to it without having to manually accept the transfer.


[#27375] Sunday, May 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eanda

Total Points: 439
Total Questions: 116
Total Answers: 105

Location: Armenia
Member since Sat, Dec 31, 2022
1 Year ago
eanda questions
Tue, Nov 22, 22, 15:24, 1 Year ago
Sat, Oct 16, 21, 23:48, 3 Years ago
Sun, Jul 3, 22, 09:38, 2 Years ago
Thu, Feb 3, 22, 14:33, 2 Years ago
;