Edit: After learning a bit of
sed magic, this is now a single script.
This Works For Me™, and I hope it works with other phones and on other distributions as well, but no guarantees.
- Download synchronize-bluetooth.sh.
chmod u+x synchronize-bluetooth.sh
sudo apt-get install gnokii
- Setup Gnokii (replace the phone name):
echo -e "[global]\nmodel = 6510\nport = $(hcitool scan | grep 'phone name' | cut --fields=2)\nconnection = bluetooth" > ~/.gnokiirc
- Turn Bluetooth on on the computer and the phone.
- Pair the computer and phone. On Ubuntu, simply click the Bluetooth icon and follow the "Set up new device..." wizard.
- If you want to copy your existing contacts to disk, you can run
./synchronize-bluetooth.sh -r > phone.vcf
- To copy vCards to the phone, overwriting the existing contacts, run
cat *.vcf | ./synchronize-bluetooth.sh -f
synchronize-bluetooth.sh works only with the internal phone memory. Address book entries stored in the SIM card, phone log or elsewhere will not be read or written.
Some features of the script:
- Works with plain
/bin/sh, so it should work on any Linux / BSD distribution.
- Has separate parameters to read, write and flush contacts.
If you have problems sending the vCards to your phone, you may want to validate them first.