Samba cifs mounting

Posting this here not to forget as a useful snippet.

If you don't get write permissions in your samba fs mount, it's because you forgot `gid` in your options.

sudo mount -t cifs //x.x.x.x/sambadirectory /mnt/localdirectory -o username=sambauser,password=sambapass,uid=localuser,gid=localuser

 


Linux Debian Bluetooth defaults to HFS instead of A2DP Sink

I had installed Debian with Gnome and Pulseaudio/bluez. I couldn't get realtek audio from my mobo (AMD X470) which is fine, because I never use that. I'm a bluetooth guy.

Guess what doesn't work? A2DP Sink, so all my audio sounds like garbage in HFS mode. I can't get any of my bluetooth audio devices to default to A2DP Sink, and the only solution is to constantly disconnect and reconnect it for about 2 hours. It wants to say that A2DP is "unavailable" until then, when it picks it up.