Bluetooth

Audio

As root:

install  bluez  pulseaudio  pulseaudio-module-bluetooth  # bluez 5 doesn't support ALSA

As user:

pulseaudio &

bluetoothctl
power on
scan on
devices
agent on
pair XX:XX:XX:XX:XX:XX
trust XX:XX:XX:XX:XX:XX
connect XX:XX:XX:XX:XX:XX

pacmd
list-cards
info                  # Check indices of sinks and sources
set-default-sink  1

mplayer -ao pulse  sample.wav

Receive files from phone

install  bluez  bluez-tools  bluez-obexd
bt-adapter --set Discoverable 1
bt-agent
# Send (not tested):
bt-obex -p [remote_mac] [file]
# Receive
bt-obex -s /tmp/    # This is the terminal in which you'll have to accept the transfer request.
# Files end up in `$USER/.cache/obexd/` not the directory.