Browsing Android Files using Bluetooth

One of the casual uses of Bluetooth under Android, is just to pair devices with our Android (host) device, so that specific apps can use the paired (slave) device. This includes BT-headphones, and many other devices.

But then a slightly more advanced use for BT under Android could be, that we actually send files to a paired Android device. It’s casually possible to take two Android tablets, or a tablet and a phone, and to pair those with each other. After that, the way to ‘push’ a file to the paired device, from the originating device, is to open whichever app displays files – such as for example, the Gallery app, if users still have that installed, or a suitable file-manager app – and to tap on ‘Share’, and then select ‘Bluetooth’ as what to share the file to. Doing this should open a list of paired devices, one of which should be suitable to receive a pushed file in this way.

But then, some people would like to take Bluetooth file-sharing up another level. We can pair our Android device – such as our phone – with a Bluetooth-equipped, Linux computer, which may be a bit tricky in itself, because the GUI we usually use for that assumes some legacy form of pairing. But eventually, we can set up a pairing as described. What I need to do is select the option in my Linux-BT-pairing GUI, which requires me to enter the pass-code into the Linux-GUI, which my Android device next displays…

And then, a question which many users find asking themselves is, ‘Why can’t I obtain FTP-like browsing capability, from my Linux-computer, over the files on the phone? Am I not giving the correct commands, from my Linux-computer?’

Chances are high, that any user who wishes to do this, is already giving the correct commands from his or her Linux-computer…

(Updated 06/03/2018, 20h45 … )

Continue reading Browsing Android Files using Bluetooth

An important detail, about how to use ‘fusermount’, which I only learned recently.

It’s old wisdom under Linux, that system administrators do not allow just any user to mount file-systems. The reason is the fact that, with any sophisticated file-system, each file can have ‘root’ ownership, as well as having the ‘setuid’ flag set, which means that if a malicious user was next to execute a program with those bits set, he would have given himself root privileges.

The fact that with most Linux desktop managers, auto-mounting is handled in the background, by a daemon, only serves to verify this concern.

But ways exist to mount a file-system, so that all the files and directories within it, just arbitrarily have one current user as their owner. Only a regular user with access to the ‘mount’ command, cannot be trusted to use such options.

BUT, There exists a utility on modern Linux systems – if it’s installed – which is called ‘fusermount’. This is a command, for mounting file-systems in user-space. Its main purpose is, to give regular users the ability to mount a file-system, but only to have its files and directories belong to them – safely.

In the past, I had a hard time using this command, because every time I tried, I just got the error-message that I did not have permissions to do so, as a regular user. What I did at first, was to use ‘visudo’, in order to give myself the privilege to use ‘mount’ with ‘sudo’.

But as it turns out, there is a detail to using ‘fusermount’ properly, which I only learned about recently.

Continue reading An important detail, about how to use ‘fusermount’, which I only learned recently.