How to Install XBackBone on Your Synology NAS

How to Install XBackBone on Your Synology NAS

XBackBone is a simple and lightweight PHP file manager that support the instant sharing tool ShareX and *NIX systems. It supports uploading and displaying images, GIF, video, code, formatted text, pdf, and file downloading and uploading. Also have a web UI with multi user management, media gallery and search support. In this step by step guide I will show you how to install XBackBone on your Synology NAS using Docker.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

Install Docker Synology DSM 7

  • STEP 3

Install Text Editor via Synology “Package Center”.

1 Synology DSM 7 Install Text Editor

  • STEP 4

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it xbackbone. Follow the instructions in the image below.
Note: Be careful enter only lowercase, not uppercase letters.

XBackBone Synology NAS Set up 1

  • STEP 5

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the images below.

  • STEP 6

Once you click on User-defined script a new window will open. Follow the instructions below:

  1. General: In the Task field type in Install XBackBone. Uncheck “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that click OK.
docker run -d --name=xbackbone \
-p 8522:80 \
-p 4443:443 \
-e PUID=1026 \
-e PGID=100 \
-e TZ=Europe/Bucharest \
-v /volume1/docker/xbackbone:/config \
--restart always \
ghcr.io/linuxserver/xbackbone

Note: Before you paste the code above in the Run command area below, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)
Note: Before you paste the code above in the Run command area below, change the value for TZ (Select your current Time Zone from this list).

XBackBone Synology NAS Set up 3

  • STEP 7

After you click OK on STEP 6 a new warning pop up window will open. Click OK.

XBackBone Synology NAS Set up 4

  • STEP 8

After you click OK on STEP 7, select your “Install XBackBone” Task then click the “Run” tab. You will be asked to run Install XBackBone – click Yes. Follow the instructions in the image below.

XBackBone Synology NAS Set up 5

  • STEP 9

Follow my step by step guide on how to activate your synology.me DDNS on DSM 7
Follow my step by step guide on how to activate your synology.me DDNS on DSM 6.2.4
Note: If you already own a synology.me DDNS, skip this STEP.

  • STEP 10

Add Wildcard Certificate to your synology.me DDNS.
Note: If you already own a synology.me Wildcard DDNS certificate, skip this STEP.

  • STEP 11

Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.

XBackBone Synology NAS Set up 6

  • STEP 12

Now click the “Create” button. Follow the instructions in the image below.

XBackBone Synology NAS Set up 7

  • STEP 13

After you click the Create button, the window below will open. Follow the instructions in the image below.

On General area, set the Reverse Proxy Name description: type in XBackBone. After that, add the following instructions:

Source:
Protocol: HTTPS
Hostname: xbackbone.yourname.synology.me
Port: 443

Destination:
Protocol: HTTP
Hostname: localhost
Port: 8522

XBackBone Synology NAS Set up 8

  • STEP 14

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 15

Now open your browser and type in your HTTPS/SSL certificate https://xbackbone.yourname.synology.me in my case https://xbackbone.mariushosting.synology.me – If everything goes right, you will see the XBackBone installation page. At Base URL add https:// followed by your synology.me DDNS name instead of http:// – Add your own email and your own password then click Install. Follow the instructions in the image below.

XBackBone Synology NAS Set up 9

  • STEP 16

Now Login using your own email and password you have chosen at STEP 15. Follow the instructions in the image below.

XBackBone Synology NAS Set up 10

  • STEP 17

After clicking Login at STEP 16, you will get an error message in your browser. Wait about 15 seconds then refresh your browser page.

  • STEP 18

Welcome to your XBackBone administrator page.

XBackBone Synology NAS Set up 11

  • STEP 19

Go to the System tab. You will see two parameters post_max_size: 8M and upload_max_filesize: 2M Let’s make some changes that will allow you to upload 5GB files instead of 2MB.

XBackBone Synology NAS Set up 12

  • STEP 20

Go to File Station / Docker / xbackbone. Double click on the xbackbone folder. Follow the instructions in the image below.

XBackBone Synology NAS Set up 13

  • STEP 21

Now double click on the php folder. Follow the instructions in the image below.

XBackBone Synology NAS Set up 14

  • STEP 22

Double click on the php-local.ini file. Follow the instructions in the image below.

Note: If you can’t open the php-local.ini file, this means you haven’t followed STEP 3 in this article.

XBackBone Synology NAS Set up 15

  • STEP 23

After ; Edit this file to override php.ini directives and restart the container add these two lines below then save the file. Follow the instructions in the image below.

upload_max_filesize = 5G
post_max_size = 5G

XBackBone Synology NAS Set up 16

  • STEP 24

Open the Docker Package. On the left side menu click on Container. Select your xbackbone container then STOP it. Follow the instructions in the image below.

XBackBone Synology NAS Set up 17

  • STEP 25

Open the Docker Package. On the left side menu click on Container. Select your xbackbone container then START it. Follow the instructions in the image below.

XBackBone Synology NAS Set up 18

  • STEP 26

Access your xbackbone instances again. As you can see on the System tab the two parameters post_max_size and upload_max_filesize are now showing 5GB instead 2M and 8M. This change allows you to upload 5GB files instead of 2MB.

XBackBone Synology NAS Set up 19

Note: If you forget to follow STEP 24 and STEP 25, then the two parameters post_max_size and upload_max_filesize will not change.

  • STEP 27

Upload some files from your computer. Follow the instructions in the image below.

XBackBone Synology NAS Set up 20

  • STEP 28

Go to the Home tab. Use the Copy link option and share your files with your friends. Follow the instructions in the image below.

XBackBone Synology NAS Set up 21

Enjoy XBackBone!

XBackBone Synology NAS Set up 22

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: Find out how to update XBackBone container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.

This post was updated on Thursday / August 12th, 2021 at 3:33 AM