Setting Up and Configuring FileBrowser Service » History » Version 1
Gareth Eaton, 12/19/2023 01:39 AM
1 | 1 | Gareth Eaton | h1. Setting Up and Configuring FileBrowser Service |
---|---|---|---|
2 | |||
3 | Using FileBrowser in conjunction with Nextcloud on a Linux server can be advantageous for several reasons, offering a complementary set of features and flexibility in file management: |
||
4 | |||
5 | 1. **Simplified File Management Interface:** FileBrowser provides a straightforward and lightweight interface for managing files. For users or situations where Nextcloud's more comprehensive suite of features is not required, FileBrowser offers an easy-to-use alternative for basic file operations. |
||
6 | |||
7 | 2. **Different Use-Case Focus:** While Nextcloud offers a wide range of features including file hosting, collaboration tools, calendar, and contacts management, FileBrowser is solely focused on file management. This focus can make FileBrowser a more efficient choice for simple file access and management tasks. |
||
8 | |||
9 | 3. **Performance Considerations:** FileBrowser might be more lightweight and faster in environments where server resources are limited or when a minimalistic file manager is preferred. This can be particularly beneficial for servers handling a large number of files or concurrent users. |
||
10 | |||
11 | 4. **Ease of Setup and Maintenance:** For smaller setups or instances where the full feature set of Nextcloud is not needed, FileBrowser can be easier to set up and maintain due to its simplicity. |
||
12 | |||
13 | 5. **Direct File System Access:** FileBrowser can offer more direct interaction with the server's file system, which might be useful for administrative tasks or when handling files that are not necessarily part of the Nextcloud managed directories. |
||
14 | |||
15 | 6. **Complementary Usage:** In some scenarios, FileBrowser can be used alongside Nextcloud to provide an alternative access point to files. This can be useful in setups where different user groups require different interfaces or functionalities. |
||
16 | |||
17 | 7. **Redundancy and Flexibility:** Having both services available provides redundancy; if one service is down for maintenance or encountering issues, users can still access files through the other service. |
||
18 | |||
19 | In summary, while Nextcloud offers a broad and feature-rich environment for collaboration and cloud storage, FileBrowser adds a layer of simplicity and directness in file management, making them complementary tools in a robust and versatile server setup. |
||
20 | |||
21 | Step 1: Install FileBrowser |
||
22 | Use the script to install FileBrowser: |
||
23 | <pre> |
||
24 | curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash |
||
25 | </pre> |
||
26 | |||
27 | Step 2: Create the Systemd Service File: |
||
28 | <pre> |
||
29 | sudo nano /etc/systemd/system/filebrowser.service |
||
30 | </pre> |
||
31 | |||
32 | Add the following content: NOTE: Add your IP address |
||
33 | <pre> |
||
34 | Unit] |
||
35 | Description=FileBrowser service |
||
36 | |||
37 | [Service] |
||
38 | User=nextcloud |
||
39 | Group=nextcloud |
||
40 | Type=simple |
||
41 | WorkingDirectory=/srv/data |
||
42 | ExecStart=/usr/local/bin/filebrowser -d /srv/data/filebrowser.db -a your_IP_ADDRESS -p 8080 |
||
43 | Restart=always |
||
44 | |||
45 | [Install] |
||
46 | WantedBy=multi-user.target |
||
47 | </pre> |
||
48 | |||
49 | Step 3: Enable and Start the Service |
||
50 | |||
51 | <pre> |
||
52 | sudo systemctl daemon-reload |
||
53 | </pre> |
||
54 | |||
55 | <pre> |
||
56 | sudo systemctl enable filebrowser.service |
||
57 | </pre> |
||
58 | |||
59 | <pre> |
||
60 | sudo systemctl start filebrowser.service |
||
61 | </pre> |
||
62 | |||
63 | <pre> |
||
64 | sudo systemctl status filebrowser.service |
||
65 | </pre> |