Idea: File Manager within FreedomBox

#1

Summary
Some use cases of FreedomBox would be made easier if FreedomBox offered a file manager within the UI. I wonder what others think about integrating a file manager within our UI.

Problem
Currently, we rely on two methods for managing files in FreedomBox: (1) SSH and (2) file managers within specific client apps, like Syncthing’s file manager. Granting that file management through SSH is a bit cumbersome and that there are times when it is preferable to use a universal file manager instead of an app-specific file manager, it seems that our system has a gap: there is no file manager or the entire file system within the UI. I have found this to be cumbersome for my Ikiwiki

Solution
Integrate a file manager within our UI. Perhaps some critical directories can be locked in order to prevent accidental breakage of the system. The file manager should enable (1) viewing of all directories and (2) adding/deleting files in some directories (e.g. Ikiwiki’s directories).

Questions
What do people think about this idea in general?

If you support it, would you rate the time requirement of this feature as low, medium, or high?

#2

I can see how that idea makes sense if “within” means “as its own module”. A complte file manager might even be a bit too much, as we probably don’t need to handle files on a file by file basis, but more like pointing important directories to applications, or making them available.

I think if people need to “mess around” with specific files, we probably made a mistake of not having taken care of stuff like we should. And I have yet to see a web based file manager that comes even close to a native app :stuck_out_tongue:

I totally agree that we currently don’t cover the entire realm of “files” and access to them, and that is not good.

#3

When I was experimenting with static websites for FreedomBox, I explored using a web-based file manager to do basic file operations like moving, renaming, copying etc. Also, having a basic text editor is a plus for quick edits.

File browser is the file manager I tried out. The UI looks like Google Drive. It has permissions management for files and a basic text editor as well.

@haidar The way we usually introduce apps into FreedomBox is driven by use cases. If we can think of an initial set of use cases for which one might use a file manager with FreedomBox, that will inform our choice of application and integration with other applications in the system, permissions for users, content on the manual page etc.

In our use case exploration, we can use a standard desktop file manager like Dolphin with SFTP to access files on a FreedomBox device to observe what features of the file manager users might need.

It is worth noting that some features like viewing files in shared folders is already supported by the sharing app. Also consider the possibility of NextCloud being integrated and providing some of the file management features.

#4

Which directories would you lock down? Most configuration will be done in /etc or in dotfiles in $HOME. I suppose it might make sense to lock down any data dirs in /var. But, I don’t think they should be completely locked down. We don’t want to remove a persons freedom to do what they want with their freedombox.

But, we should make it a deliberate process to unlock something. And, the process should give a big fat bright-yellow-on-black warning or two before actually unlocking said something. We should tell them they void the warranty etc etc…

I’m just curious, why do you need access to the whole file system from within ikiwiki? Would access to $HOME be enough for publishing purposes?

#5

I recommend Filestash, formerly called Nuage. It is minimal, requires no database, and is built to work with Syncthing or any other sync service.


#6
  • It would be good to have a file manager when implemented as a separate app.
  • We should indeed try to reduce the user’s need to use a file manager. An example of this issue. We may not be able to eliminate all such needs. Android tries to do the same.
  • Currently, one use case could be static file hosting in user’s home directory that is automatically served at https://<box>/~user .
  • Both Filestash and File browser look interesting. I added them to https://wiki.debian.org/FreedomBox/LeavingTheCloud
1 Like
Newbee questions