Squeeze This NAS Episode 001 – File Browser

Original link: https://www.aemon.top/2022/08/08/%E6%A6%A8%E5%B9%B2%E8%BF%99%E5%8F%B0NAS%E7%AC%AC001% E8%AF%9D-%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E5%99%A8%EF%BC%88FileBrowser%EF%BC%89/

This is a series of articles about NAS. You have also seen the name of the series: ” Drain this NAS “. I will introduce the knowledge related to NAS in as much detail as possible to help you maximize the power of your NAS!

In the previous chapter, we introduced the directory structure, so how should we edit these directories and files? The most primitive way is to use commands to perform these operations. But this is a bit difficult for some people who are not familiar with Linux system. So, in this case, I will introduce a software that can be used for NAS file browsing. If you are a Synology or QNAP user, the software that comes with the system should be able to meet most of your needs, so you can skip this.

PS: The next operations will be done on an unRAID (6.10.2) system.

PSS: Of course, for users of non-unRAID systems, I will also demonstrate how to install it under Linux systems.

Installation and use under unRAID

search

Go to the “Apps” page, search for “FileBrowser”, and select the app shown below:

Click “Install”, which is the location of the “Actions” button in the figure (because I have already installed this software, so the “Install” button will not be displayed).

configure

Then fill in as shown above.

Mainly, two paths and one port are configured:

  1. Map the / path of the host to the /srv path of the container, which is the path you need to manage files;

  2. Map the /mnt/user/appdata/filebrowser/ path of the host to the /db/ path of the container. This path is the configuration database path of the container. Personal configuration information such as username and password you set later will be stored here. ;

  3. Map the port 8222 of the host to port 80 of the container, which is the WebUI port of the container, and then you can access the WebUI interface through this port (note, please make sure that the port 8222 of the host is not occupied by other programs, otherwise it will not be able to start container, if it is occupied, it can replace the port itself).

Click Apply to start the container. If your configuration is correct, after a short wait, the container will automatically start and it will be ready to use.

Attach the startup command under unRAID:

 1
 /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='FileBrowser' --net='bridge' -e TZ="Asia/Shanghai" -e HOST_OS="Unraid " -e HOST_HOSTNAME="Tower" -e HOST_CONTAINERNAME="FileBrowser" -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:8222] /files/' -l net.unraid.docker.icon='https://github.com/maschhoff/docker/raw/master/filebrowser/35781395.png' -p '8222:80/tcp' -v '/ ':'/srv':'rw' -v '/mnt/user/appdata/filebrowser/':'/db/':'rw' 'filebrowser/filebrowser' -d /db/database.db

use

Open a browser and visit http://192.168.1.223:8222 (note that if you have modified the port in the above configuration, please visit the corresponding port, and the IP address is the IP address of your NAS), you can go to File Browser’s operation page.

The default username is: admin , and the default password is: admin .

change Password

The first thing after logging in, please go to the “Settings” – “Personal Settings” page to change your password.

some configuration to make it better to use
  1. Change the language to Chinese in “Settings” – “Personal Settings”;

  2. Uncheck “Do not show hidden files” in “Settings” – “Personal Settings”, so that you can see hidden files and folders;

  3. In “Settings” – “Personal Settings”, uncheck “Use click to open files and directories”, which can be more in line with the operation logic of Windows Explorer, and you can also use ctrl and shift to perform multiple selection operations;

  4. Since the management directory is set as the / path of the host machine when installing the container, the default path is this path every time you access the WebUI. If you want to change the default path, the software does not have corresponding settings, but we can save the country by curve, first of all Go to the path we want to display by default. For example: /mnt/user/appdata/ , then we just add the current page ( http://192.168.1.223:8222/files/mnt/user/appdata/ ) to the browser’s bookmark, so that we can pass this bookmark in the future to access this path. Similarly, we can set different bookmarks for different directories, so as to achieve the purpose of quick access.

Installation under Linux

The following operations are based on the fact that Docker has been installed in the system.

  1. Pull the Docker image

     1
     docker pull filebrowser/filebrowser:latest
  2. start the container

     1
    2
    3
    4
    5
    6
     docker run \
    -v '/':'/srv' \
    -v '/mnt/user/appdata/filebrowser/':'/db/' \
    -p '8222:80/tcp' \
    filebrowser/filebrowser:latest \
    -d /db/database.db

refer to

This article is reprinted from: https://www.aemon.top/2022/08/08/%E6%A6%A8%E5%B9%B2%E8%BF%99%E5%8F%B0NAS%E7%AC%AC001% E8%AF%9D-%E6%96%87%E4%BB%B6%E6%B5%8F%E8%A7%88%E5%99%A8%EF%BC%88FileBrowser%EF%BC%89/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment