Filemanager – A Cross-platform Stylish Web File Manager

Filemanager - A Stylish Web File Manager

Today, we will be discussing about an useful application called “filemanager”. It provides a file managing interface within a specified directory or you can assign your own directory. You can use it as the way you use your local file manager. The only difference we use it from the web browser. Concerning about the features of filemanager, we can list the following:

  • Create, delete, rename, preview, and edit files and folders.
  • Upload and download files and folders.
  • Create multiple users with their own directories. Each user can have a distinctive directory to keep his data.
  • We can use it either standalone application or a middleware.
  • Web-based.
  • Cross-platform. Works well on GNU/Linux, Windows and Mac OS X.
  • Free and open source.

In this brief guide, I will show you how to setup and use filemanager in Linux.

Filemanager – A Cross-platform Stylish Web File Manager

Install Filemanager

Method 1:

The easiest way to install is through curl or wget.

curl -fsSL https://henriquedias.com/filemanager/get.sh | bash

Or,

wget -qO- https://henriquedias.com/filemanager/get.sh | bash

Sample output would be:

Downloading File Manager for linux/amd64...
https://github.com/hacdias/filemanager/releases/download/v1.0.2/linux-amd64-filemanager.tar.gz
Extracting...
Putting filemanager in /usr/local/bin (may require password)
[sudo] password for sk: 
Successfully installed

After installing it, skip the following methods and go to the usage section to start using it right away.

Method 2:

The fastest way to install it is download the latest filemanager and put it in your PATH. Once you put it to your PATH, go to the usage section below and start using filemanager.

Method 3:

Of course, there are other ways to install it. One of them is using Docker. Install Docker as described in the following links.

Once the Docker installed, run the following command to install it:

docker pull hacdias/filemanager

Now, go to the usage section to know how to use filemanager.

For other installation methods, refer this link.

Usage

Go to the directory you want to browse and start it using command:

filemanager

You will see the URL in which File Manager is running, like below.

Listening on [::]:43921

By default, Filemanager listens to all interfaces. Of course, You can make it to listen to a particular interface if you wish. We will see it in the configuration section below.

Please note that the port will change dynamically when start filemanager each time. You need to enter the correct port number in the address bar to open it. Also, you need to open the port if you’re behind a firewall/router.

If you don’t want to use different port each time, you can assign a specific port, say 80, like below.

filemanager --port 80

Now, you can access the filemanager using URL – http://ip_address:80.

Once you started the filemanager, open the URL (http://ip_address:port) from your web browser using the default credentials.

  • Username: admin
  • Password: admin

filemanager1

This is how filemanager default interface looks like.

filemanager2

Change Admin user password

The first thing to do is to change the admin user’s password. To do so, click Settings link on the left menu. Update your your new password for the admin user.

Filemanager Profile Settings

 

Create a file/directory

Click on “New folder” on the left side menu and enter a name for your new directory.

Filemanager4

Similarly, you can create a new file from the main interface.

Once you have created the directory, you’ll be redirected into that directory. If not, just double click on it to open. From there, you can upload files/folders or download the existing files.

Upload files

To upload a new file, click on the Upload button (Up arrow) on the top and choose the files you want to upload.

filemanager_Open Files

The selected file will be uploaded in few seconds depending upon the size.

Download files

Choose the file you want to download and hit download button (down arrow) on the top.

file download

Single files can be downloaded directly. Also, you can download more than one files at a time. Multiple files can be download as .zip, .tar, .tar.gz, .tar.bz2 or .tar.xz.

Similarly, you can remove, edit or copy your files.

Create a new user

Filemanager allows you to create new users and the users can have their own directories. To do so, go to click Settings -> Global Settings.

Click Go to User management link.

Enter the new user details and click Save.

Filemanager new user

As you may noticed in the above screenshot, the scope is the directory you want to browse in.

Now, log out from the Admin user and log in back as new user. Please note that you can do all administrative tasks only from the admin user.

Configure filemanager

Filemanager has many other useful flags. Like I said already, filemanager listens to all IP addresses of your host by default. If you want to use a specific IP address, just use it using -a flag like below.

filemanager -a 192.168.43.150

Likewise, you can use a dedicated port. By default, filemanager uses a random port each time you open it.

To use a dedicated port, for example 80, use the following command:

filemanager --port 80

Don’t forget to open this port in firewall or router if you have any.

Another notable thing is it provides a file managing interface within a specified directory. We call it scope. The default is current working directory. You can change it by specifying a different directory path using -s or –scope flag as shown below.

Say for example, if you wanted to run File Manager on port 80 with the default scope to /home/sk/ostechnix, you need to run:

filemanager --port 80 ---scope /home/sk/ostechnix

For more details about, configuration flags and files, refer this link.

And, that’s all for now folks. For those who wants to view their files or folders via a web browser in a Local area network, filemanager might be a good choice. You can also use it to view the data of your remote network system. Just run it on your remote system, and access the files via a web browser from anywhere on your network.

Cheers!

Resource:

Thanks for stopping by!

Help us to help you:

Have a Good day!!

You may also like...